Factorio
Last updated
Last updated
Configuration for Factorio is split between both the game server config and start parameters.
port, rcon and branch configuration is set using stat parameters
To use a specific version of Factorio, you can change the branch to the version you want to use :
One the branch changed, do not forget to update the server :
All other settings are located in the Factorio game server config.
Useful settings include:
If you want your server to be publicly listed on the server browser you will need to enter your profile credentials from the Factorio website. You can use either a token or password.
Specifying world generation settings is a fairly simple task when creating a new world.
The steps to do so are as follows:
Delete any existing world data
Modify map-gen-settings.json
Use the Factorio executable to generate a world with that json
Run Factorio as normal
Follow the Guide below for detailed instructions on doing the above.
Firstly, delete any existing worlds that are found in the serverfiles
directory.
Remember to backup your server
In the data
directory, copy the example files, then and customise them to your requirements.
In map-gen-settings.json
, the ore generation values can be:
Once complete you will need to generate your World. Go back to the serverfiles
directory and run the Factorio binary.
I prefer the added customisation of the Resource Overhaul Mod to the built-in generation.
The easiest way that I've found to generate a world with the RSO mod (and add mods in general) is as follows:
Startup Factorio on a client and install the RSO mod
Start generation of a new world and configure mod generation settings
Grab the mod files and mod-settings.dat
Transfer them to the server
Delete or rename any previous worlds
To configure the generation, go to Play
> New World
> Mod Settings
> Map
, then adjust options accordingly. Doing so will generate a file called mod-settings.dat
which stores these settings.
You can locate the mod files on your system in the path your Factorio installation saves to:
Transfer all of the mods and mod-settings.dat
file to your server with a tool like Filezilla or the rsync
command on Mac/Linux, or even a USB drive.
Note: DO NOT TRANSFER FILES OVER FTP
If you have SSH open on the server, you will want to use SFTP. If you're using Filezilla, setting the port to 22 will tell it to use SFTP. If you're using rsync
, the command would look something like this:
You will want to drop those files in the serverfiles/mods
directory. You will also need to delete the existing save so that it generates a new one with the new generation rules. (This is a great time to make backups if you have any progress you would like to save).
Navigate to the root folder of your Factorio installation, then delete the save:
Once you've done that, you're good to start the server.