1. [m]`db_arcane submitted a new resource:

    SchedShutdown - Have your server shutdown at the same time each day.

    Read more about this resource...
     
  2. If someone needs a restarter u can use this little autoit programm :)

    Source :
    Code:
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_Icon=favicon.ico
    #AutoIt3Wrapper_Outfile_x64=Restarter.exe
    #AutoIt3Wrapper_UseX64=y
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    #Region
    #EndRegion$tick = 20
    $executeable = IniRead("restarter.ini", "Config", "Executeable", "RustDedicated.exe")
    $startbat = IniRead("restarter.ini", "Config", "Startbat", "StartServer.bat")While 1
        If NOT ProcessExists($executeable) Then Run($startbat)
        Sleep($tick * 100)
    WEnd
    
    Here is the compiled source http://www74.zippyshare.com/v/YZ2DTVFd/file.html

    Just put it to your rust server mainfolder and edit the restart.ini then start while server is not running
     
  3. Nice! Thanks.

    Possible to set multiple Shutdown times?
     
  4. i dont think so
     
  5. The plugin just off the server, and restarting? Or just turn off?
     
  6. Wulf

    Wulf Community Admin

    It shuts down the server, as shown in the name and description. Plugins have no way to start a server, the server has to be running for a plugin to work.
     
  7. How to ask her the time after which a restart? ...
     
  8. im using http://oxidemod.org/plugins/timedexecute.919/updates


    here's my config for server restart every 6hours

    Code:
    {
      "ConfigCode": "1",
      "EnableTimerOnceCommands": "true",
      "EnableTimerRepeatCommands": "true",
      "OnceCommands": [
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 6 hours!'",
          "seconds": 350
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 5 hours!'",
          "seconds": 3600
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 4 hours!'",
          "seconds": 7550
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 3 hours!'",
          "seconds": 11150
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 2 hours!'",
          "seconds": 14750
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 1 hour!'",
          "seconds": 18350
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 30 minutes!'",
          "seconds": 20150
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 15 minutes!'",
          "seconds": 21050
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 5 minutes!'",
          "seconds": 21400
        },
        {
          "command": "server.save",
          "seconds": 21750
        },
        {
          "command": "say 'Server is Restarting <color=red>NOW</color>!!!'",
          "seconds": 21751
        },
        {
          "command": "restart",
          "seconds": 21752
        },
        {
          "command": "reset.oncetimer",
          "seconds": 21753
        }
      ],
      "RepeaterCommands": [
        {
          "command": "server.save",
          "seconds": 300
        }
      ]
    }
     
  9. I wish it was possible to set times for commands to run, instead of amount of time server has been running. Maybe I can merge the two.
     
  10. That would be ideal. I have a huge p-TimeExecute script. The problem of course is that if you need to restart for an update or otherwise your loop may not start when you want it.
     
  11. [m]`db_arcane updated SchedShutdown with a new update entry:

    1.1.2

     
  12. It's a good idea this plugin, but I rather use the TimedExecute plugin so I get a server restart instead of just a shutdown.

    If you add a so the plugin can execute a restart instead of a shutdown, I might consider use this instead.
     
  13. is it possible u could make this run the save.all command just before the restart so server does not roll bak
     
  14. The script does execute the server.save command to save the map and player data, before the script calling the restart command. Just to be clear, the restart command does not actually restart the server, it simply shows a 60-sec countdown before shutting the server down.
    [DOUBLEPOST=1440124034][/DOUBLEPOST]
    No, this was designed to shutdown the server on a nightly basis. I'll look at making a separate script for scheduling general commands.
     
  15. So if i put this to restart 6 hours from now 9:45 EST = Restart in 6 hours = 07:45:00 UTC

    Do i have to change the time everytime i want it to restart again in 6 hours, so lets say it restarts now at 9:45 EST, i want it to restart again in 6 hours, would i have to change it or no?
     
  16. Yes, if you were to use the SchedShutdown script, you'd need to manually change the next shutdown time. Not convenient at all for you. The script is designed to fire off a shutdown at the same time, once a day.

    If you want to restart every 6 hours, the best script to use is the TimedExecute plugin, which is designed to fire off commands every so many seconds/minutes/hours.
     
  17. Some questions please:

    1. this does a RESTART with 60s countdown correct?
    2. if so, does restart save map/user data before it shuts down? nothing worse then upset players!
    3. if I want 4am CST (GMT-6) what is that in UTC? would it be 22:00:00?
     
  18. Wulf

    Wulf Community Admin

    This uses what Rust provides, so it should save before shutdown. This does not restart your server, there's no way to do that from Rust itself or plugins, you'd need an external program or script that restarts it after shutdown.
     
  19. thanks. so I do notice that the rust RESTART command that the rustdedicated.exe process is still running/idle for several minutes at 10-20% CPU even after the console stops reponding. at first It thought that the process was hung but it eventually restarts.

    thanks
     
  20. Hello,

    Both tools are not working (Schedshutdown + timedexecute)
    When my server loads i receive an error ( see photo )
    Can anyone tell me what i did wrong ? I copied Foxxi his data to the timedexecute.cg

    Thanks in advance
     

    Attached Files: