SmoothRestarter

Moved

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

5/5, 22 likes
  1. Yes, I use a bat to goto launch RustDedicated.exe again.

    So are you saying this plugin will update oxide and rust for me after a quit command? How does it know where steamcmd is?
    Or do I just put
    C:\steamcmd\steamcmd.exe +login anonymous +force_install_dir c:\rustserver\ +app_update 258550 +quit
    at the start of my bat script, before running rustdedicated.exe? (I avoided this originally because I didn't want to update rust if no oxide update)
     
  2. Not really :p it does only quit the server. Everything else depends on your script.
     
  3. I waited for the set time and restart just would not start.
     
  4. I have a problem which begins when the plugin loads:

    Code:
    [01/06/2017 08:52:47] [Oxide] 08:52 [Info] Loaded plugin SmoothRestart v1.0.3 by Fujikura/Visagalis
    [01/06/2017 08:52:48] [Oxide] 08:52 [Debug]   at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
      at System.Convert.ToInt32 (System.String value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmoothRestart.APIResponse (Int32 code, System.String response, System.String apiType, Int32 numberCheck) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmoothRestart+<CheckOxideCommits>c__AnonStorey1.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
    [01/06/2017 08:53:36] [Oxide] 08:53 [Info] Unloaded plugin SmoothRestart v1.0.3 by Fujikura/Visagalis
    [01/06/2017 08:54:27] [Oxide] 08:54 [Info] Loaded plugin SmoothRestart v1.0.3 by Fujikura/Visagalis
    [01/06/2017 08:54:27] [Oxide] 08:54 [Debug]   at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
      at System.Convert.ToInt32 (System.String value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmoothRestart.APIResponse (Int32 code, System.String response, System.String apiType, Int32 numberCheck) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmoothRestart+<CheckOxideCommits>c__AnonStorey1.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
    [01/06/2017 08:54:33] [Oxide] 08:54 [Info] Unloaded plugin SmoothRestart v1.0.3 by Fujikura/Visagalis
    [01/06/2017 08:55:26] [Oxide] 08:55 [Info] SmoothRestart was compiled successfully in 2646ms
    [01/06/2017 08:55:26] [Oxide] 08:55 [Info] Loaded plugin SmoothRestart v1.0.3 by Fujikura/Visagalis
    [01/06/2017 08:55:27] [Oxide] 08:55 [Debug]   at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
      at System.Convert.ToInt32 (System.String value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmoothRestart.APIResponse (Int32 code, System.String response, System.String apiType, Int32 numberCheck) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmoothRestart+<CheckOxideCommits>c__AnonStorey1.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
    [01/06/2017 08:55:34] Saved 20,043 ents, serialization(0.00), write(0.01), disk(0.00) totalstall(0.02).
    [01/06/2017 08:55:34] Saving complete
    
    The Plugin worked yesterday, but a few minutes ago i looked at the console and that happens, the plugin is not working anymore for me, would be nice if you could help.
    And sorry for bad english, I am german ;)
    ~Willie
    [DOUBLEPOST=1483689974][/DOUBLEPOST]I found more in my Logs:

    Code:
    [01/06/2017 08:50:21] [Oxide] 08:50 [Error] Web request callback raised an exception in 'SmoothRestart v1.0.3' plugin (FormatException: Input string was not in the correct format)
    [01/06/2017 08:52:48] [Oxide] 08:52 [Error] Web request callback raised an exception (FormatException: Input string was not in the correct format)
    [01/06/2017 08:54:27] [Oxide] 08:54 [Error] Web request callback raised an exception (FormatException: Input string was not in the correct format)
    [01/06/2017 08:55:27] [Oxide] 08:55 [Error] Web request callback raised an exception (FormatException: Input string was not in the correct format)
    
     
  5. Seeing webrequest errors as above also.
     
  6. I'm on it (Ick bin dran) :p
    [DOUBLEPOST=1483723171][/DOUBLEPOST]
    Seen, working on it.
     
  7. Fujikura updated Smooth Restarter with a new update entry:

    1.0.4

     
  8. Danke, funktioniert nun wieder :)
    Thanks, now its working again :)
     
  9. (deletepls)
     
    Last edited by a moderator: Jan 8, 2017
  10. would someone be kind enough to write me the correct command to set this so my server restarts every 6 hours as when im trying to use the chat command i just get incorrect minutes format must be a number :)
     
  11. Use the timers:
    Code:
      "Timers": {
        "RebootTimes": {
          "11:15": "45",
          "23:30": "30"
        },
        "useTimers": false // <<<< true
      }
    in RebootTimes you put in on the left hand the start time for the timer, on the right hand the timer duration. These start-times are based on your server clock, means the timezone its set in
     
  12. Another WebRequest Error, plugin still working, but it maybe helps you:
    Code:
    Web request callback raised an exception (FormatException: Input string was not
    in the correct format)
    [DOUBLEPOST=1484222577][/DOUBLEPOST]
    My timers restart every 6 hours at 6:00, 12:00 18:00 and midnight 0:00
    It will warn players 120 minutes before every restart and so on:
    Code:
    {
      "Checks": {
        "autoRebootCountDown": 3,
        "checkIntervalMinutes": 5,
        "currentDevblog": 142,
        "currentOxideBuild": 2914,
        "enableAutoChecks": true,
        "enableAutoReboot": false,
        "notifyOnlineAdmins": true
      },
      "Settings": {
        "ShowMinutes": [
          120,
          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": {
          "04:00": "120",
          "10:00": "120",
          "16:00": "120",
          "22:00": "120"
        },
        "useTimers": true
      }
    }
     
  13. Code:
    [SERVER v1.0.24] Console: SmoothRestart.cs(19,12): warning CS0414: The private field `Oxide.Plugins.SmoothRestart.restartTime' is assigned but its value is never used
    Code:
    Loaded plugin SmoothRestart v1.0.4 by Fujikura/Visagalis
    Web request callback raised an exception (FormatException: Input string was not in the correct format)
      at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
      at System.Convert.ToInt32 (System.String value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmoothRestart.APIResponse (Int32 code, System.String response, System.String apiType, Int32 numberCheck) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmoothRestart+<CheckOxideCommits>c__AnonStorey1.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
    Unloaded plugin SmoothRestart v1.0.4 by Fujikura/Visagalis
    Loaded plugin SmoothRestart v1.0.4 by Fujikura/Visagalis
    Web request callback raised an exception (FormatException: Input string was not in the correct format)
      at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
      at System.Convert.ToInt32 (System.String value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmoothRestart.APIResponse (Int32 code, System.String response, System.String apiType, Int32 numberCheck) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SmoothRestart+<CheckOxideCommits>c__AnonStorey1.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
    
     
  14. Can you run the command sr.simulatepatch with having this result?
    Screenshot_66.png
     
  15. How to config this plugin for nice restart? When plugin start restart - server crashing, and after long time starting again
    Code:
    [01/08/17 05:00:02] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/09/17 05:00:02] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/10/17 05:00:03] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/11/17 05:00:02] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/12/17 05:00:02] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/13/17 05:00:03] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/14/17 05:00:02] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/15/17 05:00:02] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/16/17 05:00:02] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/17/17 05:00:02] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/18/17 05:00:02] [108_61_116_31_28016_ruste] Server has crashed, restarting
    [01/19/17 05:00:02] [108_61_116_31_28016_ruste] Server has crashed, restarting
    Code:
    {
      "Checks": {
        "autoRebootCountDown": 3,
        "checkIntervalMinutes": 5,
        "currentDevblog": 142,
        "currentOxideBuild": 2883,
        "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": {
          "04:55": "5"
        },
        "useTimers": true
      }
    }
     
  16. Your config is lets it restart at 05:00 with 5 minutes timer, so all is fine.
    Any crashs are not caused by the plugin, it uses an inbuilt function that is also called at manual quit by console.
     
  17. @Fujikura So, will this plugin actually update the server's Oxide Mod Manager and run the Steam Update for me? Or how do I set it up to do this if possible? This would be tremendously helpful, as I am a full-time college student and some nights I just can't be there for update due to class time conflicts! I hate making my players wait until late at night, so this would get rid of that problem as well!
     
  18. It provides only the automatic quit, which needs then to be managed by your own rust start script. There were severel options already mentioned in some thread, ot in the tools area. Also on the steam community you find some exemaples how to fullfill such needs.
    The plugin itself cannot provide this action.
     
  19. Is it possible to add in the future a line to run a command before restart? With my current issues, I'd like to execute a backup before restart.

    Cheers.
     
  20. Will this work if i have automated restarts set within the Server control panel through my server host HostHavoc?