Repository navigation
Conversation
…b4cf5), preset inheritance, and cull_drawable chains
|
Tested ba8e3b2 on Windows 11, CPython 3.14.7, CPU only: pass for model selection and NTFS hard-link protection. AI-assisted. The physical-source test rebuilt the synthetic index in two orders. Each set of archive coordinates selected the same geometry and produced the same GLB bytes after the rebuild. I also used an NTFS hard link to the unselected model as the CLI output path. The CLI rejected the output. Both source GLBs kept their original bytes. The separate symbolic-link check skipped on this machine. I ran test_ped_kit_glb.py, test_ped_catalogues.py, test_skinned_glb.py, test_glb_skinning.py and test_text_write_line_endings.py with py -3.14 -I -B. Of 61 tests, 60 passed and one skipped. For the control I used both production Python files from the stacked parent ef94e40. The parent CLI rejected --model-source as an unknown option. |
Kam471
left a comment
There was a problem hiding this comment.
Ran this at ba8e3b293 on Windows 11: pytest tests/test_ped_catalogues.py tests/test_ped_kit_glb.py -q -> 24 passed, 1 skipped, 38 subtests passed; git diff --check clean.
Ped kits can now select their physical model by archive coordinates, and the viewer parts index documents those coordinates; the added catalogue/GLB cases cover the coordinate selection and the fallback.
Stacking: this branch shares byte-identical ped_catalogues files with #5141 (and #5089), all by the same author, and merges cleanly with both (git merge-tree exit 0), so it is a cumulative series — land #5089, then #5141, then this; no conflict to resolve. The skip needs the game package.
|
Independent AI-assisted native Windows check at The same selected kit exported byte-identically from 0DRP and PSIN. The #5141 parent |
kacper-serewis
left a comment
There was a problem hiding this comment.
AI-assisted independent review. Windows CPU review of ba8e3b2. All nine tests passed. Four synthetic exports distinguished same-name candidates sharing archive and offset by drawable, even after reversing insertion order. Mesh bytes, material settings and both embedded images matched the selected source. The cached window had 1,438 distinct names in 1,438 rows and no available component GLBs. It supplied name-census coverage only.
|
Reviewed d8ce6ba (CPU, Linux, Python 3.13): no defects found
|
|
Tested d8ce6ba merged with main 561b65a on Linux (WSL2) / Python 3.12.16 and on Windows (native) / Python 3.13.1: pass Linux: Negative control: with |
Depends on: #5141
Depends on: #4763
ASSET-429 claim · Review the four changed files on top of #5141
A kit can refer to a drawable name shared by several physical models. Previously, exporting a chosen variant required building a separate parts index. Add the repeatable
--model-source HASH ARCHIVE OFFSET DRAWABLEoption toped_kit_glb.py. The hash must belong to the selected kit, and all three coordinates must match a row for that hash in the same index. Without the option, an ambiguous drawable still stops the export. The docs include a query for listing candidates.The selected model must have a ready, uniquely owned GLB and matching skin sidecar. An explicit choice also protects other indexed GLBs with the same hash if one of those files is used as the output.
Verification
e04cee84, changing the manifest order. The local row IDs changed. Explicit selections for two real variants yielded 8,393 and 1,087 triangles respectively. Each GLB was byte-identical across the two index builds. Both embedded images in each GLB matched the selected DDS data after decoding.AI-assisted (Codex). Tested on Linux with CPU-only tools. The committed fixtures are synthetic. Only aggregate retail measurements are included above.
Pre-merge verification
The explicit model selection now uses the same index-wide output check as #5141. This also protects a model with a different hash outside the selected kit. The regression checks direct paths, symbolic links and hard links.
On upstream
3faac557, I merged #4187, #4763, #5089 (7f36e0b2), #5141 (e5ac2545) and this PR (71953110) in that order without conflicts. All 72 functional tests passed with NumPy, including the six parts-index tests. Of 20 repository checks, 19 passed. The remaining stdout check already fails on #4763 alone, and the dependency report includes the command to reproduce it. Both real colorway GLBs were byte-identical to their previous exports. Linux, CPython 3.12.14, NumPy 2.3.5.