kay
Legendary OT User
- Joined
- Apr 23, 2013
- Messages
- 1,423
- Solutions
- 12
- Reaction score
- 1,993
- Location
- 32316,31942,7
- YouTube
- TibiantisOnline
There are two main reasons why players may not be saved: you either don't close the game properly or you don't have usr directory. As far as I remember, it does not create usr and its subdirectories by itself. So make sure that it is present and contains subdirectories from 00 to 99.Hello guys, total noob in linux here, but I got it online in my VM. My question is how server save works here. There is an automatic server save ruled by the /home/game/bin/reboot-daily file? A certain time?
If I just close the terminals, players dont save, Im closing game first, then query and login (tfls), I tried to find the PIDs checking the ports in terminal, in 7172, game process shows 6 different PID numbers, query at 17778 and login at 7171 shows only one each, I use sudo kill -15 <PID> but game process always reboot, even if I delete /game/save/game.pid, it always comes back, Im only able to launch game process again after restarting ubuntu.
There is a command in game terminal to save or something else I can do?
Inside reboot-daily, line 4, the standard was Base="/game", I changed to Base="/home/game" but still the same, players dont save.
Can someone give me some direction? Thanks!
As for game.pid, it is created at the start and deleted at the exit. It's there to make sure that another instance of the game server will not be started as long as there is one running, and that the game server will not restart if it didn't close properly.
By default, the game closes at reboot time, which is passed by the query manager upon the game start and cannot be changed on runtime, and then it starts reboot-daily script, if it's there. This is used to make backup and automatically restart the game. You can also close it manually at any time by sending a signal: 15 will close the game in 5 minutes with red messages and with full map save, 3 or 30 will shut it down immediately and also with map save (in all cases the map does not refresh), while 2 or 24 or 25 will shut it down immediately and without map save (should still save the players though). If shut down manually, it does not run reboot-daily script, so the game should not restart, unless you had started it in some infinite loop.