If startup() fails, because you already have a server on the supplied port, for example, it seemingly hangs forever and prevents the rest of the code from executing. If I'm not mistaken, it used to return "[IP]:0" if it failed. Not 100% sure when this started though, it may have been when the -close parameter was implemented.
Also, startup() either starts new servers in whatever visibility mode the parent is set to, or to whatever the last DD instance was (not 100% sure which). This is understandable, but I think it would be better to always start new worlds in public mode. Or possibly, take a parameter for that setting, like it does for the safety mode.
ID:120858
Nov 7 2011, 12:40 pm
|
|||||||||||||
| |||||||||||||
You have to include the -close option
world/New() EDIT: It also seems to fail in a similar manner if you include an option that doesn't exist, like "-closed" |
This has happend with both a 'ServerMonitor' I created to keep my game up AND a 'ServerMonitor' I actualy paid for, it involves a false-negetive ping.
|
I can now verify this issue, but I'm afraid the solution is not readily apparent. It has to do with the way the slave server is being shutdown. The fact that this happens for unrecognized args further complicates the issue. I don't intend to let this go but I don't expect the fix to be in 494.
|
We actually do have visibility parameters for startup(), though they are undocumented (and I think it makes sense to document them).