[GH #19] Docs: show how to launch diagnostics without clearing capture variables #19

Open
opened 2026-11-25 04:11:27 +00:00 by Bennet0k · 0 comments
Bennet0k commented 2026-11-25 04:11:27 +00:00 (Migrated from github.com)

Imported from Zettrox/ztrx. Originally posted by Bennet0k on 2026-11-25T03:19:21Z.


The README lists VICTORY_CAPTURE, VICTORY_CAPTURE_FRAMES, and VICTORY_KEYS under Debugging switches. The launch example uses scripts/play.ps1, which clears these variables before starting the executable. Passing the diagnostics executable with -Exe still clears them.

Please document a direct launch for captures and scripted input. For example, from the repository root:

cargo build --profile diag -p victory --features diagnostics
$env:VICTORY_CAPTURE = "$env:TEMP\ztrx-captures"
$env:VICTORY_CAPTURE_FRAMES = '60,120'
& .\target\diag\victory.exe run '<path to executable>' --execute

Set VICTORY_CACHE_DIR and VICTORY_DATA_DIR to your -Cache and -Data paths if you want to use the same cache and saves as the launcher.

Checked against the README, the launcher, and the Cargo profile at 90b529f. The example was verified against the source; it was not run on Windows.

<!-- greyfinch-sync:Zettrox/ztrx:issue:6596413355 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/19). Originally posted by [Bennet0k](https://github.com/Bennet0k) on 2026-11-25T03:19:21Z. --- The README lists `VICTORY_CAPTURE`, `VICTORY_CAPTURE_FRAMES`, and `VICTORY_KEYS` under Debugging switches. The launch example uses `scripts/play.ps1`, which clears these variables before starting the executable. Passing the diagnostics executable with `-Exe` still clears them. Please document a direct launch for captures and scripted input. For example, from the repository root: ```powershell cargo build --profile diag -p victory --features diagnostics $env:VICTORY_CAPTURE = "$env:TEMP\ztrx-captures" $env:VICTORY_CAPTURE_FRAMES = '60,120' & .\target\diag\victory.exe run '<path to executable>' --execute ``` Set `VICTORY_CACHE_DIR` and `VICTORY_DATA_DIR` to your `-Cache` and `-Data` paths if you want to use the same cache and saves as the launcher. Checked against [the README](https://github.com/Zettrox/ztrx/blob/90b529f878a470fec9bf07b7be316bc769a12232/README.md#L51-L59), [the launcher](https://github.com/Zettrox/ztrx/blob/90b529f878a470fec9bf07b7be316bc769a12232/scripts/play.ps1#L8-L14), and the Cargo profile at `90b529f`. The example was verified against the source; it was not run on Windows.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Zettrox/ztrx#19
No description provided.