Devidian / docker-spaceengineers

A Docker for Space Engineers Dedicated Server
87 stars 21 forks source link

Any way to safely stop server? Stopping container does not save world #35

Closed ScrapyHD closed 1 year ago

ScrapyHD commented 1 year ago

Is there any way to issue the "taskkill /IM SpaceEngineersDedicated.exe" command in order to stop and save the server before stopping the container. Just stopping the container does not safely stop the server, and because of that every time I stop the container then start it again, the world is rolled back a bit. I'm asking about directly issuing a command to the container since the remote api isn't functional. Thanks!

Devidian commented 1 year ago

I dont have an answer to that currently. My server is usually running on a remote vm 24/7 with a 10h restart timer (from the game itself) So i never came up to that Question myself. If there is any, i don't know, but there might also be no way to do so.

As a workaround, wait until next world save before stopping the server.

ScrapyHD commented 1 year ago

Can you explain how to setup a restart timer from the game itself? Didn't know that was an option and would work for me. Thanks!

Devidian commented 1 year ago

Sure, just look at that screenshot image

When you setup your world you can set restart under 'Maintenance'. If you want to change this on an existing instance you have to open SpaceEngineers-Dedicated.cfg

image

ScrapyHD commented 1 year ago

perfect, thanks!