Making Return of the Triad an IWAD

Archive of the old editing forum
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.
Locked
janiform
Posts: 237
Joined: Tue Jul 31, 2007 10:56 am

Making Return of the Triad an IWAD

Post by janiform »

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.
User avatar
Salad Viking
Posts: 752
Joined: Tue Apr 20, 2010 8:58 pm
Location: In high orbit

Re: Making Return of the Triad an IWAD

Post by Salad Viking »

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.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Making Return of the Triad an IWAD

Post by Gez »

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).
Because it's no longer hard-coded in the executable.

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.
User avatar
el zee
Posts: 128
Joined: Sun Aug 15, 2004 8:29 pm
Location: New Zealand
Contact:

Re: Making Return of the Triad an IWAD

Post by el zee »

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.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Making Return of the Triad an IWAD

Post by Gez »

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.

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"
}
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.
User avatar
Jimmy
 
 
Posts: 4728
Joined: Mon Apr 10, 2006 1:49 pm
Preferred Pronouns: He/Him
Contact:

Re: Making Return of the Triad an IWAD

Post by Jimmy »

Heh, Return of the TriWad. :P

(Yes, I pronounce "wad" like that. I'm weird.)
User avatar
scalliano
Posts: 2871
Joined: Tue Jun 21, 2005 1:16 pm
Location: Ireland

Re: Making Return of the Triad an IWAD

Post by scalliano »

Jimmy wrote:(Yes, I pronounce "wad" like that. I'm weird.)
No, you're not. I do too. It differentiates between a "Doom WAD" and "a wad of cash".

I also call it "Zed-Doom".
User avatar
Enjay
 
 
Posts: 27295
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Making Return of the Triad an IWAD

Post by Enjay »

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

If, however, you want more customisability than that, you need to look at what Gez posted.
Locked

Return to “Editing (Archive)”