Option to 'Delete' lumps from a mod
Moderator: GZDoom Developers
Option to 'Delete' lumps from a mod
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?
- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: Option to 'Delete' lumps from a mod
Turning GZDoom into a wad editor would be a hell of a huge feature creep.
Best to use Slade for that.
Best to use Slade for that.
Re: Option to 'Delete' lumps from a mod
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
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Option to 'Delete' lumps from a mod
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.
For the specific use case something different is needed, this cannot be safely handled with a lump deletion mechanism.
Re: Option to 'Delete' lumps from a mod
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...