Commit Graph

40 Commits

Author SHA1 Message Date
c7ad7ef90b Merge pull request #451 from EdenBendheim/ubiq/ttpf-zero-byte-dds-resume
Repair zero-byte DDS files on TTPF export resume
2026-11-29 19:27:26 +01:00
031bab29f8 Repair zero-byte DDS files on TTPF resume
Require a non-empty file before the manifest or exporter considers a DDS complete. Rebuild empty outputs through the atomic writer and cover skipped rows and surviving siblings with synthetic tests.
2026-11-24 00:38:33 -05:00
cb09db363a make_game: honor --jobs when verifying package hashes 2026-11-24 13:09:13 +08: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
2ee08d7dbf Round 44 test clashes: make_game's runtime gets work= (argparse), a bare {} index is translated again (dry run), and the exported-asset credit tests use #3974's 370 GiB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:27:52 -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
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
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
813e63318d Merge pull request #3328 from bobcatchris 2026-11-22 17:01:25 -05:00
9f5d0f7c66 Merge pull request #3209 from Jadiac 2026-11-22 15:15:43 -05:00
aba1a53022 Merge pull request #2920 from kapitche 2026-11-22 15:13:11 -05:00
969fc633b4 Merge pull request #2194 from Matheus Gomes 2026-11-22 15:10:19 -05:00
b616525c28 Pipelines: refuse an empty or unreadable translated shader index 2026-11-22 14:07:47 -06:00
adf687993d Merge upstream main into the Windows pipeline checker fix
Keep the pipeline crash-recovery code and the upstream translated-shader preflight while resolving the checker path once per selected runtime build.
2026-11-22 16:27:33 -03:00
aee179fdaa make_game: export models and textures again when the decoder changed (BUILD-866)
The assets stage skipped rpf9dump models|textures whenever a manifest.json existed, so a work folder kept the
old decoder's output after the rpf9-explorer pin or tools/rpf9dump changed. A digest of both is now written
beside each manifest; a folder with another digest or without the record is removed and exported again, as the
shaders stage does for the translator.
2026-11-22 20:27:01 +01:00
725bb6009b test_make_game_dry_run: stub the vk_pipeline_check usage probe
checker_supports() launches the checker. The test's dummy is a text file named
vk_pipeline_check.exe, and CreateProcess on it makes native Windows show a modal
"Unsupported 16-Bit Application" dialog that blocks the run. Stub the probe and
fail the test if anything launches the dummy.
2026-11-22 13:44:00 -05:00
0ddeddc611 Merge pull request #2585 from Marco Luzzaro 2026-11-22 13:16:21 -05:00
bf6c37182f BUILD-667: validate completed disassembly inventory
Keep the expected output set through interrupted repairs and preserve valid listings.
2026-11-22 18:30:56 +01:00
c97e961387 Merge pull request #2111 from Thatters 2026-11-22 11:41:53 -05:00
0c45e9a569 Pipelines stage: use the new checker options only when the build has them; the checker rejects unknown options
Review of #2111 (@matheuskshn): a vk_pipeline_check built before this PR takes any argument it doesn't know as the
cache path. Run with --inflight-file F, it would write the Vulkan pipeline cache into F and exit 0; make_game.py would
then delete F and report success, with no pipeline_cache.bin. That happens with a reused runtime build or a supplied
Windows build (#2194).

- make_game.py asks the checker first: run without arguments it prints its usage before touching Vulkan, and only a
  build that lists --inflight-file and --skip-file gets them and the crash retry. An older build runs exactly as before
  (one call, a crash stops the stage), with a log line saying to rebuild the runtime stage for crash recovery.
- vk_pipeline_check: an unknown --option or a second positional argument is now a usage error (exit 2) instead of
  silently becoming the cache path, so the next new option can't be swallowed the same way.

Tested on Windows 11 Pro 25H2, MSVC 14.51 + Ninja, RTX 5070 Ti / 621.24:
- checker_supports: True for this build, False for a 6a6704df build (before this PR).
- the new checker: --no-such-option and a second cache path exit 2 with a message.
- make_game.pipelines on 62 real compute modules: with this build and a simulated crash, the module is skipped and
  the other 61 checked, as before; with the 6a6704df build, one call without the new flags, exit 0, and the cache in
  pipeline_cache.bin (6.7 MB), nothing written to pipeline_inflight.txt.
- tests/test_make_game_pipelines.py: 11 tests, 2 new (an older checker gets the old invocation and isn't retried;
  support is read from the usage line). All 14 test_make_game*.py files pass.
No game data. AI-assisted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:25:07 -05:00
a00b5f3fc5 build: reuse the supplied Windows Vulkan pipeline checker
Resolve the optional checker beside the supplied Windows runtime files before looking in the local build, and use the same choice during preflight and the pipeline stage. Preserve native Linux checker selection.

AI-assisted.
2026-11-22 13:14:02 -03:00
05686f15a4 Pipelines stage: a module that takes vk_pipeline_check down is skipped and the rest is still checked
Since dcd8ecf the two #881/#884 giants pass spirv-val and are back in the corpus. On NVIDIA the larger one runs the
driver's compiler out of memory (LLVM ERROR: out of memory, exit 0x80000003), vk_pipeline_check dies with it, and the
pipelines stage stops: on @VeTkN's RTX 5070 (#884, c603b8f) about 5,750 pipelines after it were never checked or
cached, and make_game.py exited 1.

vk_pipeline_check:
- --inflight-file F keeps the names of the modules being compiled in F. It is rewritten when a module over
  --large-module-bytes starts or finishes (those compile alone, #903, so F then names exactly that module), by the 5 s
  watchdog for the others, and emptied at the end of the pass.
- --skip-file F: modules named in F are not compiled; each is reported as `MODULE CRASH <name> (<stage>, killed the
  driver in an earlier run; not retried)` and counted as a failed pipeline, as --isolate does on POSIX. --isolate
  passes it on to its children. A missing F is a usage error (exit 2).

make_game.py, pipelines stage:
- runs the checker with --inflight-file. When it exits other than 0, 1 or 2 (a crash, not Ctrl+C), the modules in
  the in-flight file are added to pipeline_crashes.txt and the checker runs again with --skip-file; what was already
  compiled comes back from pipeline_cache.bin (checkpointed every 10 minutes). If several modules were compiling, each
  is tried alone (--start/--count in the checker's name-sorted index) and only those that crash alone are skipped.
- a crash no module can be named for is not retried, nor is Ctrl+C, and there are at most 5 restarts.
- the stage still fails when anything failed, now after checking everything else, and names the modules that took
  the driver down. pipeline_crashes.txt is cleared at the start of each pipelines stage, so a module gets a fresh
  chance after a translator change.
- run() takes check=False and returns the exit code.

The --isolate child-process mode stays POSIX-only; with a multi-GB pipeline cache per child it is too heavy for the
default path. A memory cap for the checker on Windows, so the OOM doesn't take other programs down, is a follow-up.

Tested on Windows 11 Pro 25H2, MSVC 14.51 + Ninja, RTX 5070 Ti / 621.24:
- tests/test_make_game_pipelines.py: 6 new cases (a named crasher is skipped and the rest checked; several in flight
  are tried alone and only the crasher is skipped; no suspect or Ctrl+C is not retried; the retry limit; a clean run is
  one call and an old skip list is dropped). All 14 test_make_game*.py files pass.
- end to end on 62 real compute modules from my own copy's work folder (2 over 4 MiB), through make_game.pipelines:
  with VK_PIPELINE_CHECK_SIMULATE_CRASH on one large module, the first run died (exit 3), the in-flight file named
  that module, the second run checked the other 61 (all ok) and saved the cache, and the stage failed naming it.
  Without the hook: one call, 62/62, exit 0. The in-flight file is empty after a clean pass.
No game data. AI-assisted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:58:37 -05:00
c7408a1f7e Keep stale shader files out of resumed builds
Select each stage's inputs from its producer index and refresh downstream
stages when a saved cache contains obsolete shader names.
2026-11-22 23:35:45 +08:00
8bcf5bb3e2 Merge pull request #1140 from wish131400 2026-11-22 03:14:12 -05:00
23fe0a0c3a Complete BCPack DDS entries during the normal assets export 2026-11-22 16:04:49 +08:00
e6373238dc Refresh shader disassembly when llvm-mc changes
Record the llvm-mc command and version after successful disassembly. If either changes, refresh disassembly and SPIR-V translation while reusing the extracted shader inputs.

AI-assisted with Codex. Covered by synthetic LLVM version-change and interrupted-resume tests on Windows and WSL.
2026-11-22 07:39:12 +01:00
ed784a2300 Report incomplete texture pool exports and retry missing DDS files 2026-11-21 21:10:28 -07:00
77aae6f0bb Refresh completed shaders when translation sources change 2026-11-21 19:27:36 -07:00
cf4553121f Merge pull request #656 from Rayhan Robin 2026-11-21 21:08:35 -05:00
8f2b13876b Merge pull request #641 from Proudnoob4 2026-11-21 20:39:03 -05:00
42ce66c245 BUILD: preflight reports a missing vk_pipeline_check before shaders start 2026-11-21 19:35:51 -06:00
8686b6989b make_game.py: --jobs reaches vk_pipeline_check in the pipelines stage
pipelines() ran vk_pipeline_check without --jobs, so --stages pipelines --jobs N always compiled on half the hardware threads. main() now passes its --jobs; the default (half the CPU count) matches the checker's own, so a run without --jobs is unchanged.
2026-11-21 20:26:58 -05:00
00ddff632e Merge pull request #560 from VictorJulianiR 2026-11-21 20:09:22 -05:00
42c9c9a127 Merge pull request #550 from bbareth 2026-11-21 20:09:19 -05:00
d2174a1561 Refresh the incremental rpf9dump build before pending exports 2026-11-21 21:45:05 -03:00
7aea5c5e34 tests: the dry-run runtime-stage preflight test runs off Windows too
test_skip_assets_preflight_bypasses_dotnet_sdk_and_submodule_checks asks
preflight for shaders, runtime and pipelines. runtime is Windows-only,
so on Linux and macOS preflight exits 1 at its first check, before the
dotnet and submodule checks the test is about. The test now empties
WINDOWS_ONLY for its duration, so it checks the same thing everywhere;
on Windows nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:42:41 +01:00
ee97b843be tests: dry-run preflight test leaves out the Windows-only runtime stage (fails on Linux otherwise)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 19:39:32 -05:00
91b36cf86c tests: follow this round's merges (#433's Python 3.12 floor in the dry-run tests, #488's 8-word dump, #421's global offset test, reworded test-program error)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 19:19:57 -05:00
075d425332 test(tools): add unit tests for make_game dry run and stage isolation 2026-11-22 01:04:31 +01:00