Is there a way to use save files if the IWAD/PWAD is moved?

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE? Did your computer break? Ask here.

Moderator: GZDoom Developers

Is there a way to use save files if the IWAD/PWAD is moved?

Postby Korell » Wed Aug 21, 2019 3:34 pm

So basically, if the IWAD and/or PWAD is moved (for instance in the example that I just experienced, I renamed a mod folder where I have the mod's .WAD file) then save files cannot be loaded by GZDoom as it gives the "different version" message. But the version of the WAD itself is no different.

Is there a way to force it to load the save file? I know the ECWolf has a --foreignsave command line parameter that can do this, and it is based on ZDoom, but I cannot find a similar option for GZDoom.
User avatar
Korell
 
Joined: 28 May 2017

Re: Is there a way to use save files if the IWAD/PWAD is mov

Postby _mental_ » Sat Aug 24, 2019 5:41 am

There is no ready to use solution because coding a support for such corner case isn't worth the effort IMHO.
Although, you can edit saved game to make it work. A file with .zds extension is a regular .zip archive. It contains several files, but all you need is to edit info.json accordingly.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Is there a way to use save files if the IWAD/PWAD is mov

Postby Korell » Sat Aug 24, 2019 7:18 am

_mental_ wrote:There is no ready to use solution because coding a support for such corner case isn't worth the effort IMHO.
Although, you can edit saved game to make it work. A file with .zds extension is a regular .zip archive. It contains several files, but all you need is to edit info.json accordingly.

I don't know how to edit the info.json file to make it work as it doesn't appear to contain any kind of file path at all. Here's an example one from Operation Sea Wolf, one of the Winter Agent Juno mapsets.

{
"Software": "GZDoom g3.8pre-72-g3b77e2db6",
"Engine": "GZDOOM",
"Save Version": 4554,
"Title": "Dan",
"Current Map": "MAP04",
"Game WAD": "doom2.wad",
"Map WAD": "SWv1.3.pk3:sw command center.wad",
"Creation Time": "Sun Jan 6 2019 22:49:37",
"Comment": "MAP04 - Command Center\ntime: 00:02:08"
}

It refers to the filenames of the IWAD and PWAD (and in this case also a WAD file contained within the PK3) but no path.
User avatar
Korell
 
Joined: 28 May 2017

Re: Is there a way to use save files if the IWAD/PWAD is mov

Postby _mental_ » Sat Aug 24, 2019 7:35 am

Paths were never stored there. If you renamed a folder with mods while keeping filenames untouched, and saved games cannot be loaded, the problem is somewhere else. Did you check console output for loaded files?
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Is there a way to use save files if the IWAD/PWAD is mov

Postby Korell » Sat Aug 24, 2019 12:16 pm

It's definitely just a folder change. I've seen it happen a number of times, and on this latest one it was due to how I decided to store both "Rowdy Rudy's Revenge" and "Rowdy Rudy Returns in POWERTRIP" in a single folder - on loading the first mod the saves no longer work. I hadn't gotten that far into the first mod, though, so ended up just deleting the saves and starting again.
User avatar
Korell
 
Joined: 28 May 2017


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 2 guests