Docs: show a direct launch for captures and scripted input #22

Open
Yoshi-233 wants to merge 1 commit from upstream-pr/22 into main
Yoshi-233 commented 2026-11-25 04:11:27 +00:00 (Migrated from github.com)
First-time contributor

Imported from Zettrox/ztrx. Originally posted by Yoshi-233 on 2026-11-25T03:27:57Z.


Fixes #19. The normal play launcher clears four capture/input environment variables before it calls the executable, including when the caller supplies -Exe. The README now shows how to build the diagnostics profile, request frames 60 and 120, optionally script input, and launch the binary directly. It also explains how to use the same cache and save directories as the normal launcher.

I exercised the PowerShell launch lines on native Ubuntu with PowerShell 7.7.0 and a stand-in executable that recorded its environment and arguments. The direct example passed the capture directory and frame list through, and preserved the game path with spaces as one argument. The optional key sequence reached the child when uncommented. Passing the same executable to the unmodified play.ps1 cleared all four documented variables. The cache/data paths matched in both cases when set explicitly.

I checked the profile and feature names against the Cargo manifests. The staged asset-policy check passed. Windows rendering and PNG output were outside this documentation test.

<!-- greyfinch-sync:Zettrox/ztrx:issue:6596511883 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/22). Originally posted by [Yoshi-233](https://github.com/Yoshi-233) on 2026-11-25T03:27:57Z. --- Fixes #19. The normal play launcher clears four capture/input environment variables before it calls the executable, including when the caller supplies `-Exe`. The README now shows how to build the diagnostics profile, request frames 60 and 120, optionally script input, and launch the binary directly. It also explains how to use the same cache and save directories as the normal launcher. I exercised the PowerShell launch lines on native Ubuntu with PowerShell 7.7.0 and a stand-in executable that recorded its environment and arguments. The direct example passed the capture directory and frame list through, and preserved the game path with spaces as one argument. The optional key sequence reached the child when uncommented. Passing the same executable to the unmodified `play.ps1` cleared all four documented variables. The cache/data paths matched in both cases when set explicitly. I checked the profile and feature names against the Cargo manifests. The staged asset-policy check passed. Windows rendering and PNG output were outside this documentation test.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/22:upstream-pr/22'
git switch 'upstream-pr/22'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/22'
git switch 'upstream-pr/22'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/22'
git switch 'upstream-pr/22'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/22'
git switch 'main'
git merge --squash 'upstream-pr/22'
git switch 'main'
git merge --ff-only 'upstream-pr/22'
git switch 'main'
git merge 'upstream-pr/22'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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!22
No description provided.