Edit out a mod from a save file

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

Edit out a mod from a save file

Postby Kzer-Za » Fri Nov 13, 2020 2:06 pm

By mistake I launched the engine with an extra mod and loaded a save where I'm in the middle of a playthrough, played several minutes, saved the game, and quit, before realizing that this mod was loaded, and I meant for this playthrough to be without this mod. I don't have other saves on this playthrough. If I try to load this save now (without this mod), I get an "Unknown object class" error.

Can I edit the save somehow to remove the info about this mod from it? The class is a WorldThingSpawned event, so as far as I understand it should be safe to remove it, since it only increases speed and velocity of some actors when they are spawned. So even if already spawned actors are already affected, they don't rely on any persistent objects from this mod (there aren't any).
Kzer-Za
 
Joined: 20 Aug 2017

Re: Edit out a mod from a save file

Postby Graf Zahl » Fri Nov 13, 2020 2:48 pm

No, you can't edit it out if there's objects from the mod spawned in the map.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Edit out a mod from a save file

Postby Kzer-Za » Fri Nov 13, 2020 3:02 pm

Ah, okay.

As a workaround I have temporarily commented out the whole content of this class and it did the trick: the class is there, so the game can be loaded, but it doesn't do anything, so it doesn't affect the gameplay. I'll just need to uncomment it once I finish this playthrough.
Kzer-Za
 
Joined: 20 Aug 2017


Return to General

Who is online

Users browsing this forum: fluenCdoom, Sgt Dopey and 2 guests