Page 1 of 1

What key do I need to write a file .bat to start the server?

Posted: Tue Jul 05, 2016 10:43 am
by WIZ4
What key do I need to write a file .bat to start the server?

Re: What key do I need to write a file .bat to start the server?

Posted: Fri Jul 15, 2016 8:07 pm
by xavizus
Not sure what you mean by "Key" but I will guess you mean the command to start the server.

In the folder you got your factorio.exe create following files:
Create_map.txt
Start_Factorio.txt

Inside of the Create_map.txt. file, type the following:

Code: Select all

Factorio --create *NameOfSaveFile*
Rename Create_map.txt to Create_map.bat

Inside of the Start_Factorio.txt file, type the following:

Code: Select all

Factorio --start-server-load-latest
Rename Start_Factorio.txt to Start_Factorio.bat

First, run Create_map.bat (to generate a map).
When the map generation is done, run the Start_Factorio.bat file and you will now have a server up and running.