IWAD or *alternative name* lump

Moderator: GZDoom Developers

Post Reply
User avatar
Voros
Posts: 151
Joined: Fri Feb 03, 2017 11:47 pm

IWAD or *alternative name* lump

Post by Voros »

Sometimes, I want a mod to compatible across multiple IWADs, say Doom and Strife.

Basically I would create the necessary the DECORATE files for the Doom version and Strife version, put them in folders like Decorate/Doom/... and /Decorate/Strife/... under one PK3/PK7 file, and a lump that would point to the correct DECORATE lump for each IWAD.

I load up the mod with Strife, GZDoom will look up the file, say a lump called "IWAD", and read it. If Strife, the lump would have something in it to load the correct DECORATE lump. This DECORATE lump would naturally have the correct #includes for the correct DECORATE files in the Decorate folder.

Pseudo code in the form of C:

Code: Select all

if(IWAD = strife1.wad) 
{
Decorate = DECORATE.strife; // Which would load all the DECORATE in /Decorate/Strife/...
}
else if(IWAD = doom.wad)
{
Decorate = DECORATE.doom; // Same thing, but instead in /Doom/...
}
else 
{
Decorate = Decorate.doom2; // Same, but in /Doom2/...
}
I'm aware of ZScript, but not that familiar with it, as it's mostly new compared to DECORATE.
Is this feature worth looking into? If it already exists in some form (that doesn't require ZScript, hopefully), then nevermind.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: IWAD or *alternative name* lump

Post by Graf Zahl »

You can do this with filter directories.
See GZDoom.pk3 itself for how to use that.
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: IWAD or *alternative name* lump

Post by Caligari87 »

There's also a page on the wiki for [wiki]Lump filtering[/wiki].

8-)
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”