Making Return of the Triad an IWAD
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Making Return of the Triad an IWAD
In the release topic for Return of the Triad, el zee expressed interest in making the TC a (G)ZDoom-recognized IWAD, but is not sure how to do it: http://forum.zdoom.org/viewtopic.php?f=19&t=30144 Knowledgeable ZDoomers, please advise.
- Salad Viking
- Posts: 752
- Joined: Tue Apr 20, 2010 8:58 pm
- Location: In high orbit
Re: Making Return of the Triad an IWAD
You don't. The available IWADs are hard-coded into the executable (though, interestingly, most of the information about said IWADs and detecting them is contained in a text file in gzdoom.pk3). You have to bring it up with the devs if you want support for your custom IWAD to be added.
Re: Making Return of the Triad an IWAD
Because it's no longer hard-coded in the executable.Salad Viking wrote:You don't. The available IWADs are hard-coded into the executable (though, interestingly, most of the information about said IWADs and detecting them is contained in a text file in gzdoom.pk3).
But it's still not fully opened since people aren't supposed to edit the zdoom.pk3 stuff; and that part is necessarily one that's read before anything else is loaded so you can't mod it externally.
Re: Making Return of the Triad an IWAD
it says in the [wiki]IWAD[/wiki] article on the wiki, that you can use the -iwad command line paramater. But that doesn't seem to work.
Re: Making Return of the Triad an IWAD
Yeah, because it won't be identified as an IWAD. You'd have to modify the iwad list file in zdoom.pk3 to add yours and a test for it (put in your mod a uniquely named marker lump, like for example ROTTZDTC or something like that), it's fairly intuitive -- you can copy the one from Hacx for example and modify the stuff you need to adapt it for your mod.
Or something like that. "Name" is how it'll be called in the IWAD selection box; "Game" will generally be Doom; "Config" is how the custom section will be called in the config file; MAPINFO corresponds to the base MAPINFO so just keep that one since it'll be overridden by yours anyway; "MustContain" is the list of lumps that will let ZDoom identify the IWAD as what it is; and "BannerColors" is RGB values for coloring the banner above the loading screen before the game actually starts (feel free to find a set that will more closely match the theme).
Once that's done, you'll also have to add the name of your IWAD to the "Names" list at the end of the file.
Then put your modified iwadinfo.txt as a feature suggestion.
All the -iwad command lets you do is load an IWAD that is named differently from what's in the Names list. Like if you wanted to call Doom2.wad "toto.dat" instead for whatever weird reason. Or if you're keeping "historical" versions of some IWADs and want to play DOOMv12.wad instead of the usual 1.9 version. Etc.
Code: Select all
IWad
{
Name = "Return of the Triad"
Game = "Doom"
Config = "ReturnTriad"
Mapinfo = "mapinfo/doom2.txt"
MustContain = "MAP01", "ROTTZDTC"
BannerColors = "a8 00 00", "a8 a8 a8"
}
Once that's done, you'll also have to add the name of your IWAD to the "Names" list at the end of the file.
Then put your modified iwadinfo.txt as a feature suggestion.
All the -iwad command lets you do is load an IWAD that is named differently from what's in the Names list. Like if you wanted to call Doom2.wad "toto.dat" instead for whatever weird reason. Or if you're keeping "historical" versions of some IWADs and want to play DOOMv12.wad instead of the usual 1.9 version. Etc.
Re: Making Return of the Triad an IWAD
Heh, Return of the TriWad. 
(Yes, I pronounce "wad" like that. I'm weird.)
(Yes, I pronounce "wad" like that. I'm weird.)
Re: Making Return of the Triad an IWAD
No, you're not. I do too. It differentiates between a "Doom WAD" and "a wad of cash".Jimmy wrote:(Yes, I pronounce "wad" like that. I'm weird.)
I also call it "Zed-Doom".
Re: Making Return of the Triad an IWAD
That should work in as much as provided that your WAD contains the lumps essential to running the game and the lumps that identify it as a particular game type, the game will start and do so in a mode appropriate for what it thinks the game is. So, for example, of your WAD contained lumps to make the game go into Doom2 mode, the game would start in Doom2 mode (the title at the top of the loading window would say as much) and the game would play. Similarly, if you rename doom2.wad to differentname.wad it won't be auto recognised by the automatic IWAD choice dialogue in Zdoom but if you run it with the -iwad parameter, it will work just fine.el zee wrote:it says in the [wiki]IWAD[/wiki] article on the wiki, that you can use the -iwad command line paramater. But that doesn't seem to work.
If, however, you want more customisability than that, you need to look at what Gez posted.
