fix: update raw.ksy with verified fields, v<32 support, add raw_legacy.ksy#8
Open
aronwk-aaron wants to merge 2 commits into
Open
fix: update raw.ksy with verified fields, v<32 support, add raw_legacy.ksy#8aronwk-aaron wants to merge 2 commits into
aronwk-aaron wants to merge 2 commits into
Conversation
75f28a2 to
f672712
Compare
…y.ksy Chunked format (raw.ksy, v30+): - Rename density → scale, diffuse_res → color_map_resolution, bits → blend_channel_mask - Add color_a to flair_attributes (35→36 byte fix) - Replace unknown1/unknown2 with proper v<32 field definitions - Add version/vert_size guards on mesh data Legacy format (raw_legacy.ksy, v<30): - New file using kaitai params for external map_version - Flat grid format with version-gated fields across v0-v29 - Heightmap, color map, texture/material, scene map sections - No known files exist; structure from Ghidra RE All changes verified against Ghidra RE of legouniverse.exe 1.10.64. Chunked format validated against 309 .raw files (309/309 pass). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
f672712 to
2abe289
Compare
These 16 bytes (vector3 + f4) are skipped by the client in every known build from 0.179.12 through 1.10.64. Never read into any struct or used at runtime. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
density→scale,diffuse_res→color_map_resolution,bits→blend_channel_maskbased on Ghidra RE of the client binarycolor_a(u1) toflair_attributes— was causing a 35 vs 36 byte mismatch, hidden by thesize: 36overrideunknown1/unknown2catch-alls with properversion < 32field definitions (legacy color map, v31 scene map, v<31 scene skip)version >= 32 and vert_size != 0guards on mesh data fieldsVerification
ReadNewTerrainFormat(0x0103b920),RAWReadHeightmap,RAWReadColorandLightMaps,RAWReadFlairData,RAWReadSceneMap,RAWReadMeshData, and the blend map reader inlegouniverse.exe1.10.64.rawfiles across multiple client versions (v31 and v32) — 309/309 pass with 0 bytes remaining🤖 Generated with Claude Code