I'm getting really close to going from a complete beginner to a novice.
Here's a question I have.
I got a .PK3 from someone on here, with coding in it for a new weapon.
If I want to combine my levels and that weapon into one file, how do I do it?
The levels are both just wads.
Putting everything together
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
-
Kappes Buur
-

- Posts: 4231
- Joined: Thu Jul 17, 2003 12:19 am
- Graphics Processor: nVidia (Legacy GZDoom)
- Location: British Columbia, Canada
Re: Putting everything together
To combine the weapon into your map depends on several factore ...
Open the weapon file and your map file with Slade3.
What you are looking for is a doomed number for the weapon.
If there are ZSCRIPT and MAPINFO, then the doomed number is specified in DoomEdNums block.
If there is a DECORATE lump, then the doomed number is attached to the actor definition.
If there is no doomed number, then you have to specify a number which is not in this list.
Copy all lumps from the weapon file and paste it into your map file at the very bottom.
Then save your map file.
To insert this weapon in a map editor open the thing edit menu and type the thing number.
Or, usually it would be found under User defined.
If you experience a problem with that process then I suggest for you to link to the weapon file and then we can go from there.
Open the weapon file and your map file with Slade3.
What you are looking for is a doomed number for the weapon.
If there are ZSCRIPT and MAPINFO, then the doomed number is specified in DoomEdNums block.
If there is a DECORATE lump, then the doomed number is attached to the actor definition.
If there is no doomed number, then you have to specify a number which is not in this list.
Copy all lumps from the weapon file and paste it into your map file at the very bottom.
Then save your map file.
To insert this weapon in a map editor open the thing edit menu and type the thing number.
Or, usually it would be found under User defined.
If you experience a problem with that process then I suggest for you to link to the weapon file and then we can go from there.
-
Enjay
-

- Posts: 27627
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: Putting everything together
Another option, if your map WADs are just maps with no other resources in the WAD, could be to add them to the PK3.
In fact, even if they have other resources in them, you could separate them out and add them to the PK3 using the appropriate structure.
https://zdoom.org/w/index.php?title=Usi ... eplacement
In fact, even if they have other resources in them, you could separate them out and add them to the PK3 using the appropriate structure.
https://zdoom.org/w/index.php?title=Usi ... eplacement
-
Spaceshiporion
- Posts: 78
- Joined: Sun Dec 03, 2023 6:58 pm
Re: Putting everything together
Ok, so, I thought I was able to create a new PK3 and insert the level and the weapon files,
but now the Map file is considered "invalid"?
does anyone know what that is about?
but now the Map file is considered "invalid"?
does anyone know what that is about?
-
Spaceshiporion
- Posts: 78
- Joined: Sun Dec 03, 2023 6:58 pm