Note: I am running Linux so all this is for Linux. But I believe on Windows Steam Cloud behaves the same and the script can be rewritten for cmd/powershell.
Ever had to wait for what felt like eternity for Steam to finish syncing your saves, after closing game or, even worse, before starting it?
The reason is Steam Cloud is somewhat slow, especially for large files, and saves of big factories are huge!
Adding insult to injury, it also syncs your autosaves to cloud! That's four times the wait if your are playing one save with default 3 autosaves.
If you configured more autosaves, the "eternity" above gets quite real on a slow-uplink connection.
And if you really want to sync your (non-auto-)saves that becomes a problem.
One may argue that autosaves don't belong in the cloud and post a suggestion to exclude them from sync completely, but:
a) Not everyone might believe so, so it has to be optional, and IMO that option might not fit well in settings GUI, so a rarely used config file option.
b) Even if devs take the time to implement it properly, it would take time. I want faster sync "Now!"
So I wrote a simple script that moves autosaves to a separate directory "autosaves" placed next to "saves", thus hiding them from Steam Cloud and speeding up sync.
This also hides autosaves from the game, so the script has to move them back when the game is running.
In general, Steam assumes that all the changes to saves done while game is running are done by the game, and reverts those done while it isn't running.
When the script is run by Steam, it is treated as if it was the game itself.
It moves autosaves to 'saves' directory, runs the actual game, and after it closes moves autosaves back to 'autosaves' dir before terminating.
So the game always sees the autosaves, while Steam Cloud never does.
The script is on Github: evg-zhabotinsky/RandomStuff/master/Factorio/autosave-segregator.sh To use it:
- Download it to your '~/.factorio' directory (next to 'saves' dir) as 'autosave-segregator.sh'.
- Make it executable: 'chmod +x ~/.factorio/autosave-segregator.sh'
- Put '~/.factorio/autosave-segregator.sh %command%' in Factorio launch options in Steam.
P.S.
You can change autosave count in '~/.factorio/config/config.ini' (when game is closed).
Uncomment the line "autosave-slots=3" and set whatever number you like.
P.P.S.
If you set autosave interval low enough, and your factory is large enough, autosaves can get really annoying!
Set "non-blocking-saving=true" in the same config and saving won't halt your game ever again!
This option is considered experimental/dangerous, though, and on Windows does nothing and probably never will.
Script to speed up Steam Cloud sync by excluding autosaves
Enhance your gameplay with these tools. This category is also the right place for tools useful for modders.
Mod databases, calculators, cheatsheets, multiplayer, scripts, libs and other useful stuff that is not strictly in-game mods.
Mod databases, calculators, cheatsheets, multiplayer, scripts, libs and other useful stuff that is not strictly in-game mods.
-
- Inserter
- Posts: 22
- Joined: Wed Dec 09, 2020 3:53 pm
- Contact:
Jump to
- General
- ↳ Releases
- ↳ News
- ↳ General discussion
- ↳ Multiplayer
- ↳ Find Servers / Tools / Guides
- ↳ Show your Creations
- ↳ Videos
- ↳ Combinator Creations
- ↳ Mechanical Throughput Magic (circuit-free)
- ↳ Railway Setups
- ↳ Energy Production
- ↳ Medium/Big/Gigantic Sized Structures
- ↳ Fan Art
- ↳ Gameplay Help
- ↳ Spread the Word
- ↳ Off topic
- ↳ This Forum
- ↳ Celebration Party
- Support
- ↳ Gameplay Help
- ↳ Discover Factorio Wiki
- ↳ Discover Others Creations
- ↳ Discover Mods
- ↳ Discover Tools Around Factorio
- ↳ Technical Help
- ↳ Bug Reports
- ↳ Resolved for the next release
- ↳ Assigned
- ↳ Not a bug
- ↳ Pending
- ↳ 1 / 0 magic
- ↳ Duplicates
- ↳ Minor issues
- ↳ Desyncs with mods
- ↳ Won't fix.
- ↳ Resolved Problems and Bugs
- Factorio Direction
- ↳ Ideas and Suggestions
- ↳ Outdated/Not implemented
- ↳ Frequently Suggested / Link Collections
- ↳ Implemented Suggestions
- ↳ Implemented in 2.0
- ↳ Development Proposals
- ↳ Balancing
- Contributions
- ↳ Mods
- ↳ Download mods
- ↳ Mod portal Discussion
- ↳ Mods
- ↳ Mod Packs / Libs / Special Interest
- ↳ 5dim's mod
- ↳ Angels Mods
- ↳ Atomic Power
- ↳ Bob's mods
- ↳ DyWorld
- ↳ F.A.R.L
- ↳ Fentus Challenge & Tool Mods
- ↳ Logistic Train Network
- ↳ MoMods
- ↳ Reika's Mods
- ↳ Resource Spawner Overhaul
- ↳ Yuoki Industries
- ↳ PyMods
- ↳ Questions, reviews and ratings
- ↳ Modding Discussions
- ↳ Modding discussion
- ↳ Modding help
- ↳ Ideas and Requests For Mods
- ↳ Modding interface requests
- ↳ Implemented mod requests
- ↳ Already exists
- ↳ Won't implement
- ↳ Documentation Improvement Requests
- ↳ Resolved Requests
- ↳ Development tools
- ↳ Tools
- ↳ Mod and installation managers
- ↳ Cheatsheets / Calculators / Viewers
- ↳ Development tools
- ↳ Special interest mods and libraries
- ↳ Modding Development
- ↳ Multiplayer / Dedicated Server
- ↳ Multiplayer Board
- ↳ Archive
- ↳ Maps and Scenarios
- ↳ Translations
- ↳ Texture Packs
- ↳ Fan Art
- ↳ Wiki Talk
- ↳ To be sorted
- ↳ Campaign / Scenario suggestions