From f6fd807e9a6d51ac71f64d54da3cb634cfe69f2e Mon Sep 17 00:00:00 2001 From: Ratdoku Builder Date: Wed, 2 Dec 2026 10:33:33 -0600 Subject: [PATCH] v0.3.0-alpha: thirty rooms and unique guests 30 verified rooms with a unique guest head token per room, plus the level generator and tests. --- CHANGELOG.md | 8 + README.md | 117 +- data/levels.json | 3322 ++++++++++++++++++++---------- export_presets.cfg | 6 +- project.godot | 2 +- scripts/Board.gd | 5 - tools/build_android.ps1 | 25 + tools/generate_levels.gd | 359 ++++ tools/generate_levels.gd.uid | 1 + tools/screenshot.gd | 84 + tools/screenshot.gd.uid | 1 + tools/smoke_test.gd | 165 ++ tools/smoke_test.gd.uid | 1 + tools/ui_test.gd | 85 + tools/ui_test.gd.uid | 1 + tools/workflows/krea2_guest.json | 1 + 16 files changed, 3051 insertions(+), 1132 deletions(-) create mode 100644 tools/build_android.ps1 create mode 100644 tools/generate_levels.gd create mode 100644 tools/generate_levels.gd.uid create mode 100644 tools/screenshot.gd create mode 100644 tools/screenshot.gd.uid create mode 100644 tools/smoke_test.gd create mode 100644 tools/smoke_test.gd.uid create mode 100644 tools/ui_test.gd create mode 100644 tools/ui_test.gd.uid create mode 100644 tools/workflows/krea2_guest.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 6984428..c35a65f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable alpha milestones for Ratdoku. +## v0.3.0-alpha — Thirty Rooms & Unique Guests + +- 30 verified 8×8 rooms: 20 guest rooms plus 10 bonus rooms. +- Unique guest head token per room on the board, deterministic per level. +- Rooms 21–30 reuse the 25-guest cast on the board without unlocking new Guest Book entries. +- Android debug APK rebuilt at version `0.3.0` (version code 3). +- Includes the level generator and smoke/UI tests under `tools/`. + ## v0.2.0-alpha — Guest Book & House Rules - 20 verified 8×8 rooms and the 25-guest cast. diff --git a/README.md b/README.md index e8eb8bc..7879812 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ -# Ratdoku — v0.2.0-alpha "Guest Book & House Rules" +# Ratdoku A cozy rat-hotel logic puzzle. Every guest gets a room, a floor, a corridor, and a little space from the neighbours. -This alpha has **20 rooms**, 25 guests, the Guest Book, Settings, and House Rules. Every rat on the board still uses the shared Crumb head token; per-room guest tokens arrived in v0.3. - ## Run it 1. Install **Godot 4.7 or newer** (standard edition, not .NET). @@ -15,17 +13,24 @@ The project uses a portrait 720×1280 canvas, scaled to a 540×960 desktop windo ## How to play - **Tap / left-click** a cell to mark it with an X. Tap an X or a guest to clear it. -- **Press and hold** (mobile) or **right-click** (PC) to check a guest in. +- **Press and hold** (mobile) or **right-click** (PC) to check a guest in. Hold or right-click a guest to check them out. +- A gold ring fills while you hold; at the hold threshold (default 0.35 s) the guest is placed. - **Undo**, **Restart**, and **Hint** are at the bottom. - A **gold ring** around a guest means they are already checked in and cannot be moved. - Win when every room, floor, and corridor has exactly one rat and no two rats touch — even diagonally. - **No guessing is required.** Every room has exactly one solution. +## Each room has its own guest + +Every level assigns **eight distinct guests** to its eight coloured rooms. The guest is the same across the whole room, so a blue room is always one specific rat, the yellow room another, and so on. The assignment is deterministic per level, and a level never repeats a guest across two rooms. + +The board uses circular **head tokens** from `art/guests/heads/`. Crumb remains the host and appears on Home and in the win overlay. + ## Screens - **Home** — Crumb, Check in, Guest Book, House Rules, Settings. -- **Game** — board, timer, undo/restart/hint, win overlay with the newly unlocked guest. -- **The Guest Book** — 25 guests: five residents unlocked from the start, the other 20 unlocked one per room. Locked cards show a faint portrait under `???` and their room number. +- **Game** — board, timer, undo/restart/hint, win overlay. +- **The Guest Book** — 25 guests: five residents unlocked from the start, the other 20 unlocked one per room. Locked cards show a very faint portrait under `???` and their room number. - **Settings** — region patterns, timer, reduce motion, hold-time slider, reset progress. - **House Rules** — four illustrated rules, controls, tips, FAQ, and an interactive 5×5 practice board. @@ -33,12 +38,13 @@ The project uses a portrait 720×1280 canvas, scaled to a 540×960 desktop windo - **Residents** (available from the start): Miso, Hilde, Pip, Nana Fig, Biscuit. - **Room guests**: Pepper (Room 1) through Marmalade (Room 20). +- **Rooms 21–30** are bonus rooms. They use the same guest cast on the board but do not unlock a new Guest Book entry. - Completing a room unlocks its guest and adds a “New guest” card to the win overlay. - Crumb is the host and has a pinned card; she is not one of the 25. ## Levels -`data/levels.json` contains **20 verified 8×8 puzzles**. Every board is generated from a legal solution, split into eight connected rooms, and checked for a single solution. Each starts with three gold-ringed guests. +`data/levels.json` contains **30 verified 8×8 puzzles**: 20 guest rooms plus 10 bonus rooms. Every board is generated from a legal solution, split into eight connected rooms, and checked for a single solution. Each starts with three gold-ringed guests. ## Project layout @@ -55,7 +61,7 @@ scripts/ Main.gd navigation/back stack Home.gd home screen Game.gd level flow, timer, unlock flow, win overlay - Board.gd drawing, input, undo, hints, settings + Board.gd drawing, input, undo, hints, per-room guests, settings Rules.gd pure win/conflict rules Levels.gd JSON level loader Guests.gd guest manifest loader @@ -69,25 +75,112 @@ scripts/ RatPortrait.gd fallback vector mascot art/ crumb.png full mascot - crumb_head.png circular head token + crumb_head.png circular head token used on Home/win guests/ cards/.png 512 detail portraits thumbs/.png 256 gallery thumbnails heads/.png 256 circular board tokens + source/ 1024 originals, raw renders, contact sheets (ignored by Godot/export) data/ - levels.json 20 verified 8×8 puzzles + levels.json 30 verified 8×8 puzzles guests.json 25 guest entries tutorial.json 5×5 practice puzzle +tools/ + generate_levels.gd headless 8×8 generator (appends new rooms) + smoke_test.gd rules/board smoke test + ui_test.gd settings/gallery/unlock/tutorial test + screenshot.gd dev screenshots + build_android.ps1 Android export helper + workflows/ Krea2 guest-generation variants +export_presets.cfg Android debug preset +build/Ratdoku-v0.3.0-alpha.apk installable debug APK ``` ## Save data `user://ratdoku_save.json` stores completed rooms, unlocked guests, `last_room`, and settings. “Reset progress” clears rooms and unlocks but keeps settings. +## Regenerate levels + +```powershell +& "C:\Program Files (x86)\Steam\steamapps\common\Godot Engine\godot.windows.opt.tools.64.exe" ` + --headless --path . --script res://tools/generate_levels.gd +``` + +The generator appends until `data/levels.json` contains 30 rooms. It keeps the existing pack and only creates the missing rooms. + +## Guest art + +The 25 guest portraits were generated from the `Krea2_Turbo_Uncensored` ComfyUI workflow with a shared chibi/gouache prompt and per-character props. The final prompt variants are in `tools/workflows/final_guests/`. + +Runtime assets: + +- `art/guests/heads/.png` — board tokens +- `art/guests/cards/.png` — detail portraits +- `art/guests/thumbs/.png` — gallery thumbnails + +Source 1024 renders and contact sheets live in `art/guests/source/` and are excluded from the Android export. + ## Android APK -`build/Ratdoku-v0.2.0-alpha.apk` is a debug-signed, arm64-v8a build: +The current APK is: + +``` +build/Ratdoku-v0.3.0-alpha.apk +``` + +It is a **debug-signed, arm64-v8a** APK: - Package: `com.ratdoku.game` -- Version: `0.2.0` (version code 2) +- Version: `0.3.0` (version code 3) +- Min SDK: 24 (Android 7.0) +- Target SDK: 36 +- Size: about 41 MB - Portrait orientation + +To install, copy the APK to the phone, open it, and allow “Install unknown apps” for the file manager/browser. Or with a USB-connected phone and USB debugging: + +```powershell +& "E:\AndroidTools\sdk\platform-tools\adb.exe" install -r "build\Ratdoku-v0.3.0-alpha.apk" +``` + +### Toolchain + +The local Android build uses: + +- JDK: `E:\AndroidTools\jdk-17.0.21.1+2` +- Android SDK: `E:\AndroidTools\sdk` +- Build tools: `35.0.0` +- Godot editor settings: `export/android/android_sdk_path`, `java_sdk_path`, debug keystore. + +Rebuild with: + +```powershell +.\tools\build_android.ps1 +``` + +If you want a Play Store build, switch `gradle_build/export_format` to AAB, use a release keystore, and set `package/signed` appropriately. The current APK is for direct testing, not store upload. + +## Tests + +```powershell +& "C:\Program Files (x86)\Steam\steamapps\common\Godot Engine\godot.windows.opt.tools.64.exe" ` + --headless --path . --script res://tools/smoke_test.gd +``` + +```powershell +& "C:\Program Files (x86)\Steam\steamapps\common\Godot Engine\godot.windows.opt.tools.64.exe" ` + --headless --path . --script res://tools/ui_test.gd +``` + +`ui_test.gd` checks settings propagation, room-1 → Pepper unlock, gallery progress, and the interactive 5×5 tutorial. Both tests reset the save when they finish. + +## Current scope + +- 30 verified 8×8 rooms (20 guest rooms + 10 bonus) +- Unique guest per room per level +- Interactive 5×5 tutorial +- 25 guest portraits + Crumb +- Settings, gallery, rulebook, unlock flow +- Installable Android debug APK +- No audio yet, no daily puzzle, no release keystore/AAB yet diff --git a/data/levels.json b/data/levels.json index c9a0502..f4ede96 100644 --- a/data/levels.json +++ b/data/levels.json @@ -1,4 +1,2204 @@ [ + { + "clues": [ + [ + 2.0, + 7.0 + ], + [ + 3.0, + 2.0 + ], + [ + 7.0, + 3.0 + ] + ], + "id": "room-01", + "n": 8.0, + "regions": [ + [ + 4.0, + 1.0, + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0 + ], + [ + 4.0, + 1.0, + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0 + ], + [ + 4.0, + 4.0, + 1.0, + 3.0, + 3.0, + 2.0, + 2.0, + 2.0 + ], + [ + 4.0, + 4.0, + 3.0, + 3.0, + 3.0, + 2.0, + 2.0, + 2.0 + ], + [ + 4.0, + 4.0, + 3.0, + 7.0, + 5.0, + 5.0, + 5.0, + 2.0 + ], + [ + 4.0, + 6.0, + 3.0, + 7.0, + 7.0, + 5.0, + 2.0, + 2.0 + ], + [ + 6.0, + 6.0, + 7.0, + 7.0, + 7.0, + 5.0, + 5.0, + 5.0 + ], + [ + 6.0, + 6.0, + 6.0, + 7.0, + 7.0, + 5.0, + 5.0, + 5.0 + ] + ], + "solution": [ + 6.0, + 4.0, + 7.0, + 2.0, + 0.0, + 5.0, + 1.0, + 3.0 + ] + }, + { + "clues": [ + [ + 1.0, + 3.0 + ], + [ + 2.0, + 1.0 + ], + [ + 4.0, + 7.0 + ] + ], + "id": "room-02", + "n": 8.0, + "regions": [ + [ + 0.0, + 0.0, + 0.0, + 1.0, + 1.0, + 1.0, + 1.0, + 1.0 + ], + [ + 2.0, + 2.0, + 0.0, + 1.0, + 1.0, + 3.0, + 4.0, + 4.0 + ], + [ + 2.0, + 2.0, + 0.0, + 1.0, + 1.0, + 3.0, + 4.0, + 4.0 + ], + [ + 2.0, + 2.0, + 2.0, + 1.0, + 3.0, + 3.0, + 4.0, + 4.0 + ], + [ + 2.0, + 5.0, + 5.0, + 5.0, + 3.0, + 3.0, + 4.0, + 4.0 + ], + [ + 2.0, + 5.0, + 5.0, + 5.0, + 3.0, + 3.0, + 7.0, + 4.0 + ], + [ + 5.0, + 5.0, + 6.0, + 6.0, + 6.0, + 7.0, + 7.0, + 4.0 + ], + [ + 6.0, + 6.0, + 6.0, + 6.0, + 7.0, + 7.0, + 7.0, + 7.0 + ] + ], + "solution": [ + 0.0, + 3.0, + 1.0, + 5.0, + 7.0, + 2.0, + 4.0, + 6.0 + ] + }, + { + "clues": [ + [ + 0.0, + 4.0 + ], + [ + 2.0, + 5.0 + ], + [ + 7.0, + 2.0 + ] + ], + "id": "room-03", + "n": 8.0, + "regions": [ + [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 1.0, + 1.0 + ], + [ + 0.0, + 0.0, + 3.0, + 0.0, + 0.0, + 2.0, + 2.0, + 1.0 + ], + [ + 4.0, + 4.0, + 3.0, + 0.0, + 3.0, + 2.0, + 2.0, + 1.0 + ], + [ + 4.0, + 4.0, + 3.0, + 3.0, + 3.0, + 2.0, + 1.0, + 1.0 + ], + [ + 4.0, + 4.0, + 4.0, + 4.0, + 3.0, + 2.0, + 2.0, + 1.0 + ], + [ + 6.0, + 6.0, + 4.0, + 3.0, + 3.0, + 5.0, + 5.0, + 5.0 + ], + [ + 6.0, + 7.0, + 7.0, + 7.0, + 5.0, + 5.0, + 5.0, + 5.0 + ], + [ + 6.0, + 7.0, + 7.0, + 7.0, + 7.0, + 7.0, + 5.0, + 5.0 + ] + ], + "solution": [ + 4.0, + 7.0, + 5.0, + 3.0, + 1.0, + 6.0, + 0.0, + 2.0 + ] + }, + { + "clues": [ + [ + 0.0, + 2.0 + ], + [ + 2.0, + 0.0 + ], + [ + 5.0, + 3.0 + ] + ], + "id": "room-04", + "n": 8.0, + "regions": [ + [ + 2.0, + 0.0, + 0.0, + 0.0, + 1.0, + 1.0, + 1.0, + 3.0 + ], + [ + 2.0, + 2.0, + 0.0, + 0.0, + 1.0, + 1.0, + 1.0, + 3.0 + ], + [ + 2.0, + 2.0, + 2.0, + 0.0, + 0.0, + 0.0, + 1.0, + 3.0 + ], + [ + 2.0, + 4.0, + 2.0, + 0.0, + 5.0, + 5.0, + 1.0, + 3.0 + ], + [ + 4.0, + 4.0, + 4.0, + 5.0, + 5.0, + 5.0, + 1.0, + 3.0 + ], + [ + 4.0, + 4.0, + 5.0, + 5.0, + 5.0, + 6.0, + 3.0, + 3.0 + ], + [ + 4.0, + 4.0, + 7.0, + 7.0, + 7.0, + 6.0, + 6.0, + 6.0 + ], + [ + 7.0, + 7.0, + 7.0, + 7.0, + 7.0, + 6.0, + 6.0, + 6.0 + ] + ], + "solution": [ + 2.0, + 5.0, + 0.0, + 7.0, + 1.0, + 3.0, + 6.0, + 4.0 + ] + }, + { + "clues": [ + [ + 2.0, + 0.0 + ], + [ + 4.0, + 5.0 + ], + [ + 6.0, + 3.0 + ] + ], + "id": "room-05", + "n": 8.0, + "regions": [ + [ + 2.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0, + 0.0, + 3.0 + ], + [ + 2.0, + 1.0, + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 3.0 + ], + [ + 2.0, + 2.0, + 2.0, + 1.0, + 0.0, + 0.0, + 3.0, + 3.0 + ], + [ + 2.0, + 5.0, + 2.0, + 4.0, + 4.0, + 4.0, + 4.0, + 3.0 + ], + [ + 2.0, + 5.0, + 5.0, + 4.0, + 4.0, + 4.0, + 3.0, + 3.0 + ], + [ + 5.0, + 5.0, + 5.0, + 6.0, + 4.0, + 4.0, + 4.0, + 3.0 + ], + [ + 5.0, + 5.0, + 5.0, + 6.0, + 6.0, + 7.0, + 7.0, + 7.0 + ], + [ + 6.0, + 6.0, + 6.0, + 6.0, + 6.0, + 7.0, + 7.0, + 7.0 + ] + ], + "solution": [ + 4.0, + 2.0, + 0.0, + 7.0, + 5.0, + 1.0, + 3.0, + 6.0 + ] + }, + { + "clues": [ + [ + 1.0, + 1.0 + ], + [ + 2.0, + 7.0 + ], + [ + 3.0, + 5.0 + ] + ], + "id": "room-06", + "n": 8.0, + "regions": [ + [ + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2.0 + ], + [ + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2.0 + ], + [ + 1.0, + 1.0, + 7.0, + 4.0, + 0.0, + 3.0, + 3.0, + 2.0 + ], + [ + 5.0, + 7.0, + 7.0, + 4.0, + 4.0, + 3.0, + 3.0, + 2.0 + ], + [ + 5.0, + 7.0, + 4.0, + 4.0, + 4.0, + 3.0, + 3.0, + 2.0 + ], + [ + 5.0, + 7.0, + 4.0, + 4.0, + 6.0, + 3.0, + 2.0, + 2.0 + ], + [ + 5.0, + 7.0, + 6.0, + 6.0, + 6.0, + 6.0, + 2.0, + 2.0 + ], + [ + 5.0, + 7.0, + 7.0, + 6.0, + 6.0, + 6.0, + 6.0, + 2.0 + ] + ], + "solution": [ + 6.0, + 1.0, + 7.0, + 5.0, + 3.0, + 0.0, + 4.0, + 2.0 + ] + }, + { + "clues": [ + [ + 1.0, + 3.0 + ], + [ + 6.0, + 0.0 + ], + [ + 7.0, + 7.0 + ] + ], + "id": "room-07", + "n": 8.0, + "regions": [ + [ + 0.0, + 0.0, + 0.0, + 0.0, + 1.0, + 1.0, + 2.0, + 2.0 + ], + [ + 0.0, + 3.0, + 0.0, + 1.0, + 1.0, + 1.0, + 2.0, + 2.0 + ], + [ + 0.0, + 3.0, + 0.0, + 1.0, + 1.0, + 2.0, + 2.0, + 2.0 + ], + [ + 3.0, + 3.0, + 3.0, + 1.0, + 4.0, + 4.0, + 4.0, + 2.0 + ], + [ + 6.0, + 3.0, + 3.0, + 5.0, + 4.0, + 4.0, + 4.0, + 4.0 + ], + [ + 6.0, + 5.0, + 5.0, + 5.0, + 5.0, + 7.0, + 7.0, + 4.0 + ], + [ + 6.0, + 6.0, + 5.0, + 5.0, + 5.0, + 7.0, + 7.0, + 7.0 + ], + [ + 6.0, + 6.0, + 6.0, + 6.0, + 5.0, + 7.0, + 7.0, + 7.0 + ] + ], + "solution": [ + 1.0, + 3.0, + 5.0, + 2.0, + 6.0, + 4.0, + 0.0, + 7.0 + ] + }, + { + "clues": [ + [ + 1.0, + 5.0 + ], + [ + 2.0, + 0.0 + ], + [ + 7.0, + 3.0 + ] + ], + "id": "room-08", + "n": 8.0, + "regions": [ + [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 1.0, + 1.0, + 1.0 + ], + [ + 2.0, + 2.0, + 0.0, + 0.0, + 0.0, + 1.0, + 1.0, + 1.0 + ], + [ + 2.0, + 6.0, + 4.0, + 4.0, + 1.0, + 1.0, + 3.0, + 3.0 + ], + [ + 2.0, + 6.0, + 4.0, + 4.0, + 1.0, + 4.0, + 3.0, + 3.0 + ], + [ + 2.0, + 6.0, + 4.0, + 4.0, + 4.0, + 4.0, + 5.0, + 3.0 + ], + [ + 2.0, + 6.0, + 6.0, + 7.0, + 5.0, + 5.0, + 5.0, + 3.0 + ], + [ + 2.0, + 6.0, + 7.0, + 7.0, + 7.0, + 5.0, + 3.0, + 3.0 + ], + [ + 6.0, + 6.0, + 7.0, + 7.0, + 7.0, + 5.0, + 5.0, + 5.0 + ] + ], + "solution": [ + 2.0, + 5.0, + 0.0, + 7.0, + 4.0, + 6.0, + 1.0, + 3.0 + ] + }, + { + "clues": [ + [ + 2.0, + 6.0 + ], + [ + 4.0, + 2.0 + ], + [ + 6.0, + 3.0 + ] + ], + "id": "room-09", + "n": 8.0, + "regions": [ + [ + 3.0, + 3.0, + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0 + ], + [ + 3.0, + 3.0, + 1.0, + 1.0, + 1.0, + 1.0, + 0.0, + 0.0 + ], + [ + 3.0, + 3.0, + 4.0, + 1.0, + 2.0, + 2.0, + 2.0, + 0.0 + ], + [ + 3.0, + 4.0, + 4.0, + 2.0, + 2.0, + 4.0, + 2.0, + 0.0 + ], + [ + 3.0, + 4.0, + 4.0, + 4.0, + 4.0, + 4.0, + 2.0, + 5.0 + ], + [ + 7.0, + 7.0, + 7.0, + 6.0, + 6.0, + 5.0, + 5.0, + 5.0 + ], + [ + 7.0, + 7.0, + 6.0, + 6.0, + 6.0, + 5.0, + 5.0, + 5.0 + ], + [ + 7.0, + 7.0, + 6.0, + 6.0, + 6.0, + 5.0, + 5.0, + 5.0 + ] + ], + "solution": [ + 7.0, + 4.0, + 6.0, + 0.0, + 2.0, + 5.0, + 3.0, + 1.0 + ] + }, + { + "clues": [ + [ + 1.0, + 7.0 + ], + [ + 3.0, + 0.0 + ], + [ + 7.0, + 2.0 + ] + ], + "id": "room-10", + "n": 8.0, + "regions": [ + [ + 0.0, + 0.0, + 0.0, + 0.0, + 1.0, + 1.0, + 1.0, + 1.0 + ], + [ + 0.0, + 0.0, + 0.0, + 4.0, + 4.0, + 1.0, + 1.0, + 1.0 + ], + [ + 3.0, + 0.0, + 4.0, + 4.0, + 2.0, + 2.0, + 2.0, + 1.0 + ], + [ + 3.0, + 3.0, + 4.0, + 4.0, + 2.0, + 2.0, + 2.0, + 1.0 + ], + [ + 3.0, + 3.0, + 3.0, + 4.0, + 4.0, + 2.0, + 2.0, + 5.0 + ], + [ + 3.0, + 7.0, + 6.0, + 6.0, + 6.0, + 5.0, + 5.0, + 5.0 + ], + [ + 7.0, + 7.0, + 7.0, + 6.0, + 6.0, + 5.0, + 5.0, + 5.0 + ], + [ + 7.0, + 7.0, + 7.0, + 7.0, + 6.0, + 6.0, + 6.0, + 5.0 + ] + ], + "solution": [ + 1.0, + 7.0, + 5.0, + 0.0, + 3.0, + 6.0, + 4.0, + 2.0 + ] + }, + { + "clues": [ + [ + 0.0, + 5.0 + ], + [ + 1.0, + 1.0 + ], + [ + 4.0, + 0.0 + ] + ], + "id": "room-11", + "n": 8.0, + "regions": [ + [ + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + [ + 1.0, + 1.0, + 3.0, + 3.0, + 2.0, + 0.0, + 0.0, + 0.0 + ], + [ + 1.0, + 1.0, + 3.0, + 2.0, + 2.0, + 0.0, + 0.0, + 5.0 + ], + [ + 4.0, + 3.0, + 3.0, + 3.0, + 2.0, + 2.0, + 5.0, + 5.0 + ], + [ + 4.0, + 4.0, + 4.0, + 3.0, + 2.0, + 2.0, + 5.0, + 5.0 + ], + [ + 4.0, + 4.0, + 6.0, + 6.0, + 6.0, + 7.0, + 5.0, + 5.0 + ], + [ + 4.0, + 4.0, + 6.0, + 6.0, + 6.0, + 7.0, + 7.0, + 5.0 + ], + [ + 4.0, + 4.0, + 6.0, + 6.0, + 7.0, + 7.0, + 7.0, + 5.0 + ] + ], + "solution": [ + 5.0, + 1.0, + 4.0, + 2.0, + 0.0, + 7.0, + 3.0, + 6.0 + ] + }, + { + "clues": [ + [ + 2.0, + 6.0 + ], + [ + 3.0, + 0.0 + ], + [ + 7.0, + 4.0 + ] + ], + "id": "room-12", + "n": 8.0, + "regions": [ + [ + 3.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + [ + 3.0, + 1.0, + 4.0, + 4.0, + 4.0, + 0.0, + 0.0, + 0.0 + ], + [ + 3.0, + 1.0, + 4.0, + 4.0, + 2.0, + 2.0, + 2.0, + 2.0 + ], + [ + 3.0, + 1.0, + 4.0, + 4.0, + 2.0, + 2.0, + 2.0, + 2.0 + ], + [ + 3.0, + 1.0, + 4.0, + 4.0, + 2.0, + 7.0, + 5.0, + 5.0 + ], + [ + 6.0, + 6.0, + 6.0, + 4.0, + 7.0, + 7.0, + 5.0, + 5.0 + ], + [ + 6.0, + 6.0, + 6.0, + 6.0, + 7.0, + 7.0, + 5.0, + 5.0 + ], + [ + 6.0, + 6.0, + 6.0, + 7.0, + 7.0, + 7.0, + 5.0, + 5.0 + ] + ], + "solution": [ + 5.0, + 1.0, + 6.0, + 0.0, + 3.0, + 7.0, + 2.0, + 4.0 + ] + }, + { + "clues": [ + [ + 1.0, + 5.0 + ], + [ + 4.0, + 7.0 + ], + [ + 7.0, + 2.0 + ] + ], + "id": "room-13", + "n": 8.0, + "regions": [ + [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 1.0 + ], + [ + 5.0, + 0.0, + 2.0, + 2.0, + 1.0, + 1.0, + 0.0, + 1.0 + ], + [ + 5.0, + 2.0, + 2.0, + 3.0, + 1.0, + 1.0, + 1.0, + 1.0 + ], + [ + 5.0, + 2.0, + 3.0, + 3.0, + 3.0, + 1.0, + 4.0, + 4.0 + ], + [ + 5.0, + 2.0, + 7.0, + 3.0, + 3.0, + 4.0, + 4.0, + 4.0 + ], + [ + 5.0, + 7.0, + 7.0, + 3.0, + 3.0, + 6.0, + 4.0, + 4.0 + ], + [ + 5.0, + 7.0, + 7.0, + 3.0, + 6.0, + 6.0, + 6.0, + 6.0 + ], + [ + 5.0, + 5.0, + 7.0, + 7.0, + 7.0, + 6.0, + 6.0, + 6.0 + ] + ], + "solution": [ + 3.0, + 5.0, + 1.0, + 4.0, + 7.0, + 0.0, + 6.0, + 2.0 + ] + }, + { + "clues": [ + [ + 0.0, + 2.0 + ], + [ + 2.0, + 0.0 + ], + [ + 6.0, + 6.0 + ] + ], + "id": "room-14", + "n": 8.0, + "regions": [ + [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 1.0 + ], + [ + 2.0, + 0.0, + 0.0, + 0.0, + 4.0, + 1.0, + 1.0, + 1.0 + ], + [ + 2.0, + 2.0, + 2.0, + 2.0, + 4.0, + 4.0, + 4.0, + 1.0 + ], + [ + 3.0, + 3.0, + 3.0, + 3.0, + 3.0, + 4.0, + 1.0, + 1.0 + ], + [ + 5.0, + 5.0, + 3.0, + 4.0, + 4.0, + 4.0, + 4.0, + 1.0 + ], + [ + 5.0, + 5.0, + 7.0, + 7.0, + 6.0, + 6.0, + 6.0, + 1.0 + ], + [ + 5.0, + 5.0, + 5.0, + 7.0, + 7.0, + 6.0, + 6.0, + 6.0 + ], + [ + 5.0, + 5.0, + 7.0, + 7.0, + 7.0, + 7.0, + 6.0, + 6.0 + ] + ], + "solution": [ + 2.0, + 7.0, + 0.0, + 3.0, + 5.0, + 1.0, + 6.0, + 4.0 + ] + }, + { + "clues": [ + [ + 2.0, + 7.0 + ], + [ + 4.0, + 3.0 + ], + [ + 6.0, + 1.0 + ] + ], + "id": "room-15", + "n": 8.0, + "regions": [ + [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2.0 + ], + [ + 3.0, + 0.0, + 3.0, + 1.0, + 1.0, + 1.0, + 1.0, + 2.0 + ], + [ + 3.0, + 0.0, + 3.0, + 1.0, + 1.0, + 1.0, + 2.0, + 2.0 + ], + [ + 3.0, + 3.0, + 3.0, + 4.0, + 5.0, + 5.0, + 2.0, + 2.0 + ], + [ + 3.0, + 3.0, + 4.0, + 4.0, + 5.0, + 5.0, + 2.0, + 7.0 + ], + [ + 6.0, + 6.0, + 6.0, + 4.0, + 4.0, + 5.0, + 2.0, + 7.0 + ], + [ + 6.0, + 6.0, + 6.0, + 4.0, + 7.0, + 5.0, + 5.0, + 7.0 + ], + [ + 6.0, + 6.0, + 4.0, + 4.0, + 7.0, + 7.0, + 7.0, + 7.0 + ] + ], + "solution": [ + 2.0, + 4.0, + 7.0, + 0.0, + 3.0, + 5.0, + 1.0, + 6.0 + ] + }, + { + "clues": [ + [ + 1.0, + 2.0 + ], + [ + 3.0, + 7.0 + ], + [ + 6.0, + 5.0 + ] + ], + "id": "room-16", + "n": 8.0, + "regions": [ + [ + 2.0, + 2.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + [ + 2.0, + 1.0, + 1.0, + 1.0, + 4.0, + 0.0, + 0.0, + 0.0 + ], + [ + 2.0, + 2.0, + 1.0, + 1.0, + 4.0, + 0.0, + 0.0, + 0.0 + ], + [ + 2.0, + 2.0, + 1.0, + 4.0, + 4.0, + 3.0, + 3.0, + 3.0 + ], + [ + 2.0, + 5.0, + 1.0, + 4.0, + 4.0, + 4.0, + 3.0, + 3.0 + ], + [ + 5.0, + 5.0, + 5.0, + 7.0, + 4.0, + 4.0, + 3.0, + 3.0 + ], + [ + 5.0, + 5.0, + 7.0, + 7.0, + 6.0, + 6.0, + 6.0, + 6.0 + ], + [ + 5.0, + 7.0, + 7.0, + 7.0, + 7.0, + 6.0, + 6.0, + 6.0 + ] + ], + "solution": [ + 6.0, + 2.0, + 0.0, + 7.0, + 4.0, + 1.0, + 5.0, + 3.0 + ] + }, + { + "clues": [ + [ + 0.0, + 5.0 + ], + [ + 5.0, + 2.0 + ], + [ + 7.0, + 6.0 + ] + ], + "id": "room-17", + "n": 8.0, + "regions": [ + [ + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + [ + 1.0, + 1.0, + 1.0, + 0.0, + 2.0, + 0.0, + 0.0, + 3.0 + ], + [ + 1.0, + 1.0, + 2.0, + 2.0, + 2.0, + 2.0, + 3.0, + 3.0 + ], + [ + 1.0, + 5.0, + 2.0, + 2.0, + 4.0, + 4.0, + 3.0, + 3.0 + ], + [ + 6.0, + 5.0, + 5.0, + 4.0, + 4.0, + 4.0, + 4.0, + 3.0 + ], + [ + 6.0, + 6.0, + 5.0, + 5.0, + 5.0, + 7.0, + 4.0, + 3.0 + ], + [ + 6.0, + 6.0, + 6.0, + 5.0, + 5.0, + 7.0, + 7.0, + 7.0 + ], + [ + 6.0, + 6.0, + 6.0, + 7.0, + 7.0, + 7.0, + 7.0, + 7.0 + ] + ], + "solution": [ + 5.0, + 1.0, + 3.0, + 7.0, + 4.0, + 2.0, + 0.0, + 6.0 + ] + }, + { + "clues": [ + [ + 0.0, + 2.0 + ], + [ + 4.0, + 0.0 + ], + [ + 7.0, + 5.0 + ] + ], + "id": "room-18", + "n": 8.0, + "regions": [ + [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 1.0, + 2.0, + 2.0 + ], + [ + 4.0, + 0.0, + 0.0, + 1.0, + 1.0, + 1.0, + 2.0, + 2.0 + ], + [ + 4.0, + 0.0, + 3.0, + 1.0, + 5.0, + 1.0, + 2.0, + 2.0 + ], + [ + 4.0, + 4.0, + 3.0, + 3.0, + 5.0, + 1.0, + 1.0, + 2.0 + ], + [ + 4.0, + 4.0, + 3.0, + 3.0, + 5.0, + 5.0, + 2.0, + 2.0 + ], + [ + 6.0, + 4.0, + 3.0, + 5.0, + 5.0, + 5.0, + 5.0, + 7.0 + ], + [ + 6.0, + 6.0, + 6.0, + 6.0, + 7.0, + 7.0, + 7.0, + 7.0 + ], + [ + 6.0, + 6.0, + 6.0, + 6.0, + 7.0, + 7.0, + 7.0, + 7.0 + ] + ], + "solution": [ + 2.0, + 4.0, + 7.0, + 3.0, + 0.0, + 6.0, + 1.0, + 5.0 + ] + }, + { + "clues": [ + [ + 0.0, + 6.0 + ], + [ + 1.0, + 1.0 + ], + [ + 6.0, + 4.0 + ] + ], + "id": "room-19", + "n": 8.0, + "regions": [ + [ + 1.0, + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0, + 2.0 + ], + [ + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2.0 + ], + [ + 3.0, + 3.0, + 3.0, + 0.0, + 3.0, + 2.0, + 2.0, + 2.0 + ], + [ + 3.0, + 5.0, + 3.0, + 3.0, + 3.0, + 2.0, + 4.0, + 2.0 + ], + [ + 5.0, + 5.0, + 5.0, + 5.0, + 6.0, + 4.0, + 4.0, + 2.0 + ], + [ + 7.0, + 5.0, + 5.0, + 5.0, + 6.0, + 4.0, + 4.0, + 4.0 + ], + [ + 7.0, + 7.0, + 7.0, + 7.0, + 6.0, + 6.0, + 4.0, + 4.0 + ], + [ + 7.0, + 7.0, + 6.0, + 6.0, + 6.0, + 6.0, + 6.0, + 4.0 + ] + ], + "solution": [ + 6.0, + 1.0, + 7.0, + 3.0, + 5.0, + 2.0, + 4.0, + 0.0 + ] + }, + { + "clues": [ + [ + 0.0, + 2.0 + ], + [ + 4.0, + 0.0 + ], + [ + 5.0, + 3.0 + ] + ], + "id": "room-20", + "n": 8.0, + "regions": [ + [ + 0.0, + 0.0, + 0.0, + 0.0, + 1.0, + 1.0, + 1.0, + 2.0 + ], + [ + 0.0, + 0.0, + 0.0, + 0.0, + 3.0, + 1.0, + 1.0, + 2.0 + ], + [ + 4.0, + 4.0, + 4.0, + 0.0, + 3.0, + 1.0, + 2.0, + 2.0 + ], + [ + 4.0, + 4.0, + 5.0, + 3.0, + 3.0, + 3.0, + 2.0, + 2.0 + ], + [ + 4.0, + 4.0, + 5.0, + 5.0, + 3.0, + 3.0, + 2.0, + 6.0 + ], + [ + 4.0, + 4.0, + 5.0, + 5.0, + 5.0, + 6.0, + 6.0, + 6.0 + ], + [ + 7.0, + 4.0, + 7.0, + 5.0, + 5.0, + 5.0, + 6.0, + 6.0 + ], + [ + 7.0, + 7.0, + 7.0, + 7.0, + 7.0, + 7.0, + 6.0, + 6.0 + ] + ], + "solution": [ + 2.0, + 5.0, + 7.0, + 4.0, + 0.0, + 3.0, + 6.0, + 1.0 + ] + }, { "clues": [ [ @@ -14,7 +2214,7 @@ 3 ] ], - "id": "room-01", + "id": "room-21", "n": 8, "regions": [ [ @@ -124,7 +2324,7 @@ 7 ] ], - "id": "room-02", + "id": "room-22", "n": 8, "regions": [ [ @@ -234,7 +2434,7 @@ 2 ] ], - "id": "room-03", + "id": "room-23", "n": 8, "regions": [ [ @@ -344,7 +2544,7 @@ 3 ] ], - "id": "room-04", + "id": "room-24", "n": 8, "regions": [ [ @@ -454,7 +2654,7 @@ 3 ] ], - "id": "room-05", + "id": "room-25", "n": 8, "regions": [ [ @@ -564,7 +2764,7 @@ 5 ] ], - "id": "room-06", + "id": "room-26", "n": 8, "regions": [ [ @@ -674,7 +2874,7 @@ 7 ] ], - "id": "room-07", + "id": "room-27", "n": 8, "regions": [ [ @@ -784,7 +2984,7 @@ 3 ] ], - "id": "room-08", + "id": "room-28", "n": 8, "regions": [ [ @@ -894,7 +3094,7 @@ 3 ] ], - "id": "room-09", + "id": "room-29", "n": 8, "regions": [ [ @@ -1004,7 +3204,7 @@ 2 ] ], - "id": "room-10", + "id": "room-30", "n": 8, "regions": [ [ @@ -1098,1105 +3298,5 @@ 4, 2 ] - }, - { - "clues": [ - [ - 0, - 5 - ], - [ - 1, - 1 - ], - [ - 4, - 0 - ] - ], - "id": "room-11", - "n": 8, - "regions": [ - [ - 1, - 1, - 1, - 0, - 0, - 0, - 0, - 0 - ], - [ - 1, - 1, - 3, - 3, - 2, - 0, - 0, - 0 - ], - [ - 1, - 1, - 3, - 2, - 2, - 0, - 0, - 5 - ], - [ - 4, - 3, - 3, - 3, - 2, - 2, - 5, - 5 - ], - [ - 4, - 4, - 4, - 3, - 2, - 2, - 5, - 5 - ], - [ - 4, - 4, - 6, - 6, - 6, - 7, - 5, - 5 - ], - [ - 4, - 4, - 6, - 6, - 6, - 7, - 7, - 5 - ], - [ - 4, - 4, - 6, - 6, - 7, - 7, - 7, - 5 - ] - ], - "solution": [ - 5, - 1, - 4, - 2, - 0, - 7, - 3, - 6 - ] - }, - { - "clues": [ - [ - 2, - 6 - ], - [ - 3, - 0 - ], - [ - 7, - 4 - ] - ], - "id": "room-12", - "n": 8, - "regions": [ - [ - 3, - 1, - 1, - 0, - 0, - 0, - 0, - 0 - ], - [ - 3, - 1, - 4, - 4, - 4, - 0, - 0, - 0 - ], - [ - 3, - 1, - 4, - 4, - 2, - 2, - 2, - 2 - ], - [ - 3, - 1, - 4, - 4, - 2, - 2, - 2, - 2 - ], - [ - 3, - 1, - 4, - 4, - 2, - 7, - 5, - 5 - ], - [ - 6, - 6, - 6, - 4, - 7, - 7, - 5, - 5 - ], - [ - 6, - 6, - 6, - 6, - 7, - 7, - 5, - 5 - ], - [ - 6, - 6, - 6, - 7, - 7, - 7, - 5, - 5 - ] - ], - "solution": [ - 5, - 1, - 6, - 0, - 3, - 7, - 2, - 4 - ] - }, - { - "clues": [ - [ - 1, - 5 - ], - [ - 4, - 7 - ], - [ - 7, - 2 - ] - ], - "id": "room-13", - "n": 8, - "regions": [ - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1 - ], - [ - 5, - 0, - 2, - 2, - 1, - 1, - 0, - 1 - ], - [ - 5, - 2, - 2, - 3, - 1, - 1, - 1, - 1 - ], - [ - 5, - 2, - 3, - 3, - 3, - 1, - 4, - 4 - ], - [ - 5, - 2, - 7, - 3, - 3, - 4, - 4, - 4 - ], - [ - 5, - 7, - 7, - 3, - 3, - 6, - 4, - 4 - ], - [ - 5, - 7, - 7, - 3, - 6, - 6, - 6, - 6 - ], - [ - 5, - 5, - 7, - 7, - 7, - 6, - 6, - 6 - ] - ], - "solution": [ - 3, - 5, - 1, - 4, - 7, - 0, - 6, - 2 - ] - }, - { - "clues": [ - [ - 0, - 2 - ], - [ - 2, - 0 - ], - [ - 6, - 6 - ] - ], - "id": "room-14", - "n": 8, - "regions": [ - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1 - ], - [ - 2, - 0, - 0, - 0, - 4, - 1, - 1, - 1 - ], - [ - 2, - 2, - 2, - 2, - 4, - 4, - 4, - 1 - ], - [ - 3, - 3, - 3, - 3, - 3, - 4, - 1, - 1 - ], - [ - 5, - 5, - 3, - 4, - 4, - 4, - 4, - 1 - ], - [ - 5, - 5, - 7, - 7, - 6, - 6, - 6, - 1 - ], - [ - 5, - 5, - 5, - 7, - 7, - 6, - 6, - 6 - ], - [ - 5, - 5, - 7, - 7, - 7, - 7, - 6, - 6 - ] - ], - "solution": [ - 2, - 7, - 0, - 3, - 5, - 1, - 6, - 4 - ] - }, - { - "clues": [ - [ - 2, - 7 - ], - [ - 4, - 3 - ], - [ - 6, - 1 - ] - ], - "id": "room-15", - "n": 8, - "regions": [ - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 2 - ], - [ - 3, - 0, - 3, - 1, - 1, - 1, - 1, - 2 - ], - [ - 3, - 0, - 3, - 1, - 1, - 1, - 2, - 2 - ], - [ - 3, - 3, - 3, - 4, - 5, - 5, - 2, - 2 - ], - [ - 3, - 3, - 4, - 4, - 5, - 5, - 2, - 7 - ], - [ - 6, - 6, - 6, - 4, - 4, - 5, - 2, - 7 - ], - [ - 6, - 6, - 6, - 4, - 7, - 5, - 5, - 7 - ], - [ - 6, - 6, - 4, - 4, - 7, - 7, - 7, - 7 - ] - ], - "solution": [ - 2, - 4, - 7, - 0, - 3, - 5, - 1, - 6 - ] - }, - { - "clues": [ - [ - 1, - 2 - ], - [ - 3, - 7 - ], - [ - 6, - 5 - ] - ], - "id": "room-16", - "n": 8, - "regions": [ - [ - 2, - 2, - 1, - 1, - 0, - 0, - 0, - 0 - ], - [ - 2, - 1, - 1, - 1, - 4, - 0, - 0, - 0 - ], - [ - 2, - 2, - 1, - 1, - 4, - 0, - 0, - 0 - ], - [ - 2, - 2, - 1, - 4, - 4, - 3, - 3, - 3 - ], - [ - 2, - 5, - 1, - 4, - 4, - 4, - 3, - 3 - ], - [ - 5, - 5, - 5, - 7, - 4, - 4, - 3, - 3 - ], - [ - 5, - 5, - 7, - 7, - 6, - 6, - 6, - 6 - ], - [ - 5, - 7, - 7, - 7, - 7, - 6, - 6, - 6 - ] - ], - "solution": [ - 6, - 2, - 0, - 7, - 4, - 1, - 5, - 3 - ] - }, - { - "clues": [ - [ - 0, - 5 - ], - [ - 5, - 2 - ], - [ - 7, - 6 - ] - ], - "id": "room-17", - "n": 8, - "regions": [ - [ - 1, - 1, - 1, - 0, - 0, - 0, - 0, - 0 - ], - [ - 1, - 1, - 1, - 0, - 2, - 0, - 0, - 3 - ], - [ - 1, - 1, - 2, - 2, - 2, - 2, - 3, - 3 - ], - [ - 1, - 5, - 2, - 2, - 4, - 4, - 3, - 3 - ], - [ - 6, - 5, - 5, - 4, - 4, - 4, - 4, - 3 - ], - [ - 6, - 6, - 5, - 5, - 5, - 7, - 4, - 3 - ], - [ - 6, - 6, - 6, - 5, - 5, - 7, - 7, - 7 - ], - [ - 6, - 6, - 6, - 7, - 7, - 7, - 7, - 7 - ] - ], - "solution": [ - 5, - 1, - 3, - 7, - 4, - 2, - 0, - 6 - ] - }, - { - "clues": [ - [ - 0, - 2 - ], - [ - 4, - 0 - ], - [ - 7, - 5 - ] - ], - "id": "room-18", - "n": 8, - "regions": [ - [ - 0, - 0, - 0, - 0, - 0, - 1, - 2, - 2 - ], - [ - 4, - 0, - 0, - 1, - 1, - 1, - 2, - 2 - ], - [ - 4, - 0, - 3, - 1, - 5, - 1, - 2, - 2 - ], - [ - 4, - 4, - 3, - 3, - 5, - 1, - 1, - 2 - ], - [ - 4, - 4, - 3, - 3, - 5, - 5, - 2, - 2 - ], - [ - 6, - 4, - 3, - 5, - 5, - 5, - 5, - 7 - ], - [ - 6, - 6, - 6, - 6, - 7, - 7, - 7, - 7 - ], - [ - 6, - 6, - 6, - 6, - 7, - 7, - 7, - 7 - ] - ], - "solution": [ - 2, - 4, - 7, - 3, - 0, - 6, - 1, - 5 - ] - }, - { - "clues": [ - [ - 0, - 6 - ], - [ - 1, - 1 - ], - [ - 6, - 4 - ] - ], - "id": "room-19", - "n": 8, - "regions": [ - [ - 1, - 1, - 1, - 1, - 0, - 0, - 0, - 2 - ], - [ - 1, - 1, - 1, - 0, - 0, - 0, - 0, - 2 - ], - [ - 3, - 3, - 3, - 0, - 3, - 2, - 2, - 2 - ], - [ - 3, - 5, - 3, - 3, - 3, - 2, - 4, - 2 - ], - [ - 5, - 5, - 5, - 5, - 6, - 4, - 4, - 2 - ], - [ - 7, - 5, - 5, - 5, - 6, - 4, - 4, - 4 - ], - [ - 7, - 7, - 7, - 7, - 6, - 6, - 4, - 4 - ], - [ - 7, - 7, - 6, - 6, - 6, - 6, - 6, - 4 - ] - ], - "solution": [ - 6, - 1, - 7, - 3, - 5, - 2, - 4, - 0 - ] - }, - { - "clues": [ - [ - 0, - 2 - ], - [ - 4, - 0 - ], - [ - 5, - 3 - ] - ], - "id": "room-20", - "n": 8, - "regions": [ - [ - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 2 - ], - [ - 0, - 0, - 0, - 0, - 3, - 1, - 1, - 2 - ], - [ - 4, - 4, - 4, - 0, - 3, - 1, - 2, - 2 - ], - [ - 4, - 4, - 5, - 3, - 3, - 3, - 2, - 2 - ], - [ - 4, - 4, - 5, - 5, - 3, - 3, - 2, - 6 - ], - [ - 4, - 4, - 5, - 5, - 5, - 6, - 6, - 6 - ], - [ - 7, - 4, - 7, - 5, - 5, - 5, - 6, - 6 - ], - [ - 7, - 7, - 7, - 7, - 7, - 7, - 6, - 6 - ] - ], - "solution": [ - 2, - 5, - 7, - 4, - 0, - 3, - 6, - 1 - ] } -] +] \ No newline at end of file diff --git a/export_presets.cfg b/export_presets.cfg index 02757f1..d215b25 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -9,7 +9,7 @@ custom_features="" export_filter="all_resources" include_filter="data/*.json" exclude_filter="art/guests/source/*" -export_path="build/Ratdoku-v0.2.0-alpha.apk" +export_path="build/Ratdoku-v0.3.0-alpha.apk" encryption_include_filters="" encryption_exclude_filters="" seed=0 @@ -32,8 +32,8 @@ architectures/armeabi-v7a=false architectures/arm64-v8a=true architectures/x86=false architectures/x86_64=false -version/code=2 -version/name="0.2.0" +version/code=3 +version/name="0.3.0" package/unique_name="com.ratdoku.game" package/name="Ratdoku" package/signed=true diff --git a/project.godot b/project.godot index 3944358..d08da22 100644 --- a/project.godot +++ b/project.godot @@ -12,7 +12,7 @@ config_version=5 config/name="Ratdoku" run/main_scene="res://scenes/Main.tscn" -config/version="0.2.0-alpha" +config/version="0.3.0-alpha" config/features=PackedStringArray("4.7", "GL Compatibility") config/icon="res://icon.png" diff --git a/scripts/Board.gd b/scripts/Board.gd index 218e28f..9783efb 100644 --- a/scripts/Board.gd +++ b/scripts/Board.gd @@ -249,11 +249,6 @@ func _draw_x(rect: Rect2, color: Color) -> void: func _assign_region_rats() -> void: - # v0.2.0-alpha: no per-room guest tokens yet. Leave the table empty so every - # rat on the board falls back to the shared Crumb head token. - if true: - return - region_rats.clear() region_textures.clear() diff --git a/tools/build_android.ps1 b/tools/build_android.ps1 new file mode 100644 index 0000000..815e70d --- /dev/null +++ b/tools/build_android.ps1 @@ -0,0 +1,25 @@ +param( + [string]$Godot = "C:\Program Files (x86)\Steam\steamapps\common\Godot Engine\godot.windows.opt.tools.64.exe", + [string]$Jdk = "E:\AndroidTools\jdk-17.0.21.1+2", + [string]$Sdk = "E:\AndroidTools\sdk", + [string]$Out = "build/Ratdoku.apk" +) + +$ErrorActionPreference = "Stop" +$project = Split-Path $PSScriptRoot -Parent +$env:JAVA_HOME = $Jdk +$env:ANDROID_HOME = $Sdk +$env:ANDROID_SDK_ROOT = $Sdk +$env:Path = "$Jdk\bin;$Sdk\platform-tools;$Sdk\build-tools\35.0.0;$env:Path" + +New-Item -ItemType Directory -Force -Path (Join-Path $project "build") | Out-Null + +Write-Host "Exporting $Out ..." +& $Godot --headless --path $project --export-debug "Android" $Out + +$apk = Join-Path $project $Out +if (Test-Path $apk) { + Get-Item $apk | Select-Object FullName, Length, LastWriteTime +} else { + throw "Export did not produce $apk" +} diff --git a/tools/generate_levels.gd b/tools/generate_levels.gd new file mode 100644 index 0000000..21d3e8e --- /dev/null +++ b/tools/generate_levels.gd @@ -0,0 +1,359 @@ +extends SceneTree + +## Headless puzzle generator. +## Run from the project folder: +## --headless --script res://tools/generate_levels.gd +## +## Writes data/levels.json. +## +## How it works: +## 1. Pick a legal solution (one rat per row and column, none touching). +## 2. Grow eight connected rooms around those eight rats. +## 3. Ask the solver for alternate solutions. +## 4. If the board is ambiguous, pin down a few of the intended rats as +## "already checked in" clues until the solution is unique. +## +## Clues are capped at three. If a board needs more than that, it is rejected +## and we start over. A later version can replace clues with room-shape +## refinement, but for the prototype this keeps every puzzle provably unique. + +const N := 8 +const COUNT := 30 +const MAX_CLUES := 3 +const OUT := "res://data/levels.json" +const DIRS := [Vector2i(1, 0), Vector2i(-1, 0), Vector2i(0, 1), Vector2i(0, -1)] + +var _n := 0 +var _regions: Array = [] +var _cap := 2 +var _found: Array = [] +var _used_cols := {} +var _used_regions := {} +var _clue_cols := {} + + +func _init() -> void: + var rng := RandomNumberGenerator.new() + rng.seed = 20261201 + + DirAccess.make_dir_recursive_absolute(ProjectSettings.globalize_path("res://data")) + + var levels: Array = [] + var attempts := 0 + var rejected_ambiguous := 0 + var rejected_shape := 0 + + # Append to an existing pack instead of replacing it. + if FileAccess.file_exists(OUT): + var existing := FileAccess.open(OUT, FileAccess.READ) + if existing != null: + var parsed = JSON.parse_string(existing.get_as_text()) + existing.close() + if typeof(parsed) == TYPE_ARRAY: + levels = parsed + + var starting_count := levels.size() + print("Existing levels: %d, target: %d" % [starting_count, COUNT]) + + while levels.size() < COUNT and attempts < 60000: + attempts += 1 + var sol := _sample_solution(rng) + if sol.is_empty(): + continue + + var regs := _grow_regions(sol, rng) + if regs.is_empty(): + continue + + if not _shape_ok(regs, sol): + rejected_shape += 1 + continue + + var clues = _find_clue_set(regs, sol, MAX_CLUES) + if clues == null: + rejected_ambiguous += 1 + continue + if typeof(clues) != TYPE_ARRAY: + rejected_ambiguous += 1 + continue + + levels.append({ + "id": "room-%02d" % (levels.size() + 1), + "n": N, + "regions": regs, + "solution": sol, + "clues": clues, + }) + + if levels.size() % 5 == 0: + print("Accepted %d rooms after %d attempts." % [levels.size(), attempts]) + + var file := FileAccess.open(OUT, FileAccess.WRITE) + if file == null: + push_error("Could not write %s" % OUT) + quit(1) + return + file.store_string(JSON.stringify(levels, "\t")) + file.close() + + print("Generated %d levels in %d attempts -> %s" % [levels.size(), attempts, OUT]) + print("New rooms this run: %d" % (levels.size() - starting_count)) + print("Rejects: shape=%d ambiguous=%d" % [rejected_shape, rejected_ambiguous]) + quit() + + +func _sample_solution(rng: RandomNumberGenerator) -> Array: + for attempt in range(600): + var cols := [] + for i in N: + cols.append(i) + _shuffle(cols, rng) + + var ok := true + for i in range(N - 1): + if abs(int(cols[i + 1]) - int(cols[i])) < 2: + ok = false + break + if ok: + return cols + return [] + + +func _grow_regions(sol: Array, rng: RandomNumberGenerator) -> Array: + var regions := [] + for r in N: + var row := [] + for c in N: + row.append(-1) + regions.append(row) + + var sizes := [] + for i in N: + sizes.append(1) + + for r in N: + regions[r][int(sol[r])] = r + + var remaining := N * N - N + var guard := 0 + + while remaining > 0 and guard < 4000: + guard += 1 + var order := [] + for i in N: + order.append(i) + _shuffle(order, rng) + + for region in order: + var candidates := _frontier(regions, region) + if candidates.is_empty(): + continue + var pick: Vector2i = candidates[rng.randi_range(0, candidates.size() - 1)] + regions[pick.x][pick.y] = region + sizes[region] += 1 + remaining -= 1 + + # Fill any enclosed pocket with its smallest neighbouring region. + var progress := true + while remaining > 0 and progress: + progress = false + for r in N: + for c in N: + if int(regions[r][c]) != -1: + continue + var neighbours := {} + for d in DIRS: + var nr: int = r + d.x + var nc: int = c + d.y + if nr >= 0 and nr < N and nc >= 0 and nc < N and int(regions[nr][nc]) >= 0: + neighbours[int(regions[nr][nc])] = true + if neighbours.is_empty(): + continue + + var best := -1 + var best_size := 9999 + for reg in neighbours.keys(): + if int(sizes[reg]) < best_size: + best_size = int(sizes[reg]) + best = int(reg) + regions[r][c] = best + sizes[best] += 1 + remaining -= 1 + progress = true + + if remaining != 0: + return [] + + return regions + + +func _frontier(regions: Array, region: int) -> Array: + var out: Array[Vector2i] = [] + for r in N: + for c in N: + if int(regions[r][c]) != region: + continue + for d in DIRS: + var nr: int = r + d.x + var nc: int = c + d.y + if nr >= 0 and nr < N and nc >= 0 and nc < N and int(regions[nr][nc]) == -1: + var cell := Vector2i(nr, nc) + if not out.has(cell): + out.append(cell) + return out + + +func _sizes(regions: Array) -> Array: + var sizes := [] + for i in N: + sizes.append(0) + for r in N: + for c in N: + var region := int(regions[r][c]) + if region >= 0: + sizes[region] += 1 + return sizes + + +func _shape_ok(regions: Array, sol: Array) -> bool: + var sizes := _sizes(regions) + var total := 0 + for s in sizes: + if int(s) < 3 or int(s) > 18: + return false + total += int(s) + + var mean := float(total) / float(N) + for s in sizes: + if float(s) / mean > 2.4: + return false + + var seeds := {} + for r in N: + var reg := int(regions[r][int(sol[r])]) + if seeds.has(reg): + return false + seeds[reg] = true + + return seeds.size() == N + + +func _find_clue_set(regions: Array, sol: Array, max_clues: int) -> Variant: + # Prefer zero clues, then one, then two, then three. + if _find_solutions(regions, [], 2).size() == 1: + return [] + + if max_clues >= 1: + for r1 in N: + var one := [[r1, int(sol[r1])]] + if _find_solutions(regions, one, 2).size() == 1: + return one + + if max_clues >= 2: + for r1 in N: + for r2 in range(r1 + 1, N): + var two := [[r1, int(sol[r1])], [r2, int(sol[r2])]] + if _find_solutions(regions, two, 2).size() == 1: + return two + + if max_clues >= 3: + for r1 in N: + for r2 in range(r1 + 1, N): + for r3 in range(r2 + 1, N): + var three := [[r1, int(sol[r1])], [r2, int(sol[r2])], [r3, int(sol[r3])]] + if _find_solutions(regions, three, 2).size() == 1: + return three + + return null + + +func _find_solutions(regions: Array, clues: Array, cap: int) -> Array: + _regions = regions + _n = N + _cap = cap + _found = [] + _used_cols = {} + _used_regions = {} + _clue_cols = {} + + for clue in clues: + _clue_cols[int(clue[0])] = int(clue[1]) + + _collect(0, -1, []) + return _found + + +func _collect(row: int, prev_col: int, current: Array) -> void: + if _found.size() >= _cap: + return + + if row == _n: + _found.append(current.duplicate()) + return + + if _clue_cols.has(row): + var fixed_col := int(_clue_cols[row]) + if _can_place(row, fixed_col, prev_col): + _place(row, fixed_col) + current.append(fixed_col) + _collect(row + 1, fixed_col, current) + current.pop_back() + _unplace(row, fixed_col) + return + + for c in range(_n): + if not _can_place(row, c, prev_col): + continue + _place(row, c) + current.append(c) + _collect(row + 1, c, current) + current.pop_back() + _unplace(row, c) + + +func _can_place(row: int, c: int, prev_col: int) -> bool: + if _used_cols.has(c): + return false + var region := int(_regions[row][c]) + if _used_regions.has(region): + return false + if row > 0 and abs(c - prev_col) < 2: + return false + return true + + +func _place(row: int, c: int) -> void: + _used_cols[c] = true + _used_regions[int(_regions[row][c])] = true + + +func _unplace(row: int, c: int) -> void: + _used_cols.erase(c) + _used_regions.erase(int(_regions[row][c])) + + +func _same_solution(a: Array, b: Array) -> bool: + for i in N: + if int(a[i]) != int(b[i]): + return false + return true + + +func _alternate(solutions: Array, intended: Array) -> Array: + for candidate in solutions: + var same := true + for i in N: + if int(candidate[i]) != int(intended[i]): + same = false + break + if not same: + return candidate + return [] + + +func _shuffle(arr: Array, rng: RandomNumberGenerator) -> void: + for i in range(arr.size() - 1, 0, -1): + var j := rng.randi_range(0, i) + var tmp = arr[i] + arr[i] = arr[j] + arr[j] = tmp diff --git a/tools/generate_levels.gd.uid b/tools/generate_levels.gd.uid new file mode 100644 index 0000000..35656dc --- /dev/null +++ b/tools/generate_levels.gd.uid @@ -0,0 +1 @@ +uid://oy3sanp8disa diff --git a/tools/screenshot.gd b/tools/screenshot.gd new file mode 100644 index 0000000..cbd79ca --- /dev/null +++ b/tools/screenshot.gd @@ -0,0 +1,84 @@ +extends SceneTree + +## Development helper: boots the game, saves one screenshot per screen, quits. +## Run without --headless: +## --path . --script res://tools/screenshot.gd + + +func _init() -> void: + call_deferred("_run") + + +func _run() -> void: + var err := change_scene_to_file("res://scenes/Main.tscn") + if err != OK: + print("Could not load Main.tscn: ", err) + quit(1) + return + + await process_frame + await process_frame + await RenderingServer.frame_post_draw + _save("res://screenshots/home.png") + + var main = current_scene + _reset_save() + + main.show_screen("guest_book") + await _settle() + _save("res://screenshots/guest_book.png") + + main.show_screen("settings") + await _settle() + _save("res://screenshots/settings.png") + + main.show_screen("rules") + await _settle() + _save("res://screenshots/rules.png") + + var scrolls = main.rulebook.find_children("*", "ScrollContainer", true, false) + if scrolls.size() > 0: + scrolls[0].scroll_vertical = 1400 + await _settle() + _save("res://screenshots/rules_tutorial.png") + + main.show_screen("game") + main.game.start_level(0) + await _settle() + _save("res://screenshots/game.png") + + var game = main.game + for i in range(12): + if game.win_shown: + break + game.board.hint() + await process_frame + await create_timer(0.8).timeout + await RenderingServer.frame_post_draw + _save("res://screenshots/win.png") + + _reset_save() + quit() + + +func _reset_save() -> void: + var save = root.get_node_or_null("SaveGame") + if save != null: + save.reset_progress() + + +func _settle() -> void: + await process_frame + await process_frame + await RenderingServer.frame_post_draw + + +func _save(path: String) -> void: + var image := root.get_texture().get_image() + if image == null: + print("No viewport image yet.") + return + var absolute := ProjectSettings.globalize_path(path) + DirAccess.make_dir_recursive_absolute(absolute.get_base_dir()) + image.save_png(absolute) + print("Saved %s (%dx%d)" % [absolute, image.get_width(), image.get_height()]) diff --git a/tools/screenshot.gd.uid b/tools/screenshot.gd.uid new file mode 100644 index 0000000..42fbfe3 --- /dev/null +++ b/tools/screenshot.gd.uid @@ -0,0 +1 @@ +uid://dew8388i54gfs diff --git a/tools/smoke_test.gd b/tools/smoke_test.gd new file mode 100644 index 0000000..1263050 --- /dev/null +++ b/tools/smoke_test.gd @@ -0,0 +1,165 @@ +extends SceneTree + +## Headless smoke test for the rules and the board's public-ish operations. +## --headless --path . --script res://tools/smoke_test.gd + +var solved_flag := false + + +func _init() -> void: + call_deferred("_run") + + +func _run() -> void: + var levels: Array = Levels.load_all() + if levels.is_empty(): + print("FAIL: no levels") + quit(1) + return + + var board := Board.new() + root.add_child(board) + board.size = Vector2(640, 640) + board.solved.connect(_on_solved) + + var all_ok := true + + for i in levels.size(): + var level: Dictionary = levels[i] + board.set_level(level) + solved_flag = false + + var fixed_count: int = board.fixed.size() + var seen := {} + + for r in board.n: + var c := int(level["solution"][r]) + var cell := Vector2i(r, c) + if board.fixed.has(cell): + continue + # Check the guest in directly. + board._toggle_rat(cell) + seen[cell] = true + + var valid: bool = Rules.is_valid(board.cells, board.regions) + var rats: int = Rules.count_rats(board.cells) + var conflicts: int = board.conflict_cells.size() + + if not valid or rats != board.n or conflicts != 0 or not solved_flag: + all_ok = false + print("FAIL %s: valid=%s rats=%d/%d conflicts=%d solved=%s fixed=%d" % [ + level["id"], valid, rats, board.n, conflicts, solved_flag, fixed_count + ]) + + # Undo / restart / hint on the first level. + var first: Dictionary = levels[0] + board.set_level(first) + var before: int = Rules.count_rats(board.cells) + var target := _first_empty_solution(board, first) + if target.x >= 0: + board._toggle_rat(target) + var placed: int = Rules.count_rats(board.cells) + board.undo() + var undone: int = Rules.count_rats(board.cells) + if placed != before + 1 or undone != before: + all_ok = false + print("FAIL undo: before=%d placed=%d undone=%d" % [before, placed, undone]) + + board.set_level(first) + if target.x >= 0: + board._toggle_rat(target) + board.restart() + if Rules.count_rats(board.cells) != board.fixed.size(): + all_ok = false + print("FAIL restart: rats=%d fixed=%d" % [Rules.count_rats(board.cells), board.fixed.size()]) + + board.set_level(first) + solved_flag = false + var guard := 0 + while guard < 12: + guard += 1 + if not board.hint(): + break + if not solved_flag: + all_ok = false + print("FAIL hint: board not solved after %d hints" % guard) + + # Coordinate mapping: the centre of a cell must map back to that cell. + board.size = Vector2(640, 640) + board._update_layout() + var mapped: Vector2i = board._pos_to_cell(board._cell_rect(3, 4).get_center()) + if mapped != Vector2i(3, 4): + all_ok = false + print("FAIL mapping: expected (3,4), got %s" % str(mapped)) + + # Tap marks X, right-click checks in, and hold checks in without a tap. + board.set_level(first) + board._update_layout() + var tap_cell := _find_empty_cell(board) + if tap_cell.x >= 0: + _left_click(board, tap_cell, true) + _left_click(board, tap_cell, false) + if int(board.cells[tap_cell.x][tap_cell.y]) != Board.X: + all_ok = false + print("FAIL tap: expected X, got %d" % int(board.cells[tap_cell.x][tap_cell.y])) + + _right_click(board, tap_cell) + if int(board.cells[tap_cell.x][tap_cell.y]) != Board.RAT: + all_ok = false + print("FAIL right-click: expected RAT, got %d" % int(board.cells[tap_cell.x][tap_cell.y])) + + board.set_level(first) + board._update_layout() + var hold_cell := _find_empty_cell(board) + if hold_cell.x >= 0: + _left_click(board, hold_cell, true) + board._process(board.hold_seconds + 0.05) + if int(board.cells[hold_cell.x][hold_cell.y]) != Board.RAT: + all_ok = false + print("FAIL hold: expected RAT, got %d" % int(board.cells[hold_cell.x][hold_cell.y])) + _left_click(board, hold_cell, false) + if int(board.cells[hold_cell.x][hold_cell.y]) != Board.RAT: + all_ok = false + print("FAIL hold release: guest was removed") + + print("SMOKE TEST: %s" % ("PASS" if all_ok else "FAIL")) + quit(0 if all_ok else 1) + + +func _on_solved() -> void: + solved_flag = true + + +func _find_empty_cell(board: Board) -> Vector2i: + for r in board.n: + for c in board.n: + var cell := Vector2i(r, c) + if board.fixed.has(cell): + continue + if int(board.cells[r][c]) == Board.EMPTY and not board.auto_x[r][c]: + return cell + return Vector2i(-1, -1) + + +func _left_click(board: Board, cell: Vector2i, pressed: bool) -> void: + var event := InputEventMouseButton.new() + event.button_index = MOUSE_BUTTON_LEFT + event.pressed = pressed + event.position = board._cell_rect(cell.x, cell.y).get_center() + board._gui_input(event) + + +func _right_click(board: Board, cell: Vector2i) -> void: + var event := InputEventMouseButton.new() + event.button_index = MOUSE_BUTTON_RIGHT + event.pressed = true + event.position = board._cell_rect(cell.x, cell.y).get_center() + board._gui_input(event) + + +func _first_empty_solution(board: Board, level: Dictionary) -> Vector2i: + for r in board.n: + var cell := Vector2i(r, int(level["solution"][r])) + if not board.fixed.has(cell): + return cell + return Vector2i(-1, -1) diff --git a/tools/smoke_test.gd.uid b/tools/smoke_test.gd.uid new file mode 100644 index 0000000..047ead2 --- /dev/null +++ b/tools/smoke_test.gd.uid @@ -0,0 +1 @@ +uid://dfbmnhb4buk40 diff --git a/tools/ui_test.gd b/tools/ui_test.gd new file mode 100644 index 0000000..3e9cebb --- /dev/null +++ b/tools/ui_test.gd @@ -0,0 +1,85 @@ +extends SceneTree + +## Headless UI/save integration test. +## --headless --path . --script res://tools/ui_test.gd + +var failures := 0 + + +func _init() -> void: + call_deferred("_run") + + +func _check(condition: bool, message: String) -> void: + if not condition: + failures += 1 + print("FAIL: ", message) + + +func _run() -> void: + var err := change_scene_to_file("res://scenes/Main.tscn") + if err != OK: + print("FAIL: could not load Main") + quit(1) + return + + await process_frame + await process_frame + + var main = current_scene + var save = root.get_node_or_null("SaveGame") + _check(save != null, "SaveGame autoload missing") + if save == null: + quit(1) + return + + save.reset_progress() + + main.game.start_level(0) + await process_frame + + save.set_setting("patterns", false) + _check(not main.game.board.show_patterns, "patterns setting did not reach Board") + save.set_setting("patterns", true) + _check(main.game.board.show_patterns, "patterns setting did not restore") + + save.set_setting("show_timer", false) + main.show_screen("game") + await process_frame + _check(not main.game.timer_label.visible, "show_timer setting did not hide timer") + save.set_setting("show_timer", true) + + save.set_setting("hold_seconds", 0.50) + _check(abs(main.game.board.hold_seconds - 0.50) < 0.001, "hold_seconds did not reach Board") + save.set_setting("hold_seconds", 0.35) + + var unlocked: String = save.complete_room("room-01", 1) + _check(unlocked == "pepper", "room 1 should unlock Pepper") + _check(save.is_guest_unlocked("pepper"), "Pepper should be unlocked") + _check(save.is_guest_unlocked("miso"), "Miso should be unlocked as a resident") + + main.show_screen("guest_book") + await process_frame + await process_frame + _check(main.guest_book != null, "Guest Book missing") + if main.guest_book != null and main.guest_book.progress_label != null: + _check(main.guest_book.progress_label.text.find("6 of 25") >= 0, "Guest Book progress should be 6 of 25") + + main.show_screen("rules") + await process_frame + var tutorial_board = main.rulebook.tutorial_board + _check(tutorial_board != null, "Tutorial board missing") + if tutorial_board != null: + for i in range(8): + tutorial_board.hint() + await process_frame + _check(Rules.is_valid(tutorial_board.cells, tutorial_board.regions), "Tutorial puzzle did not solve") + + save.reset_progress() + save.set_setting("patterns", true) + save.set_setting("show_timer", true) + save.set_setting("reduce_motion", false) + save.set_setting("hold_seconds", 0.35) + + print("UI TEST: ", "PASS" if failures == 0 else "FAIL (%d)" % failures) + quit(0 if failures == 0 else 1) diff --git a/tools/ui_test.gd.uid b/tools/ui_test.gd.uid new file mode 100644 index 0000000..04fe558 --- /dev/null +++ b/tools/ui_test.gd.uid @@ -0,0 +1 @@ +uid://ccl6uk1425kix diff --git a/tools/workflows/krea2_guest.json b/tools/workflows/krea2_guest.json new file mode 100644 index 0000000..81e96a5 --- /dev/null +++ b/tools/workflows/krea2_guest.json @@ -0,0 +1 @@ +{"id":"08988737-a544-4ab1-99fb-22d67b7c36e3","revision":0,"last_node_id":52,"last_link_id":85,"nodes":[{"id":29,"type":"SaveImage","pos":[521.2820256118092,-86.65135385501759],"size":[879.953125,1019.953125],"flags":{},"order":5,"mode":0,"inputs":[{"localized_name":"images","name":"images","type":"IMAGE","link":44},{"localized_name":"filename_prefix","name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"link":null}],"outputs":[{"localized_name":"images","name":"images","type":"IMAGE","links":null}],"properties":{"Node name for S&R":"SaveImage","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":["Krea2_turbo"],"widgets_values_named":{"filename_prefix":"Krea2_turbo"}},{"id":30,"type":"b0e5ca93-2731-42b9-8e0a-d28ea851ff81","pos":[-140,-110],"size":[559.953125,1009.953125],"flags":{},"order":4,"mode":0,"inputs":[{"label":"prompt","name":"value","type":"STRING","widget":{"name":"value"},"link":null},{"label":"prompt_enhance","name":"value_1","type":"BOOLEAN","widget":{"name":"value_1"},"link":null},{"label":"LLM_max_token","name":"max_length","type":"INT","widget":{"name":"max_length"},"link":null},{"label":"LLM_thinking_mode","name":"thinking","shape":7,"type":"BOOLEAN","widget":{"name":"thinking"},"link":null},{"label":"width","name":"width_1","type":"INT","widget":{"name":"width_1"},"link":84},{"label":"height","name":"height_1","type":"INT","widget":{"name":"height_1"},"link":85},{"label":"seed","name":"seed_1","type":"INT","widget":{"name":"seed_1"},"link":null},{"label":"enable_lora","name":"value_3","type":"BOOLEAN","widget":{"name":"value_3"},"link":null},{"label":"lora_name","name":"lora_name_1","type":"COMBO","widget":{"name":"lora_name_1"},"link":null},{"label":"lora_strength","name":"strength_model_1","type":"FLOAT","widget":{"name":"strength_model_1"},"link":null},{"label":"lora_trigger_word","name":"string_b_1","type":"STRING","widget":{"name":"string_b_1"},"link":null},{"label":"unet_name","name":"unet_name_1","type":"COMBO","widget":{"name":"unet_name_1"},"link":null},{"label":"clip_name","name":"clip_name_1","type":"COMBO","widget":{"name":"clip_name_1"},"link":null},{"label":"vae_name","name":"vae_name_1","type":"COMBO","widget":{"name":"vae_name_1"},"link":null}],"outputs":[{"localized_name":"IMAGE","name":"IMAGE","type":"IMAGE","links":[44]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","previewExposures":[{"name":"$$canvas-image-preview","sourceNodeId":"3","sourcePreviewName":"$$canvas-image-preview"}]},"widgets_values":["A cozy children's-book character illustration of Crumb, a round dumbo-eared fancy rat innkeeper. Plump pear-shaped body, soft fawn-and-cream hooded fur, huge low-set round ears, tiny pink paws, long delicate whiskers, bright curious eyes, one small notch in her left ear. She wears a tiny flour-dusted linen apron with a cheese-wedge pocket and holds a little clipboard. Standing three-quarter view, full body, centered, friendly slightly flustered expression. Hand-painted gouache texture, visible soft brush strokes, warm cream, ochre and dusty rose palette, gentle rim light, soft contact shadow, plain warm cream background, clean sticker-like silhouette, no text, no logo, 1:1.\n\n",false,512,false,1024,1024,107158940777715,true,"krea2_refusal_compact.safetensors",0.8,"","krea2_turbo_int8_convrot.safetensors","qwen3vl_4b_fp8_scaled.safetensors","qwen_image_vae.safetensors"],"widgets_values_named":{"value":"A cozy children's-book character illustration of Crumb, a round dumbo-eared fancy rat innkeeper. Plump pear-shaped body, soft fawn-and-cream hooded fur, huge low-set round ears, tiny pink paws, long delicate whiskers, bright curious eyes, one small notch in her left ear. She wears a tiny flour-dusted linen apron with a cheese-wedge pocket and holds a little clipboard. Standing three-quarter view, full body, centered, friendly slightly flustered expression. Hand-painted gouache texture, visible soft brush strokes, warm cream, ochre and dusty rose palette, gentle rim light, soft contact shadow, plain warm cream background, clean sticker-like silhouette, no text, no logo, 1:1.\n\n","value_1":false,"max_length":512,"thinking":false,"width_1":1024,"height_1":1024,"seed_1":107158940777715,"value_3":true,"lora_name_1":"krea2_refusal_compact.safetensors","strength_model_1":0.8,"string_b_1":"","unet_name_1":"krea2_turbo_int8_convrot.safetensors","clip_name_1":"qwen3vl_4b_fp8_scaled.safetensors","vae_name_1":"qwen_image_vae.safetensors"}},{"id":47,"type":"MarkdownNote","pos":[-1200,970],"size":[689.953125,509.953125],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[],"title":"LoRA Trigger Words and Settings","properties":{},"widgets_values":["## Model Links\n\n- [Hugging Face:Comfy-Org/Krea-2](https://huggingface.co/Comfy-Org/Krea-2)\n- [ModelScope:Comfy-Org/Krea-2](https://modelscope.cn/models/Comfy-Org/Krea-2)\n\nDownload the style LoRAs used in this workflow from [Comfy-Org/Krea-2/loras](https://huggingface.co/Comfy-Org/Krea-2/tree/main/loras). Place the `.safetensors` files in `ComfyUI/models/loras/`.\n\n| LoRA | Trigger Words | Recommended Strength |\n|------------------------|--------------------------------------|-------|\n| `krea2_darkbrush` | `monochrome ink wash style` | `1.0` |\n| `krea2_dotmatrix` | `monochrome stippling style` | `1.0` |\n| `krea2_kidsdrawing` | `naive expressive sketch style` | `1.0` |\n| `krea2_neondrip` | `textured abstract style` | `1.0` |\n| `krea2_rainywindow` | `rainy window style` | `1.0` |\n| `krea2_retroanime` | `purple retro anime style` | `1.0` |\n| `krea2_softwatercolor` | `art deco watercolor style` | `1.0` |\n| `krea2_sunsetblur` | `ethereal motion blur style` | `1.0` |\n| `krea2_vintagetarot` | `vintage tarot style` | `1.0` |"],"widgets_values_named":{"text":"## Model Links\n\n- [Hugging Face:Comfy-Org/Krea-2](https://huggingface.co/Comfy-Org/Krea-2)\n- [ModelScope:Comfy-Org/Krea-2](https://modelscope.cn/models/Comfy-Org/Krea-2)\n\nDownload the style LoRAs used in this workflow from [Comfy-Org/Krea-2/loras](https://huggingface.co/Comfy-Org/Krea-2/tree/main/loras). Place the `.safetensors` files in `ComfyUI/models/loras/`.\n\n| LoRA | Trigger Words | Recommended Strength |\n|------------------------|--------------------------------------|-------|\n| `krea2_darkbrush` | `monochrome ink wash style` | `1.0` |\n| `krea2_dotmatrix` | `monochrome stippling style` | `1.0` |\n| `krea2_kidsdrawing` | `naive expressive sketch style` | `1.0` |\n| `krea2_neondrip` | `textured abstract style` | `1.0` |\n| `krea2_rainywindow` | `rainy window style` | `1.0` |\n| `krea2_retroanime` | `purple retro anime style` | `1.0` |\n| `krea2_softwatercolor` | `art deco watercolor style` | `1.0` |\n| `krea2_sunsetblur` | `ethereal motion blur style` | `1.0` |\n| `krea2_vintagetarot` | `vintage tarot style` | `1.0` |"},"color":"#222","bgcolor":"#000"},{"id":48,"type":"MarkdownNote","pos":[-1940,-90],"size":[699.953125,989.953125],"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[],"title":"Model Links","properties":{},"widgets_values":["Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model Links\n\n- [Hugging Face:Comfy-Org/Krea-2](https://huggingface.co/Comfy-Org/Krea-2)\n- [ModelScope:Comfy-Org/Krea-2](https://modelscope.cn/models/Comfy-Org/Krea-2)\n\n**diffusion_models**\n\n- [krea2_turbo_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_int8_convrot.safetensors) (12.57 GB)\n\n**text_encoders**\n\n- [qwen3vl_4b_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors) (4.88 GB)\n\n**vae**\n\n- [qwen_image_vae.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors) (242 MB)\n\n**loras**\n\n- [krea2_darkbrush.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/loras/krea2_darkbrush.safetensors) (447.6 MB)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 diffusion_models/\n│ │ └── krea2_turbo_int8_convrot.safetensors\n│ ├── 📂 text_encoders/\n│ │ └── qwen3vl_4b_fp8_scaled.safetensors\n│ ├── 📂 vae/\n│ │ └── qwen_image_vae.safetensors\n│ └── 📂 loras/\n│ └── krea2_darkbrush.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"],"widgets_values_named":{"text":"Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model Links\n\n- [Hugging Face:Comfy-Org/Krea-2](https://huggingface.co/Comfy-Org/Krea-2)\n- [ModelScope:Comfy-Org/Krea-2](https://modelscope.cn/models/Comfy-Org/Krea-2)\n\n**diffusion_models**\n\n- [krea2_turbo_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_int8_convrot.safetensors) (12.57 GB)\n\n**text_encoders**\n\n- [qwen3vl_4b_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors) (4.88 GB)\n\n**vae**\n\n- [qwen_image_vae.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors) (242 MB)\n\n**loras**\n\n- [krea2_darkbrush.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/loras/krea2_darkbrush.safetensors) (447.6 MB)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 diffusion_models/\n│ │ └── krea2_turbo_int8_convrot.safetensors\n│ ├── 📂 text_encoders/\n│ │ └── qwen3vl_4b_fp8_scaled.safetensors\n│ ├── 📂 vae/\n│ │ └── qwen_image_vae.safetensors\n│ └── 📂 loras/\n│ └── krea2_darkbrush.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"},"color":"#222","bgcolor":"#000"},{"id":50,"type":"MarkdownNote","pos":[-1200,-90],"size":[699.953125,989.953125],"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[],"title":"Note: Krea-2","properties":{},"widgets_values":["Guide: [krea-2](https://docs.comfy.org/tutorials/image/krea/krea-2)\n\nThis workflow generates images with **Krea-2 Turbo**, a fast distilled text-to-image model. The workflow is organized into a few parts: each handles a different step so you can generate quickly without digging through every node.\n\n## Text to Image (Krea-2 Turbo) Subgraph\n\n- [Hugging Face:Comfy-Org/Krea-2](https://huggingface.co/Comfy-Org/Krea-2)\n- [ModelScope:Comfy-Org/Krea-2](https://modelscope.cn/models/Comfy-Org/Krea-2)\n\nDouble-click this node to open the full pipeline. Inside, the canvas is grouped into several areas:\n\n**Models**: Loads the diffusion model, text encoder, VAE, and optional style LoRA (`LoraLoaderModelOnly`).\n\n**Prompt**: Enter your image description in **Text String (User Prompt)**.\n\n**Prompt Enhancement**: Expands your prompt before generation. Enabled by default (`prompt_enhance`). You can turn it off to use your prompt as-is, or replace the built-in module with **OpenAI** or **Gemini** API nodes.\n\n**Feature Switch**: Quick toggles on the left side of the subgraph:\n- `prompt_enhance`: enable or disable prompt expansion\n- `enable_lora?`: enable or disable the style LoRA\n\n**Image Generation**: Handles latent sizing, sampling (8 steps), and VAE decode to produce the final image.\n\nWhen using a LoRA, set `enable_lora?` to true, select the matching file in **LoraLoaderModelOnly**, and adjust `lora_strength` as needed.\n\n## LoRA & Trigger Word (CustomCombo)\n\nOn the main canvas, the **CustomCombo** node is where you choose which style LoRA you are using (e.g. `krea2_coolblue`, `krea2_darkbrush`). The workflow uses your selection to automatically append the correct **trigger word** to your prompt.\n\n- Download LoRA files from [Comfy-Org/Krea-2/loras](https://huggingface.co/Comfy-Org/Krea-2/tree/main/loras) and place them in `ComfyUI/models/loras/`\n- Select the LoRA name that matches the file loaded inside the subgraph\n- The trigger word is applied for you: no need to type it manually\n- For trigger words and recommended strength values, see the **LoRA Trigger Words and Settings** note beside this workflow\n"],"widgets_values_named":{"text":"Guide: [krea-2](https://docs.comfy.org/tutorials/image/krea/krea-2)\n\nThis workflow generates images with **Krea-2 Turbo**, a fast distilled text-to-image model. The workflow is organized into a few parts: each handles a different step so you can generate quickly without digging through every node.\n\n## Text to Image (Krea-2 Turbo) Subgraph\n\n- [Hugging Face:Comfy-Org/Krea-2](https://huggingface.co/Comfy-Org/Krea-2)\n- [ModelScope:Comfy-Org/Krea-2](https://modelscope.cn/models/Comfy-Org/Krea-2)\n\nDouble-click this node to open the full pipeline. Inside, the canvas is grouped into several areas:\n\n**Models**: Loads the diffusion model, text encoder, VAE, and optional style LoRA (`LoraLoaderModelOnly`).\n\n**Prompt**: Enter your image description in **Text String (User Prompt)**.\n\n**Prompt Enhancement**: Expands your prompt before generation. Enabled by default (`prompt_enhance`). You can turn it off to use your prompt as-is, or replace the built-in module with **OpenAI** or **Gemini** API nodes.\n\n**Feature Switch**: Quick toggles on the left side of the subgraph:\n- `prompt_enhance`: enable or disable prompt expansion\n- `enable_lora?`: enable or disable the style LoRA\n\n**Image Generation**: Handles latent sizing, sampling (8 steps), and VAE decode to produce the final image.\n\nWhen using a LoRA, set `enable_lora?` to true, select the matching file in **LoraLoaderModelOnly**, and adjust `lora_strength` as needed.\n\n## LoRA & Trigger Word (CustomCombo)\n\nOn the main canvas, the **CustomCombo** node is where you choose which style LoRA you are using (e.g. `krea2_coolblue`, `krea2_darkbrush`). The workflow uses your selection to automatically append the correct **trigger word** to your prompt.\n\n- Download LoRA files from [Comfy-Org/Krea-2/loras](https://huggingface.co/Comfy-Org/Krea-2/tree/main/loras) and place them in `ComfyUI/models/loras/`\n- Select the LoRA name that matches the file loaded inside the subgraph\n- The trigger word is applied for you: no need to type it manually\n- For trigger words and recommended strength values, see the **LoRA Trigger Words and Settings** note beside this workflow\n"},"color":"#222","bgcolor":"#000"},{"id":49,"type":"ResolutionSelector","pos":[-470.98822421396517,264.4706502313856],"size":[269.953125,189.953125],"flags":{},"order":3,"mode":0,"showAdvanced":false,"inputs":[{"localized_name":"aspect_ratio","name":"aspect_ratio","type":"COMBO","widget":{"name":"aspect_ratio"},"link":null},{"localized_name":"megapixels","name":"megapixels","type":"FLOAT","widget":{"name":"megapixels"},"link":null},{"localized_name":"multiple","name":"multiple","type":"INT","widget":{"name":"multiple"},"link":null},{"localized_name":"preview","name":"preview","shape":7,"type":"RESOLUTION_PREVIEW","widget":{"name":"preview"},"link":null}],"outputs":[{"localized_name":"width","name":"width","type":"INT","links":[84]},{"localized_name":"height","name":"height","type":"INT","links":[85]}],"properties":{"Node name for S&R":"ResolutionSelector","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":["1:1 (Square)",1,8],"widgets_values_named":{"aspect_ratio":"1:1 (Square)","megapixels":1,"multiple":8}}],"links":[[44,30,0,29,0,"IMAGE"],[84,49,0,30,4,"INT"],[85,49,1,30,5,"INT"]],"groups":[],"definitions":{"subgraphs":[{"id":"b0e5ca93-2731-42b9-8e0a-d28ea851ff81","version":1,"state":{"lastGroupId":10,"lastNodeId":52,"lastLinkId":85,"lastRerouteId":0},"revision":0,"config":{},"name":"Text to Image (Krea-2 Turbo)","inputNode":{"id":-10,"bounding":[-1720,410,160.76953125,328]},"outputNode":{"id":-20,"bounding":[1560,496,128,68]},"inputs":[{"id":"b0f5c754-5322-440c-8c1c-ba732e910d33","name":"value","type":"STRING","linkIds":[45],"label":"prompt","pos":[-1583.23046875,434]},{"id":"47b0e74d-ef80-4423-a7a6-9bd1673092bb","name":"value_1","type":"BOOLEAN","linkIds":[46],"label":"prompt_enhance","pos":[-1583.23046875,454]},{"id":"5fc735ae-a50b-4363-bff9-850030ad5dd5","name":"max_length","type":"INT","linkIds":[49],"label":"LLM_max_token","pos":[-1583.23046875,474]},{"id":"5073bc0e-8fb9-4c26-9f78-934885dc7f80","name":"thinking","type":"BOOLEAN","linkIds":[73],"label":"LLM_thinking_mode","pos":[-1583.23046875,494]},{"id":"bb85a630-46eb-4695-ac24-0958bff31153","name":"width_1","type":"INT","linkIds":[74],"label":"width","pos":[-1583.23046875,514]},{"id":"697e61cc-1641-45af-9947-09608b8f6a5b","name":"height_1","type":"INT","linkIds":[75],"label":"height","pos":[-1583.23046875,534]},{"id":"9bdd880b-307f-4f67-a5e5-cb8a68e3c13f","name":"seed_1","type":"INT","linkIds":[76],"label":"seed","pos":[-1583.23046875,554]},{"id":"a4d672fc-9f7a-44a1-a103-53c9ebc3eb98","name":"value_3","type":"BOOLEAN","linkIds":[77],"label":"enable_lora","pos":[-1583.23046875,574]},{"id":"5e134b0f-0c57-4bc2-b829-896d1f4912e8","name":"lora_name_1","type":"COMBO","linkIds":[78],"label":"lora_name","pos":[-1583.23046875,594]},{"id":"1bf8b634-0301-47dc-b5b8-c24a6dfe68e6","name":"strength_model_1","type":"FLOAT","linkIds":[79],"label":"lora_strength","pos":[-1583.23046875,614]},{"id":"adf46919-9d02-4ce1-a892-22a959c1761e","name":"string_b_1","type":"STRING","linkIds":[80],"label":"lora_trigger_word","pos":[-1583.23046875,634]},{"id":"535330ae-584c-469d-8904-5e5181262e10","name":"unet_name_1","type":"COMBO","linkIds":[81],"label":"unet_name","pos":[-1583.23046875,654]},{"id":"3a07f910-ae12-4d67-8611-8ffb7a8d9224","name":"clip_name_1","type":"COMBO","linkIds":[82],"label":"clip_name","pos":[-1583.23046875,674]},{"id":"bceb095e-57f6-4221-9195-9d2f768bb7c9","name":"vae_name_1","type":"COMBO","linkIds":[83],"label":"vae_name","pos":[-1583.23046875,694]}],"outputs":[{"id":"e4073813-752d-4584-96b5-6e42eac355dd","name":"IMAGE","type":"IMAGE","linkIds":[43],"localized_name":"IMAGE","pos":[1584,520]}],"widgets":[],"nodes":[{"id":6,"type":"CLIPTextEncode","pos":[100,-250],"size":[479.96875,419.96875],"flags":{},"order":3,"mode":0,"inputs":[{"localized_name":"clip","name":"clip","type":"CLIP","link":10},{"localized_name":"text","name":"text","type":"STRING","widget":{"name":"text"},"link":72}],"outputs":[{"localized_name":"CONDITIONING","name":"CONDITIONING","type":"CONDITIONING","slot_index":0,"links":[4,13]}],"properties":{"Node name for S&R":"CLIPTextEncode","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":["A high-resolution, surreal digital illustration showing a human hand holding a martini glass. The image is overlaid with whimsical, expressive ink-style doodles, including a cartoon figure inside the glass, a drawn citrus wedge on the rim, and various abstract sketches and faces surrounding the glass against a clean, white background. The style seamlessly blends a realistic, lit photograph with loose, hand-drawn marker artistry, creating a playful and artistic juxtaposition."],"widgets_values_named":{"text":"A high-resolution, surreal digital illustration showing a human hand holding a martini glass. The image is overlaid with whimsical, expressive ink-style doodles, including a cartoon figure inside the glass, a drawn citrus wedge on the rim, and various abstract sketches and faces surrounding the glass against a clean, white background. The style seamlessly blends a realistic, lit photograph with loose, hand-drawn marker artistry, creating a playful and artistic juxtaposition."},"color":"#232","bgcolor":"#353"},{"id":5,"type":"EmptyLatentImage","pos":[170,350],"size":[319.96875,169.96875],"flags":{},"order":2,"mode":0,"inputs":[{"localized_name":"width","name":"width","type":"INT","widget":{"name":"width"},"link":74},{"localized_name":"height","name":"height","type":"INT","widget":{"name":"height"},"link":75},{"localized_name":"batch_size","name":"batch_size","type":"INT","widget":{"name":"batch_size"},"link":null}],"outputs":[{"localized_name":"LATENT","name":"LATENT","type":"LATENT","slot_index":0,"links":[2]}],"properties":{"Node name for S&R":"EmptyLatentImage","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":[1024,1024,1],"widgets_values_named":{"width":1024,"height":1024,"batch_size":1}},{"id":3,"type":"KSampler","pos":[640,-100],"size":[319.96875,589.96875],"flags":{},"order":1,"mode":0,"inputs":[{"localized_name":"model","name":"model","type":"MODEL","link":30},{"localized_name":"positive","name":"positive","type":"CONDITIONING","link":4},{"localized_name":"negative","name":"negative","type":"CONDITIONING","link":14},{"localized_name":"latent_image","name":"latent_image","type":"LATENT","link":2},{"localized_name":"seed","name":"seed","type":"INT","widget":{"name":"seed"},"link":76},{"localized_name":"steps","name":"steps","type":"INT","widget":{"name":"steps"},"link":null},{"localized_name":"cfg","name":"cfg","type":"FLOAT","widget":{"name":"cfg"},"link":null},{"localized_name":"sampler_name","name":"sampler_name","type":"COMBO","widget":{"name":"sampler_name"},"link":null},{"localized_name":"scheduler","name":"scheduler","type":"COMBO","widget":{"name":"scheduler"},"link":null},{"localized_name":"denoise","name":"denoise","type":"FLOAT","widget":{"name":"denoise"},"link":null}],"outputs":[{"localized_name":"LATENT","name":"LATENT","type":"LATENT","slot_index":0,"links":[7]}],"properties":{"Node name for S&R":"KSampler","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":[45862206397178,"randomize",8,1,"euler","simple",1],"widgets_values_named":{"seed":45862206397178,"control_after_generate":"randomize","steps":8,"cfg":1,"sampler_name":"euler","scheduler":"simple","denoise":1}},{"id":8,"type":"VAEDecode","pos":[1010,-270],"size":[229.96875,99.96875],"flags":{"collapsed":false},"order":4,"mode":0,"inputs":[{"localized_name":"samples","name":"samples","type":"LATENT","link":7},{"localized_name":"vae","name":"vae","type":"VAE","link":12}],"outputs":[{"localized_name":"IMAGE","name":"IMAGE","type":"IMAGE","slot_index":0,"links":[43]}],"properties":{"Node name for S&R":"VAEDecode","cnr_id":"comfy-core","ver":"0.25.0"}},{"id":10,"type":"UNETLoader","pos":[-410,-240],"size":[449.96875,139.96875],"flags":{},"order":5,"mode":0,"inputs":[{"localized_name":"unet_name","name":"unet_name","type":"COMBO","widget":{"name":"unet_name"},"link":81},{"localized_name":"weight_dtype","name":"weight_dtype","type":"COMBO","widget":{"name":"weight_dtype"},"link":null}],"outputs":[{"localized_name":"MODEL","name":"MODEL","type":"MODEL","links":[16,28]}],"properties":{"Node name for S&R":"UNETLoader","cnr_id":"comfy-core","ver":"0.25.0","models":[{"name":"krea2_turbo_int8_convrot.safetensors","url":"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_int8_convrot.safetensors","directory":"diffusion_models"}]},"widgets_values":["krea2_turbo_int8_convrot.safetensors","default"],"widgets_values_named":{"unet_name":"krea2_turbo_int8_convrot.safetensors","weight_dtype":"default"}},{"id":11,"type":"CLIPLoader","pos":[-410,150],"size":[449.96875,169.96875],"flags":{},"order":6,"mode":0,"inputs":[{"localized_name":"clip_name","name":"clip_name","type":"COMBO","widget":{"name":"clip_name"},"link":82},{"localized_name":"type","name":"type","type":"COMBO","widget":{"name":"type"},"link":null},{"localized_name":"device","name":"device","shape":7,"type":"COMBO","widget":{"name":"device"},"link":null}],"outputs":[{"localized_name":"CLIP","name":"CLIP","type":"CLIP","links":[10,18]}],"properties":{"Node name for S&R":"CLIPLoader","cnr_id":"comfy-core","ver":"0.25.0","models":[{"name":"qwen3vl_4b_fp8_scaled.safetensors","url":"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors","directory":"text_encoders"}]},"widgets_values":["qwen3vl_4b_fp8_scaled.safetensors","krea2","default"],"widgets_values_named":{"clip_name":"qwen3vl_4b_fp8_scaled.safetensors","type":"krea2","device":"default"}},{"id":12,"type":"VAELoader","pos":[-410,390],"size":[449.96875,119.96875],"flags":{},"order":7,"mode":0,"inputs":[{"localized_name":"vae_name","name":"vae_name","type":"COMBO","widget":{"name":"vae_name"},"link":83}],"outputs":[{"localized_name":"VAE","name":"VAE","type":"VAE","links":[12]}],"properties":{"Node name for S&R":"VAELoader","cnr_id":"comfy-core","ver":"0.25.0","models":[{"name":"qwen_image_vae.safetensors","url":"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors","directory":"vae"}]},"widgets_values":["qwen_image_vae.safetensors"],"widgets_values_named":{"vae_name":"qwen_image_vae.safetensors"}},{"id":13,"type":"ConditioningZeroOut","pos":[350,220],"size":[224.984375,26],"flags":{"collapsed":true},"order":8,"mode":0,"inputs":[{"localized_name":"conditioning","name":"conditioning","type":"CONDITIONING","link":13}],"outputs":[{"localized_name":"CONDITIONING","name":"CONDITIONING","type":"CONDITIONING","links":[14]}],"properties":{"Node name for S&R":"ConditioningZeroOut","cnr_id":"comfy-core","ver":"0.25.0"}},{"id":15,"type":"LoraLoaderModelOnly","pos":[-410,-50],"size":[449.96875,169.96875],"flags":{},"order":9,"mode":0,"inputs":[{"localized_name":"model","name":"model","type":"MODEL","link":16},{"localized_name":"lora_name","name":"lora_name","type":"COMBO","widget":{"name":"lora_name"},"link":78},{"localized_name":"strength_model","name":"strength_model","type":"FLOAT","widget":{"name":"strength_model"},"link":79}],"outputs":[{"localized_name":"MODEL","name":"MODEL","type":"MODEL","links":[29]}],"properties":{"Node name for S&R":"LoraLoaderModelOnly","cnr_id":"comfy-core","ver":"0.25.0","models":[{"name":"krea2_darkbrush.safetensors","url":"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/loras/krea2_darkbrush.safetensors","directory":"loras"}]},"widgets_values":["krea2_darkbrush.safetensors",0.8],"widgets_values_named":{"lora_name":"krea2_darkbrush.safetensors","strength_model":0.8}},{"id":16,"type":"TextGenerateV2","pos":[60,650],"size":[399.96875,465.875],"flags":{},"order":10,"mode":0,"inputs":[{"localized_name":"clip","name":"clip","type":"CLIP","link":18},{"localized_name":"image1","name":"images.image1","shape":7,"type":"IMAGE","link":null},{"localized_name":"video1","name":"videos.video1","shape":7,"type":"IMAGE","link":null},{"localized_name":"audio1","name":"audios.audio1","shape":7,"type":"AUDIO","link":null},{"localized_name":"system_prompt","name":"system_prompt","shape":7,"type":"STRING","link":null},{"localized_name":"prompt","name":"prompt","type":"STRING","widget":{"name":"prompt"},"link":19},{"localized_name":"max_length","name":"max_length","type":"INT","widget":{"name":"max_length"},"link":49},{"localized_name":"Sampling Mode","name":"sampling_mode","type":"COMFY_DYNAMICCOMBO_V3","widget":{"name":"sampling_mode"},"link":null},{"localized_name":"temperature","name":"sampling_mode.temperature","type":"FLOAT","widget":{"name":"sampling_mode.temperature"},"link":null},{"localized_name":"top_k","name":"sampling_mode.top_k","type":"INT","widget":{"name":"sampling_mode.top_k"},"link":null},{"localized_name":"top_p","name":"sampling_mode.top_p","type":"FLOAT","widget":{"name":"sampling_mode.top_p"},"link":null},{"localized_name":"min_p","name":"sampling_mode.min_p","type":"FLOAT","widget":{"name":"sampling_mode.min_p"},"link":null},{"localized_name":"repetition_penalty","name":"sampling_mode.repetition_penalty","type":"FLOAT","widget":{"name":"sampling_mode.repetition_penalty"},"link":null},{"localized_name":"presence_penalty","name":"sampling_mode.presence_penalty","type":"FLOAT","widget":{"name":"sampling_mode.presence_penalty"},"link":null},{"localized_name":"seed","name":"sampling_mode.seed","type":"INT","widget":{"name":"sampling_mode.seed"},"link":null},{"localized_name":"thinking","name":"thinking","shape":7,"type":"BOOLEAN","widget":{"name":"thinking"},"link":73},{"localized_name":"use_default_template","name":"use_default_template","shape":7,"type":"BOOLEAN","widget":{"name":"use_default_template"},"link":null},{"localized_name":"mtp","name":"mtp","shape":7,"type":"COMBO","widget":{"name":"mtp"},"link":null}],"outputs":[{"localized_name":"generated_text","name":"generated_text","type":"STRING","links":[33]},{"localized_name":"thinking","name":"thinking","type":"STRING","links":null}],"properties":{"Node name for S&R":"TextGenerateV2","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":["",512,"on",0.7,64,0.95,0.05,1.05,0,0,false,true,"auto"],"widgets_values_named":{"prompt":"","max_length":512,"sampling_mode":"on","sampling_mode.temperature":0.7,"sampling_mode.top_k":64,"sampling_mode.top_p":0.95,"sampling_mode.min_p":0.05,"sampling_mode.repetition_penalty":1.05,"sampling_mode.presence_penalty":0,"sampling_mode.seed":0,"thinking":false,"use_default_template":true,"mtp":"auto"}},{"id":17,"type":"StringConcatenate","pos":[-210,1310],"size":[224.984375,34],"flags":{"collapsed":true},"order":11,"mode":0,"inputs":[{"localized_name":"string_a","name":"string_a","type":"STRING","widget":{"name":"string_a"},"link":21},{"localized_name":"string_b","name":"string_b","type":"STRING","widget":{"name":"string_b"},"link":22},{"localized_name":"delimiter","name":"delimiter","type":"STRING","widget":{"name":"delimiter"},"link":null}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[19]}],"properties":{"Node name for S&R":"StringConcatenate","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":["","",""],"widgets_values_named":{"string_a":"","string_b":"","delimiter":""}},{"id":18,"type":"PrimitiveStringMultiline","pos":[-430,650],"size":[459.96875,609.96875],"flags":{},"order":0,"mode":0,"inputs":[{"localized_name":"value","name":"value","type":"STRING","widget":{"name":"value"},"link":null}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[21]}],"title":"Text String (System Prompt)","properties":{"Node name for S&R":"PrimitiveStringMultiline","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":["You are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into a highly effective image-generation prompt.\n\nThink step by step about the request before writing the answer:\n- What is the subject and mood?\n- What visual styles, mediums, and lighting options would fit? Consider two or three alternatives and pick the one that best serves the request.\n- What composition, framing, and grounded details will help the text-to-image model?\n\nThen output a single expanded prompt paragraph.\n\nFollow these rules strictly:\n1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.\n2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interactions, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose style, medium, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.\n4. **Never Request Rendered Text:** Do not mention, describe, or hint at letters, words, numbers, captions, subtitles, signage, labels, logos, watermarks, typography, or any other graphic text anywhere in the output prompt. Only if the user explicitly writes down words to be rendered, keep exactly those words in quotes and nothing else. In every other case, always end the output prompt with: \"Absolutely no text, no typography, no letters, no words, no numbers, no logos, no watermark, no captions, pure imagery only.\"\n5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports it.\n6. **Plain Prose Only:** Write one cohesive paragraph after the thinking block. No bullets, no JSON, no markdown, no asterisks, no headings, no field labels, no meta commentary.\n7. **Respect Existing Detail:** If the user's prompt is already detailed, lightly polish and finalize rather than heavily expanding, and preserve the user's phrasing and direction.\n8. **Respect the Human Form:** Treat depictions of people with dignity. Assume clothing covers genitals and intimate anatomy.\n9. **Preserve User Medium:** When the user explicitly requests a medium (e.g. \"photo of\", \"photograph of\", \"illustration of\", \"painting of\", \"sketch of\", \"3D render of\"), honor it. Do not pivot to a different medium to avoid difficulty, match the user's stated intent.\n10. **Never Echo Instructions:** Output only the final image prompt. Never repeat, quote, summarize, or refer to any part of these instructions, your own reasoning, or the user's original message.\n\nUser's Input:\n"],"widgets_values_named":{"value":"You are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into a highly effective image-generation prompt.\n\nThink step by step about the request before writing the answer:\n- What is the subject and mood?\n- What visual styles, mediums, and lighting options would fit? Consider two or three alternatives and pick the one that best serves the request.\n- What composition, framing, and grounded details will help the text-to-image model?\n\nThen output a single expanded prompt paragraph.\n\nFollow these rules strictly:\n1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.\n2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interactions, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose style, medium, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.\n4. **Never Request Rendered Text:** Do not mention, describe, or hint at letters, words, numbers, captions, subtitles, signage, labels, logos, watermarks, typography, or any other graphic text anywhere in the output prompt. Only if the user explicitly writes down words to be rendered, keep exactly those words in quotes and nothing else. In every other case, always end the output prompt with: \"Absolutely no text, no typography, no letters, no words, no numbers, no logos, no watermark, no captions, pure imagery only.\"\n5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports it.\n6. **Plain Prose Only:** Write one cohesive paragraph after the thinking block. No bullets, no JSON, no markdown, no asterisks, no headings, no field labels, no meta commentary.\n7. **Respect Existing Detail:** If the user's prompt is already detailed, lightly polish and finalize rather than heavily expanding, and preserve the user's phrasing and direction.\n8. **Respect the Human Form:** Treat depictions of people with dignity. Assume clothing covers genitals and intimate anatomy.\n9. **Preserve User Medium:** When the user explicitly requests a medium (e.g. \"photo of\", \"photograph of\", \"illustration of\", \"painting of\", \"sketch of\", \"3D render of\"), honor it. Do not pivot to a different medium to avoid difficulty, match the user's stated intent.\n10. **Never Echo Instructions:** Output only the final image prompt. Never repeat, quote, summarize, or refer to any part of these instructions, your own reasoning, or the user's original message.\n\nUser's Input:\n"}},{"id":19,"type":"PrimitiveStringMultiline","pos":[-1070,-290],"size":[569.96875,799.96875],"flags":{},"order":12,"mode":0,"inputs":[{"localized_name":"value","name":"value","type":"STRING","widget":{"name":"value"},"link":45}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[22,34]}],"title":"Text String (User Prompt)","properties":{"Node name for S&R":"PrimitiveStringMultiline","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":["Ultra low angle action shot, male soccer player jumping mid-air high kick, clear vivid blue sky background, forced perspective blurry foreground cleat (white & electric yellow), sharp focused upper body, maroon jersey + white shorts, fully outstretched leg striking a standard soccer ball, harsh direct sunlight, heavy dark shadows, stadium poles & treetops at frame bottom, high contrast sports photography, visible coarse film grain, dynamic movement"],"widgets_values_named":{"value":"Ultra low angle action shot, male soccer player jumping mid-air high kick, clear vivid blue sky background, forced perspective blurry foreground cleat (white & electric yellow), sharp focused upper body, maroon jersey + white shorts, fully outstretched leg striking a standard soccer ball, harsh direct sunlight, heavy dark shadows, stadium poles & treetops at frame bottom, high contrast sports photography, visible coarse film grain, dynamic movement"},"color":"#322","bgcolor":"#533"},{"id":20,"type":"PreviewAny","pos":[500,660],"size":[469.96875,549.96875],"flags":{"collapsed":false},"order":13,"mode":0,"inputs":[{"localized_name":"source","name":"source","type":"*","link":27}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[37,41]}],"properties":{"Node name for S&R":"PreviewAny","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":[],"widgets_values_named":{}},{"id":21,"type":"ComfySwitchNode","pos":[170,1270],"size":[269.96875,129.96875],"flags":{},"order":14,"mode":0,"inputs":[{"localized_name":"on_false","name":"on_false","shape":7,"type":"STRING","link":34},{"localized_name":"on_true","name":"on_true","shape":7,"type":"STRING","link":33},{"localized_name":"switch","name":"switch","type":"BOOLEAN","widget":{"name":"switch"},"link":32}],"outputs":[{"localized_name":"output","name":"output","type":"STRING","links":[27]}],"properties":{"Node name for S&R":"ComfySwitchNode","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":[false],"widgets_values_named":{"switch":false}},{"id":22,"type":"ComfySwitchNode","pos":[640,-270],"size":[319.96875,129.96875],"flags":{},"order":15,"mode":0,"inputs":[{"localized_name":"on_false","name":"on_false","shape":7,"type":"MODEL","link":28},{"localized_name":"on_true","name":"on_true","shape":7,"type":"MODEL","link":29},{"localized_name":"switch","name":"switch","type":"BOOLEAN","widget":{"name":"switch"},"link":31}],"outputs":[{"localized_name":"output","name":"output","type":"MODEL","links":[30]}],"title":"Switch (Model)","properties":{"Node name for S&R":"ComfySwitchNode","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":[false],"widgets_values_named":{"switch":false}},{"id":23,"type":"PrimitiveBoolean","pos":[-910,670],"size":[269.96875,109.96875],"flags":{},"order":16,"mode":0,"inputs":[{"localized_name":"value","name":"value","type":"BOOLEAN","widget":{"name":"value"},"link":77}],"outputs":[{"localized_name":"BOOLEAN","name":"BOOLEAN","type":"BOOLEAN","links":[31,42]}],"title":"Boolean (Enable LoRA?)","properties":{"Node name for S&R":"PrimitiveBoolean","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":[false],"widgets_values_named":{"value":false}},{"id":24,"type":"PrimitiveBoolean","pos":[-910,840],"size":[269.96875,109.96875],"flags":{},"order":17,"mode":0,"inputs":[{"localized_name":"value","name":"value","type":"BOOLEAN","widget":{"name":"value"},"link":46}],"outputs":[{"localized_name":"BOOLEAN","name":"BOOLEAN","type":"BOOLEAN","links":[32]}],"title":"Boolean (Refine Prompt?)","properties":{"Node name for S&R":"PrimitiveBoolean","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":[true],"widgets_values_named":{"value":true}},{"id":27,"type":"StringConcatenate","pos":[1030,960],"size":[349.96875,249.96875],"flags":{"collapsed":false},"order":18,"mode":0,"inputs":[{"localized_name":"string_a","name":"string_a","type":"STRING","widget":{"name":"string_a"},"link":41},{"localized_name":"string_b","name":"string_b","type":"STRING","widget":{"name":"string_b"},"link":80},{"localized_name":"delimiter","name":"delimiter","type":"STRING","widget":{"name":"delimiter"},"link":null}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[38]}],"title":"Concatenate Text (LoRA Trigger Word)","properties":{"Node name for S&R":"StringConcatenate","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":["","muted minimalist sketch style",", "],"widgets_values_named":{"string_a":"","string_b":"muted minimalist sketch style","delimiter":", "}},{"id":28,"type":"ComfySwitchNode","pos":[1050,670],"size":[339.96875,129.96875],"flags":{},"order":19,"mode":0,"inputs":[{"localized_name":"on_false","name":"on_false","shape":7,"type":"STRING","link":37},{"localized_name":"on_true","name":"on_true","shape":7,"type":"STRING","link":38},{"localized_name":"switch","name":"switch","type":"BOOLEAN","widget":{"name":"switch"},"link":42}],"outputs":[{"localized_name":"output","name":"output","type":"STRING","links":[72]}],"properties":{"Node name for S&R":"ComfySwitchNode","cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":[false],"widgets_values_named":{"switch":false}}],"groups":[{"id":1,"title":"Models","bounding":[-430,-320,490,850],"color":"#3f789e","flags":{}},{"id":4,"title":"Prompt Enhancement","bounding":[-440,580,1940,840],"color":"#3f789e","flags":{}},{"id":5,"title":"Group","bounding":[-1080,-360,610,910],"color":"#3f789e","flags":{}},{"id":6,"title":"Image Generation","bounding":[-440,-360,1940,910],"color":"#3f789e","flags":{}},{"id":7,"title":"Prompt","bounding":[90,-320,500,570],"color":"#3f789e","flags":{}},{"id":8,"title":"Size","bounding":[90,270,500,260],"color":"#3f789e","flags":{}},{"id":9,"title":"Feature Switch","bounding":[-1080,580,610,400],"color":"#3f789e","flags":{}}],"links":[{"id":10,"origin_id":11,"origin_slot":0,"target_id":6,"target_slot":0,"type":"CLIP"},{"id":30,"origin_id":22,"origin_slot":0,"target_id":3,"target_slot":0,"type":"MODEL"},{"id":4,"origin_id":6,"origin_slot":0,"target_id":3,"target_slot":1,"type":"CONDITIONING"},{"id":14,"origin_id":13,"origin_slot":0,"target_id":3,"target_slot":2,"type":"CONDITIONING"},{"id":2,"origin_id":5,"origin_slot":0,"target_id":3,"target_slot":3,"type":"LATENT"},{"id":7,"origin_id":3,"origin_slot":0,"target_id":8,"target_slot":0,"type":"LATENT"},{"id":12,"origin_id":12,"origin_slot":0,"target_id":8,"target_slot":1,"type":"VAE"},{"id":13,"origin_id":6,"origin_slot":0,"target_id":13,"target_slot":0,"type":"CONDITIONING"},{"id":16,"origin_id":10,"origin_slot":0,"target_id":15,"target_slot":0,"type":"MODEL"},{"id":21,"origin_id":18,"origin_slot":0,"target_id":17,"target_slot":0,"type":"STRING"},{"id":22,"origin_id":19,"origin_slot":0,"target_id":17,"target_slot":1,"type":"STRING"},{"id":27,"origin_id":21,"origin_slot":0,"target_id":20,"target_slot":0,"type":"STRING"},{"id":34,"origin_id":19,"origin_slot":0,"target_id":21,"target_slot":0,"type":"STRING"},{"id":33,"origin_id":16,"origin_slot":0,"target_id":21,"target_slot":1,"type":"STRING"},{"id":32,"origin_id":24,"origin_slot":0,"target_id":21,"target_slot":2,"type":"BOOLEAN"},{"id":28,"origin_id":10,"origin_slot":0,"target_id":22,"target_slot":0,"type":"MODEL"},{"id":29,"origin_id":15,"origin_slot":0,"target_id":22,"target_slot":1,"type":"MODEL"},{"id":31,"origin_id":23,"origin_slot":0,"target_id":22,"target_slot":2,"type":"BOOLEAN"},{"id":41,"origin_id":20,"origin_slot":0,"target_id":27,"target_slot":0,"type":"STRING"},{"id":37,"origin_id":20,"origin_slot":0,"target_id":28,"target_slot":0,"type":"STRING"},{"id":38,"origin_id":27,"origin_slot":0,"target_id":28,"target_slot":1,"type":"STRING"},{"id":42,"origin_id":23,"origin_slot":0,"target_id":28,"target_slot":2,"type":"BOOLEAN"},{"id":43,"origin_id":8,"origin_slot":0,"target_id":-20,"target_slot":0,"type":"IMAGE"},{"id":45,"origin_id":-10,"origin_slot":0,"target_id":19,"target_slot":0,"type":"STRING"},{"id":46,"origin_id":-10,"origin_slot":1,"target_id":24,"target_slot":0,"type":"BOOLEAN"},{"id":72,"origin_id":28,"origin_slot":0,"target_id":6,"target_slot":1,"type":"STRING"},{"id":74,"origin_id":-10,"origin_slot":4,"target_id":5,"target_slot":0,"type":"INT"},{"id":75,"origin_id":-10,"origin_slot":5,"target_id":5,"target_slot":1,"type":"INT"},{"id":76,"origin_id":-10,"origin_slot":6,"target_id":3,"target_slot":4,"type":"INT"},{"id":77,"origin_id":-10,"origin_slot":7,"target_id":23,"target_slot":0,"type":"BOOLEAN"},{"id":78,"origin_id":-10,"origin_slot":8,"target_id":15,"target_slot":1,"type":"COMBO"},{"id":79,"origin_id":-10,"origin_slot":9,"target_id":15,"target_slot":2,"type":"FLOAT"},{"id":80,"origin_id":-10,"origin_slot":10,"target_id":27,"target_slot":1,"type":"STRING"},{"id":81,"origin_id":-10,"origin_slot":11,"target_id":10,"target_slot":0,"type":"COMBO"},{"id":82,"origin_id":-10,"origin_slot":12,"target_id":11,"target_slot":0,"type":"COMBO"},{"id":83,"origin_id":-10,"origin_slot":13,"target_id":12,"target_slot":0,"type":"COMBO"},{"id":18,"origin_id":11,"origin_slot":0,"target_id":16,"target_slot":0,"type":"CLIP"},{"id":19,"origin_id":17,"origin_slot":0,"target_id":16,"target_slot":5,"type":"STRING"},{"id":49,"origin_id":-10,"origin_slot":2,"target_id":16,"target_slot":6,"type":"INT"},{"id":73,"origin_id":-10,"origin_slot":3,"target_id":16,"target_slot":15,"type":"BOOLEAN"}],"extra":{}}]},"config":{},"extra":{"ds":{"scale":0.7400249944258178,"offset":[1069.7964325969097,593.7698931068466]},"frontendVersion":"1.47.10","VHS_latentpreview":false,"VHS_latentpreviewrate":0,"VHS_MetadataImage":true,"VHS_KeepIntermediate":true},"version":0.4} \ No newline at end of file