Page 1 of 1

Headless win server

Posted: Tue May 10, 2016 4:09 pm
by Killavirus
Not entirely sure where to be asking this, so have ended up here.

Is there any information in regards to running a headless Windows server? can't find any information on eta etc etc ?

Re: Headless win server

Posted: Wed May 11, 2016 1:14 am
by Rseding91
The headless windows doesn't exist as it's not needed. You can just run the zip version of the Windows game with the start server flags to run it as a server.

Re: Headless win server

Posted: Wed May 11, 2016 5:05 pm
by bk5115545
If you want it to autostart on boot or something then you can put something like the below into a run.bat file and put it in your startup directory.

Code: Select all

start "Factorio Almost-Headless Server Autostart" /MIN "C:\path\to\factorio.exe --start-server save_name.zip"
This will start the version of factorio that is in the directory specified and run the server with the save that's also specified. It will be started as minimized because of the /MIN flag.
If factorio is starting too early and slowing down boot you can delay its start with something like the below.

Code: Select all

sleep 15
This waits 15 second before continuing.

Combining these gives the whole batch script

Code: Select all

sleep 15
start "Factorio Almost-Headless Server Autostart" /MIN "C:\path\to\factorio.exe --start-server save_name.zip"

Re: Headless win server

Posted: Fri May 13, 2016 10:09 am
by nsanity
Rseding91 wrote:The headless windows doesn't exist as it's not needed. You can just run the zip version of the Windows game with the start server flags to run it as a server.
it would be preferable because then you could enable automatic updating via a script... viewtopic.php?f=53&t=25258&p=159033#p159033

Re: Headless win server

Posted: Tue May 24, 2016 1:51 pm
by Killavirus
Many thanks, for all your expert advice.
Sorry for the delay in posting, but the server i got working with steam kept crashing my dedi :/ so took a break, will see if this is more stable.

Re: Headless win server

Posted: Wed May 25, 2016 5:39 am
by Neemys
you are running the steam version on your server ? better took the one from the website. Don't need steam so more ressource for the rest ;)

If you don't know how to get it :

First you need an account on Factorio website (not the same account as forum) : https://www.factorio.com/

Then, Confirm your account and login. Clicking on your name in top right bring a page where you can link your steam account (bottom of the page).

After steam account linked you can download DRM-free version of the game here : https://www.factorio.com/download/stable

Re: Headless win server

Posted: Wed May 25, 2016 7:54 am
by Killavirus
Many thanks for Clearing that up, I had recently found out, but still great info if somebody else comes across this thread. Many thanks for your time :)
Will be configuring services to run factorio today :) wish me and the server luck !