Raised This Month: $ Target: $400
 0% 

Crash Guard


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   v3x (159)
rain
Senior Member
Join Date: Oct 2004
Location: Poland
Old 06-02-2006 , 16:08   Crash Guard
Reply With Quote #1

More information about this plugin: amx_crash
Up to date downloads available through my website: amx.dvl.pl
This plugin can be compiled online through amx.dvl.pl compiler or amxmodx.org compiler.

Quote:
Version: 1.3

Description:
This plugins reverts to the last played map after a crash, thus preventing the undesirable problem of mapcycle repetition.

Instructions:
For detailed instructions check the attached readme file.

Changelog:
Version 1.3 (2007-09-08)
  • License upgraded to GPL v3 or later
  • Added version broadcasting
Version 1.2 (2006-06-26)
  • Added optional usage mode, see CRASH_DETECT_MODE (thanks goes to _KaszpiR_ for pointing out the idea and probably Maddo as the originator)
  • Some minor inconsistency fixes in set_task calls
  • Ignore case when comparing map names
Version 1.1 (2006-06-02)
  • Cleaned up the code, commented, GPL-ed
  • Added TimelimitMultiplier variable
  • Added directory check when writing to 'vault'
Version 1.0 (2005-07-20)
  • Initial private release (not open published)
It's quite simple (KISS principle). Originally it was written more than a year ago. After some polishing I decided to go open source with my small collection. And this is the first from my pack.

During this time, as I have recently got to know, a similar project was created: Plugin - Map Cycle Restoration on Crash (Linux Only). Nevertheless, I think it can be quite a useful alternative (a bit different work basis). Don't know if the mods won't be reluctant to approve it due to that fact, but it's worth a try. Hope you'll like it. ;-)

Code:
 * Short usage instructions:                                                       *
 *   1) Compile & install.                                                   *
 *   2) Create your failover map (place it in ~/cstrike/maps).               *
 *   3) Ensure that your server starts with this map (change your run script)*
 *      f.e.: ./hlds_run [...] +map de_restart                               *
 *   4) Recompile nextmap.sma with mapcycle following enabled.               *
 *      Uncomment: #define OBEY_MAPCYCLE                                     *
 *   5) Restart your server, change manually to your first map in mapcycle   *
Attached Files
File Type: zip amx_crash-1.3.zip (12.7 KB, 3604 views)
File Type: gz amx_crash-1.3.tar.gz (11.9 KB, 1738 views)
File Type: sma Get Plugin or Get Source (amx_crash.sma - 4876 views - 11.3 KB)
__________________

Last edited by rain; 07-06-2008 at 11:16.
rain is offline
Silver Dragon
Veteran Member
Join Date: Jan 2005
Location: Chicago, Illinois
Old 06-02-2006 , 16:23  
Reply With Quote #2

Ohhh, this is really nice plugin. I have one question,

When your server crashes the ranks go back the way they were before, do the ranks save?
__________________

Silver Dragon is offline
Send a message via AIM to Silver Dragon Send a message via MSN to Silver Dragon Send a message via Yahoo to Silver Dragon
rain
Senior Member
Join Date: Oct 2004
Location: Poland
Old 06-02-2006 , 16:32  
Reply With Quote #3

Well, I think you mean frag/death count? No, it has not yet been implemented. We've managed to diminish our servers' crash rate, so it wasn't a must. If there's a demand for such a feature, I can think about it.

Though have in mind, that implementing it means a lot of overhead operations the server would have to crunch. And now it's really tiny - just single checks once per map.
__________________

Last edited by rain; 07-06-2008 at 11:26.
rain is offline
ThomasNguyen
Senior Member
Join Date: May 2006
Old 06-02-2006 , 16:50  
Reply With Quote #4

Nicely done rain! Ive been looking for one of these plugins. I use HLDS Standalone with HLDS pingbooster running[which crashes the server often but actually helps me] but can you give a little better description? +karma

Question: Do i need to add de_restart to my mapcycle.txt or maps.ini?

This is my map cycle
Code:
de_dust2_cz
de_dust_cz
bj_redfaction
bj_vice
bj_nightfight
de_airninja
supercrazytank
xmas_crazytank
de_crazytank
as_crazytank2
as_Crazytank3
awp_city2
aim_ak_colt2_cz
aim_pistols
cafeteria
building_2
de_rats
cs_assault_necro
cs_assault_upc
cs_assault_nod
cs_sigma_assault
cs_winter_assault
cs_crackhouse
cs_silentscope
de_westwood
ex_iban
fmx_$kingpin$_beta
gijoehq_cs
gijoehq_de
hamsters
he_ice_fishing
panic_room
scoutzknivez
scoutzelitez
scout_wars
surf_ski
surf_liberty
surf_ninja
surf_l33tbob
nth_lets_take_mothers_tank
fy_houses
fun_zone
cs_mario_b2
cs_bunker64
kz_starwars_b05
de_dust4
gahhhhh
st_pqaware
awp_l337sk337beta
cs_club42
cs_d-day2
de_cchq
Big_city
mindmaze2
ka_colosseum
cc_secret_base
awp_fortress
aim_4towers
the_stairs2
fy_twincomplex
__________________
ThomasNguyen is offline
ThomasNguyen
Senior Member
Join Date: May 2006
Old 06-02-2006 , 20:25  
Reply With Quote #5

Hey it got approved. thats good. this plugin is so useful
__________________
ThomasNguyen is offline
rain
Senior Member
Join Date: Oct 2004
Location: Poland
Old 06-03-2006 , 04:24  
Reply With Quote #6

Thx for comments and fast approval. ;-)

Quote:
Originally Posted by ThomasNguyen
Question: Do i need to add de_restart to my mapcycle.txt or maps.ini?
No. Indeed you must not. This is like a 'fake bogus' map - only for determining whether the server has been restarted (it is not in your mapcycle nor in votings so it should be 'played' only once - at the moment the server is started. Well, played is maybe not a good term - rather run, you have like 5-10 seconds of it).

And OK, I will give some more readmes. Just hang a while.
__________________

Last edited by rain; 07-06-2008 at 11:26.
rain is offline
ThomasNguyen
Senior Member
Join Date: May 2006
Old 06-03-2006 , 12:02  
Reply With Quote #7

Alright, because when i didnt have de_restart in my mapcycle it stayed on the map until the 25mins was over. then i tried putting it in and it changed to the next map and skipped de_restart(Its the first map of the list)
__________________
ThomasNguyen is offline
rain
Senior Member
Join Date: Oct 2004
Location: Poland
Old 06-04-2006 , 05:18  
Reply With Quote #8

Well, it shouldn't be in the mapcycle. I just forgot to mention, that for the very first time after installation you should change to any map you normally play. :-) Doh, have to change the installation notes. Thx.
__________________

Last edited by rain; 07-06-2008 at 11:26.
rain is offline
rain
Senior Member
Join Date: Oct 2004
Location: Poland
Old 06-26-2006 , 17:00   Re: Crash Guard
Reply With Quote #9

Bump. A new version has just been released. For all those who think fiddling with fake maps is a pain. ;-)
__________________
rain is offline
samalex
Member
Join Date: Mar 2005
Old 06-29-2006 , 04:51   Re: Crash Guard
Reply With Quote #10

This plugin has 1 flaw, and can be easily fixed...

What if said map KEEPS crashing? Then this plugin would keep switching to the same map, crash, same map, crash...

This may not happen often in other mods, but in NS it's very possible.

A good feature would be to have an option to change it to the map AFTER the map that you were currently on (according to the mapcycle)...

That way, if there are crashy maps, it won't get stuck on em =)
samalex is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode