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>
Brings the D3D12 runtime branch (d3d12/, its launcher scripts and notes, and the pull requests reviewed and applied
on it) together with mandy's main.
Conflicts (67 files, none under d3d12/): docs/, make_game.py, runtime/, scripts/build_runtime.ps1, tests/ and
tools/. Every one takes main's side: main is where that code is maintained, and this branch's copies were older
states of the same files or the same pull requests in another form. tests/test_fspx_unpack.py is main's too, as it
tests main's tools/fspx_unpack.py. Nothing under d3d12/ is changed by the merge.
Checked before pushing: python -m compileall over make_game.py, tools and tests; make_game.py --help;
scripts/check_no_game_data.py over the files this adds to main; tests/test_text_write_line_endings.py. The
translator suite, the C++ runtime build and CI have not run on the result.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Three unreadable-directory tests compared the plain path against the
captured stderr, but the tools print str(exc), whose .filename is rendered
with repr(): quoted, backslashes doubled. On Windows each file failed that
one assertion; on Linux the path never contains backslashes so they passed.
The assertions now compare repr(blocked), the exact rendering under test.
The finding is GTAVIB4GTAVI's (coordination issue #14, 23:34:10Z).
AI-assisted.
Any other unlistable folder is left to the scan, which stops on it with exit 1,
so the result no longer depends on whether the report already exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When --out names an existing file, main() walks every source and mount
folder to make sure the report would not overwrite an input. That
os.walk had no onerror, so a sub-folder it could not list was skipped
and the check passed without having looked inside it: a report file in
that folder could be overwritten.
This is a safety check, so a folder it cannot list is an error: the
walk's onerror calls ap.error, which names the folder and exits 2
before anything is written, like the other "--out would overwrite ..."
refusals. The discovery walk in mount_documents() is left to #4176,
which already makes it fail on an unlistable folder.
The test forces os.scandir to raise PermissionError for one sub-folder
(chmod cannot lock a folder on Windows) and checks the exit code, the
folder in the message and that the existing report is untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before the previous commit, bink_index wrote a nested source as "movies\x.bk2" on Windows, and
load_pins keys pins on the exact (source, offset), so a pins CSV or an index CSV/JSON made that way
would no longer match the "/" sources. load_pins and load_streams now turn "\" into "/" in the source
they read. Pointed out by JRamos1993 in the review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Do not classify contradicted name-stream pairs (unary < 0) or pairs only
adjacent to a contradicted sibling as "anchored" or "bracketed" in classify().
- Include _4k in FAMILY_TAIL so 4k clip names match their family siblings.
- Reject empty or whitespace/pipe-only pin rows in load_pins(), normalize backslashes
and $(common)/movies/ prefixes, and reject negative offsets.
- Reject booleans, floats, negative offsets, and non-positive stream sizes,
dimensions, or frame counts in _int() and load_streams().
- Add synthetic regression tests and negative controls in tests/test_bink_names.py.
AI-assisted with Argon (Antigravity).
The RPF9 TOC is encrypted, but each pack's CDataFileMgr__ContentChangeSetDef
mount list names its videos, and the archive stores them in the list's
lowercase-path order. bink_names.py aligns the sorted list with the streams
from bink_index.py (a monotone DP that may skip list entries held by other
packs), scores header facts (resolution hints, portrait snapmatic, family
siblings sharing a shape), and labels each row verified / anchored /
bracketed / positional. Mount lists are read from an archive or an
rpf9_carve.py directory through gamedata_index, so a list split over two
zlib streams stays whole.
On 1.0.2.1 it names all 797 streams in movies.rpf, story000.rpf,
story000_restofworld.rpf and core_restofworld.rpf. Tests are synthetic.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>