Edit out a mod from a save file

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
Kzer-Za
Posts: 521
Joined: Sat Aug 19, 2017 11:52 pm
Graphics Processor: nVidia (Modern GZDoom)

Edit out a mod from a save file

Post by Kzer-Za »

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).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Edit out a mod from a save file

Post by Graf Zahl »

No, you can't edit it out if there's objects from the mod spawned in the map.
Kzer-Za
Posts: 521
Joined: Sat Aug 19, 2017 11:52 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: Edit out a mod from a save file

Post by Kzer-Za »

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.
Post Reply

Return to “General”