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

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

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

Post by WIZ4 »

What key do I need to write a file .bat to start the server?
My native language is russian. Sorry if my messages are difficult to read.
xavizus
Burner Inserter
Burner Inserter
Posts: 10
Joined: Fri Jul 15, 2016 7:27 pm
Contact:

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

Post 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.
Post Reply

Return to “Technical Help”