[1.1.101] Creating a multiplayer map with replay
Posted: Mon Jan 15, 2024 12:17 pm
What is the recommended way to create a map for a server with replay enabled?
The replay system wiki article only redirects to the multiplayer article which does not contain any information as to how one can set up a new replay multiplayer map.
I found several topics regarding this topic which do not contain a solution nor instructions.
The map-gen-settings.json and map-settings.json do not contain an option for the replay.
There is not a command line parameter for enabling replay.
As noted in viewtopic.php?p=556693 the setting in the config.ini does not affect the headless game.
After a lot of trial and error I found this single way to create a replay multiplayer map without disabled achievements:
or an additional parameter in the map generation settings.
As it is now someone can create a map and host a server without a factorio account but without replays. If you want to host a server with a replay you need a saves file generated by the GUI version of the game. That seems like weird restriction because the headless server works fine with a save file were replay is enabled. You just can't create a new map with replay.
Coming back to my original question: What is the recommended way to create a map for a server with replay enabled? Because I feel like this isn't it.
The replay system wiki article only redirects to the multiplayer article which does not contain any information as to how one can set up a new replay multiplayer map.
I found several topics regarding this topic which do not contain a solution nor instructions.
The map-gen-settings.json and map-settings.json do not contain an option for the replay.
There is not a command line parameter for enabling replay.
As noted in viewtopic.php?p=556693 the
Code: Select all
check-enable-replay-checkbox=true
After a lot of trial and error I found this single way to create a replay multiplayer map without disabled achievements:
- Start the GUI game
- Select Single player > New game
- Enable the Record replay check box in the upper right corner
- Select Freeplay and Next
- Choose your map settings (Some settings disable achievements)
- Press Play and instantly pause the started game, save it and quit.
- Copy the newly created save from the saves directory to your server and start it with this save file.
Code: Select all
bin/x64/factorio --start-server my-save-with-enabled-replay.zip
Code: Select all
bin/x64/factorio --create map-with-replay.zip --enable-replay
As it is now someone can create a map and host a server without a factorio account but without replays. If you want to host a server with a replay you need a saves file generated by the GUI version of the game. That seems like weird restriction because the headless server works fine with a save file were replay is enabled. You just can't create a new map with replay.
Coming back to my original question: What is the recommended way to create a map for a server with replay enabled? Because I feel like this isn't it.