Page 1 of 1

How to disable replay saving?

Posted: Fri Sep 12, 2014 8:33 am
by cpy
How to disable replay saving? Does anyone know where can i turn it off? Thanks!

Re: How to disable replay saving?

Posted: Fri Sep 12, 2014 8:43 am
by cube
You cannot.
As a hack you can start a game with some mod, save it, then load it wihtout the mod. Replay saving will be disabled from that time.

Re: How to disable replay saving?

Posted: Fri Sep 12, 2014 8:49 am
by n9103
Altering several different things in your copy of the base mod data will also cause a desync for anyone that doesn't have the same changes.
I know for certain that altering the player's run speed will do it, I'm sure many other things will as well.

Re: How to disable replay saving?

Posted: Sun Dec 27, 2015 1:39 pm
by happymoep
Sorry for necroing this thread but
a) presented workaround did not work for me
b) I could not find any working solutions via google or forum search
c) despite the fact that noone else seems to have asked about it, I imagine others might be interested aswell, as I repeatedly heard map downloads from the servers are a pain

I thought maybe noone asked about it anymore because an option might have been added to easily deactivate replay-saving. If there has - I couldn't find it - please point me to it. If not, why not just add one?
I'm running a headless server and for my team(/micro community) and me it is bothersome waiting for connecting players around 40% longer just to have a feature none of us wants to use on this map.

I did delete the replay.dat but I'd like a more permanent solution.
Can anyone help me?

Re: How to disable replay saving?

Posted: Mon Dec 28, 2015 2:48 pm
by ssilk
Moved from General to Technical help.

Re: How to disable replay saving?

Posted: Tue Dec 29, 2015 12:32 am
by Bisa
I usually just unzip the initial save.zip, remove the replay file and package the save in a zip again (not sure if this is working still as it was a few version that I actually cared to verify)

Re: How to disable replay saving?

Posted: Tue Dec 29, 2015 4:21 am
by happymoep
Bisa wrote:I usually just unzip the initial save.zip, remove the replay file and package the save in a zip again [...]
Like I said, I did remove the replay.dat file, but unless you deactivate replays in some way the file will just be recreated the next time you load the map.
And I need a more permanent solution than frequently deleting it.

Thanks though.

Anyone else got any ideas?

Re: How to disable replay saving?

Posted: Tue Dec 29, 2015 6:22 am
by Koub
Sorry, I just only have seen replay to tet disabled when I upgrade Factorio during a playthrough. Couldn't find how to do it manually.

Re: How to disable replay saving?

Posted: Tue Dec 29, 2015 3:05 pm
by happymoep
Thanks Koub, that might be helpful anyways.

Okay, as the map stores what version it has been created with one might try to fake that version number to trick factorio into disabling replays.
I don't know if that breaks anything though. E.g. when on version change something in the savegame gets converted we might accidentally trigger that conversion.
As I don't know much about the structure of savegames and couldn't find anything outside those .dat files I will have to try that sometime else.
I'm busy for the next days now.

If anyone wants to try stuff, be careful and please post your results.

Other ideas are welcome aswell.


EDIT:
In a quick chat on IRC Rseding91 hinted me at my error.
To deactivate replays I had made an empty mod with just the info.json but the game realizes that this won't affect the gamestate and thus doesn't disable replays.
Add a data.lua or control.lua to your (empty) mod. File content doesn't matter, the presence of that file should be enough for disabling replays.

Not tested YET

Re: How to disable replay saving?

Posted: Mon Apr 02, 2018 12:09 pm
by redlabel
Klonan gave me the answer to this one:

http://lua-api.factorio.com/latest/LuaG ... ble_replay

so use /c game.disable_replay()