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

@@ -1,14 +1,14 @@
"""
Atlas Legends sprite generator - talks directly to a local ComfyUI server.
ComfyGen sprite generator - talks directly to a local ComfyUI server.
Usage:
python generate.py generate every prompt in prompts_life.py
python generate.py generate every prompt in the project's PROMPTS_MODULE
python generate.py <name> generate just one prompt by name
python generate.py --list-models list installed checkpoints
Setup:
- Pick a checkpoint and workflow in config.py.
- Add prompts to PROMPTS in prompts_life.py (name, positive_prompt) tuples.
- Add prompts to PROMPTS in the project's prompts module (name, positive_prompt) tuples.
- Drop additional workflow templates into workflows/ - see README.md for
the {{PLACEHOLDER}} convention they need to follow.
@@ -32,7 +32,7 @@ import urllib.parse
import _bootstrap # Projektordner (config.py, Listen) vor allen anderen Modulen
import config
prompts = importlib.import_module(getattr(config, "PROMPTS_MODULE", "prompts_life"))
prompts = importlib.import_module(getattr(config, "PROMPTS_MODULE", "prompts"))
def load_workflow_template():
@@ -150,7 +150,7 @@ if __name__ == "__main__":
everything = list(prompts.PROMPTS) + list(getattr(prompts, "BACKDROPS", []))
todo = [p for p in everything if (p[0] == arg if arg else p in prompts.PROMPTS)]
if not todo:
print(f"No prompt named '{arg}' in prompts_life.py" if arg else "prompts_life.py has no PROMPTS entries.")
print(f"No prompt named '{arg}' in {prompts.__name__}.py" if arg else f"{prompts.__name__}.py has no PROMPTS entries.")
sys.exit(1)
for entry in todo: