Skip to content

CLI: recommend a DXIL validator in translate --help - #1995

Open
AlanQiang0418 wants to merge 1 commit into
Marvisak:mainfrom
AlanQiang0418:codex/document-translate-validator
Open

AlanQiang0418 wants to merge 1 commit into
Marvisak:mainfrom
AlanQiang0418:codex/document-translate-validator

Conversation

@AlanQiang0418

Copy link
Copy Markdown
Contributor

Addresses the third request in #1945. The existing help names the override but leaves the reader to choose a DLL. victory translate --help now points to bin\x64\dxil.dll from a Microsoft DXC v1.8.2502 or newer release and explains why an older SDK validator may reject shaders with repeated semantic names. The short help still lists the override and SDK fallback.

The DXC v1.8.2502 release notes document the PSV0 string and semantic-index table ordering fix. #1974 tracks the separate runtime version report and warning.

Verified on Windows by running both victory translate --help and victory translate -h. A translate --validate smoke test loaded the x64 DLL selected by VICTORY_DXIL; the input contained no shaders. cargo clippy --locked --offline -p victory --all-targets -- -D warnings passed.

@DesertGamer

Copy link
Copy Markdown

VIctory V2: community PRs, merged and tested

Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.

Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).

⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.

Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2

Unofficial community fork of Marvisak/VIctory, GPL-3.0.

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review only: apps/CLI are Windows-only paths — nothing compiles or runs on macOS; source review of the diff.

CLI: recommend a DXIL validator in translate --help — UX hint; overlaps with #1974/#2002 on the same help text.

Copy link
Copy Markdown
Owner

Automated triage for the maintainers.

Merge candidate.

Help-text only change in apps/victory/src/main.rs (Command::Translate, --validate): the long help now recommends pointing VICTORY_DXIL at a DXC 1.8.2502+ bin\x64\dxil.dll and says why older SDK validators can reject shaders with repeated semantic names. This matches the lookup in emit/validator.rs::default_path() (newest Windows SDK copy otherwise) and the third request in #1945; no behaviour changes.

#2002 makes the same help change, but states that --validate already prints the DLL version and warns since #1974, which is not in main yet; this PR's wording is accurate for main as it stands. Recommending a look, not approving.

CI: passing (check).


Generated by Claude Code

@cloph-dsp

Copy link
Copy Markdown

Independent local validation (Windows, Rust 1.100.0/MSVC, head d83bee0, no game data): cargo test --locked -p victory --bins -> 10 tests passed, exit 0. cargo run --locked -q -p victory -- translate --help on this PR prints the expanded DXC-validator hint ('Check emitted DXIL with the validator from VICTORY_DXIL or the newest Windows SDK. Set VICTORY_DXIL to the full path to bin\x64\dxil.dll from Microsoft DXC v1.8.2502 or newer. Older SDK validators can reject shaders with repeated semantic names.'); main 940d32f prints only the short --validate ... VICTORY_DXIL ... newest Windows SDK's option text, so the new text is confirmed to come from this PR. Help-text change only; no runtime DXIL validation exercised. AI-assisted (Hy4 flash). GPU/driver: N/A (docs/CLI text). No game data, assets or extracted content used.

github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 25, 2026
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 26, 2026
@fiestorra

Copy link
Copy Markdown
Contributor

A wording suggestion for this line, measured in #1974: "older SDK validators" could read "validators before 1.8, including standalone DXC builds". The PSV0 failure this warns about reproduces with DXC 1.7 and 1.6 on their own, not only with the copy the SDK ships, and a reader who installed a standalone DXC earlier than 1.8 gets the wrong verdicts from a path that is not the SDK's.

Nothing else from me: this is the text I would have kept over #2002, which I have closed.

Written with an AI assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants