Skip to content

v1.2.6 - HOD 2.0 Large POOL Load Fix

Choose a tag to compare

@GuillermoOM GuillermoOM released this 17 Oct 04:27
· 26 commits to master since this release

Fixes a HOD 2.0 load failure for files with large compressed texture pools.

  • Fixed IFF boundary read error: failed to fill whole buffer when loading HOD 2.0 files whose POOL chunk exceeds 16 MB (e.g. bst_mothership.hod, ~32 MB POOL). 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 documented NRML BMSH variant, 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.hod now 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).