Can't load save games on latest betas

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
3371-Alpha
Posts: 61
Joined: Wed Sep 28, 2016 9:52 pm
Location: Veldin Orbit

Can't load save games on latest betas

Post by 3371-Alpha »

The title pretty much says it all. Whenever I attempt to load a previous save, it always tells me I can't load the game "because it was created by a previous version of zDoom", never mind that the file was created with that very version. Considering I'm on PowerPC, I'm going to assume this is another endianness issue. What do you think?
User avatar
Major Cooke
Posts: 8215
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: Can't load save games on latest betas

Post by Major Cooke »

Welcome to the betas, where barrels leak acid and explode all over your saved games.

To summarize, the saved version code has to be upped every so often whenever an otherwise save-breaking change occurs. Yes, it may look like it's on the same version with the fancy 2.8.1, but that's just glossing over the internal numbers. Expect development builds to break your saved games every so often. Treat them as dime-a-dozen.
User avatar
3371-Alpha
Posts: 61
Joined: Wed Sep 28, 2016 9:52 pm
Location: Veldin Orbit

Re: Can't load save games on latest betas

Post by 3371-Alpha »

Well that's just the thing, I backed up my original 2.8.1 files and stored them away. I created a new game while trying out the latest beta yesterday and now it doesn't want to load it.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Can't load save games on latest betas

Post by _mental_ »

Upload saved game in question somewhere or even attach to the forum post if it's small.
User avatar
3371-Alpha
Posts: 61
Joined: Wed Sep 28, 2016 9:52 pm
Location: Veldin Orbit

Re: Can't load save games on latest betas

Post by 3371-Alpha »

Alright, Here's a save from the latest beta from TeamDRD's site. I'm playing PERDITION'S GATE with Doom 2 BFG edition on this one, of course I also get the same result without iwads and with the original doom 1 & 2.
Attachments
save0.zds.zip
The new betas are great, it's just what's the point in using them if I can't reload my last save?
(63.68 KiB) Downloaded 41 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can't load save games on latest betas

Post by Graf Zahl »

That savegame is corrupt, it cannot be opened at all, not just with ZDoom but also with any Zip decompression utility I tried. It's no surprise that ZDoom cannot load it. The real mystery is, how this got created, because I have never seen something like it.
I'M afraid, you'll have to tell us a bit about the computer where this happens.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Can't load save games on latest betas

Post by _mental_ »

Considering it's PowerPC it can be endian issue indeed. Or even unaligned memory access but IIRC it should crash instead of reading/writing random values.
I'll check this issue soon but don't except a quick fix as I don't have working C++ 11/14 compiler with PPC target. Blzut3 definitely has required version of GCC and I hope he will share it with me.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can't load save games on latest betas

Post by Graf Zahl »

Yeah, sounds like it. Possibly just a LittleLong call missing somewhere. The big question is, how to find it...
User avatar
3371-Alpha
Posts: 61
Joined: Wed Sep 28, 2016 9:52 pm
Location: Veldin Orbit

Re: Can't load save games on latest betas

Post by 3371-Alpha »

I'm not sure if this will be of any help, but Cameron Kaiser ("ClassicHasClass") of TenFourFox and Tobias Netzel of Leopard Webkit might have some advice for where to search. Both are avid PPC users and both have back ported their own web browsers to PPC Macs.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can't load save games on latest betas

Post by Graf Zahl »

How would that help finding a problem somewhere in ZDoom's code base. I'll have to sift through the entire Zip writing stuff to find the problem because those godforsaken Zip decompressors only tell me that the file is corrupt, they do not tell me WHAT is corrupt.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Can't load save games on latest betas

Post by _mental_ »

It appeared to be pretty simple to fix, here is a pull request. I added a few small macOS related fixes for issues I discovered in the process.
User avatar
3371-Alpha
Posts: 61
Joined: Wed Sep 28, 2016 9:52 pm
Location: Veldin Orbit

Re: Can't load save games on latest betas

Post by 3371-Alpha »

Oh, thanks. Also sorry Graf Zahl about the irrelevant suggestion, I'm not that experienced with compiled apps.
Post Reply

Return to “Closed Bugs [GZDoom]”