1. (I'm looking for a tool, not a plugin) I know there are plugins/batch files that work together to achieve this after some configuring. However I've recently had some trouble setting my server up using the Restart batch, and TimeExecute plugin.

    Just wondering if anyone can create a semi-basic, quick tool so owners have a GUI to work with that owners can set custom restart scheduling. (I do realize that RustAdmin can do this if you add a times command but you have to keep the program running 24/7 which adds some not needed lag to a server to a point)

    I would love to hear some feedback on if this is even a good idea or if I'm just misunderstanding how to set up a auto restart. Thanks
     
  2. Wulf

    Wulf Community Admin

    There is a plugin called Smooth Restarter that should work just fine. This section is for plugins only though.
     
  3. Yeah, I've tried smooth restart but like the plugin says it requires a program to auto start the server and somewhere between the plugin and that my server doesn't seem to restart.

    And the only reason I posted this here was because there wasn't a location for tool request or something
     
  4. RustAdmin causes no lag? I have 3 servers with 3 different RustAdmin programs running at once.
     
  5. That would be awesome!! .bat and .config would be a +
     
  6. RustDedicated_Start.cmd
    Code:
    @echo off
    setlocal EnableDelayedExpansion
    title Rust Dedicated Server
    :start
    set RustParams=
    for /f "tokens=*" %%a in (RustDedicated_Settings.txt) do (
        set RustParams=!RustParams! %%a
    )
    echo Starting server...
    RustDedicated.exe %RustParams%echo.echo Restarting server...timeout /t 10echo.goto start
    
    RustDedicated_Settings.txt
    Code:
    -batchmode
    -nographics
    +server.ip 0.0.0.0
    +rcon.ip 0.0.0.0
    +server.port 28015
    +rcon.port 28016
    +rcon.password ""
    +server.maxplayers 200
    +server.hostname ""
    +server.identity "RustServer"
    +server.level "Procedural Map"
    +server.seed 1
    +server.worldsize 4000
    +server.saveinterval 300
    +server.description ""
    +server.headerimage ""
    +server.url ""
    +spawn.min_rate 1
    +spawn.max_rate 2
    +spawn.min_density 0.5
    +spawn.max_density 1.0
    +ownerid 76561197961363992
    SmoothRestart.json
    Code:
    {
      "Checks": {
        "autoRebootCountDown": 10,
        "checkIntervalMinutes": 5,
        "currentDevblog": 152,
        "currentOxideBuild": 3058,
        "enableAutoChecks": false,
        "enableAutoReboot": false,
        "notifyOnlineAdmins": true
      },
      "Settings": {
        "ShowMinutes": [
          60,
          55,
          50,
          45,
          40,
          35,
          30,
          25,
          20,
          15,
          10,
          9,
          8,
          7,
          6,
          5,
          4,
          3,
          2,
          1
        ],
        "ShowSeconds": [
          50,
          40,
          30,
          20,
          10,
          5,
          4,
          3,
          2,
          1
        ]
      },
      "SimpleUI": {
        "SimpleUI_Enable": true,
        "SimpleUI_FontSize": 30,
        "SimpleUI_HideTimer": 10,
        "SimpleUI_Left": 0.1,
        "SimpleUI_MaxHeight": 0.05,
        "SimpleUI_MaxWidth": 0.8,
        "SimpleUI_Top": 0.1
      },
      "Timers": {
        "RebootTimes": {
          "06:00": "30"
        },
        "useTimers": true
      }
    }
     
  7. so if i'm understanding, this is to restart once per day and be down for 30 mins?
    [DOUBLEPOST=1493770846][/DOUBLEPOST]
    Also* on the RustDedicated_Start.cmd is this a whole seperate Batch file or do i need to include this into my current .batch startup file.
     
  8. Code:
    "RebootTimes": {
          "06:00": "30"
        },
    It will start giving players warnings 30 minutes before restart, starts giving warnings at 6:00AM and restarts at 6:30AM (its a little confusing)

    Code:
    "11:15": "45",  //would restart at 12:00 with a countdown of 45 minutes
    "23:30": "30"  // would restart at 00:00 with a countdown of 30 minutes
    =====

    SmoothRestarter will shutdown your server, which kills/ends RustDedicated.exe process

    But because the .cmd script was used to start the server, when RustDedicated.exe ends, the script goes onward to the statement "goto start" and loops back to the line of code where ":start" is to which then the code runs RustDedicated.exe again, so basically its an infinite loop, to where whenever RustDedicated.exe ends/dies the server will be started again in 10 seconds.

    .cmd code stripped:
    Code:
    :startecho Starting server...
    RustDedicated.exe %RustParams%echo Restarting server...
    timeout /t 10goto start
    Basically you just need that infinite loop around however you startup your server.