Page 1 of 1

[Windows/Headless] Reboot on crash and automatic save fixer

Posted: Tue May 10, 2016 9:10 am
by KirovAir
Hi all,

I just wanted to share my setup on a windows server. I use a reboot batch script and a small tool (FMx, Factorio Map Fixer) to rename the latest save file to the save file you are using so the map gets no rollbacks on a crash. :)
The batch script:

Code: Select all

:reboot
fmx "C:\Factorio\saves\map.zip"
start /wait Factorio.exe --start-server map.zip
timeout 10
goto reboot
FMx takes 1 parameter: the used map.
I have included the files used for my server and the source code for FMx.

Maybe they can help you out.

Cheers!