Repository navigation
v1.2.6 - HOD 2.0 Large POOL Load Fix
Fixes a HOD 2.0 load failure for files with large compressed texture pools.
- Fixed
IFF boundary read error: failed to fill whole bufferwhen loading HOD 2.0 files whosePOOLchunk exceeds 16 MB (e.g.bst_mothership.hod, ~32 MBPOOL). Chunk size endianness is now resolved by testing whether the big-endian size fits the bytes remaining in the stream, falling back to little-endian only for the documentedNRML BMSHvariant, instead of a fixed 16 MB heuristic that could flip valid big-endian sizes. - Verified with
cargo test --lib(32 tests),verify_lossless, and a 505-file HOD corpus sweep: zero chunk-read errors.bst_mothership.hodnow loads with all 39 meshes, 193 joints, 53 textures, materials, navlights, markers, glows, dockpaths, and its collision mesh.
Manual test: testing/bst_mothership/bst_mothership.hod loads correctly in the editor (textures, meshes, collision, and nodes all verified).