Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- added additional hires namespaces to prevent name conflicts for hires packages #873

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kcghost
Copy link

@kcghost kcghost commented Jun 19, 2019

Since hires replaced all textures of the same name there could not be any name
conflicts in hires texture packs . This is a problem for Doom where STEP1/STEP2 are wall texture names as well as flat names. Add additional optional directories 'hires/flats', 'hires/sprites', 'hires/graphics', and 'hires/walltextures' which specify the usetype for the texture and only replace textures of the same type.
Also add 'HF_', 'HS_', 'HG_', and 'HW_' markers for wad namespacing.

Both 'NeuralNet' and 'DHTP' hires texture packs encounter this issue. See some discussion of it in regard to DHTP here.
I believe they work around the issue by renaming the flat image files and redefining them using a TEXTURES lump. But this doesn't seem like the 'right' fix to me, just a workaround.

I tested this with both a folder structure and a test wad replacing all flats, sprites, graphics, and wall textures. It is easiest to notice in e1m1, the flat used for the pillars in the left room is one of the STEP1/STEP2 flats, and is normally overridden by the image meant for the wall texture without the change.

@kcghost
Copy link
Author

kcghost commented Jun 27, 2019

Any comments? I am happy to make changes if you don't deem something appropriate. Or solve the problem a different way.

Also, looks like the link didn't take. Here is the discussion regrading DHTP that I mentioned: https://forum.zdoom.org/viewtopic.php?p=805839

@kcghost
Copy link
Author

kcghost commented Jul 9, 2019

Added a commit to do the '^' == '' replacement on the new ns_hires_sprites namespace, so that Arch-Vile sprites can be hires replaced.
This is another issue with the current hires namespace style, not all the Arch-Vile sprites are replaceable because the '^' code only applied to sprites and voxels namespaces.

@rawr51919
Copy link
Contributor

I'm OK with these changes. Just gotta see what the maintainers think about this.

@MajorCooke
Copy link
Contributor

Can you fix the merge conflict? Once you do, I'll merge this into QZDoom for testing.

…es packages

Since hires replaced *all* textures of the same name there could not be any name
conflicts in hires texture packs. This is a problem for Doom where STEP1/STEP2
are wall texture names as well as flat names. Add additional optional
directories 'hires/flats', 'hires/sprites', 'hires/graphics', and
'hires/walltextures' which specify the usetype for the texture and only replace
textures of the same type.
Also add 'HF_', 'HS_', 'HG_', and 'HW_' markers for wad namespacing.
@kcghost
Copy link
Author

kcghost commented Feb 1, 2020

Sorry I took so long to get back around to this, I just rebased on latest master and fixed the conflict.

@coelckers
Copy link
Member

In case you are wondering why this isn't merged: I am not sure if this organization might cause problems with existing mods. So far I haven't found one that clashes with these directories but it cannot be ruled out.

@madame-rachelle
Copy link
Collaborator

This PR has merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants