SLADE icon indicating copy to clipboard operation
SLADE copied to clipboard

Texture-Flat Name Conflict

Open inventor200 opened this issue 2 years ago • 3 comments

SLADE Version: 3.2.0 Operating System: Ubuntu 22.04

Issue Details: If I use the STEP2 flat (the 64x64 brown-with-silver one) on a section of floor, the STEP2 texture (the 32x16 tan-colored one) shows up instead in both top-down view and visual mode. When playing in GZDoom, the 64x64 flat is correctly used. Both of these are vanilla Doom textures, and not the result of textures I added as part of the project. I suspect GZDoom might be prioritizing flats of a name for floors/ceilings, and textures of the same name for walls.

inventor200 avatar May 06 '22 06:05 inventor200

I can confirm the same thing on Srb2, flats are prioritized over Textures on floors, in fact I think this applies for all the other doom port

FlykeSpice avatar May 14 '22 19:05 FlykeSpice

I can't reproduce this one, it is using the flat as expected for me. Looking at the code if the game configuration supports mixing textures and flats, it'll prioritize TX_ textures > TEXTURES with type 'Flat' > normal flats

sirjuddington avatar May 16 '22 12:05 sirjuddington

It sometimes takes a while for me. Try this:

  1. Start a new map in UDMF for (G)ZDoom
  2. Place the STEP2 flat on the floor somewhere
  3. Change any texture on a wall while in map view

From here, we try a brute force approach to cause the bug, which covers steps often taken in map development: 4. Go into visual mode 5. Change a wall texture while in visual mode 6. Go back to map view 7. Test the map in GZDoom 8. Close GZDoom 9. Close the map editor 10. Re-open the map editor

At some point in that process, the STEP2 texture should be on the floor instead of the STEP2 flat.

It's not something that happens immediately for me either, but at some point while I'm working on maps, all of my elevator floors suddenly turn into orange slabs because the wall texture is used. It will never go back to using the flat after this happens for the first time. When I start a brand-new map, it correctly uses the STEP2 flat the first time I assign it. However, at some point it changes to the wall texture, and then it permanently remains as the wall texture, even if I completely close Slade and reopen it.

inventor200 avatar May 16 '22 18:05 inventor200