Before we can run the server, some basic files have to be configured.
These file are normally spread out over de installation folders of factorio, as listed below.
As we use the Zip package, all the needed files will be in one location for easy use and access. *
Now that Factorio is Installed, we can start on setting it up the headless server.
Now you should get something like c:\factorio\server
The server folder contains all files we are going to need to setup the server.
It is also possible to collect all files, from their respective locations, as mentioned above
Notes:
Lets start with the server-settings.json in the server folder.
This file contains the most information about the server.
The following manditory items will need to be filled-out / checked:
server-settings.example.json
Next up is the Config.ini (this is only necessary if you have read/write problems with more then one instance on the same machine )
With this file you can control a few things that are not available in the server-settings.json and many setting that have no impact on a server like graphics settings that are not used by a headless server.
In the pre modified file, the mandatory change has already been made. You can see all the active items in Black text or leave as is. (the green text is the inactive code)
As you can see in de Example the read-data and write-data has been changed, "this is not mandatory"
The original code is:
This is a change that had to be made, as I ran into the following error. Files "A to Z" are already in use by an other program, which in turn crashed the server boot up process.
The program that was using the files was the first headless server.
By making changes to use a dedicated path, I was able to avoid this problem.
The example solution code is: