how to safely close game server

08/14/2011 21:44 joll69#1
Hello all, I'm having some trouble getting a few commands to work, and haven't been able to find any information on correct syntax.

I've noticed some weird things happen if i just close the game server by clicking on the X icon in the upper right, mostly that there's a short rollback on player data, and sometimes a few inventory items are re-sorted.

I see there's a few commands in the debug that would probly do what I think is needed: #kickall, #saveall, and #shutdown

But when I input those in the game server box an error is thrown.
Quote:
Originally Posted by game server
[string "saveall"]:1: '=' expected near '<eof>'
I get that for inputting #saveall. Similar responses for the other two commands.

Anyone know what I'm missing?
08/14/2011 21:54 ismokedrow#2
Make sure all users are logged out and then close, of course there will be rollbacks if any player is still logged in. The server does not have time to properly save their information.
08/14/2011 21:59 ironhammer500#3
#shutdown '60' and let it shutdown

#restart '60' again let it restart

it does save if u let it turn off, takes few mins but LET IT TURN OFF i cant stress that part enough =P
08/14/2011 22:17 joll69#4
ok, that syntax worked. Thanks for the help. :)

Also any way to kick players beforehand? Just trying to minimize possible weirdness from restarting the server and players still being logged in.
08/14/2011 22:19 ismokedrow#5
Wow, didn't expect that from ya iron.

+1 mate.

I personally don't use that method, but it's nice to see someone giving correct information for once.
08/14/2011 22:37 ironhammer500#6
Quote:
Originally Posted by ismokedrow View Post
Wow, didn't expect that from ya iron.

+1 mate.

I personally don't use that method, but it's nice to see someone giving correct information for once.
haha well i know i dont always know it all but what i do know i can give help with.

Not making sense ftw? =D

anyways the timer seems alittle broken it will go past 0 and shut off in 30-1min after

Plus it says a nice big "Server with shutdown for maint in 1min" in yellow so everyone knows to log out ^^
08/15/2011 06:18 XavierDeFawks#7
To get the saveall command to work use it like this #saveall(60)
08/15/2011 06:46 gavsta#8
Quote:
Originally Posted by ismokedrow View Post
Wow, didn't expect that from ya iron.

+1 mate.

I personally don't use that method, but it's nice to see someone giving correct information for once.
nvm,
08/15/2011 07:15 RoflcopterGoesSoiSoiSoi#9
The correct usage is simply "#shutdown()".