ID:273721
 
How do i reboot the game using the Topic??
Biond_coder wrote:
How do i reboot the game using the Topic??


I don't know what you mean by topic but if you mean a verb, then you can use world.Reboot proc.
http://www.byond.com/ members/?command=reference&path=world%2Fproc%2FTopic

Send it a topic message of "Reboot" Note that, as that reference entry states, the message should come from "the master server" I do believe that means a server which used startup() to start the world you want to reboot.

http://www.byond.com/ members/?command=reference&path=proc%2Fstartup

So send the "Reboot" topic message from the world which called startup() in order to start the game. I think that's how it works.
In response to Loduwijk
thanks i read that but i have no idea how to compose the topic code to send the instruction from one server to the other...
In response to Biond_coder
mob
verb
Reboot()
var
link = "link goes here"
params = list("action" = "reboot")
world.Export("[link]?[list2params(params)]")

world
Topic(T)
var/params = params2list(T)
switch(params["action"])
if("reboot")
Reboot(2)


Didn't test it but that should do it.
In response to Youngj52032
thanks