A serious error when converting my WAD to PK3
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.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
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.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
A serious error when converting my WAD to PK3
Please help, I dunno what to do. I recently converted my entire game WAD into a PK3 because I wanted to upgrade everything into directories but since I did, all the sounds have gone, music included, and all the textures have gone mental. My original textures have been replaced with doom ones at certain places.... unyet in the builder they look fine. What's going on? Please help.
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: A serious error when converting my WAD to PK3
We're going to have to see the file. I can't even begin to guess what happened.
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: A serious error when converting my WAD to PK3
Ok, seems the music and sounds are ok. my mistake... but the graphics are all blended with doom stuff now and the skies are changed.
Re: A serious error when converting my WAD to PK3
You really need to upload the file as wildweasel says. It's almost impossible to figure out what has happened here because there are so many ways to mess up how you have put the files in their directories. With the file in front of us, we could probably figure out the problem in a matter of seconds.
But, just for the quick, obvious things
Patches in a WAD are either loose (in no name space) or (better) between P_ markers. Put them in a patches folder.
Flats are between F_ markers in a WAD. Put them in a flats folder.
If you want something to work like a texture (TX_ markers in a WAD) put them in a Textures folder
If you have defined textures in either a Textures lump or a Texture1 lump, that lump goes in the root of the PK3. Files in the Textures folder do not normally have a definition in the Textures/Texture1 lump. They "just work".
General graphics (e.g. Titlepic) go into the graphics folder.
Other specific file types go in the folders as per the Wiki page I linked you to (sounds in sounds, music in music, maps in maps etc). General control lumps (Textures, Mapinfo, Animdefs etc) go in the root of the PK3.
It maybe seems a bit complicated the first time that you set one up but its actually easier, more ordered and more logical than the WAD structure IMO.
But, just for the quick, obvious things
Patches in a WAD are either loose (in no name space) or (better) between P_ markers. Put them in a patches folder.
Flats are between F_ markers in a WAD. Put them in a flats folder.
If you want something to work like a texture (TX_ markers in a WAD) put them in a Textures folder
If you have defined textures in either a Textures lump or a Texture1 lump, that lump goes in the root of the PK3. Files in the Textures folder do not normally have a definition in the Textures/Texture1 lump. They "just work".
General graphics (e.g. Titlepic) go into the graphics folder.
Other specific file types go in the folders as per the Wiki page I linked you to (sounds in sounds, music in music, maps in maps etc). General control lumps (Textures, Mapinfo, Animdefs etc) go in the root of the PK3.
It maybe seems a bit complicated the first time that you set one up but its actually easier, more ordered and more logical than the WAD structure IMO.
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: A serious error when converting my WAD to PK3
I also have another problem. My MAPS are completely useless. They work in the builder but they do not work when imported into the PK3. I drag the PK3 over the gzdoom file and it boots up with FREEDOOM maps and textures. If this wasn't bad enough, when I look in the map wads, (in the maps directory), the END MAP marker has the image of the FREEDOOM map while the MAP01 etc is the map I created. What the Hell is that all about? Is my entire game ruined forever?Enjay wrote:You really need to upload the file as wildweasel says. It's almost impossible to figure out what has happened here because there are so many ways to mess up how you have put the files in their directories. With the file in front of us, we could probably figure out the problem in a matter of seconds.
But, just for the quick, obvious things
Patches in a WAD are either loose (in no name space) or (better) between P_ markers. Put them in a patches folder.
Flats are between F_ markers in a WAD. Put them in a flats folder.
If you want something to work like a texture (TX_ markers in a WAD) put them in a Textures folder
If you have defined textures in either a Textures lump or a Texture1 lump, that lump goes in the root of the PK3. Files in the Textures folder do not normally have a definition in the Textures/Texture1 lump. They "just work".
General graphics (e.g. Titlepic) go into the graphics folder.
Other specific file types go in the folders as per the Wiki page I linked you to (sounds in sounds, music in music, maps in maps etc). General control lumps (Textures, Mapinfo, Animdefs etc) go in the root of the PK3.
It maybe seems a bit complicated the first time that you set one up but its actually easier, more ordered and more logical than the WAD structure IMO.
I'm uploading to DROPBOX... please God someone help.
Re: A serious error when converting my WAD to PK3
Is the file up yet?
On the maps - you didn't try to separate the lumps from the WAD files did you? Maps are the one exception of files inside a PK3 that need to remain inside a WAD. You just place a WAD file for each map into the Maps folder. Also worth pointing out that it is the file name that GZDoom will read as the map name, regardless of what it is called inside the WAD file. So, typically, inside your maps folder you might have files called map01.wad, map02.wad, map03.wad...
There is logic behind this. The maps are made of several lumps and so those lumps need to be kept together anyway. Keeping them together in a WAD file just makes sense.
On the maps - you didn't try to separate the lumps from the WAD files did you? Maps are the one exception of files inside a PK3 that need to remain inside a WAD. You just place a WAD file for each map into the Maps folder. Also worth pointing out that it is the file name that GZDoom will read as the map name, regardless of what it is called inside the WAD file. So, typically, inside your maps folder you might have files called map01.wad, map02.wad, map03.wad...
There is logic behind this. The maps are made of several lumps and so those lumps need to be kept together anyway. Keeping them together in a WAD file just makes sense.
- Redneckerz
- Spotlight Team
- Posts: 1146
- Joined: Mon Nov 25, 2019 8:54 am
- Graphics Processor: Intel (Modern GZDoom)
Re: A serious error when converting my WAD to PK3
I was going to strongly iterate on the Upload ze file! but you added some things in:
Fortunately, you are uploading it to Dropbox as we speak. So i suggest to take some time off after having uploaded the file to Dropbox, and have the resident Community Guides take a look at what is going wrong
Your game definitely is not ruined forever, but first and formost, please calm down. I understand that its very frustrating to see a lot of hard work end up not working as you expect it to (trust me, i know) but freaking out does help nobody: It does not elevate your mood, and we can't help either, because we need the file to see what is going on.Hidden Hands wrote: I also have another problem. My MAPS are completely useless. They work in the builder but they do not work when imported into the PK3. I drag the PK3 over the gzdoom file and it boots up with FREEDOOM maps and textures. If this wasn't bad enough, when I look in the map wads, (in the maps directory), the END MAP marker has the image of the FREEDOOM map while the MAP01 etc is the map I created. What the Hell is that all about? Is my entire game ruined forever?
I'm uploading to DROPBOX... please God someone help.
Fortunately, you are uploading it to Dropbox as we speak. So i suggest to take some time off after having uploaded the file to Dropbox, and have the resident Community Guides take a look at what is going wrong
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: A serious error when converting my WAD to PK3
The file is still uploading... its pretty huge. But in the meantime, here is a screenshot of my maps folder and whats inside each wad. The issue now is that when I drag the PK3 over the GZDOOM program, it just loads FREEDOOM levels. It completely ignores my maps. I'm really worried about this, I've spent years on this project...
Complete list of errors are as follows:
1. In editor, everything looks great (except for sky) but when testing the level, chunks of my own original textures that looked fine in the editor are completely mashed up with patches of DOOM textures that they originally replaced making the entire level look horrible.
2. The sky is very strange. In editor, it shows a freedoom sky (which is incorrect) but on testing, it shows a DOOM sky. WTF?
3. Maps are being ignored entirely. The levels the GZDOOM play when the PK3 is dragged over to it are from FREEDOOM, not from my own game.
4. Fonts in game are wrong. It seems to use FREEDOOM fonts when reading dialogue in my game, when it should be using my own custom SMLFNT.
These are the ones I am aware of so far, but I do not doubt there are more I haven't discovered yet. I really need some help repairing my PK3 because I have lost so much work. I need it back to how it was before I switched from WAD to PK3.

Complete list of errors are as follows:
1. In editor, everything looks great (except for sky) but when testing the level, chunks of my own original textures that looked fine in the editor are completely mashed up with patches of DOOM textures that they originally replaced making the entire level look horrible.
2. The sky is very strange. In editor, it shows a freedoom sky (which is incorrect) but on testing, it shows a DOOM sky. WTF?
3. Maps are being ignored entirely. The levels the GZDOOM play when the PK3 is dragged over to it are from FREEDOOM, not from my own game.
4. Fonts in game are wrong. It seems to use FREEDOOM fonts when reading dialogue in my game, when it should be using my own custom SMLFNT.
These are the ones I am aware of so far, but I do not doubt there are more I haven't discovered yet. I really need some help repairing my PK3 because I have lost so much work. I need it back to how it was before I switched from WAD to PK3.
I just saw your post, thank you so much. It will be ready to share in a minute. I'll try keep it calm, I think I had an anurism there! Thank you, I'm sure its in capable hands. Will be sharing as soon as the upload completes, thank you.Redneckerz wrote:I was going to strongly iterate on the Upload ze file! but you added some things in:
Your game definitely is not ruined forever, but first and formost, please calm down. I understand that its very frustrating to see a lot of hard work end up not working as you expect it to (trust me, i know) but freaking out does help nobody: It does not elevate your mood, and we can't help either, because we need the file to see what is going on.Hidden Hands wrote: I also have another problem. My MAPS are completely useless. They work in the builder but they do not work when imported into the PK3. I drag the PK3 over the gzdoom file and it boots up with FREEDOOM maps and textures. If this wasn't bad enough, when I look in the map wads, (in the maps directory), the END MAP marker has the image of the FREEDOOM map while the MAP01 etc is the map I created. What the Hell is that all about? Is my entire game ruined forever?
I'm uploading to DROPBOX... please God someone help.
Fortunately, you are uploading it to Dropbox as we speak. So i suggest to take some time off after having uploaded the file to Dropbox, and have the resident Community Guides take a look at what is going wrong
- Attachments
-
- MAPS2.png (6.42 KiB) Viewed 289 times
-
- MAPS1.png (9.09 KiB) Viewed 289 times
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: A serious error when converting my WAD to PK3
Okay, here it the download. Please please help.
I should mention however, this upload was before I added MAP04 into the PK3, and also before I renamed the MAP wads to their correct titles (Map01 etc.) Also this WAD contains custom resources I have paid people to make for me, so to anyone looking for resources, please do not use these. At least not until my game is officially released! They are exclusive to my game.
Thank you in advance, please help.
I should mention however, this upload was before I added MAP04 into the PK3, and also before I renamed the MAP wads to their correct titles (Map01 etc.) Also this WAD contains custom resources I have paid people to make for me, so to anyone looking for resources, please do not use these. At least not until my game is officially released! They are exclusive to my game.
Thank you in advance, please help.
Last edited by Hidden Hands on Fri Jun 05, 2020 4:45 pm, edited 1 time in total.
Re: A serious error when converting my WAD to PK3
OK, the first and most obvious thing is that you didn't do what I said with the patches. You put them all into your textures folder, not the patches. Most, if not all, of the graphics in your textures folder need to be in the patches folder instead (patches folder is currently empty).
Once that is done, the game can start and on a quick check, the maps look as if they might be doing roughly what you expect.
What's more, doing that reduces a huge list of startup warnings (if you have the developer cvar set to 2) to a much shorter list. There are still errors, but the patches folder thing is a start. Unfortunately, I can't do much more with it today (about to start a Zoom meeting which will go on quite late) but I'm happy to keep looking at it with you if you don't get it resolved by tomorrow.
Once that is done, the game can start and on a quick check, the maps look as if they might be doing roughly what you expect.
What's more, doing that reduces a huge list of startup warnings (if you have the developer cvar set to 2) to a much shorter list. There are still errors, but the patches folder thing is a start. Unfortunately, I can't do much more with it today (about to start a Zoom meeting which will go on quite late) but I'm happy to keep looking at it with you if you don't get it resolved by tomorrow.
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: A serious error when converting my WAD to PK3
Thank you, I'll do what you said. Yes please, if you could help me some more tomorrow or whenever you are free I'd be extremely grateful.Enjay wrote:OK, the first and most obvious thing is that you didn't do what I said with the patches. You put them all into your textures folder, not the patches. Most, if not all, of the graphics in your textures folder need to be in the patches folder instead (patches folder is currently empty).
Once that is done, the game can start and on a quick check, the maps look as if they might be doing roughly what you expect.
What's more, doing that reduces a huge list of startup warnings (if you have the developer cvar set to 2) to a much shorter list. There are still errors, but the patches folder thing is a start. Unfortunately, I can't do much more with it today (about to start a Zoom meeting which will go on quite late) but I'm happy to keep looking at it with you if you don't get it resolved by tomorrow.
EDIT: Well I did as you asked, and DDAYYUUMM you sure know your stuff. All textures and skies are back to normal. You rock!
Now I just need to get the maps working when the PK3 is dragged over the GZDoom app, and also the SMLFNT is still the wrong one when dialogue appears.
But this so far HAS made me feel a lot calmer so far. PHEW.
If you know a way I can fix my maps from not working, I'd be forever in your debt.
Re: A serious error when converting my WAD to PK3
I'm not sure what you mean by the maps "not working". I can see some errors but when I start a game, it's your map that loads (after I rename the files inside the PK3 to map01.wad etc).
I can't check it right now but I did notice that you had a font in your graphics folder. From memory, that should actually be in the root of the PK3, not in graphics. Perhaps that will fix the font issue?
I also noticed that you have a bunch of folders with nothing inside them. Unless you plan on using them in future, they can all go.
You've also got two MAPINFO lumps. It would be better to consolidate them into one but the big one will also need converting to the new MAPINFO format because it's in the older style whereas the short one (with the gameinfo entry) is in the newer format.
I can't check it right now but I did notice that you had a font in your graphics folder. From memory, that should actually be in the root of the PK3, not in graphics. Perhaps that will fix the font issue?
I also noticed that you have a bunch of folders with nothing inside them. Unless you plan on using them in future, they can all go.
You've also got two MAPINFO lumps. It would be better to consolidate them into one but the big one will also need converting to the new MAPINFO format because it's in the older style whereas the short one (with the gameinfo entry) is in the newer format.
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: A serious error when converting my WAD to PK3
Dudde, you fixed it all! Thank you so much!!! The issue was I named my maps MAP01, MAP02 etc.... not map01.wad, map02.wad ... it works now! Also, yes, you fixed the font issue. Thats it I think... I think the game is working perfectly now. (For the most part!) (I still have a few texture errors popping up which I cannot explain. In the first map, the downstairs hallway has brickwork when it should be yellow wallpaper for example? Any idea why this might be?
I'm gonna play all five levels through now to test! Thank you so much again!
I'm gonna play all five levels through now to test! Thank you so much again!
