[No] Option to 'Delete' lumps from a mod

Moderator: GZDoom Developers

Option to 'Delete' lumps from a mod

Postby John Fanshaw » Mon Sep 23, 2019 7:26 am

Once in a while, a mod that used to work with GZDoom will break because the engine's error handling/checking became more robust with time. Unfortunately, sometimes this is something that cannot be patched over in the mod with a second add-on file. An example would be Doom Resurrection (https://www.doomworld.com/idgames/level ... -f/doomres), which no longer works because an erroneous S_END lump causing confusion/conflict in the namespaces prevents the mod from launching. Currently, there is nothing a patch can do to fix this. However, if the ability to retroactively delete a lump was possible, maybe a patch could be created?
John Fanshaw

Re: Option to 'Delete' lumps from a mod

Postby Matt » Mon Sep 23, 2019 4:12 pm

Turning GZDoom into a wad editor would be a hell of a huge feature creep.

Best to use Slade for that.
User avatar
Putting the XD into *xdeath since 2007
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: Option to 'Delete' lumps from a mod

Postby Alice Pittgold » Mon Sep 23, 2019 4:38 pm

I'm not sure I understand any of that. But, I was envisioning something along the lines of making the DeleteLumps command accessible outside of just iwadinfo, perhaps in conjunction with the recent discussion of allowing substitution of specific lumps/strings in mods: viewtopic.php?f=49&t=63737&start=465#p1118542
Alice Pittgold

Re: Option to 'Delete' lumps from a mod

Postby Graf Zahl » Tue Sep 24, 2019 12:15 am

This cannot be done after initialization. IWASDINFO is read before the resource directory is created so that the tagged lumps get deleted right on creation. Deleting data later can cause problems because you have no way of knowing if that data is already in use.

For the specific use case something different is needed, this cannot be safely handled with a lump deletion mechanism.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Joined: 19 Jul 2003
Location: Germany

Re: Option to 'Delete' lumps from a mod

Postby John Fanshaw » Tue Sep 24, 2019 6:42 am

Ah, I see. That's disappointing, but it makes sense. Although it worries me a little bit that the other use cases I had in mind may be less similar than I had hoped, and may require yet more distinct solutions...
John Fanshaw

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest