Main Menu

No more saved games after updating to Mac OS X Yosemite

Started by manvscode, October 16, 2014, 08:12:34 PM

Previous topic - Next topic

manvscode

The game does not list any of my saved games that were there.  I have been saving manually.  Is my progress lost?

wayens

"After updating to Mac OS X Yosemite, all of my saved games are now gone."

When you posted here (http://www.postudios.com/blog/forum/index.php?topic=14152.0), were you saying you updated your OS midgame?  If so, may want to double check the update log too if there is one.

We'll also need details in order to even help you track.  Like what OS did you upgrade from and give us a copy of any log of it may help too.

The game itself does not wipe saves.
We also have not made any more updates since release on 10/15 so nothing's changed here.
Plus, I had also given you the file extension ".sav" for our save files, so have you checked if any saves show up in your search?  If by chance, something did change game-wise for saves, it most likely would be a change of directory.

manvscode

I don't want to sound like a dick but I am a software engineer for a living.  In fact, I have worked in the game industry so I like to think I'm fairly tech-savy.  Please take the bugs relating to the save games being lost seriously.  Other games that I have on my computer that also use Unity did not lose their save files after updating.  Something is wrong.


GabrielKnightsOfNi

I was bitten by this same issue.  Any saves (manual and auto) I had from before the Yosemite upgrade are gone.  There's nothing in the Yosemite install log that indicates they were deleted or moved.  They're not in /Incompatible Software either.

So far, it seems like new saves are OK.

GabrielKnightsOfNi

Now that I've found the save game location on the Mac, I know exactly what happened. Yosemite deletes all cache files and logs during the install.  Since ./Library/Caches/unity.Phoenix Online Studios.GK1/001_St. George's Books.sav is in ./Library/Caches, it gets blown away during the upgrade.

Save games should be stored in a more "usual" location on the Mac, like ./Library/Application Support or ./Documents.

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *path = [paths objectAtIndex:0];



GabrielKnightsOfNi

Using Library/Caches for saves actually violates the Mac Filesystem development rules: https://developer.apple.com/library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW1

Library/Caches is defined as "Use this directory to write any app-specific support files that your app can re-create easily."  Library/Application Support looks better, with this example "A game might use this directory to store new levels purchased by the user and downloaded from a server."  Combine the description of Documents as "The files in the user's Documents and Desktop directories should reflect only the documents that the user created and works with directly." with Application Support's and it really looks like Application Support is where the save game files need to go to not have anything unexpected happen to them.