halflife icon indicating copy to clipboard operation
halflife copied to clipboard

Detail texture gfx/detail/dt_smooth2.tga in wrong format and fails to load and a parsing error

Open Litude opened this issue 13 years ago • 0 comments

In both Condition Zero and Day of Defeat (the only games that use detail textures), the texture dt_smooth2.tga is not in a format that the game can read and therefore it fails to load. It seems to be in Grayscale format while the game reads RGB.

That very detail texture is used in e.g. de_stadium_cz and dod_northbound.


There also seems to occur a parsing error when the game reads the file dod_jagd_detail.txt and the game ends up not using detail textures in the map at all.

The line that seems to be the root of the problem in the file is:

{kl_blah1d3b[1] detail/dt_grass1 10 10

So it seems brackets in texture names make the game unable to read the detail texture file properly. But since brackets are allowed in texture names they should naturally also work properly in detail texture files.

Litude avatar Apr 02 '13 10:04 Litude