Commit Graph

21 Commits

Author SHA1 Message Date
a8dd0cc33c skin_streams: ask report_paths for the report-path guard 2026-12-01 19:44:43 -05:00
00131bb85e main keeps its own runtime, tools and tests; the branch's variants stay on port/d3d12-nvidia
After the merge the tree held this branch's older states of files main maintains. Run against main's code,
tests/test_acphal_abi.py and 11 of the 15 translator tests that differed failed, and the C++ runtime would have
been built from two generations of its sources. So that the merge cannot break what main builds and tests:

- runtime/ is main's, file for file (68 files only this branch had are not carried over);
- every file under tools/, tests/ and docs/ that both sides have is main's (80 files);
- ten translator tests only this branch has, which test rules main's translator does not have, and their
  fixtures are left out.

What main gains: d3d12/ (the Rust D3D12 runtime), its launchers and helpers (Launcher.bat, scripts/play*.ps1,
play-linux.sh, port_ctl.py, smooth-motion.ps1, fetch_vkd3d_proton.py, sync_victory.py), mods/example_lua, eleven
notes under docs/, seven tools and the tests that pass with main's code, the README's sections and credits, and
the "Runtime traps" section of AGENTS.md. Everything left out here is on the branch port/d3d12-nvidia.

Checked: compileall; make_game.py --help; check_no_game_data.py over every file this adds to main; the
line-ending, docs-encoding, CI-registration and docs tests; each test file that differs from main, on its own.
Not run: the whole translator suite, the C++ build, cargo over d3d12/ after the merge (d3d12/ is byte for byte the
branch's), CI.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 17:58:38 -05:00
63c9b3af8a PR #1434: skin_streams: ask report_paths for the report-path guard (SKIN-STREAMS-SHARED-REPORT-PATH)
From https://github.com/ProjectLeonida/mandy/pull/1434 (head 97b1ac40b0), applied as a reviewed patch.

Co-authored-by: Dashhhhhhhh <Dashhhhhhhh@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 15:48:43 -05:00
b761be436a Merge pull request #2836 from sds-228 2026-11-22 16:59:51 -05:00
d721e851f1 skin_streams: validate the dictionary first-child pointer 2026-11-22 23:48:18 +03:00
ed1b429be3 Merge pull request #3184 from Tayar 2026-11-22 15:15:31 -05:00
faae5576ea Merge pull request #3060 from Leo Leahy 2026-11-22 15:14:27 -05:00
1383aaffda Report unreadable skin and Bink index inputs 2026-11-22 16:37:59 -03:00
e41dd4f6ba skin_streams: bounds-check vertex-buffer pointers and track true weight-sum min/max 2026-11-22 16:15:13 -03:00
68a05b6e3d Merge pull request #2610 from sds-228 2026-11-22 13:16:32 -05:00
70ab2b9234 Merge pull request #2379 from sds-228 2026-11-22 13:14:25 -05:00
39f0cd70a7 skin_streams: require the dictionary page pointer at +8 2026-11-22 20:37:19 +03:00
918e825648 skin_streams: recognize fragments with null optional header pointers (BUILD-173) 2026-11-22 19:47:42 +03:00
4dd254ab61 fix(tools): validate weighted 16-bit joint indices at full width
The weighted validator read bytes even for layouts declaring 16-bit indices, letting out-of-range joints escape the census. Interpret wide rows as little-endian joint values and apply the existing weight mask.
2026-11-22 17:24:51 +01:00
ec9b6cf22b tools: text reports are written with LF line ends on every platform (BUILD-468)
open(path, "w") without newline= turns each \n into \r\n on Windows, so the same JSON report, manifest or assembly
listing was CRLF there and LF elsewhere. 91 text-mode writes (open, os.fdopen, Path.write_text) under tools/, scripts/,
make_game.py and runtime/test/shaders/ now pass newline="\n". tests/test_text_write_line_endings.py reads the source
with ast and fails for a writer that forgets it; CONTRIBUTING.md names the convention.

AI-assisted (Claude), on behalf of dev-ewann.
2026-11-22 14:20:30 +00:00
4f10f298aa Merge pull request #1444 from Lucy 2026-11-22 06:38:05 -05:00
bfb2c0a102 Merge pull request #1431 from pushkarreddyy 2026-11-22 06:38:02 -05:00
87386a0e2d skin_streams: an empty archive is zero resources, not an mmap traceback
scan_archive mapped every input with mmap, which raises ValueError on a
zero-byte file, so 'skin_streams.py empty.rpf' ended in a traceback. An empty
file now returns the zero tallies. The new test fails on the previous code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:30:02 +00:00
f698bf2206 tools: a path outside the console's code page no longer crashes a tool's output
On Windows a redirected stdout uses the console's ANSI code page, and python -I ignores PYTHONUTF8 and
PYTHONIOENCODING, so a caller path with a character outside that code page ended a run with
UnicodeEncodeError as soon as a tool printed it. #1406 fixed make_game.py; every CLI tool in tools/ now starts
its __main__ block the same way (stdout errors="replace").

tests/test_tool_stdout_encoding.py checks every tool's __main__ block and reruns two measured crashes
(analyze_4240_full.py, meshlet_page.py) with a private-use-named input. Found by @abilliontokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:27:00 +00:00
45cb8f6b05 skin_streams: refuse report paths that overwrite input archives 2026-11-22 16:48:36 +05:30
e23e2da05a skin_streams: measure the vertex joint-index and skin-weight layouts (ASSET-12)
tools/skin_streams.py carves drawable resources out of an RPF9 archive without the
TOC, walks drawable -> LOD -> grmModel -> geometry -> FVF, classifies the skin
slots (16/17 weights, 20/21 indices) and validates the decoded bytes against each
model's bone count. docs/character_skeleton.md gets the measured layout table and
the corrected skin section. Synthetic tests in tests/test_skin_streams.py.
2026-11-22 02:26:56 -08:00