Commit Graph

390 Commits

Author SHA1 Message Date
d2c2ab778f make_game: a translated index that cannot be removed fails the stage with its message, not a traceback (#6740)
Squash-merged after diff review of PR #6740 - make_game: a translated index that cannot be removed fails the stage with its message, not a traceback
2026-11-23 09:59:27 -06:00
9bffab5f84 make_game: at a drive-root --game, take the game folder's top-level names from the manifest (BUILD-2367) (#6798)
Squash-merged after diff review of PR #6798 - make_game: at a drive-root --game, take the game folder's top-level names from the manifest (BUILD-2367)
2026-11-23 09:57:03 -06:00
1470c76cb0 --pick opens the desktop's own folder dialog on Linux (#3375)
Squash-merged after diff review of PR #3375
2026-11-23 09:53:16 -06:00
fcc0eb7705 make_game: a broken bcpack calibration profile is one ERROR line, not a JSON traceback (EGEN-TTPF-CALIB-PROFILE-BADJSON) (#6827)
Squash-merged after diff review of PR #6827 - make_game: a broken bcpack calibration profile is one ERROR line, not a JSON traceback (EGEN-TTPF-CALIB-PROFILE-BADJSON)
2026-11-23 09:51:40 -06:00
d215ec8b7c make_game: reject an empty FSPX translation index as a finished cache (#6846)
Squash-merged after diff review of PR #6846 - make_game: treat an empty FSPX translation index as unfinished
2026-11-23 09:50:02 -06:00
14e9f4eb72 tools: retry os.replace on transient Windows sharing errors in the shaders stage (#2721)
Squash-merged after diff review of PR #2721
2026-11-23 09:35:47 -06:00
c646bf8367 Speed up make_game by overlapping stages and showing progress. (#1797)
Squash-merged after diff review of PR #1797
2026-11-23 09:32:22 -06:00
28440e630d make_game: find a copy in a folder on a udisks-mounted drive on Linux (#6345)
Squash-merged after review of PR #6345 - make_game: find a copy in a folder on a udisks-mounted drive on Linux
2026-11-23 08:15:35 -06:00
b7e81bc555 Linux: launch the installed game with its shader catalog and overlay (#5477)
Squash-merged after review of PR #5477 - Linux: launch the installed game with its shader catalog and overlay
2026-11-23 08:09:33 -06:00
46153f4b44 tests: rename the CFG suite to test_wave64_emulate_opt_cfg.py (pytest refused two test_wave64_emulate_opt modules); make_game's discovery_roots docstring is raw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:28:18 -05:00
a1e44345ff Merge pull request #4661 from bobcatchris
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:16:56 -05:00
f277fb3ae8 Merge pull request #4582 from abilliontokens
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:16:08 -05:00
29f4d4d93c Merge pull request #4400 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:14:22 -05:00
a33cf4cf3f Merge pull request #4333 from ligmaSec
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:13:40 -05:00
5bad061c20 Merge pull request #4320 from whattheflop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:13:32 -05:00
c9ae6a1ee4 Merge pull request #4173 from francisco parata
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:12:01 -05:00
3784a3a6e2 Merge pull request #3974 from tedin7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/i18n/es/quickstart.md
#	docs/i18n/pl-PL/quickstart.md
2026-11-22 23:10:05 -05:00
d4ea397d8d Merge pull request #3930 from Maraco91
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:38 -05:00
da3556f634 Merge pull request #3623 from erickbobd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:01 -05:00
aa6d7d9ab1 make_game: find a copy under the usual mount points, not just /mnt and /media
macOS mounts drives and mount_smbfs shares under /Volumes, and Fedora and openSUSE put removable media in
/run/media, so a package on an external disk or on another machine's share never showed up in discovery and had
to be passed to --game. Both roots are now searched, the list moves into discovery_roots() so each platform's
answer is testable, and the --game help says that a share path goes there because it can't be listed.

AI-assisted.
2026-11-22 21:50:52 -06:00
618c0f31f4 make_game: narrow the empty-index guard to what a merge actually publishes
Main's suites model two neighbouring cases differently: an FSPX build that translates no programs is a
finished step, and the resume fixtures save an unreadable stand-in index. Keep the `{}` that --merge
publishes when it produced nothing (drop it, and translate again next run) and the pipeline preflight
that refuses an empty or unreadable index; drop the wider "0 programs" and "unreadable saved index"
premises, which broke tests/test_fspx_shaders_stage.py and tests/test_shader_stage_resume.py.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-22 21:49:01 -06:00
be8570ace1 Merge remote-tracking branch 'origin/main' into triage-r43
# Conflicts:
#	docs/runtime_imports.md
#	runtime/CMakeLists.txt
#	runtime/shims/xgameruntime.cpp
#	runtime/test/xmem_test.cpp
#	tools/rdna2spirv.py
2026-11-22 22:12:50 -05:00
33905dc9dd Fix what the round-43 merges broke (pytest)
Merges that each passed alone but clash together:
- v_cmp_class_f64: the earlier cmp_class_f64 (685d16ed9) (operand-form checks, test_cmp_class_f64) and the later f64 branch
  in cmp_class both handled the opcode; f64 goes to cmp_class_f64 again, f16 stays in cmp_class.
- rdna2spirv CLI tests: spirv-as/spirv-val now run in the output folder with the staging file's bare name, so
  the test doubles resolve it against cwd; assemble_spirv decodes the output only when it is bytes. (The doubles
  had been writing .spirv-*.tmp files into the repository root.)
- ps_w64 fixtures (TEST-722): an 18th fixture (ps_w64_a_discard) landed; its killed lanes export nothing and
  keep the clear value.
- first_light: a run without an OBJ removes mesh.bin, and harness_env reads manifest["files"]; batch_glb's stats
  name failures and dropped textures; run_gpu_tests reports a frame never written as a missing readback
  (TEST-837).
- make_game TRANSLATION_SOURCES and runtime.yml's paths include spirv_opt.py and report_paths.py (and
  wave64_emulate_opt.py), which the translator imports.
Repo rules: stdout guard on six tools; encoding on two opens (gen_gdk_runtime_classes' helper is read_utf8);
newline on one write; anim_skeleton_match's joaat encodes like hashdict.joaat; test_feature_scan's new test is
listed with the others its globals() runner reaches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:07:41 -05:00
118e393307 make_game: refuse a translation index that lost carved shaders
rdna2spirv.py drops a shader that is refused or whose module fails
spirv-val and still exits 0, so a full run can carve 26,503 shaders and
finish done with an index of 26,473 (measured end to end at aa2988cc,
--wave64-emulate, 6 jobs): a port built from it silently lacks the rest.
The shaders stage now compares the merged index with the carve and fails
naming the gap, the way the disassembly step already refuses an
incomplete listing set. An empty index stays #3328's, a missing one
stays with the merge and translate failures that own it.
2026-11-22 18:46:18 -08:00
fd7494e134 make_game: no model/texture credit until the decoder checkout is ready (BUILD-1228)
A git checkout without third_party/rpf9-explorer/Core computes the same no-pin digest a source zip legitimately
holds, so records written from that digest matched in preflight; ensure_submodule() then fetches Core, the digest
changes, and assets() deletes those folders. submodule_ready() is now the predicate ensure_submodule() itself uses (a
non-empty Core), and assets_bytes_on_disk() credits no model or texture folder, and hashes nothing, while it is
false. A source zip with a non-empty Core is ready and unaffected (it has no git pin either way).

Tests: matching records with Core missing credit nothing and never hash; submodule_ready needs a non-empty Core;
the cache test now uses a cached stand-in that would match the records, so it fails when the credit calls the cached
decoder_digest(). Each test fails with its guard removed.

Tested: python -I tests/test_make_game_*.py (preflight 87 tests) on CPython 3.12.13, Windows. AI-assisted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 11:55:27 +10:00
f84683af2d make_game: the preflight credit never caches the decoder digest (BUILD-1228)
preflight credits the exports before ensure_submodule() fetches third_party/rpf9-explorer, and decoder_digest() is
cached: a digest made from a missing checkout (no git pin yet) would be the one assets() compares afterwards, so
every folder would look stale and be exported again. The digest is now computed by compute_decoder_digest();
decoder_digest() is its cached wrapper that assets() uses, and assets_bytes_on_disk() calls the uncached one, only
when a folder has a decoder.sha256 (so the free-space fast path and a work folder without exports hash nothing). A
digest that cannot be computed (OSError) credits nothing; an unreadable or mismatching record already credits none.

Tests: the cache stays empty after the credit; an unhashable decoder credits nothing and preflight still answers; no
hashing with room to spare or without exports. The mixed 179/180 tests are unchanged.

Tested: python -I tests/test_make_game_*.py (preflight 85 tests) on CPython 3.12.13, Windows. AI-assisted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 11:53:00 +10:00
38ff0f7d6c make_game: preflight credits what a resume keeps, not what it rewrites (BUILD-1228)
Review of #4320: dropping the whole-tree walk removed the credit for a stopped model/texture step that rpf9dump
resumes. assets() keeps a folder only when its decoder.sha256 matches the current decoder (else it deletes the folder
and exports again), and rpf9dump skips every output that already exists; Util.WriteAtomic leaves only complete files
under their final names and deletes a leftover *.partial. assets_bytes_on_disk now credits a model or texture folder,
finished or not, exactly when its fingerprint matches, once, without *.partial files. A folder with another or no
fingerprint is credited nothing, which also stops crediting a finished step that assets() would delete. Pools, audio
and the other steps are unchanged: only finished output counts, the conservative choice.

Mixed resume (96 GiB finished models + 54 GiB unfinished textures): 180 GiB is accepted, 179 refused (234 before).
Tests: the mixed 179/180 case, a mismatching fingerprint on the unfinished and on the finished step, and --wav;
sizes come from a faked os.scandir, nothing large is written.

Tested: python -I tests/test_make_game_*.py on CPython 3.12.13, Windows. AI-assisted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 11:51:09 +10:00
214054a339 Require an executable pipeline checker on POSIX 2026-11-23 01:13:54 +00:00
a6f6f054c5 Load the packaged shader directory on Wine and Windows 2026-11-23 00:53:11 +00:00
0d17b7011d make_game: preflight credits finished asset output once when a build resumes
#4279 added a whole-tree credit (tree_bytes) next to the finished-step credit from d49b8e78 (assets_bytes_on_disk),
so output of finished steps lowered the estimate twice: 150 GB finished with 60 GB free passed although 180 GB is
needed. The finished-step credit already covers a stopped export and deliberately leaves out steps without a
manifest or marker, which the rerun writes again, and it only walks the folder when space is short. Drop tree_bytes
and its branch; the complete-assets (xma.done), shaders-reuse and --wav paths are unchanged.

Tests: the two #4279 tests that mocked or exercised tree_bytes are replaced by one that fails before this change.

Tested: python -I tests/test_make_game_preflight.py (78 tests) on CPython 3.12.13, Windows. AI-assisted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 10:48:27 +10:00
53914e777b make_game: count assets already exported when a stopped build resumes
The preflight asked for all 300 GB of the assets stage free unless xma.done said the exports were finished, so a
build stopped part-way through the assets (279 GB written, 280 GB free) refused to resume. tree_bytes() sums what
is already under <work>/assets and the preflight subtracts it. Two tests: the subtraction and tree_bytes itself.

Tested: python3 -I tests/test_make_game_preflight.py (67 tests); a real resume on Fedora 43 that had been refused.
AI-assisted.
2026-11-23 00:27:54 +00:00
12ada29a3c make_game: export texture pools again when the decoder changed
BUILD-866 gave the model and texture exports a decoder.sha256 record.
The texture-pool loop still took any complete pool manifest.json as
done, although rpf9dump ttpf decodes with the same rpf9-explorer Core
and keeps the DDS files it finds. After a submodule or tools/rpf9dump
change, assets/ttpf/** and assets/ttpf_pack/** kept the old decoder's
output.

Each pool folder now gets the same record, written before its export.
A folder with another record, or without one, is removed and exported
again, as the model and texture folders are.
2026-11-22 20:45:45 -03:00
d196778e75 docs: say the disk figures are GiB, as the preflight and Windows Explorer count them (PROC-196 review) 2026-11-22 23:58:41 +01:00
b96d8309d8 docs: assets stage needs about 370 GB (400 GB full build), update README, quickstarts and preflight (PROC-196) 2026-11-22 23:44:54 +01:00
b763d04d2b make_game: start Windows PowerShell by its full path for the runtime stage
The runtime stage ran scripts/build_runtime.ps1 through the bare name
"powershell". CreateProcess searches System32 but not
System32\WindowsPowerShell\v1.0, so on a PC whose PATH no longer lists
that folder the stage ended in a FileNotFoundError traceback, after the
shader and asset stages had already run.

windows_powershell() returns the file under %SystemRoot%, and the bare
name where the file is not at its usual place.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 23:32:11 +01:00
fba8c6b609 Merge pull request #3733 from Hanioe2 2026-11-22 17:03:32 -05:00
69989945e6 Merge pull request #3656 from kotorvr 2026-11-22 17:03:13 -05:00
795c28d52e Merge pull request #3623 from erickbobd 2026-11-22 17:03:04 -05:00
e8fc21d301 Merge pull request #3484 from bobcatchris 2026-11-22 17:02:13 -05:00
3e7ca4a211 Merge pull request #3371 from CaravelaLabs 2026-11-22 17:01:43 -05:00
813e63318d Merge pull request #3328 from bobcatchris 2026-11-22 17:01:25 -05:00
0194d79fbe Merge pull request #3209 from Jadiac 2026-11-22 17:00:57 -05:00
3c7358cdec Merge pull request #3168 from Hanioe2 2026-11-22 17:00:48 -05:00
b27f24045e build: stop on inconclusive pipeline crash probes (BUILD-1030) 2026-11-22 18:57:37 -03:00
d324cbcc87 build: check drive-root paths across Windows volumes 2026-11-23 05:24:49 +08:00
30e676038b build: stop pipeline batches on native setup failures (BUILD-1030) 2026-11-22 18:24:03 -03:00
037e165bb2 Revert "Merge pull request #3006 from p3n1cillin"
This reverts commit 2657f443e2, reversing
changes made to 16572f2c03.
2026-11-22 16:14:22 -05:00
a82f81478a make_game: a GPU probe that can't tell keeps the automatic fallback flags of a finished translation
main() turns --f16-interp-fallback and --pc-tail-ubo on when
vk_subgroup_info.py says the runtime's GPU needs them. When the probe could
not tell (any error, or its 60 s timeout) the flags were simply absent, so
shaders() saw a changed flag set, logged "the fallback flags are now none
...: translating again" and translated the whole corpus without them; the
next run that could ask translated it a third time.

When the probe can't tell, a flag the existing translation was made with
now stays on, and the log says so. A probe that answers still decides, a
folder translated without the flag gets none from a failed probe, and the
flags the user passes are compared as before. wave64 `auto` already keeps
its mode for the same reason.

The main() wiring tests now build into an empty --out instead of the
user's default folder, since main() reads the recorded flags.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 21:08:22 +00:00
e4617613e7 build: bound pipeline checks and recover collective crashes (BUILD-1030) 2026-11-22 18:07:48 -03:00
0fb1a07b1f BUILD-881: finish pipeline checks before initializing assets 2026-11-23 04:59:03 +08:00