How to disable replay saving?

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
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

How to disable replay saving?

Post by cpy »

How to disable replay saving? Does anyone know where can i turn it off? Thanks!
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: How to disable replay saving?

Post 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.
n9103
Smart Inserter
Smart Inserter
Posts: 1067
Joined: Wed Feb 20, 2013 12:09 am
Contact:

Re: How to disable replay saving?

Post 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.
Colonel Failure wrote:You can lose your Ecologist Badge quite quickly once you get to the point of just being able to murder them willy-nilly without a second care in the world.
happymoep
Inserter
Inserter
Posts: 38
Joined: Sat Aug 15, 2015 1:15 pm
Contact:

Re: How to disable replay saving?

Post 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?
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: How to disable replay saving?

Post by ssilk »

Moved from General to Technical help.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Bisa
Filter Inserter
Filter Inserter
Posts: 450
Joined: Fri Jul 17, 2015 3:22 pm
Contact:

Re: How to disable replay saving?

Post 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)
Hosting a factorio server? Take a look at this || init script ||.
happymoep
Inserter
Inserter
Posts: 38
Joined: Sat Aug 15, 2015 1:15 pm
Contact:

Re: How to disable replay saving?

Post 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?
Koub
Global Moderator
Global Moderator
Posts: 7784
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: How to disable replay saving?

Post 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.
Koub - Please consider English is not my native language.
happymoep
Inserter
Inserter
Posts: 38
Joined: Sat Aug 15, 2015 1:15 pm
Contact:

Re: How to disable replay saving?

Post 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
User avatar
redlabel
Fast Inserter
Fast Inserter
Posts: 145
Joined: Mon Feb 06, 2017 8:50 pm
Contact:

Re: How to disable replay saving?

Post 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()
✧COMFY FACTORIO✧ - Home of Biter Battles, Fish Defense, Chronotrain.. And More!
Post Reply

Return to “Technical Help”