Take over the tools of the other projects

AquaNova, AquaNovaAndroid, Atlas Legends, TinyWold and XP-Battleship now
use ComfyGen instead of their own copies. Added from them, with paths
taken from the project's config: generate_mesh (Hunyuan3D), mesh_prep,
trim, largest, uncut, level. generate.py defaults to the "prompts"
module; generate_audio and level honour AUDIO_SUBDIR (Atlas Legends
keeps its tracks in output/music).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-02 09:56:45 +02:00
parent e3d21e55c9
commit 9b35c3a7cc
9 changed files with 784 additions and 12 deletions

View File

@@ -13,11 +13,21 @@ das aktuelle Verzeichnis oder `--project <ordner>` (siehe `_bootstrap.py`).
| `generate_audio.py` / `adopt_audio.py` | Musik, Effekte | Stable Audio 3 | `AUDIO_MODULE` |
| `generate_voice.py` | Erzählstimme mit Whisper-Prüfung | Chatterbox (+ Kokoro-Referenzen) | `VOICE_MODULE`, `LANG_DIR`, `CARDS_FILE` |
| `make_voice_refs.py` | Referenzstimmen in `voice_refs/` | Kokoro | – |
| `generate_mesh.py` | 3D-Modell (GLB, nur Form) aus einem Bild | Hunyuan3D v2 | – |
| `mesh_prep.py` | Mesh vereinfachen und einfärben (Low-Poly) | trimesh | – |
| `cutout.py <name> --holes` | Ausschnitt per Flood-Fill, auch eingeschlossene Löcher | – | – |
| `trim.py` / `largest.py` / `uncut.py` | Ränder abschneiden, Splitter entfernen, Ausschnitt reparieren | – | – |
| `level.py <name> [peak]` | Lautstärke eines Clips angleichen | ffmpeg | `AUDIO_SUBDIR` |
Benötigte Pfade in der Projekt-`config.py`: `OUTPUT_DIR`, `ASSETS_DIR`, für Stimmen `LANG_DIR`, `CARDS_FILE`.
Projekt-`config.py`:
- immer `OUTPUT_DIR`
- `PROMPTS_MODULE` (Standard `prompts`), `AUDIO_MODULE`, optional `AUDIO_SUBDIR` (Standard `audio`)
- für `adopt*` / Portraits / Vintage `ASSETS_DIR`, für Stimmen `LANG_DIR` und `CARDS_FILE`
Jedes Projekt hat einen Starter `gen.cmd` (Vorlage: ein beliebiges Projekt kopieren), z. B. `gen generate <name>`.
Stimmen laufen in der gemeinsamen Umgebung `.venv-tts` (torch 2.6 für Chatterbox, ~6 GB, nicht in git).
Neu anlegen: `py -3.12 -m venv .venv-tts`, dann torch 2.6 cu124, `chatterbox-tts`, `faster-whisper`, `kokoro`.
Projekte, die schon umgestellt sind: YourlifeisGame. Ältere Projekte (AquaNova, TinyWold, …) haben noch
eigene Kopien in ihrem `sprite-generator` und können einzeln umziehen.
Genutzt von: YourlifeisGame (`Spritegenerator\`), AquaNova, AquaNovaAndroid, Atlas Legends,
TinyWold, XP-Battleship (je `sprite-generator\`).