I am almost 100% sure that OpenPort() doesn't do its bidding in Dream Daemon. Well, if it is, try to fix it in the next version.
~~> Dragon Lord
ID:268115
Mar 17 2004, 3:27 am
|
|
In response to Lummox JR
|
|
If all else fails, you could just block people from joining...
|
In response to Ryuo
|
|
Ryuo wrote:
If all else fails, you could just block people from joining... I agree. That would probably be the best way to prevent hosting. After the first player joins, no one else is allowed to, or they are allowed to, but are just spectators. |
In response to Jon88
|
|
In world/New(), spawn one second, check to see if port is something besides 0, and if it is, shut down the world.
|
In response to Garthor
|
|
Garthor wrote:
In world/New(), spawn one second, check to see if port is something besides 0, and if it is, shut down the world. Indeed, that's a pretty good way to handle this. In DS you couldn't possibly click the Host button and set up hosting that quickly, so there's no chance of this biting DS in the butt. Lummox JR |
In response to Lummox JR
|
|
OpenPort() would be overridden anyway, so you couldn't host that way.
|
Which is why it says just that in the documentation.
Can't. Dream Daemon works a different way--blocking hosting with it is a technical nightmare on the internal side of things. Instead you should design your games to be generally aware of the possibility of being hosted in DD and make them cope with it.
Lummox JR