ID:271010
 
Alright, I'm pretty stupid. How do you use the options in it?

Format:
startup(File,Port=0,Options,...)

When I do this:
startup('MyGame.dmb',0,once)

It doesn't work, and I didn't think that would work.

What I need to know is how to do it right @_@
I am pretty sure startup is for starting another dmb file when hosting on that game well the way your doing it.

What are you trying to use it for that might help me figure out why your using it lol.
What I wanna know is how to do the options.
They're additional arguments:

startup("mygame.dmb",2500,"-once","-safe","-logself","-params master_port=[world.port]")


Just like that. The latter will be set in the list world.params and you can use it to (in this case) determine the port the master server is running on.

world/New()
spawn
status="Loading..."
while(!world.internet_address) sleep(5)
if(world.params&&world.params.len&&("master_port" in world.params))
status="Slave Server (hosted by byond://[world.internet_address]:[master_port])"
else
status="Master Server"


The code above would check wether the server is a slave or a master.

FYI the distinction between "master" and "slave" is simple: the "master" server is the one that called the "slave" server. Thus a "master server" in this list would be a server that doesn't have it's own master. Thus, the instance of the game ran solely by the user.