diff options
| author | Lucy <35628281+Amzi-01@users.noreply.github.com> | 2026-11-22 04:55:41 +0000 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 00:33:50 -0500 |
| commit | 55b2fb6e94eb35698012b338e28e0c6e1030654f (patch) | |
| tree | f1c81ea84c04c86c8c6192d6ff83baf431405ab6 /runtime/test/vk_queue_query_sync_test.cpp | |
| parent | 2692d223ff9e825213c566d84443de4495adb529 (diff) | |
Tools: count and check instanced props and grass in map resources
Map resources can hold instance lists besides CEntityDef. Their struct names
are the case-sensitive joaat of the GTA V class names:
0xBA049770 rage__fwPropInstanceListDef
0xEA6B3A96 rage__fwPropInstanceListDef__InstanceData
0x7C475B5D rage__fwGrassInstanceListDef
0xED86F522 rage__fwGrassInstanceListDef__InstanceData
tools/instance_lists.py finds the 0x7a map resources as world_index.py does,
assembles each resource's virtual and physical streams from its block map,
reads every field through the resource's own schema member table (by name
hash), and writes counts only: schema agreement with the documented offsets,
prop matrices (orthonormal axes, handedness, scale, translation inside the
list's BatchAABB), grass instances (normal inside the unit disc, Scale vs
ScaleZ, RotationIdx range), and list fields (lodLevel, IsSLODList,
OrientToTerrain, ScaleRange order, InstanceLodDist <= lodDist).
tests/test_instance_lists.py builds a minimal resource with both lists and
runs the tool on it, also end to end through a fake archive.
AI-assisted (Claude). Tested: python -I tests/test_instance_lists.py (7 pass),
python -m compileall -q make_game.py tools tests; no GPU involved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 989900c44cbe31ceba5316c7bcc571fd4bb144cd)
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions