• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows Save game file location - how to keep same for different proj version names?

DigiChain

Member
When my game saves a 'save game' file it saves it to:
AppData > Local > Game Name as expected.

So if my current project is called "mygame_vers1" it will save it to a folder named: AppData > Local > mygame_vers1

If I continue working on the project, saving different version numbers as I go, and then publish an update from a new version number it no longer looks for the saved file from the previous version because it will now be looking for/saving to AppData > Local > mygame_vers33 for example.
This obviously causes issues because an update now looks as though it has wiped the save game data.

My solution to this is to always resave the latest version to the original name when publishing - but am I missing something? Is there a way to update the project name without effecting the games 'save file' location?
 
If you're using GMS2, why not just disable the sandbox and set the path to wherever you want your files to be saved? Then it doesn't matter what version of your game you are running as all of them will load their saved games from the same folder.
 

Yal

šŸ§ *penguin noises*
GMC Elder
Use git for versioning your project instead of changing its name all the time.

Git is essentially a tool that lets you save snapshots of your project and then tie them together in a timeline... that's also a branching tree. It only saves the stuff that's changed ("diffs") that usually are pretty small (if you make snapshots often) so you can time-travel your project quickly between different versions. You can revert to a previous version if you mess something up really badly, so you can make experimental "fire and forget" branches that you can just abandon if something went wrong, etc.
 
Top