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

Server Restarter


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dustinandband
Senior Member
Join Date: May 2015
Plugin ID:
6073
Plugin Version:
2.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Reboots the server when all players disconnect.
    Old 04-02-2018 , 15:53   Server Restarter
    Reply With Quote #1

    Description

    Edit: project's actively maintained on github
    https://github.com/dustinandband/Auto-Server-Restarter

    linux is the operating system of choice when using this plugin.

    Once all players disconnect from the server, this plugin will either:
    1) (default) Reset the server game mode, map, & player slots to the values found on first bootup, or
    2) Shut down the server after all players DC.

    Other games can use the server command "_restart" to restart their game engine but it doesn't work on L4D2, so that's why we set up the configuration in this way and added the option for a hard restart.

    cvars
    Spoiler


    Recommended cron job & auto-restart.sh script
    (Use if sm_Hard_Restart_Enabled is set to "1")

    Cron job:
    Spoiler

    auto-restart.sh
    Spoiler

    auto-restart.sh V2 (more features, tested only on Ubuntu 18.04)
    Spoiler


    Install

    Put .smx file in addons/sourcemod/plugins
    The configuration file is generated automatically - > cfg/sourcemod/ResetWhenEmpty.cfg


    Changelog
    - Oct 21, 2018 (auto-restart.sh V2):
    Spoiler

    - Oct 15, 2018 (resetonempty_v2):
    Spoiler

    - Oct 12, 2018 (version 1.0):
    version 1.0
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (resetonempty.sp - 959 views - 6.7 KB)
    File Type: sp Get Plugin or Get Source (resetonempty_v2.sp - 1147 views - 5.7 KB)

    Last edited by dustinandband; 09-16-2019 at 02:42. Reason: github link
    dustinandband is offline
    dustinandband
    Senior Member
    Join Date: May 2015
    Old 04-05-2018 , 03:19   Re: L4D2 Server Restarter
    Reply With Quote #2

    Update:
    * modified auto-restart.sh script to be able to launch multiple L4D2 servers on the same machine.

    The three checks before launching a game server are because the "alive" variable can sometimes return a value of 1 when there's an active server up, though very brief: https://i.imgur.com/UDsFTil.png

    Last edited by dustinandband; 04-05-2018 at 03:21.
    dustinandband is offline
    kmah
    Junior Member
    Join Date: Oct 2019
    Old 11-13-2020 , 20:07   Re: L4D2 Server Restarter
    Reply With Quote #3

    Quote:
    Originally Posted by dustinandband View Post
    Update:
    * modified auto-restart.sh script to be able to launch multiple L4D2 servers on the same machine.

    The three checks before launching a game server are because the "alive" variable can sometimes return a value of 1 when there's an active server up, though very brief: https://i.imgur.com/UDsFTil.png
    can't beleive this plugins exist, thanks a bunch man
    kmah 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 06:57.


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