Raised This Month: $32 Target: $400
 8% 

[CS:GO] Server Hibernate Fix (v0.0.4, 2014-03-28)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Nefarius
Member
Join Date: Sep 2010
Plugin ID:
4111
Plugin Version:
0.0.4
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A Plugin to work-around the workshop map server hibernate problem
    Old 02-27-2014 , 04:01   [CS:GO] Server Hibernate Fix (v0.0.4, 2014-03-28)
    Reply With Quote #1

    Server Hibernate Fix
    A Plugin to work-around the workshop map server hibernate problem

    Description
    This Plugin works around the [MM] Sending reservation request to... problem which appears if you have a workshop map loaded, all clients disconnected and the server goes into hibernation, stopping to tick and blocking new clients to join.
    It achieves that by automatically changing to a "stock map" like de_dust just after all clients disconnected and before hibernation.

    Personal note
    I'm aware that there are plugins out there with similar functionality but I decided to write one for this specific problem with CS:GO as of a friends request. It targets admins who wanna utilize the hibernation feature without breaking connectivity.

    Cvars
    This plugin generates it's config file in csgo/cfg/sourcemod/shf.cfg after first load.
    • sm_shf_version returns current plugin version
    • sm_shf_enabled allows the admin to enable or disable the plugin on the fly <1 = Enabled/Default, 0 = Disabled>
    • sm_shf_default_map defines the default map to fall back to before server hibernates <de_dust = Default>
    • sm_shf_ingame_clients_only defines when to trigger the map fallback action <1 = Ingame, 0 = Connected/Default>

    Alternate location for binaries, sources and changelogs
    Head over to Github.

    Installation
    Getting it to run is pretty straight forward:
    1. You should have at least SourceMod v1.5.3
    2. Just put shf.smx in your sourcemod/plugins directory and load it.
    3. Adjust cfg/sourcemod/shf.cfg to your needs.
    Attached Files
    File Type: sp Get Plugin or Get Source (shf.sp - 5968 views - 4.8 KB)

    Last edited by Nefarius; 03-28-2014 at 15:06. Reason: Updated plugin
    Nefarius is offline
    Pitbull3
    AlliedModders Donor
    Join Date: Aug 2009
    Location: Degree-Gaming.com
    Old 02-27-2014 , 05:11   Re: [CS:GO] Server Hibernate Fix (0.0.2)
    Reply With Quote #2

    Why not use sv_hibernate_when_empty 0

    or sm_cvar sv_hibernate_when_empty 0 ?

    What does this do that the stock commands don't?
    Pitbull3 is offline
    Nefarius
    Member
    Join Date: Sep 2010
    Old 02-27-2014 , 05:13   Re: [CS:GO] Server Hibernate Fix (0.0.2)
    Reply With Quote #3

    You got your answer right there; sv_hibernate_when_empty 0 disables hibernation where the plugin allows switching to hibernation after changing to a "safe" map, allowing the CPU to idle
    Nefarius is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 02-27-2014 , 18:08   Re: [CS:GO] Server Hibernate Fix (v0.0.2)
    Reply With Quote #4

    Thanks for this... although I don't think I've run into that error in a while, but a good plugin nonetheless.
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    Nefarius
    Member
    Join Date: Sep 2010
    Old 03-13-2014 , 20:48   Re: [CS:GO] Server Hibernate Fix (v0.0.3, 2014-03-14)
    Reply With Quote #5

    Updated to version 0.0.3

    Thanks to some test-feedback on Steam I managed to fix:
    • Fallback action doesn't occur on special conditions (like users being dropped 'cause of map version mismatch)
    • Possible recursion bug inflicting performance
    It should now perform as expected
    Nefarius is offline
    Nefarius
    Member
    Join Date: Sep 2010
    Old 03-28-2014 , 15:11   Re: [CS:GO] Server Hibernate Fix (v0.0.4, 2014-03-28)
    Reply With Quote #6

    Updated to version 0.0.4

    This is the (hopefully) last modification I had to make. Due to some test-feedback on Steam I changed the following:
    • Processing client disconnect events is now randomized. This avoids multiple parallel map change requests if all clients get dropped at the same time (like changing to a faulty map or a mass-kick) and thus clears some odd entries in the logs
    • Bot disconnects (kicks) will now be completely ignored, improving performance a tiny bit
    Good to go and ready-for-review
    Nefarius is offline
    slaver7
    New Member
    Join Date: Sep 2009
    Old 09-03-2015 , 15:20   Re: [CS:GO] Server Hibernate Fix (v0.0.4, 2014-03-28)
    Reply With Quote #7

    Small Update:

    Refactor code with SM 1.7 syntax

    Add convar sm_shf_execute_config to execute a config before map change.

    Sourcecode and Download: https://github.com/jkroepke/ServerHibernateFix
    slaver7 is offline
    Reply



    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 21:51.


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