SmoothRestarter

Moved

Total Downloads: 5,595 - First Release: Apr 11, 2016 - Last Update: Dec 30, 2017

5/5, 22 likes
  1. How can I Save Server Before Restart ?
    without command 'save'
     
  2. server.save is automatically called after the used "quit" command.
     
  3. Mh ok i will try
     
    Last edited by a moderator: Aug 27, 2017
  4. When i try to restart using the command "sr.restart 1" in the console it says: Restart in 1 Minute, but nothing happens... Its now 10 minutes later. Any ideas for fixing this? Im using the default oxide startbat
     
  5. Take 2 minutes. "1" minute only is bit randomly bugged.
     
  6. I don't know why but it's not checking every 5 minutes, in my config files it's set on 5 ...
    Last week it's was restarted 1 hour after the new devblog...
    [DOUBLEPOST=1504211240][/DOUBLEPOST]15 minutes the devblog + oxide are updated, still no detected...
     
  7. For these situations it has the inbuilt testing function by sr.simulatepatch
     
  8. Code:
    {
      "Checks": {
        "autoRebootCountDown": 3,
        "checkIntervalMinutes": 5,
        "currentDevblog": 175,
        "currentOxideBuild": 3440,
        "enableAutoChecks": false,
        "enableAutoReboot": false,
        "notifyOnlineAdmins": false
      },
      "Settings": {
        "ShowMinutes": [
          60,
          45,
          30,
          15,
          10,
          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": {
          "05:00": "1",
          "17:00": "2"
        },
        "useTimers": true
      }
    }
    automatic restart does not work
     
  9. Set the countdown minutes for reboottimes to 3 at minimum, that should work. Lower values can cause not being triggered.
     
  10. It's still make some times to detect the new oxide build, my check timer is always 5 minutes, it's was 30 minutes the latest oxide is up, still not started the auto restar countdown. (the new devblog is detected fine imediatly).

    EDIT: just detected right now, but it's not 5 minutes...
     
  11. Try out this and watch the results ( tested with 5 minute default)
    Screenshot_17.jpg
    This check is doing the same steps like normal, but does prevent any automatic reboot

    Screenshot
     
  12. Its keeps giving me: Your servers oxide build is up to date?? I´ve updated oxide and steam but stil the same?
     
  13. When the plugin starts, it checks always the current oxide releas vs. your installed, and does set then the config to the found values.
     
  14. ok but will it do the work? Because it didnt now.. i waited for the restart but nothing happend.
    [DOUBLEPOST=1506475225][/DOUBLEPOST]
    This is my set up:
    Code:
    {
      "Checks": {
        "autoRebootCountDown": 3,
        "checkIntervalMinutes": 5,
        "currentDevblog": 178,
        "currentOxideBuild": 3487,
        "enableAutoChecks": true,
        "enableAutoReboot": false,
        "notifyOnlineAdmins": true
      },
      "Settings": {
        "ShowMinutes": [
          60,
          45,
          30,
          15,
          10,
          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": {
          "02:45": "15",
          "14:45": "15"
        },
        "useTimers": true
      }
    }
     
    Last edited by a moderator: Sep 27, 2017
  15. Would it be possible to make it display a custom text instead of "Server Shutting Down" at the rust menu when players are eventually kicked? I was wondering if an option could be added to kick all players as soon as the server is about to shut down saying "Server Restart" so some new players don't see the Shutdown and think they'll never find us again
     
  16. Is there a way to check current server time? Maybe there's a server command but I couldn't find it.
    added this to void Init()
    Puts($"Current server time is {DateTime.Now.Hour}:{DateTime.Now.Minute}:{DateTime.Now.Second}.");
     
  17. Code:
    If both checks are true, the plugin can announce an automatic restart for patching purposes.
    I only ever see that Oxide needs updating in the CMD window.Ive yet to see it announced in game or even restart server to update.
    Is it meant to ?
     
  18. Pardon?
     
  19. Are we meant to see in game a message appearing that Oxide needs updating ?
     
  20. not implemented