Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Type Dreams

"To save time is to lengthen life." · By Hofmeier

Corrupted save files

A topic by Minnie created Mar 12, 2020 Views: 424 Replies: 4
Viewing posts 1 to 2
(+1)

Corrupted Save Files


One thing I've noticed is that you can't load profiles from a previous build (not a big deal). Posted a screenshot below, I'm guessing this has something to do with the new avatars/profile pics.


Also I've managed to get a bug with the profile screen where selecting a profile immediately crashes, stopping you from progressing down the list. I haven't been able to reproduce this bug yet. It seems to be related to newly created profiles and possibly exiting out of the tutorial or somewhere? Not 100% sure. One thing that can be done to fix it atm is deleting all the files related to the profile in "%USERDATA%\Saved Games\Type Dreams" and then editing the profiles.dat in either Notepad++ or HxD. I've attached files below for reference!

Quick overview: Newer profiles are added to the end with each entry starting with 4 bytes (UID? And 3 NULL's) and ends with a NULL. To remove a profile from the list simply delete the beginning 4 bytes all the way to the NULL (make sure the list ends with a NULL). It will give you a warning about changing file size but in this case it's fine.
(1 edit) (+1)

Wow. This is amazing. 

I believe that this issue can also be remedied by deleting only the (name)_cache.dat file from the "%USERDATA%\Saved Games\Type Dreams" folder, too.

I'm so sorry your savedata was lost this way; did you keep a backup of the other .dat files from the previous build? Restoring all but the "_cache.dat" file might do it. Sometimes these issues are caused by "ROAD MODE" (which I'm taking out for now).

It's a major priority for me to keep this game's updates backwards-compatible because players' stats are so crucial. I love to see those upward-curving slopes on the stats screen!

Others have asked for a way to delete profiles, too. I'll include that in the next build.

Thanks so much for sharing these findings, Minnie! I'll be following your screenshots and combing thru the script to stitch this up.

(+1)

Oh wow, that's a much simpler method than mine. I had no idea aaaa. Also the savedata is still there!!! The only profile I lost was the newly created corrupted one. My old profile is there but not accessible through the bug I mentioned ^^ it's okay tho, imma try the game under a new profile anyways. I've attached a screenshot of my old profile and the .dat files. What do you mean by restoring all but the _cache.dat? do you mean deleting? :o



(1 edit)

Thanks for your help with this. I'm pretty sure this is all fixable!

First, tell me if I understand this correctly: your old profile data is either backed up or mostly intact?

Try restoring everything but _cache.dat to the "%USERDATA%\Saved Games\Type Dreams" directory. Or, if your files are still there, deleting only that one. Like Hank suggests, in this demonstrative image:



By restoring all of those .dat files, except for _cache.dat, a seemingly-corrupt profile from an old build is repaired when Type Dreams loads it. It'll show this message:


After that, it'll say it's loading for the first time (although it obviously isn't). You'll get the character-creation screen and pick a typewriter. Then you're back in business leisure!

//::// The Crash \\::\\
I can reproduce the crash you mention by removing all of a profile's .dat files from the save directory:




This is what I'm würking on, today: stitching this glitch and then giving players the option of deleting profiles.

I hope this is helpful!

(1 edit)

ye this was very helpful!! tysm. also my old profile is still in my type dreams folder from a while back. i'll try deleting the _cache.dat and seeing if that works now!! ty for the update! ^^


EDIT:


So I deleted the cache file and it regenerated but crashed with the following error:


After relaunching I tried loading into the profile but it gives me the same error as the one above. Strange.. Looks like I can't get into my old profile at all aaaa