ericwa / ericw-tools

Quake/Hexen 2 Map compiling tools - branch of http://disenchant.net/utils
http://ericwa.github.io/ericw-tools
GNU General Public License v2.0
350 stars 59 forks source link

_surface light entity issues with liquids #217

Open dumptruckDS opened 6 years ago

dumptruckDS commented 6 years ago

I have a test map with one light entity with the _surface key set to lava1 but lava2 is also used in the map and is acting as a surface light with lava1 settings. When I create an explicit lava2 light it is ignored.

I cannot get a slime1 surface light to work either, even on it's own. water0 does work.

Map Attached. Using 0.18.1 liquids_tutorial.map.txt Map uses quake101 and my skips wad here: http://www.quaketastic.com/files/texture_wads/skips_2018.zip

ericwa commented 6 years ago

This is really weird - it looks like quake101.wad has conflicting names for slime1 and lava2, so qbsp is able to find the correct textures but it writes them out under the alternate names and they end up as slime and lava1 in the .bsp file!

QuArK helped show the problem:

screen shot 2018-06-15 at 2 39 16 am

I should probably make qbsp write out the same texture names in the bsp that it found in the wad file, which would work around iffy wad files. Thanks for reporting this!

dumptruckDS commented 6 years ago

I just realized TrenchBroom labeled that bottom lava as *lava2 in the editor. I wasn't aware until today that wads can have duplicate files names.