Repository navigation
fix: remove Veilweaver from player-facing asset text #394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
The intro companion line and the debrief title card now use in-world wording. The gate and a dialogue test fail if that name returns in dialogue, quests, voices, npc lines, or cinematics. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| #!/usr/bin/env bash | ||
| # Fail when player-facing asset text says "Veilweaver". | ||
| # Scanned: dialogue, quests, echoes, voices, npc lines, and cinematic | ||
| # cards (including the title-card notes in the .ron files). | ||
| # Cell tags and editor metadata under assets/cells are not player text. | ||
| set -euo pipefail | ||
|
|
||
| root=$(cd "$(dirname "$0")/../.." && pwd) | ||
| cd "$root" | ||
|
|
||
| mapfile -t files < <( | ||
| find \ | ||
| assets/dialogue_intro.toml \ | ||
| assets/quests_main.toml \ | ||
| assets/echoes.toml \ | ||
| assets/voices.toml \ | ||
|
Comment on lines
+12
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the demos are run, this check is green while players still see the retired name: AGENTS.md reference: AGENTS.md:L2-L2 Useful? React with 👍 / 👎. |
||
| assets/npc \ | ||
| assets/cinematics \ | ||
| -type f \( -name '*.toml' -o -name '*.ron' -o -name '*.txt' \) | sort | ||
| ) | ||
|
|
||
| fail=0 | ||
| for file in "${files[@]}"; do | ||
| if grep -In -E -i 'veilweaver' "$file"; then | ||
| fail=1 | ||
| fi | ||
| done | ||
|
Comment on lines
+11
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This gate exits 0 when it never saw the files. The Capture |
||
|
|
||
| if [ "$fail" -ne 0 ]; then | ||
| echo "Player-facing assets must not say Veilweaver. Use in-world wording (the Loom, threads, Aravath)." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Player-facing assets do not say Veilweaver (${#files[@]} files)." | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A missing asset tree makes this test pass.
!dir.is_dir()continues, and!path.is_file()continues, so the hit list stays empty and the assertion holds.CARGO_MANIFEST_DIR/../assetsis correct for this workspace layout. It is the wrong layout, or a renamed file, that goes green.read_diris one directory level, and line 267 keeps every file.scripts/ci/player_facing_names.shis recursive and keeps only*.toml,*.ron, and*.txt. Both see the same 10 files today becauseassets/npcandassets/cinematicsare flat. A nested.ronfails only the shell. A.jsonunderassets/cinematicsfails only this test, and only on a run that actually buildsastraweave-dialogue(an asset-only diff does not).Panic when a required path is missing. Recurse with the same extension filter as the shell, or have one of the two checks call the other.