mirror of
https://github.com/Dasemu/faust-vn.git
synced 2026-11-26 07:16:20 +00:00
2.9 KiB
2.9 KiB
Lessons
Recurring problems and what worked. Read before starting; add an entry when a mistake repeats.
- The sandbox masks
.git/config(and.git/config.lock); git commands that write config (git remote add) must run outside the sandbox. ~/.cache/uvis read-only inside the sandbox: exportUV_CACHE_DIR=$TMPDIR/uv-cachebefore anyuvcommand.- The sandbox mounts char-device placeholders (
.claude/,.mcp.json, dotfiles) in the working dir; they are gitignored, nevergit addthem. renpy lintpassing does not mean the game runs: the main menu crashed on missing GUI images. Always run the end-to-end playthrough (vnpipe renpy --with-test+renpy.sh test, see docs/running.md) and, ideally, click through the web build.- Ren'Py SDK commands write to
~/.renpy: prefix them withHOME=$TMPDIR/renpy-homeinside the sandbox.web_buildleavesvn/progressive_download.txt(gitignored). - ChatGPT image MCP: reference-image variants sometimes come back byte-identical to the base; compare sha256 against the base before approving. Sprites drift to full-body unless the prompt says "cropped just below the knees".
- Small-model annotators label whole speeches with one emotion and lose stage presence
across chunks; fix with
work.tomloverrides (pinned cast, emotion ranges), not by hand-editing annotated.json. - The pipeline lives in
../vnpipe: a pipeline bug is fixed there (and tested with its fixtures), thenuv run vnpipe renpyis re-run here;vn/must not change unless intended. - Visual QA: verse boxes must hold 4 lines plus 5-6 for long prose speeches; check wrapped
line counts with PIL against
gui.dialogue_widthbefore touching the textbox. The headlessscreenshotstatement compares against an existing file instead of overwriting it. - ChatGPT image MCP:
reference_imagesfrequently makes it echo the reference unchanged (the raw bytes differ butvnpipe assets checkreports identical pixels). Do not retry with references; generate variants WITHOUTreference_images, reusing the neutral sprite's full character description and swapping only the "Expression and pose" sentence. Identity stays close enough (same costume/face); pollquery_tasksonly after ~90 s (a call returns the full result in about 1 minute). - CI commits a VERSION bump to
developmentafter every push, so a later push is rejected:git fetchand mergeorigin/developmentbefore pushing again. - GitHub remote is
Dasemu/faust-vn(vnpipe:Dasemu/vnpipe). TheghOAuth token lacks theworkflowscope, so HTTPS pushes touching.github/workflowsare rejected: push over SSH (git push git@github.com:Dasemu/<repo>.git <branch>) or rungh auth refresh -s workflow. - Accents in the checkout path (
Darío) break the Android Gradle build (local.propertiesis Latin-1, the keystore is "not found"). Build the APK from an ASCII-path copy ofvn/.