Server Crash Recovery
Whats the code to recover after a server crash?
I've seen it around but i can't figure out what to search for. Asking is just easiest, as well as having a dedicated thread for it. |
Re: Server Crash Recovery
What do you want to recover? Last map played?
|
Re: Server Crash Recovery
Just check to see if it has just recovered after a restart/crash.
http://forums.alliedmods.net/showpos...1&postcount=22 That is what i'm trying to fix. |
Re: Server Crash Recovery
|
Re: Server Crash Recovery
Quote:
|
Re: Server Crash Recovery
That's not possible, because #defines are resolved at compile time not run time.
|
Re: Server Crash Recovery
Quote:
How can i tell when the server just started? |
Re: Server Crash Recovery
Every map end create a file that is empty, used for checking if it was created last map.
On map start, check if this file exists. If not, the server just started. If it does, delete it. This won't work if your server crashes on map change, such as missing a required model for a map. |
| All times are GMT -4. The time now is 06:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.