Space Engineers

Space Engineers

View Stats:
This topic has been locked
DoopieWop Feb 16, 2020 @ 12:34pm
Server Auto Restart
Hello,
I own a space engineers hosted on my dedicated server. After a day of it running the Sim Speed gets really bad. Is there a way to have the server auto restart at night? I use Torch.
Thanks
Originally posted by seronis:
Make sure you are using essentials plugin with torch. after one reboot cycle your server will create an essentials.cfg file in the root of your server install. open essentials.cfg and replace <AutoCommands /> with this

<AutoCommands> <AutoCommand> <CommandTrigger>Timed</CommandTrigger> <Compare>Equal</Compare> <Name>Cleanup_Default_GridNames</Name> <ScheduledTime>00:00:00</ScheduledTime> <Interval>02:00:00</Interval> <TriggerRatio>0</TriggerRatio> <TriggerCount>0</TriggerCount> <DayOfWeek>All</DayOfWeek> <Steps> <CommandStep> <Delay>00:04:00</Delay> <Command>!notify "[CleanUp]: Removing grids with default names in 5 minutes | [rename grids to avoid purge!]" 5000</Command> </CommandStep> <CommandStep> <Delay>00:00:45</Delay> <Command>!notify "[CleanUp]: Removing grids with default names in 1 minute | [rename grids to avoid purge!]" 5000</Command> </CommandStep> <CommandStep> <Delay>00:00:15</Delay> <Command>!save</Command> </CommandStep> <CommandStep> <Delay>00:00:01</Delay> <Command>!cleanup delete name "^(Static|Large|Small)\s(Grid|Ship)\s\d+$"</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> <Command>!notify "[CleanUp]: Purge complete!" 3000</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> </CommandStep> </Steps> </AutoCommand> <AutoCommand> <CommandTrigger>Timed</CommandTrigger> <Compare>Equal</Compare> <Name>Reboot_Schedule</Name> <ScheduledTime>00:00:00</ScheduledTime> <Interval>07:15:00</Interval> <TriggerRatio>0</TriggerRatio> <TriggerCount>0</TriggerCount> <DayOfWeek>All</DayOfWeek> <Steps> <CommandStep> <Delay>00:10:00</Delay> <Command>!notify "[Server]: Performance reboot in 15 minutes." 5000</Command> </CommandStep> <CommandStep> <Delay>00:04:00</Delay> <Command>!notify "[Server]: Performance reboot in 5 minutes." 5000</Command> </CommandStep> <CommandStep> <Delay>00:01:00</Delay> <Command>!notify "[Server]: Performance reboot in 1 minutes." 15000</Command> </CommandStep> <CommandStep> <Delay>00:00:01</Delay> <Command>!notify "[Server]: REBOOTING NOW" 10000</Command> </CommandStep> <CommandStep> <Delay>00:00:01</Delay> <Command>!restart true</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> </CommandStep> </Steps> </AutoCommand> </AutoCommands>

That adds two features. 3x/day reboot and a 2hour interval cleanup that purges default named grids
< >
Showing 1-11 of 11 comments
The author of this thread has indicated that this post answers the original topic.
seronis (Banned) Feb 16, 2020 @ 1:32pm 
Make sure you are using essentials plugin with torch. after one reboot cycle your server will create an essentials.cfg file in the root of your server install. open essentials.cfg and replace <AutoCommands /> with this

<AutoCommands> <AutoCommand> <CommandTrigger>Timed</CommandTrigger> <Compare>Equal</Compare> <Name>Cleanup_Default_GridNames</Name> <ScheduledTime>00:00:00</ScheduledTime> <Interval>02:00:00</Interval> <TriggerRatio>0</TriggerRatio> <TriggerCount>0</TriggerCount> <DayOfWeek>All</DayOfWeek> <Steps> <CommandStep> <Delay>00:04:00</Delay> <Command>!notify "[CleanUp]: Removing grids with default names in 5 minutes | [rename grids to avoid purge!]" 5000</Command> </CommandStep> <CommandStep> <Delay>00:00:45</Delay> <Command>!notify "[CleanUp]: Removing grids with default names in 1 minute | [rename grids to avoid purge!]" 5000</Command> </CommandStep> <CommandStep> <Delay>00:00:15</Delay> <Command>!save</Command> </CommandStep> <CommandStep> <Delay>00:00:01</Delay> <Command>!cleanup delete name "^(Static|Large|Small)\s(Grid|Ship)\s\d+$"</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> <Command>!notify "[CleanUp]: Purge complete!" 3000</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> </CommandStep> </Steps> </AutoCommand> <AutoCommand> <CommandTrigger>Timed</CommandTrigger> <Compare>Equal</Compare> <Name>Reboot_Schedule</Name> <ScheduledTime>00:00:00</ScheduledTime> <Interval>07:15:00</Interval> <TriggerRatio>0</TriggerRatio> <TriggerCount>0</TriggerCount> <DayOfWeek>All</DayOfWeek> <Steps> <CommandStep> <Delay>00:10:00</Delay> <Command>!notify "[Server]: Performance reboot in 15 minutes." 5000</Command> </CommandStep> <CommandStep> <Delay>00:04:00</Delay> <Command>!notify "[Server]: Performance reboot in 5 minutes." 5000</Command> </CommandStep> <CommandStep> <Delay>00:01:00</Delay> <Command>!notify "[Server]: Performance reboot in 1 minutes." 15000</Command> </CommandStep> <CommandStep> <Delay>00:00:01</Delay> <Command>!notify "[Server]: REBOOTING NOW" 10000</Command> </CommandStep> <CommandStep> <Delay>00:00:01</Delay> <Command>!restart true</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> </CommandStep> </Steps> </AutoCommand> </AutoCommands>

That adds two features. 3x/day reboot and a 2hour interval cleanup that purges default named grids
Last edited by seronis; Feb 16, 2020 @ 1:34pm
seronis (Banned) Feb 16, 2020 @ 1:36pm 
I would also HIGHLY recommend usng the following plugins for performance:

Concealment, Performance Tweaker, VoxelDefender
Dan2D3D  [developer] Feb 16, 2020 @ 3:12pm 
Hi, cool thing to know,
rexxar the author of Torch shared his Discord in the pinned of "Help-for-community-server" channel on Keen Discord and he is helping members using Torch, aslo the Veteran admins on Keen Discord are helping new admins every days over there.

Perma invite link to the SE community on Keen Discord added to this pinned :

https://steamcommunity.com/app/244850/discussions/0/810938810590486770/#c1742226629856058994


Edit

Official Guide :

https://www.spaceengineersgame.com/dedicated-servers.html
Last edited by Dan2D3D; Feb 16, 2020 @ 3:23pm
seronis (Banned) Feb 16, 2020 @ 3:45pm 
Considering he's a torch user the url you SHOULD be giving is

https://wiki.torchapi.net/index.php/Main_Page
DoopieWop Feb 17, 2020 @ 6:46am 
Thank you guys! I will try your tips out!
DoopieWop Feb 17, 2020 @ 6:57am 
Originally posted by seronis:
I would also HIGHLY recommend usng the following plugins for performance:

Concealment, Performance Tweaker, VoxelDefender

Very useful! Thanks!
jakarra Jun 23, 2020 @ 4:01pm 
Just found this after a long time of searching, thanks for the help :)

TimTaylor Nov 6, 2020 @ 12:57am 
I tried this and installed the essential plugin...but there is no cfg file created
jakarra Nov 6, 2020 @ 10:30am 
look for essentials.cfg
Croustiblatte Nov 22, 2020 @ 11:43pm 
Originally posted by seronis:
Make sure you are using essentials plugin with torch. after one reboot cycle your server will create an essentials.cfg file in the root of your server install. open essentials.cfg and replace <AutoCommands /> with this

<AutoCommands> <AutoCommand> <CommandTrigger>Timed</CommandTrigger> <Compare>Equal</Compare> <Name>Cleanup_Default_GridNames</Name> <ScheduledTime>00:00:00</ScheduledTime> <Interval>02:00:00</Interval> <TriggerRatio>0</TriggerRatio> <TriggerCount>0</TriggerCount> <DayOfWeek>All</DayOfWeek> <Steps> <CommandStep> <Delay>00:04:00</Delay> <Command>!notify "[CleanUp]: Removing grids with default names in 5 minutes | [rename grids to avoid purge!]" 5000</Command> </CommandStep> <CommandStep> <Delay>00:00:45</Delay> <Command>!notify "[CleanUp]: Removing grids with default names in 1 minute | [rename grids to avoid purge!]" 5000</Command> </CommandStep> <CommandStep> <Delay>00:00:15</Delay> <Command>!save</Command> </CommandStep> <CommandStep> <Delay>00:00:01</Delay> <Command>!cleanup delete name "^(Static|Large|Small)\s(Grid|Ship)\s\d+$"</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> <Command>!notify "[CleanUp]: Purge complete!" 3000</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> </CommandStep> </Steps> </AutoCommand> <AutoCommand> <CommandTrigger>Timed</CommandTrigger> <Compare>Equal</Compare> <Name>Reboot_Schedule</Name> <ScheduledTime>00:00:00</ScheduledTime> <Interval>07:15:00</Interval> <TriggerRatio>0</TriggerRatio> <TriggerCount>0</TriggerCount> <DayOfWeek>All</DayOfWeek> <Steps> <CommandStep> <Delay>00:10:00</Delay> <Command>!notify "[Server]: Performance reboot in 15 minutes." 5000</Command> </CommandStep> <CommandStep> <Delay>00:04:00</Delay> <Command>!notify "[Server]: Performance reboot in 5 minutes." 5000</Command> </CommandStep> <CommandStep> <Delay>00:01:00</Delay> <Command>!notify "[Server]: Performance reboot in 1 minutes." 15000</Command> </CommandStep> <CommandStep> <Delay>00:00:01</Delay> <Command>!notify "[Server]: REBOOTING NOW" 10000</Command> </CommandStep> <CommandStep> <Delay>00:00:01</Delay> <Command>!restart true</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> </CommandStep> </Steps> </AutoCommand> </AutoCommands>

That adds two features. 3x/day reboot and a 2hour interval cleanup that purges default named grids



Message was maybe right when posted but isn't anymore.

The essential.cfg is in /Instance and the provided script won't work. Your best bet is to adapt the wiki example https://wiki.torchapi.net/index.php/Plugins/Essentials


For the example cited in the thread, delete the line <Autocommands/> from the original essentials.cfg and paste the following:

<AutoCommands> <AutoCommand> <CommandTrigger>Timed</CommandTrigger> <Name>Restart</Name> <ScheduledTime>08:42:00</ScheduledTime> <Interval>00:00:00</Interval> <DayOfWeek>All</DayOfWeek> <Steps> <CommandStep> <Delay>00:05:00</Delay> <Command>!notify "********Restart in 15 Minutes!********" 30000</Command> </CommandStep> <CommandStep> <Delay>00:05:00</Delay> <Command>!notify "********Restart in 10 Minutes!********" 30000</Command> </CommandStep> <CommandStep> <Delay>00:05:00</Delay> <Command>!notify "********Restart in 5 Minutes!********" 30000</Command> </CommandStep> <CommandStep> <Delay>00:00:30</Delay> <Command>!notify "********Restart in 1 Minute!********" 30000</Command> </CommandStep> <CommandStep> <Delay>00:00:30</Delay> <Command>!save</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> <Command>!restart 30</Command> </CommandStep> <CommandStep> <Delay>00:00:00</Delay> </CommandStep> </Steps> </AutoCommand> </AutoCommands>

Change the scheduled time at your liking. Note that if you set an interval the scheduled time needs to be set at 0, and same goes the other way. You would also need to modify the <CommandTrigger> line to Scheduled.

Posting this because this thread comes on a quick google search and the script provided as the answer doesn't work as expected since there was changes I guess.
Last edited by Croustiblatte; Nov 23, 2020 @ 12:00am
Feros Dec 20, 2021 @ 5:33am 
Originally posted by seronis:
I would also HIGHLY recommend usng the following plugins for performance:

Concealment, Performance Tweaker, VoxelDefender
Performance Tweaker is crashing more servers than helping. I quote from N1Ran on Torch Discord:
"PerformanceTweaker is obsolete. It has been for a while now and has high chance of crashing servers".
On the question why its still in the plugin list I got the answer:
"yea, we have few dead plugins still on the site. They will be cleaned out....someday
best to ask before installing plugins these days."
< >
Showing 1-11 of 11 comments
Per page: 1530 50

Date Posted: Feb 16, 2020 @ 12:34pm
Posts: 11