Skip to content

fix(build, Windows): full build.py now finds asset_processor.exe and finishes - #212

Merged
999sian merged 1 commit into
999sian:masterfrom
Strikeborn:fix/windows-full-build
Oct 20, 2026
Merged

999sian merged 1 commit into
999sian:masterfrom
Strikeborn:fix/windows-full-build

Conversation

@Strikeborn

Copy link
Copy Markdown

Result: the full build stopped at asset extraction on Windows because xmake looked for tools/bin/asset_processor with no .exe and by a relative path it doesn't resolve there. It now points at asset_processor.exe by absolute path, so the build runs end to end (assets extracted, game compiled and staged). It also no longer crashes printing → when the output goes to a log or CI.

Files: xmake.lua, build.py

Cause

  1. Asset tool not found. The three asset tasks call os.execv("tools/bin/asset_processor", ...). On Windows the binary is asset_processor.exe, and xmake doesn't resolve the relative path against the project dir, so adding the suffix alone still fails. CI uses --slim, which skips these tasks.
  2. → crash. With stdout redirected, Python on Windows encodes with cp1252. USE_UNICODE_UI covers the glyphs, but not → inside messages.

Change

  • xmake.lua: path.join(os.projectdir(), "tools", "bin", "asset_processor" .. (is_host("windows") and ".exe" or "")). Same file elsewhere, now absolute.
  • build.py: reconfigure(errors="replace") on stdout/stderr, so unencodable characters print as ?.

Tested

  • Windows 10, MinGW-w64 GCC 16.2, xmake 3.1.1, USA ROM: python build.py --usa > log.txt runs extract → stage. --slim unchanged. Smoke run reaches Entering AgbMain....
  • Linux (Ubuntu 26.04, GCC 15, xmake 3.0.7): full build.py --usa runs extract → stage. Not tested on macOS.
  • Play-tested from the start of the game to the Picori Festival in Hyrule Town (early game only).

Developed with assistance from Claude Code (Opus 5.5). I reviewed and tested the changes as described above.

…finishes

The asset tasks exec'd tools/bin/asset_processor without .exe and by a relative path xmake doesn't resolve on Windows; use an absolute path with the .exe suffix. build.py no longer raises UnicodeEncodeError when stdout is redirected (cp1252).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants