0 Urthar Posted August 13, 2018 Make a backup of your wad. Delete the PNAMES and TEXTUREx entries. Select all your patches. Right click and Add to Patch Table, and then repeat for Add to TEXTUREx. Of course, any multi-patch textures will require editing by hand. A lot depends on how you set up the textures in the first place. 1 Share this post Link to post
0 Novaseer Posted August 13, 2018 (edited) Slight problem: In trying to remove unused patches, I've also managed to fuck up every texture that the wad uses. And it overrid the backups too. Any way to fix this? 0 Share this post Link to post
0 Gez Posted August 13, 2018 Well, you could identify which patch were replaced by which and then adjust the names in PNAMES, but it might be simpler to restart from scratch. 1 Share this post Link to post
0 Novaseer Posted August 13, 2018 1 minute ago, Gez said: Well, you could identify which patch were replaced by which and then adjust the names in PNAMES, but it might be simpler to restart from scratch. I'd rather go the former route (which I have already partially done anyway - I've managed to fix all the custom textures and a few of the vanilla ones). I'm not wasting months of work due to a small mishap. 0 Share this post Link to post
0 Urthar Posted August 13, 2018 The patch table is a numbered index for the texture lump. When you remove a patch from the table, every subsequent patch will get bumped up one in the list. That means that every instance of those bumped up patches in the texture lump will now be referencing the wrong patch. If you removed a single patch towards the end of the patch table it's not so bad. You will only need to fix a few textures by hand since only a few patches will have been bumped up. Otherwise rebuilding PNAMES and TEXTURE again from scratch is probably faster, and certainly cleaner. 1 Share this post Link to post
0 Novaseer Posted August 13, 2018 1 minute ago, Urthar said: The patch table is a numbered index for the texture lump. When you remove a patch from the table, every subsequent patch will get bumped up one in the list. That means that every instance of those bumped up patches in the texture lump will now be referencing the wrong patch. If you removed a single patch towards the end of the patch table it's not so bad. You will only need to fix a few textures by hand since only a few patches will have been bumped up. Otherwise rebuilding PNAMES and TEXTURE again from scratch is probably faster, and certainly cleaner. How does one rebuild those without remaking the entire WAD? 0 Share this post Link to post
0 Novaseer Posted August 13, 2018 (edited) 1 hour ago, Urthar said: Make a backup of your wad. Delete the PNAMES and TEXTUREx entries. Select all your patches. Right click and Add to Patch Table, and then repeat for Add to TEXTUREx. Of course, any multi-patch textures will require editing by hand. A lot depends on how you set up the textures in the first place. I'll try it. Thanks. EDIT: It worked! Thank you so much! Edited August 13, 2018 by Novaseer 0 Share this post Link to post
0 Gez Posted August 13, 2018 1 hour ago, Urthar said: Right click and Add to Patch Table, and then repeat for Add to TEXTUREx. You can skip the "Add to Patch Table" step, since "Add to TEXTUREx" will do that automatically when needed. 1 Share this post Link to post
0 Novaseer Posted August 13, 2018 1 minute ago, Gez said: You can skip the "Add to Patch Table" step, since "Add to TEXTUREx" will do that automatically when needed. I added only the patches to the patch table, as I was aware of how that worked. Thanks for the help regardless, everyone. 0 Share this post Link to post
0 Nevander Posted August 15, 2018 I thought you could remove a single entry from TEXTUREx and PNAMES at any time? 0 Share this post Link to post
What the title says.
Share this post
Link to post