Tyrsis / EssentialsPlugin

Dedicated Essentials Plugin
15 stars 8 forks source link

Cannot get Autorestart working #88

Open Bubblesz opened 9 years ago

Bubblesz commented 9 years ago

Hello a little help here would be wonderful. Im trying to get essentials autorestart working and the problem im having is this. When the server restarts the gui just reopens and does not check the use common program box and select the instance and start.

im kind of a noob at all of this but i managed to get everything else working :D

Devlah commented 9 years ago

Try editing your shortcut to SEServerExtender.exe to something like:

"SEServerExtender.exe" autostart instance="Your Instance name" path="path to your saved game folder" This has been working great for me for months now. The server auto-restarts at midnight EST, checks with steamCMD for software updates (running a script), then restarts the server automatically loading the correct game world instance and starting again all on it's own without user intervention.

Bubblesz commented 9 years ago

sorry be to even more stupid here, but how do i edit the shortcut? when i go to shortcut properties what exactly am i looking for?

Bubblesz commented 9 years ago

do i literally change the start in or target path?

Devlah commented 9 years ago

If you haven't already created a shortcut to server extender somewhere, then do so. Then right-click on the shortcut, and select "Properties".

The executable file should already be there in the "Target" field enclosed in quotes.

AFter the last quote, add in the command-line parameters I mentioned above, filled in with the correct name of your server instance, and the folder where your save game is for your server.

Then run the SEServer extender from that shortcut, and henceforth it will auto-restart properly.

Bubblesz commented 9 years ago

thanks for the help Devlah, ill test it later when no one is on my server hopefully....theres always someone on it! :D

Bubblesz commented 9 years ago

"C:\Program Files\SE Dedicatedserver\DedicatedServer64\SEServerExtender.exe" "SEServerExtender.exe" autostart instance="Space Turtles server" path="c:\ProgramData\SpaceEngineersDedicated\Space Turtles server\saves\Space Turtles Survival 10x"

its throwing an exception when i use this string, am i doing something wrong here?

McyD commented 9 years ago

"C:\Program Files(x86)\Steam\steamapps\common\SpaceEngineers\DedicatedServer64\SEServerExtender.exe" restartOnCrash Autosave=15 autostart instance="Procedural - Stargates" path="C:\Users\mcyd\AppData\Roaming\SpaceEngineersDedicated\"

this: "SEServerExtender.exe" remove it

Bubblesz commented 9 years ago

thanks a bunch