Load Customs .Pk3 File with Wad File

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.
User avatar
Mayhem666
Posts: 501
Joined: Sun Feb 26, 2012 6:17 pm
Location: Canada,Qc

Load Customs .Pk3 File with Wad File

Post by Mayhem666 »

I Noticed that when i Load my .pk3 File, It load with the file with the Wad But What i want to do is To Load Two .pk3 File With the Wad...

How and where i Define this to be done??
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Load Customs .Pk3 File with Wad File

Post by Gez »

... what?


It's not very clear what you mean.

Are you saying you want to make a wad file which contains as lumps two different PK3 archives? Then no, it won't work. ZDoom does not extract zips embedded into another archive; it's deliberate so as not to encourage a behavior that would force the engine to make an inefficient use of memory.

Is there any reason you can't merge both PK3s into a single one? Then you wouldn't even need to embed it in a wad. You'd just load that one single PK3 instead. You could even change the extension to .wad if you want; it wouldn't confuse ZDoom (nor SLADE 3) so everything would be fine.
User avatar
Mayhem666
Posts: 501
Joined: Sun Feb 26, 2012 6:17 pm
Location: Canada,Qc

Re: Load Customs .Pk3 File with Wad File

Post by Mayhem666 »

Here's a Clear Statement :

If i have a Wad ( Mod ) Using doom 2 as the Principal Wad, i wanna know if theres a way to load a .pk3 File with them.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Load Customs .Pk3 File with Wad File

Post by Gez »

Well, you can always use [wiki]GAMEINFO[/wiki].
User avatar
Mayhem666
Posts: 501
Joined: Sun Feb 26, 2012 6:17 pm
Location: Canada,Qc

Re: Load Customs .Pk3 File with Wad File

Post by Mayhem666 »

I looked at the link and it seems like it's to load a Wad file?
User avatar
Enjay
 
 
Posts: 27266
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Load Customs .Pk3 File with Wad File

Post by Enjay »

For almost all situations, you load a PK3 in the same way as you load a PWAD.
User avatar
Mayhem666
Posts: 501
Joined: Sun Feb 26, 2012 6:17 pm
Location: Canada,Qc

Re: Load Customs .Pk3 File with Wad File

Post by Mayhem666 »

Well when i load my Mod with Doom2, it wont load any PK3 with it, So i wanted to know if there's a way to make him load with them
User avatar
Enjay
 
 
Posts: 27266
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Load Customs .Pk3 File with Wad File

Post by Enjay »

Gez already pointed you to the GAMEINFO page. As I said, in most cases, you can load a PK3 just like a WAD so where it says WAD on that page, read PK3 and you should be good to go.


(In fact, the file extension is actually pretty irrelevant from a technical PoV because ZDoom looks in the file and uses what it sees there to load the data appropriately. You could make up any extension that you liked and provided you tell ZDoom to load it, the file will load.)
User avatar
Mayhem666
Posts: 501
Joined: Sun Feb 26, 2012 6:17 pm
Location: Canada,Qc

Re: Load Customs .Pk3 File with Wad File

Post by Mayhem666 »

Well i tested to load my PK3 with GAMEINFO i make the Lump Gameinfo in my Wad and i put the name with the command and well i does nothing, Maybe i do something wrong?

It's like
(For exemple)In GAMEINFO Lump i type : IWAD = "<Name.PK3>"

And when i start my Mod with the Doom2 Wad it wont load the PK3, Actually, It does Nothing at all, So maybe i do something wrong?
User avatar
Sarah
Posts: 551
Joined: Wed Sep 06, 2006 12:36 pm
Preferred Pronouns: She/Her
Operating System Version (Optional): Debian 11 (bullseye), Windows 10
Location: Middle of Nowheresville Il.
Contact:

Re: Load Customs .Pk3 File with Wad File

Post by Sarah »

Unless I'm mistaken, the IWAD is the original game(Doom.wad, Doom2.wad, Heretic.wad, Strife.wad...ect.). From the page on the wiki, the IWAD key is only used to skip the selection screen that lets you pick your IWAD at ZDoom's load. If your PWAD(your custom game) requires Doom2 to work, then you need to put "Doom2" in that part of the GAMEINFO. The next part is the LOAD key and is used to load extra files along with your PWAD. That would be where you put your .pk3 information. Note that the wiki says that your other files need to be in the same folder as your PWAD so ZDoom can find them.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Load Customs .Pk3 File with Wad File

Post by Gez »

IWAD = "Doom2"
LOAD = SomePK3IDontWantToMerge.pk3

Use that.
User avatar
printz
Posts: 2649
Joined: Thu Oct 26, 2006 12:08 pm
Location: Bucharest, Romania
Contact:

Re: Load Customs .Pk3 File with Wad File

Post by printz »

Enjay wrote:For almost all situations, you load a PK3 in the same way as you load a PWAD.
Except that the PK3 extension is required at the command-line, whereas the WAD extension is not :?
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Load Customs .Pk3 File with Wad File

Post by Gez »

That's because if you don't specify an extension and the file is not found, it happens .wad and tries again. Doom did that, too.

But hey, nothing prevents you from giving the .wad extension to a .pk3 if so you want. It will work just fine.
User avatar
printz
Posts: 2649
Joined: Thu Oct 26, 2006 12:08 pm
Location: Bucharest, Romania
Contact:

Re: Load Customs .Pk3 File with Wad File

Post by printz »

Gez wrote:Doom did that, too.
Doom requires even the WAD extension
User avatar
Mayhem666
Posts: 501
Joined: Sun Feb 26, 2012 6:17 pm
Location: Canada,Qc

Re: Load Customs .Pk3 File with Wad File

Post by Mayhem666 »

Nero wrote:Unless I'm mistaken, the IWAD is the original game(Doom.wad, Doom2.wad, Heretic.wad, Strife.wad...ect.). From the page on the wiki, the IWAD key is only used to skip the selection screen that lets you pick your IWAD at ZDoom's load. If your PWAD(your custom game) requires Doom2 to work, then you need to put "Doom2" in that part of the GAMEINFO. The next part is the LOAD key and is used to load extra files along with your PWAD. That would be where you put your .pk3 information. Note that the wiki says that your other files need to be in the same folder as your PWAD so ZDoom can find them.
So you're talking about the file in the PK3 like

Sprite/
Textures/
etc..?

Are you saying that these file must be in the PWAD also(The Mod)
I'm searching where to put this GAMEINFO..
Locked

Return to “Editing (Archive)”