Crashed Map Recovery v1.5
12 Attachment(s)
Description:
This plugin will save the map your server is on to a data file, and reload that map when the server restarts for any reason (for example, after a crash). Installation: 1) Upload crashmap.smx to addons/sourcemod/plugins/ 2) Restart your server (Important!) 3) Edit cfg/sourcemod/plugin.crashmap.cfg to your needs Cvars: sm_crashmap_enabled - Enables (1-Default) or Disables (0) the plugin. Note that if disabled, map names will not be stored sm_crashmap_recovertime - Enables (1) or Disables (0-Default) the ability to recover the timelimit of the server. sm_crashmap_interval - Time interval (in seconds) between updates of timeleft. (Default 20, min 1) sm_crashmap_maxrestarts - Number of restarts that can happen before the default map is loaded. (Default 5, min 3) sm_crashmap_version - Shows the version Notes: A little about how sm_crashmap_maxrestarts works: Every time the map is recovered after a crash, the # of restarts goes up. Once it's higher than sm_crashmap_maxrestarts, the server will stay on the default map (set in the command line). If your default map crashes, that's something YOU should fix. There are 2 ways for the # of restarts to be reset: 1) A player successfully connects to the server after a recovery 2) The max restarts limit is reached, and the default map is loaded Changelog: Code:
1.5 |
Re: Crashed Map Recovery
Good idea. :)
You can also save timelimit. |
Re: Crashed Map Recovery
Quote:
After writing this plugin I'm surprised it hasn't already been written. Edit: Do you mean timeleft? or mp_timelimit? I can't save the timeleft since the server would have crashed. I don't think I need to save mp_timelimit, since I'd have to assume most people have mp_timelimit set in some config. |
Re: Crashed Map Recovery
oh wow amazing idea crazydog. will install immediately.
|
Re: Crashed Map Recovery
Quote:
|
Re: Crashed Map Recovery
I really don't like timers, as things happening repeatedly always makes me worry about performance, but I guess I'll put it in.
v. 1.2 up. Includes support for saving timelimit. |
Re: Crashed Map Recovery
I'm surprised no one has made this till now : o
|
Re: Crashed Map Recovery
How ever server doc has an option when server crashes to go back the map it was on right or does it go back just to a certain map?
|
Re: Crashed Map Recovery
Yeah id have to agree. Amazing this hasnt been created yet. Definitely useful. Good work.
|
Re: Crashed Map Recovery
Great idea. However...
What if the server crashed *because* of a certain map? Then it would repeatedly crash over and over. Any way to detect that? Maybe you could count if the server has crashed for more than X times in a preset amount of time and if yes, do not change to the last map but to a random one. (This should be logged also) |
All times are GMT -4. The time now is 10:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.