Prevent double saves

Place to get help with not working mods / modding interface.
Post Reply
XaLpHa89
Fast Inserter
Fast Inserter
Posts: 119
Joined: Wed Jan 24, 2018 6:59 am
Contact:

Prevent double saves

Post by XaLpHa89 »

Can I somehow prevent standard saving? When I close a Docker container, I want to give the ZIP a specific name.

Code: Select all

32.982 Info AppManager.cpp:395: Saving game as /factorio/saves/COMMUNITY_NAME-SCENARIO_NAME-PID
32.987 Info AsyncScenarioSaver.cpp:144: Saving process PID: 630
32.989 Received SIGINT, shutting down
32.990 Quitting: signal.
32.990 Info MainLoop.cpp:400: Saving map as /factorio/saves/SCENARIO_NAME
33.015 Received SIGTERM, shutting down

XaLpHa89
Fast Inserter
Fast Inserter
Posts: 119
Joined: Wed Jan 24, 2018 6:59 am
Contact:

Re: Prevent double saves

Post by XaLpHa89 »

Because I want to use several containers, there are also several saves, to prevent standard saving, I use the command "chattr +i /opt/factorio/saves/SCENARIO_NAME.zip". Unfortunately, my approach creates some errors.

Code: Select all

21.245 Info AppManager.cpp:395: Saving game as /factorio/saves/COMMUNITY_NAME-SCENARIO_NAME-PID
21.249 Info AsyncScenarioSaver.cpp:144: Saving process PID: 627
21.255 Received SIGINT, shutting down
21.255 Quitting: signal.
21.255 Info MainLoop.cpp:400: Saving map as /factorio/saves/SCENARIO_NAME
21.268 Received SIGTERM, shutting down
21.948 Warning WriteFileGuard.cpp:143: Failed to rename /factorio/saves/SCENARIO_NAME.tmp.zip to /factorio/saves/SCENARIO_NAME.zip
21.948 Backup is NOT available.
21.948 Warning WriteFileGuard.cpp:148: Destination path exists: /factorio/saves/SCENARIO_NAME.zip
21.963 Warning WriteFileGuard.cpp:56: Writing /factorio/saves/ComfyFactorio.zip failed; previous version (if any) should still be available
21.966 Error Util.cpp:83: filesystem error: Failed to rename: /factorio/saves/SCENARIO_NAME.tmp.zip.
It might be locked by other application.: Operation not permitted
[/factorio/saves/SCENARIO_NAME.tmp.zip]
[/factorio/saves/SCENARIO_NAME.zip]
path1: /factorio/saves/SCENARIO_NAME.tmp.zip
path2: /factorio/saves/SCENARIO_NAME.zip
21.966 Info GlobalContext.cpp:710: Waiting for child processes to exit: 627
21.966 Info ChildProcessAgent.cpp:60: Child 627 exited with return value 0
21.966 Info AppManager.cpp:398: Saving finished
Error Util.cpp:83: filesystem error: Failed to rename: /factorio/saves/SCENARIO_NAME.tmp.zip. 
It might be locked by other application.: Operation not permitted 
[/factorio/saves/SCENARIO_NAME.tmp.zip]
[/factorio/saves/SCENARIO_NAME.zip]

Post Reply

Return to “Modding help”