w23 / OpenSource

Load Source games maps as combined meshes correctly positioned relative to each other
Do What The F*ck You Want To Public License
157 stars 16 forks source link

d1_eli_01 map doesn't load #30

Closed w23 closed 7 years ago

w23 commented 7 years ago

src/bsp.c:263: Error: no visible faces found src/bsp.c:646: Error: bspLoadModelPreloadFaces() => BSPLoadResult_ErrorFileFormat src/bsp.c:912: Error: bspLoadModel() => BSPLoadResult_ErrorFileFormat src/OpenSource.c:275: Cannot load map "d1_eli_01": 2

w23 commented 7 years ago

Okay, this is bad. All the faces are rejected because they have lightmap_offset equal to zero. This likely means that the new lightmap format (lump 53) needs to be reverse-engineered.

w23 commented 7 years ago

So it seems that d1_eli_01 (and some other maps) are in HDR-only format, so their faces and lightmaps need to be read from lumps 58 and 53, instead of 7 and 8. Format is exactly the same.