Compare commits

...
1 Commits
Author SHA1 Message Date
ketle-manandClaude Opus 5.5 1fdfbf66b6 docs: manual v0.10.3 — Game tab (11-8), backup changes from v0.9.10
- Chapter 11: new section 11-8 Game (installing the game pack, preparing
  the workflow, the screen, when images are generated, cards, settings,
  the 6 games and their controls); 11-5 Data Management covers the
  browser settings now included in backups and the new full-backup
  checkboxes.
- Chapter 3: the Game tab in the tab list; Chapter 12: Game tab
  troubleshooting; Appendix C: link to ComfyUI-WFS-Games;
  Introduction: covers v0.10.3.
- Japanese and English; combined MD and ZIP rebuilt (v0.9.9 files
  removed). README points to the v0.10.3 manual and EPUB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 16:45:48 +09:00
21 changed files with 611 additions and 22 deletions
+1
View File
@@ -8,6 +8,7 @@
- ヘルプに Smash Heart(helpGame12)と Knight Heart(helpGame13)の項目を追加(英日中)。README の Game タブ節に第5弾・第6弾を追加。Host API の変更はなし。
- 結果タブの説明(gameResultEmpty)とヘルプの画像生成の説明(helpGame6)が Star Formation のリナ専用の書き方だったので、ゲームごとのヒロインを指す共通の説明に修正(英日中)。
- マニュアル(docs/manual、日英)を v0.10.3 版に改訂: 第11章に「11-8 Game」(準備・画面・画像のタイミング・カード・設定・収録ゲーム・操作)、11-5 データ管理にブラウザ設定の同梱とフルバックアップのチェックボックス(v0.9.10)、第3章のタブ一覧、第12章に Game タブのトラブル、付録Cにゲームパックのリンク。全章まとめ MD・ZIP を作り直し、EPUB(画像77枚、Gameタブ2枚を追加・タブ一覧を撮り直し)を Google ドライブに公開。
- 第5弾 Smash Heart(パック側): 自分のコートの後ろから見るテニス。ナナミ vs 5人のライバル、1試合4ゲーム(2-2は引き分けで再戦か終了)、BGMなし(録音した効果音・合成した靴音・音声合成の主審コール)。
- 第6弾 Knight Heart(パック側): 段差とスピードが軸の横スクロールアクション。見習い騎士カノン、勢い・坂の加減速・スライディング・ジャンプ台、鎧(1回目で割れる)と VITA、5ステージ+ボス(足場のある部屋、大技の予告、真上・真下投げ、戦い方のヒント)、ゲームオーバーでステージのやり直し(敗北シーンはあきらめたときだけ生成)。
+4 -4
View File
@@ -133,12 +133,12 @@ Sample for the Game tab: `ws_game_sdxl_t2i` (v0.10.0, SDXL text-to-image, 1216x8
## Manual
A beginner-oriented manual (covers v0.9.9, text-only edition without screenshots) is available in [`docs/manual/`](docs/manual/):
A beginner-oriented manual (covers v0.10.3, text-only edition without screenshots) is available in [`docs/manual/`](docs/manual/):
- English: [`docs/manual/en/`](docs/manual/en/) — ZIP: `Workflow_Studio_Manual_v0.9.9_en.zip`
- 日本語: [`docs/manual/`](docs/manual/) — ZIP: `Workflow_Studio_Manual_v0.9.9.zip`
- English: [`docs/manual/en/`](docs/manual/en/) — ZIP: `Workflow_Studio_Manual_v0.10.3_en.zip`
- 日本語: [`docs/manual/`](docs/manual/) — ZIP: `Workflow_Studio_Manual_v0.10.3.zip`
An EPUB edition with screenshots (Japanese and English, v0.9.9) is available on [Google Drive](https://drive.google.com/drive/folders/14mOHcnLYrFgNrOo6fy7ELyFjjWrAoU-_?usp=sharing).
An EPUB edition with screenshots (Japanese and English, v0.10.3) is available on [Google Drive](https://drive.google.com/drive/folders/14mOHcnLYrFgNrOo6fy7ELyFjjWrAoU-_?usp=sharing).
---
+4 -4
View File
@@ -629,12 +629,12 @@ Sample for the Game tab: `ws_game_sdxl_t2i` (v0.10.0, SDXL text-to-image, 1216x8
## Manual
A beginner-oriented manual (covers v0.9.9, text-only edition without screenshots) is available in [`docs/manual/`](docs/manual/):
A beginner-oriented manual (covers v0.10.3, text-only edition without screenshots) is available in [`docs/manual/`](docs/manual/):
- English: [`docs/manual/en/`](docs/manual/en/) — ZIP: `Workflow_Studio_Manual_v0.9.9_en.zip`
- 日本語: [`docs/manual/`](docs/manual/) — ZIP: `Workflow_Studio_Manual_v0.9.9.zip`
- English: [`docs/manual/en/`](docs/manual/en/) — ZIP: `Workflow_Studio_Manual_v0.10.3_en.zip`
- 日本語: [`docs/manual/`](docs/manual/) — ZIP: `Workflow_Studio_Manual_v0.10.3.zip`
An EPUB edition with screenshots (Japanese and English, v0.9.9) is available on [Google Drive](https://drive.google.com/drive/folders/14mOHcnLYrFgNrOo6fy7ELyFjjWrAoU-_?usp=sharing).
An EPUB edition with screenshots (Japanese and English, v0.10.3) is available on [Google Drive](https://drive.google.com/drive/folders/14mOHcnLYrFgNrOo6fy7ELyFjjWrAoU-_?usp=sharing).
---
+3 -3
View File
@@ -2,12 +2,12 @@
ノードが苦手でも大丈夫 ― 画像生成をもっと手軽に、もっと整理して
- 対象バージョン:Workflow Studio v0.9.9
- 対象バージョン:Workflow Studio v0.10.3
- 著者:ketle-man
- © 2026 ketle-man
このマニュアルは、Kindle版をもとにした **画像なしのテキスト版** です。
章ごとのファイルは `chapters/` フォルダ、全章をまとめたファイルは `Workflow_Studio_Manual_v0.9.9.md` です。
章ごとのファイルは `chapters/` フォルダ、全章をまとめたファイルは `Workflow_Studio_Manual_v0.10.3.md` です。
画面の例は省略しているため、実際の画面はWorkflow Studioのヘルプタブとあわせてご覧ください。
## 目次
@@ -29,4 +29,4 @@
- [13_付録](chapters/13_付録.md)
- [14_おわりに](chapters/14_おわりに.md)
全章まとめ:[Workflow_Studio_Manual_v0.9.9.md](Workflow_Studio_Manual_v0.9.9.md)
全章まとめ:[Workflow_Studio_Manual_v0.10.3.md](Workflow_Studio_Manual_v0.10.3.md)
@@ -2,12 +2,12 @@
ノードが苦手でも大丈夫 ― 画像生成をもっと手軽に、もっと整理して
- 対象バージョン:Workflow Studio v0.9.9
- 対象バージョン:Workflow Studio v0.10.3
- 著者:ketle-man
- © 2026 ketle-man
このマニュアルは、Kindle版をもとにした **画像なしのテキスト版** です。
章ごとのファイルは `chapters/` フォルダ、全章をまとめたファイルは `Workflow_Studio_Manual_v0.9.9.md` です。
章ごとのファイルは `chapters/` フォルダ、全章をまとめたファイルは `Workflow_Studio_Manual_v0.10.3.md` です。
画面の例は省略しているため、実際の画面はWorkflow Studioのヘルプタブとあわせてご覧ください。
---
@@ -98,6 +98,7 @@ Workflow Studioは、そうして作り上げたワークフローを **素早
- **ローカルAI連携** - 日本語からのプロンプト翻訳、画像からのプロンプト・タグ作成
- **Tagger・Video** - 画像からのタグ自動生成、動画の生成と簡単な編集
- **TagSpace** - 手持ちのプロンプト・タグ・生成画像を「意味の近さ」で3Dの空間に並べ、眺めながらタグを選ぶ
- **Game**(実験的機能) - 別パッケージのミニゲームで遊び、ステージをクリアするたびにヒロインの画像を生成する
---
@@ -143,7 +144,7 @@ ComfyUIの「自由さ」はそのままに、「分かりやすさ」と「手
## 本書の対象バージョンと環境
- **Workflow Studio**:v0.9.9
- **Workflow Studio**:v0.10.3(Gameタブのゲームパック ComfyUI-WFS-Games は v0.4.1)
- **ComfyUI**:本書執筆時点の最新版
- **OS**:Windows(画面の例はWindowsのものです)
@@ -622,6 +623,7 @@ Workflow Studioを開くと、画面の上部にタブが横一列に並んで
| Video | Video | 動画生成・動画編集 | | 第11章 |
| Tagger | Tagger | 画像からタグ(プロンプト)を自動生成 | | 第11章 |
| TagSpace | TagSpace | タグ・プロンプト・生成画像を意味の近さで3D表示し、タグを選ぶ | | 第11章 |
| Game | Game | ミニゲームで遊び、クリアした結果で画像を生成する(ゲームパックを入れたときだけ表示) | | 第11章 |
| 設定 | Settings | 言語・テーマ・フォルダなどの設定 | | 本章・第11章 |
| ヘルプ | Help | 機能一覧・ショートカット・トラブル対処 | | 本章 |
| AI TOOL | AI TOOL | ローカルAIによる翻訳・チャット・画像解析・文字起こし(OCR) | | 第10章 |
@@ -636,6 +638,8 @@ Workflow Studioを開くと、画面の上部にタブが横一列に並んで
- **補助する** - AI TOOL/Tagger/TagSpace/設定/ヘルプ
他のタブでの作業を助けたり、全体の設定をしたりするタブです。
**Game** タブは、別パッケージのゲームパックを入れたときだけ表示される、遊びながら画像を作る特別なタブです(第11章 11-8)。
> **ポイント**
> 各タブは互いにつながっています。
> たとえば、ワークフロータブで選んだワークフローを生成UIに読み込んだり、
@@ -3307,6 +3311,17 @@ Checkpointが自動で指定のモデルに差し替わります。モデルの
**フルバックアップ (ZIP)** を使うと、スタイルやLabのプランなどのフォルダ単位のデータも含めて、まとめてバックアップできます。
v0.9.10からは、ブラウザ側に保存している設定(グループ、バッジの色、外観、AI・VRAM調整の設定、各種プリセット、Gameタブの設定など)も、
JSONのエクスポートとフルバックアップの両方に含まれるようになりました。
インポート(復元)のあとに表示される **ページを再読み込み** を押すと、ブラウザ側の設定が反映されます。続けてComfyUIも再起動してください。
フルバックアップでは、次のデータを含めるかどうかをチェックボックスで選べます。
| チェックボックス | 内容 |
| --- | --- |
| Galleryセマンティック検索のインデックスを含める | 既定はオン。作り直すと全画像の埋め込みをやり直すことになる(Geminiでは API の利用料がかかる) |
| TagSpaceのキャッシュを含める | 既定はオフ。大きいが、TagSpaceタブで作り直せる |
> **ポイント**
> パソコンの買い替えやComfyUIの入れ直しの前には、必ずバックアップを取っておきましょう。
> 時間をかけて整理した情報を、そのまま新しい環境に引き継げます。
@@ -3428,6 +3443,126 @@ Gallery点を選んでいるときは、**選択中** に **Galleryで開く**
---
## 11-8 Game - ゲームで遊んで、クリアした結果で画像を作る(v0.10.0〜、実験的機能)
**Game** タブでは、80年代のパソコンゲーム風のミニゲームを遊べます。
ステージをクリアするたびに、そのゲームのヒロインの「勝利の記念カット」が、ComfyUIで自動的に生成されます。
遊んでいる間も生成はバックグラウンドで進むので、プレイを止める必要はありません。
ゲーム本体は、Workflow Studioとは別のパッケージ **ComfyUI-WFS-Games**(ゲームパック)で配布しています。
ゲームパックを入れていない環境では、Gameタブもヘルプタブの「Gameタブ」のページも表示されません(ほかのタブには何も影響しません)。
### 準備1:ゲームパックをインストールする
ゲームパックは ComfyUI Manager には登録していません。次のどちらかの方法で入れます。
- **git を使う場合**:コマンドプロンプトなどで `ComfyUI/custom_nodes` フォルダに移動し、次を実行します。
```
git clone https://github.com/ketle-man/ComfyUI-WFS-Games
```
- **ZIPを使う場合**:GitHubのリリースページ(https://github.com/ketle-man/ComfyUI-WFS-Games/releases)から最新版のZIPをダウンロードし、
`ComfyUI/custom_nodes` の中に展開します。フォルダ名は `ComfyUI-WFS-Games` にしておきます。
ComfyUIを再起動してからWorkflow Studioを開くと、TagSpaceタブの右に **Game** タブが表示されます。
ゲームパックはWorkflow Studio v0.10.0以降で使えます。
### 準備2:画像を生成するワークフローを用意する
Gameタブの画像は、設定で選んだワークフローで生成します。既定は、Gameタブ用に用意したサンプル **`ws_game_sdxl_t2i`** です
(SDXL(Illustrious系)で文章から画像を作るワークフロー。サイズは1216×832、出力先は `ComfyUI/output/WFS_Game`)。
サンプルに保存されているCheckpointは、あなたのパソコンには入っていないことが多いので、次の手順で自分のモデルに合わせます。
1. 第4章 4-8の手順で、`workflows` フォルダの `ws_game_sdxl_t2i.png` をワークフロータブに取り込みます。
2. 取り込んだワークフローを生成UIに読み込み、**Model** で手持ちのSDXLのCheckpointを選んで **Apply** を押します(第5章)。
3. **Save** で名前を付けて保存します(第5章「生成したワークフローを保存する」)。
4. Gameタブの右の **設定** タブにある **ワークフロー** で、保存したワークフローを選びます。
一覧に出ないときは、横の **ワークフロー一覧を再読み込み** ボタンを押します。
ポジティブプロンプトのノードがあれば、ほかの「文章から画像を作る」ワークフローも使えます。
> **注意**
> ワークフローに保存されているCheckpointがパソコンに無いと、ゲームの画像はエラーになって生成されません。
> 生成UIで一度生成してみて、うまくいったワークフローを選んでください。
### 画面の見方
| 場所 | 内容 |
| --- | --- |
| 左 **ゲーム** | インストールされているゲームの一覧。クリックすると中央でゲームが始まる |
| 中央 | ゲーム画面。右上の **リスタート** で、タイトル画面からやり直す |
| 右 **結果** タブ | 生成した画像のカード(新しいものが上) |
| 右 **設定** タブ | プレイ設定と画像生成の設定 |
ゲーム画面を **クリック** すると、キー操作がゲームに入ります(そこで押したキーは、Workflow Studioのほかの操作に影響しません)。
ほかのタブやウィンドウに切り替えると、ゲームは一時停止します。
### 画像が生成されるタイミング
| タイミング | カード | 生成される画像 |
| --- | --- | --- |
| ステージをクリアしたとき | そのステージのカード | そのステージを背景にした、ヒロインの勝利の記念カット |
| そのステージのハートを5個全部取っていたとき | ピンクのカード(PERFECT!) | 勝利の記念カットの代わりに、私服で過ごすヒロインのプライベート写真 |
| 全ステージをクリアしたとき | ENDING | エンディングの場面 |
| ゲームオーバーになったとき | 赤い GAME OVER | 負けたステージを背景にした、ヒロインの敗北の場面 |
画像は1枚ずつ順番に作られます。シード(seed)は毎回ランダムです。
画像は `ComfyUI/output/WFS_Game` に保存され、タイトル画面から新しくゲームを始めると、結果タブのカードは消えます(画像は残ります)。
プライベート写真の服装は、ゲームやステージによって変わります。ゲームがネガティブのタグを足して、水着より先にはならないようにしています。
### カードでできること
- **プロンプト** を開くと、ゲームから渡されたプロンプトが、種類(**画風**・**ヒロイン**・**シーン**・**ステージ**)付きで並びます。
使わないもののチェックを外したり、**生成するプロンプト(編集できます)** を書き換えたりして、**再生成** を押すと作り直せます。
- **GenerateUIで開く** を押すと、そのカードのプロンプトを入れたワークフローが生成UIに読み込まれます。
サイズやモデルを変えて、生成UIで作り直したいときに便利です。
### 設定タブ
| 項目 | 内容 |
| --- | --- |
| 難易度 | やさしい・ふつう・むずかしい。残機などがゲームごとに変わる |
| BGM・効果音 | オン・オフ |
| ワークフロー | 画像の生成に使うワークフロー(上の準備2) |
| ベースプロンプト | ゲームから渡されたプロンプトの前に付ける言葉 |
| ネガティブプロンプト | 空欄なら、ワークフローのネガティブをそのまま使う。ゲームが追加するネガティブは、ここに足される |
| ステージクリアごとに画像を生成する/エンディング画像も自動で生成する/ゲームオーバー時も画像を生成する | オフにすると、カードの **生成** を押したときにだけ生成する |
プレイ設定(難易度・BGM・効果音)を変えると、ゲームは最初からになります。
設定はブラウザに保存され、設定タブのバックアップにも含まれます(11-5)。
> **ポイント**
> Gameタブを開いている間は、VRAM調整のメッセージ(トースト)を表示しません。ゲーム画面が隠れないようにするためです。
### 収録されているゲーム(ゲームパック v0.4.1)
| ゲーム | ジャンル | ヒロイン | 内容 |
| --- | --- | --- | --- |
| Star Formation | 縦シューティング | リナ | 全5ステージ。各ステージの最後にボス。黄色く点滅する敵を倒すとハートが落ちてくる |
| Turbo Heart | レース | ミサキ | 全5レース。8台で走り、3位以内でゴールすると次のレースへ。ニトロ、障害物 |
| Prompt Typer | タイピング | (なし) | 全10ステージ。打った文字が、打ち間違いも含めてそのまま画像のプロンプトになる。85%以上正しく打てばクリア |
| Sky Heart | 画面の奥へ飛ぶシューティング | ヒカリ | 全5ステージ+ボス。高度計、空中と地上のハート、パワーアップ |
| Smash Heart | テニス | ナナミ | 5人のライバルと対戦。1試合4ゲーム。BGMはなく、打球音や主審のコールで臨場感を出す |
| Knight Heart | 横スクロールアクション | カノン | 全5ステージ+ボス。坂で加速し、走りながらスライディング、速く走るほど遠くへ跳べる |
ハートは、Prompt Typer以外のゲームで各ステージ(各レース・各試合)に5個あります。
Prompt Typerは、クリアしてもしなくても、毎ステージ画像を生成します(日本語・中国語で打つときは、その言語が分かる画像モデルを使ってください)。
### 操作
| ゲーム | 操作 |
| --- | --- |
| Star Formation | ← →(A D)で移動、Space または Z でショット |
| Turbo Heart | ← → でハンドル、↑ または Z でアクセル、↓ または X でブレーキ、Space または C でニトロ(1レース3回) |
| Prompt Typer | 文字を打つ。ステージの後は Enter で次へ、R でリトライ、Q であきらめる。タイトルで ↑ ↓ で言語、← → で開始ステージ |
| Sky Heart | 矢印キーまたは WASD で移動、Space または Z を押しっぱなしでショット |
| Smash Heart | 矢印キーで移動、Z または Space で打つ、X でロブ。打つ瞬間に ← → で狙う。サーブは Z でトス、もう一度 Z で打つ |
| Knight Heart | ← → で移動、Space または X でジャンプ、Z または C で攻撃(↑+攻撃で真上、空中で ↓+攻撃で真下)、走りながら ↓ でスライディング |
一時停止は、どのゲームも **Esc** または **P** です。ゲームパッドも使えます(Prompt Typerを除く)。
ゲームごとの細かいルールは、ヘルプタブの **Gameタブ** のページにまとめています。
> **ポイント**
> Knight Heartでゲームオーバーになったときは、**そのステージからやり直す** か **あきらめる** かを選べます。
> 敗北の場面の画像は、あきらめたときだけ生成されます。一時停止中に **R** を押すと、残りを1つ使ってステージを最初からやり直せます。
---
> **この章のまとめ**
> - ノードタブでインストール済みのノードを一覧・整理でき、WS Libraryで使える
> - Taggerは画像からタグを自動生成する。モデルと追加パッケージの準備が必要
@@ -3436,6 +3571,7 @@ Gallery点を選んでいるときは、**選択中** に **Galleryで開く**
> - 設定タブの「デフォルトCheckpoint」と「データ管理(バックアップ)」は特に便利
> - 同じ作者の Comic Creator と組み合わせると、生成した画像でマンガを作れる
> - TagSpaceでは、手持ちのタグ・プロンプト・生成画像を意味の近さで3Dに並べ、眺めながらタグを選んでプロンプトを作れる
> - Gameタブでは、ゲームパックのミニゲームで遊び、ステージをクリアするたびにヒロインの画像を自動で生成できる
---
@@ -3638,6 +3774,16 @@ ComfyUIを停止し、ComfyUIのPythonで `pip uninstall -y onnxruntime onnxrunt
`.env` にComfy APIキーが無いのが原因です。プラグインの `.env` に `COMFY_API_KEY=キー`(platform.comfy.orgで発行)を書き、ComfyUIを再起動してください(第5章 5-8)。
`.env` は起動時にしか読み込まれません。
### Gameタブが表示されない・ゲームが動かない
| 症状 | 原因 | 対処 |
| --- | --- | --- |
| Gameタブが無い | ゲームパック(ComfyUI-WFS-Games)が入っていない、または入れたあとComfyUIを再起動していない | 第11章 11-8の手順で入れて、ComfyUIを再起動する。Workflow Studio v0.10.0以降が必要 |
| キーを押してもゲームが動かない | ゲーム画面にキー入力が入っていない | ゲーム画面を一度クリックする |
| 「Game の設定でワークフローが選ばれていません。」と出る | 設定タブのワークフローが空 | 設定タブの **ワークフロー** で選ぶ(第11章 11-8 準備2) |
| 「ワークフローにポジティブプロンプトのノードがありません。」と出る | 選んだワークフローに、プロンプトを書き込むノードが見つからない | 文章から画像を作るワークフローを選ぶ |
| カードがエラーになり画像ができない | ワークフローのCheckpointがパソコンに無い | 生成UIで手持ちのモデルに変えて保存し、それを選ぶ(第11章 11-8 準備2) |
| ゲームを更新したのに古いまま | ブラウザが古いファイルを覚えている | **Ctrl+F5** でページを再読み込みする |
### ComfyUIが固まる(どのタブも反応しなくなる)
Windowsで、プレビュー画像の多いモデルタブの一覧を切り替えたあとなどに、ComfyUIが反応しなくなる(生成もできなくなる)場合があります。
設定タブの **Windowsの安定性(イベントループ)** で、**WindowsでSelectorイベントループを使用する** をオンにして、ComfyUIを再起動してください。
@@ -3821,6 +3967,7 @@ Workflow Studioの **ヘルプ** タブにも、トラブルシューティン
| --- | --- | --- |
| ComfyUI Comic Creator(https://github.com/ketle-man/comfyui-comic-creator) | マンガ制作。ギャラリー・画像生成と連携 | 第11章 |
| comfyui-image-feeder(https://github.com/ketle-man/comfyui-image-feeder) | FeederのImage Loopモード | 第5章 |
| ComfyUI-WFS-Games(https://github.com/ketle-man/ComfyUI-WFS-Games) | Gameタブのゲームパック | 第11章 |
| comfyui-mask-editor-one(https://github.com/ketle-man/comfyui-mask-editor-one) | Image Editの高度なマスク・背景除去 | 第11章 |
| ComfyUI-Impact-Pack(https://github.com/ltdrdata/ComfyUI-Impact-Pack) | `{A|B}` 形式のワイルドカード | 第7章 |
| ComfyUI-Lora-Manager | LoRAの管理・WS LibraryでのLoRAのまとめ置き | 第9章 |
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -84,6 +84,7 @@ Workflow Studioは、そうして作り上げたワークフローを **素早
- **ローカルAI連携** - 日本語からのプロンプト翻訳、画像からのプロンプト・タグ作成
- **Tagger・Video** - 画像からのタグ自動生成、動画の生成と簡単な編集
- **TagSpace** - 手持ちのプロンプト・タグ・生成画像を「意味の近さ」で3Dの空間に並べ、眺めながらタグを選ぶ
- **Game**(実験的機能) - 別パッケージのミニゲームで遊び、ステージをクリアするたびにヒロインの画像を生成する
---
@@ -129,7 +130,7 @@ ComfyUIの「自由さ」はそのままに、「分かりやすさ」と「手
## 本書の対象バージョンと環境
- **Workflow Studio**:v0.9.9
- **Workflow Studio**:v0.10.3(Gameタブのゲームパック ComfyUI-WFS-Games は v0.4.1)
- **ComfyUI**:本書執筆時点の最新版
- **OS**:Windows(画面の例はWindowsのものです)
@@ -25,6 +25,7 @@ Workflow Studioを開くと、画面の上部にタブが横一列に並んで
| Video | Video | 動画生成・動画編集 | | 第11章 |
| Tagger | Tagger | 画像からタグ(プロンプト)を自動生成 | | 第11章 |
| TagSpace | TagSpace | タグ・プロンプト・生成画像を意味の近さで3D表示し、タグを選ぶ | | 第11章 |
| Game | Game | ミニゲームで遊び、クリアした結果で画像を生成する(ゲームパックを入れたときだけ表示) | | 第11章 |
| 設定 | Settings | 言語・テーマ・フォルダなどの設定 | | 本章・第11章 |
| ヘルプ | Help | 機能一覧・ショートカット・トラブル対処 | | 本章 |
| AI TOOL | AI TOOL | ローカルAIによる翻訳・チャット・画像解析・文字起こし(OCR) | | 第10章 |
@@ -39,6 +40,8 @@ Workflow Studioを開くと、画面の上部にタブが横一列に並んで
- **補助する** - AI TOOL/Tagger/TagSpace/設定/ヘルプ
他のタブでの作業を助けたり、全体の設定をしたりするタブです。
**Game** タブは、別パッケージのゲームパックを入れたときだけ表示される、遊びながら画像を作る特別なタブです(第11章 11-8)。
> **ポイント**
> 各タブは互いにつながっています。
> たとえば、ワークフロータブで選んだワークフローを生成UIに読み込んだり、
@@ -231,6 +231,17 @@ Checkpointが自動で指定のモデルに差し替わります。モデルの
**フルバックアップ (ZIP)** を使うと、スタイルやLabのプランなどのフォルダ単位のデータも含めて、まとめてバックアップできます。
v0.9.10からは、ブラウザ側に保存している設定(グループ、バッジの色、外観、AI・VRAM調整の設定、各種プリセット、Gameタブの設定など)も、
JSONのエクスポートとフルバックアップの両方に含まれるようになりました。
インポート(復元)のあとに表示される **ページを再読み込み** を押すと、ブラウザ側の設定が反映されます。続けてComfyUIも再起動してください。
フルバックアップでは、次のデータを含めるかどうかをチェックボックスで選べます。
| チェックボックス | 内容 |
| --- | --- |
| Galleryセマンティック検索のインデックスを含める | 既定はオン。作り直すと全画像の埋め込みをやり直すことになる(Geminiでは API の利用料がかかる) |
| TagSpaceのキャッシュを含める | 既定はオフ。大きいが、TagSpaceタブで作り直せる |
> **ポイント**
> パソコンの買い替えやComfyUIの入れ直しの前には、必ずバックアップを取っておきましょう。
> 時間をかけて整理した情報を、そのまま新しい環境に引き継げます。
@@ -352,6 +363,126 @@ Gallery点を選んでいるときは、**選択中** に **Galleryで開く**
---
## 11-8 Game - ゲームで遊んで、クリアした結果で画像を作る(v0.10.0〜、実験的機能)
**Game** タブでは、80年代のパソコンゲーム風のミニゲームを遊べます。
ステージをクリアするたびに、そのゲームのヒロインの「勝利の記念カット」が、ComfyUIで自動的に生成されます。
遊んでいる間も生成はバックグラウンドで進むので、プレイを止める必要はありません。
ゲーム本体は、Workflow Studioとは別のパッケージ **ComfyUI-WFS-Games**(ゲームパック)で配布しています。
ゲームパックを入れていない環境では、Gameタブもヘルプタブの「Gameタブ」のページも表示されません(ほかのタブには何も影響しません)。
### 準備1:ゲームパックをインストールする
ゲームパックは ComfyUI Manager には登録していません。次のどちらかの方法で入れます。
- **git を使う場合**:コマンドプロンプトなどで `ComfyUI/custom_nodes` フォルダに移動し、次を実行します。
```
git clone https://github.com/ketle-man/ComfyUI-WFS-Games
```
- **ZIPを使う場合**:GitHubのリリースページ(https://github.com/ketle-man/ComfyUI-WFS-Games/releases)から最新版のZIPをダウンロードし、
`ComfyUI/custom_nodes` の中に展開します。フォルダ名は `ComfyUI-WFS-Games` にしておきます。
ComfyUIを再起動してからWorkflow Studioを開くと、TagSpaceタブの右に **Game** タブが表示されます。
ゲームパックはWorkflow Studio v0.10.0以降で使えます。
### 準備2:画像を生成するワークフローを用意する
Gameタブの画像は、設定で選んだワークフローで生成します。既定は、Gameタブ用に用意したサンプル **`ws_game_sdxl_t2i`** です
(SDXL(Illustrious系)で文章から画像を作るワークフロー。サイズは1216×832、出力先は `ComfyUI/output/WFS_Game`)。
サンプルに保存されているCheckpointは、あなたのパソコンには入っていないことが多いので、次の手順で自分のモデルに合わせます。
1. 第4章 4-8の手順で、`workflows` フォルダの `ws_game_sdxl_t2i.png` をワークフロータブに取り込みます。
2. 取り込んだワークフローを生成UIに読み込み、**Model** で手持ちのSDXLのCheckpointを選んで **Apply** を押します(第5章)。
3. **Save** で名前を付けて保存します(第5章「生成したワークフローを保存する」)。
4. Gameタブの右の **設定** タブにある **ワークフロー** で、保存したワークフローを選びます。
一覧に出ないときは、横の **ワークフロー一覧を再読み込み** ボタンを押します。
ポジティブプロンプトのノードがあれば、ほかの「文章から画像を作る」ワークフローも使えます。
> **注意**
> ワークフローに保存されているCheckpointがパソコンに無いと、ゲームの画像はエラーになって生成されません。
> 生成UIで一度生成してみて、うまくいったワークフローを選んでください。
### 画面の見方
| 場所 | 内容 |
| --- | --- |
| 左 **ゲーム** | インストールされているゲームの一覧。クリックすると中央でゲームが始まる |
| 中央 | ゲーム画面。右上の **リスタート** で、タイトル画面からやり直す |
| 右 **結果** タブ | 生成した画像のカード(新しいものが上) |
| 右 **設定** タブ | プレイ設定と画像生成の設定 |
ゲーム画面を **クリック** すると、キー操作がゲームに入ります(そこで押したキーは、Workflow Studioのほかの操作に影響しません)。
ほかのタブやウィンドウに切り替えると、ゲームは一時停止します。
### 画像が生成されるタイミング
| タイミング | カード | 生成される画像 |
| --- | --- | --- |
| ステージをクリアしたとき | そのステージのカード | そのステージを背景にした、ヒロインの勝利の記念カット |
| そのステージのハートを5個全部取っていたとき | ピンクのカード(PERFECT!) | 勝利の記念カットの代わりに、私服で過ごすヒロインのプライベート写真 |
| 全ステージをクリアしたとき | ENDING | エンディングの場面 |
| ゲームオーバーになったとき | 赤い GAME OVER | 負けたステージを背景にした、ヒロインの敗北の場面 |
画像は1枚ずつ順番に作られます。シード(seed)は毎回ランダムです。
画像は `ComfyUI/output/WFS_Game` に保存され、タイトル画面から新しくゲームを始めると、結果タブのカードは消えます(画像は残ります)。
プライベート写真の服装は、ゲームやステージによって変わります。ゲームがネガティブのタグを足して、水着より先にはならないようにしています。
### カードでできること
- **プロンプト** を開くと、ゲームから渡されたプロンプトが、種類(**画風**・**ヒロイン**・**シーン**・**ステージ**)付きで並びます。
使わないもののチェックを外したり、**生成するプロンプト(編集できます)** を書き換えたりして、**再生成** を押すと作り直せます。
- **GenerateUIで開く** を押すと、そのカードのプロンプトを入れたワークフローが生成UIに読み込まれます。
サイズやモデルを変えて、生成UIで作り直したいときに便利です。
### 設定タブ
| 項目 | 内容 |
| --- | --- |
| 難易度 | やさしい・ふつう・むずかしい。残機などがゲームごとに変わる |
| BGM・効果音 | オン・オフ |
| ワークフロー | 画像の生成に使うワークフロー(上の準備2) |
| ベースプロンプト | ゲームから渡されたプロンプトの前に付ける言葉 |
| ネガティブプロンプト | 空欄なら、ワークフローのネガティブをそのまま使う。ゲームが追加するネガティブは、ここに足される |
| ステージクリアごとに画像を生成する/エンディング画像も自動で生成する/ゲームオーバー時も画像を生成する | オフにすると、カードの **生成** を押したときにだけ生成する |
プレイ設定(難易度・BGM・効果音)を変えると、ゲームは最初からになります。
設定はブラウザに保存され、設定タブのバックアップにも含まれます(11-5)。
> **ポイント**
> Gameタブを開いている間は、VRAM調整のメッセージ(トースト)を表示しません。ゲーム画面が隠れないようにするためです。
### 収録されているゲーム(ゲームパック v0.4.1)
| ゲーム | ジャンル | ヒロイン | 内容 |
| --- | --- | --- | --- |
| Star Formation | 縦シューティング | リナ | 全5ステージ。各ステージの最後にボス。黄色く点滅する敵を倒すとハートが落ちてくる |
| Turbo Heart | レース | ミサキ | 全5レース。8台で走り、3位以内でゴールすると次のレースへ。ニトロ、障害物 |
| Prompt Typer | タイピング | (なし) | 全10ステージ。打った文字が、打ち間違いも含めてそのまま画像のプロンプトになる。85%以上正しく打てばクリア |
| Sky Heart | 画面の奥へ飛ぶシューティング | ヒカリ | 全5ステージ+ボス。高度計、空中と地上のハート、パワーアップ |
| Smash Heart | テニス | ナナミ | 5人のライバルと対戦。1試合4ゲーム。BGMはなく、打球音や主審のコールで臨場感を出す |
| Knight Heart | 横スクロールアクション | カノン | 全5ステージ+ボス。坂で加速し、走りながらスライディング、速く走るほど遠くへ跳べる |
ハートは、Prompt Typer以外のゲームで各ステージ(各レース・各試合)に5個あります。
Prompt Typerは、クリアしてもしなくても、毎ステージ画像を生成します(日本語・中国語で打つときは、その言語が分かる画像モデルを使ってください)。
### 操作
| ゲーム | 操作 |
| --- | --- |
| Star Formation | ← →(A D)で移動、Space または Z でショット |
| Turbo Heart | ← → でハンドル、↑ または Z でアクセル、↓ または X でブレーキ、Space または C でニトロ(1レース3回) |
| Prompt Typer | 文字を打つ。ステージの後は Enter で次へ、R でリトライ、Q であきらめる。タイトルで ↑ ↓ で言語、← → で開始ステージ |
| Sky Heart | 矢印キーまたは WASD で移動、Space または Z を押しっぱなしでショット |
| Smash Heart | 矢印キーで移動、Z または Space で打つ、X でロブ。打つ瞬間に ← → で狙う。サーブは Z でトス、もう一度 Z で打つ |
| Knight Heart | ← → で移動、Space または X でジャンプ、Z または C で攻撃(↑+攻撃で真上、空中で ↓+攻撃で真下)、走りながら ↓ でスライディング |
一時停止は、どのゲームも **Esc** または **P** です。ゲームパッドも使えます(Prompt Typerを除く)。
ゲームごとの細かいルールは、ヘルプタブの **Gameタブ** のページにまとめています。
> **ポイント**
> Knight Heartでゲームオーバーになったときは、**そのステージからやり直す** か **あきらめる** かを選べます。
> 敗北の場面の画像は、あきらめたときだけ生成されます。一時停止中に **R** を押すと、残りを1つ使ってステージを最初からやり直せます。
---
> **この章のまとめ**
> - ノードタブでインストール済みのノードを一覧・整理でき、WS Libraryで使える
> - Taggerは画像からタグを自動生成する。モデルと追加パッケージの準備が必要
@@ -360,3 +491,4 @@ Gallery点を選んでいるときは、**選択中** に **Galleryで開く**
> - 設定タブの「デフォルトCheckpoint」と「データ管理(バックアップ)」は特に便利
> - 同じ作者の Comic Creator と組み合わせると、生成した画像でマンガを作れる
> - TagSpaceでは、手持ちのタグ・プロンプト・生成画像を意味の近さで3Dに並べ、眺めながらタグを選んでプロンプトを作れる
> - Gameタブでは、ゲームパックのミニゲームで遊び、ステージをクリアするたびにヒロインの画像を自動で生成できる
@@ -197,6 +197,16 @@ ComfyUIを停止し、ComfyUIのPythonで `pip uninstall -y onnxruntime onnxrunt
`.env` にComfy APIキーが無いのが原因です。プラグインの `.env` に `COMFY_API_KEY=キー`(platform.comfy.orgで発行)を書き、ComfyUIを再起動してください(第5章 5-8)。
`.env` は起動時にしか読み込まれません。
### Gameタブが表示されない・ゲームが動かない
| 症状 | 原因 | 対処 |
| --- | --- | --- |
| Gameタブが無い | ゲームパック(ComfyUI-WFS-Games)が入っていない、または入れたあとComfyUIを再起動していない | 第11章 11-8の手順で入れて、ComfyUIを再起動する。Workflow Studio v0.10.0以降が必要 |
| キーを押してもゲームが動かない | ゲーム画面にキー入力が入っていない | ゲーム画面を一度クリックする |
| 「Game の設定でワークフローが選ばれていません。」と出る | 設定タブのワークフローが空 | 設定タブの **ワークフロー** で選ぶ(第11章 11-8 準備2) |
| 「ワークフローにポジティブプロンプトのノードがありません。」と出る | 選んだワークフローに、プロンプトを書き込むノードが見つからない | 文章から画像を作るワークフローを選ぶ |
| カードがエラーになり画像ができない | ワークフローのCheckpointがパソコンに無い | 生成UIで手持ちのモデルに変えて保存し、それを選ぶ(第11章 11-8 準備2) |
| ゲームを更新したのに古いまま | ブラウザが古いファイルを覚えている | **Ctrl+F5** でページを再読み込みする |
### ComfyUIが固まる(どのタブも反応しなくなる)
Windowsで、プレビュー画像の多いモデルタブの一覧を切り替えたあとなどに、ComfyUIが反応しなくなる(生成もできなくなる)場合があります。
設定タブの **Windowsの安定性(イベントループ)** で、**WindowsでSelectorイベントループを使用する** をオンにして、ComfyUIを再起動してください。
+1
View File
@@ -138,6 +138,7 @@
| --- | --- | --- |
| ComfyUI Comic Creator(https://github.com/ketle-man/comfyui-comic-creator) | マンガ制作。ギャラリー・画像生成と連携 | 第11章 |
| comfyui-image-feeder(https://github.com/ketle-man/comfyui-image-feeder) | FeederのImage Loopモード | 第5章 |
| ComfyUI-WFS-Games(https://github.com/ketle-man/ComfyUI-WFS-Games) | Gameタブのゲームパック | 第11章 |
| comfyui-mask-editor-one(https://github.com/ketle-man/comfyui-mask-editor-one) | Image Editの高度なマスク・背景除去 | 第11章 |
| ComfyUI-Impact-Pack(https://github.com/ltdrdata/ComfyUI-Impact-Pack) | `{A|B}` 形式のワイルドカード | 第7章 |
| ComfyUI-Lora-Manager | LoRAの管理・WS LibraryでのLoRAのまとめ置き | 第9章 |
+3 -3
View File
@@ -2,12 +2,12 @@
Don't Be Afraid of Nodes - Generate Images More Easily and Keep Them Organized
- Covers: Workflow Studio v0.9.9
- Covers: Workflow Studio v0.10.3
- Author: ketle-man
- (c) 2026 ketle-man
This is the **text-only edition** (without screenshots) of the Kindle book.
Chapter files are in the `chapters/` folder; the whole book in one file is `Workflow_Studio_Manual_v0.9.9_en.md`.
Chapter files are in the `chapters/` folder; the whole book in one file is `Workflow_Studio_Manual_v0.10.3_en.md`.
Screen examples are omitted, so please use the book together with Workflow Studio's Help tab.
## Contents
@@ -29,4 +29,4 @@ Screen examples are omitted, so please use the book together with Workflow Studi
- [13_Appendix](chapters/13_Appendix.md)
- [14_Afterword](chapters/14_Afterword.md)
Whole book: [Workflow_Studio_Manual_v0.9.9_en.md](Workflow_Studio_Manual_v0.9.9_en.md)
Whole book: [Workflow_Studio_Manual_v0.10.3_en.md](Workflow_Studio_Manual_v0.10.3_en.md)
@@ -2,12 +2,12 @@
Don't Be Afraid of Nodes - Generate Images More Easily and Keep Them Organized
- Covers: Workflow Studio v0.9.9
- Covers: Workflow Studio v0.10.3
- Author: ketle-man
- (c) 2026 ketle-man
This is the **text-only edition** (without screenshots) of the Kindle book.
Chapter files are in the `chapters/` folder; the whole book in one file is `Workflow_Studio_Manual_v0.9.9_en.md`.
Chapter files are in the `chapters/` folder; the whole book in one file is `Workflow_Studio_Manual_v0.10.3_en.md`.
Screen examples are omitted, so please use the book together with Workflow Studio's Help tab.
---
@@ -98,6 +98,7 @@ Together with the supporting features, it makes moving between the two screens s
- **Local AI integration** - translating prompts from Japanese, creating prompts and tags from images
- **Tagger and Video** - automatic tag generation from images, and video generation with simple editing
- **TagSpace** - lays out your own prompts, tags and generated images in a 3D space by closeness of meaning, so you can browse it and pick tags
- **Game** (experimental) - play the mini games of a separate pack, and an image of the heroine is generated each time you clear a stage
---
@@ -143,7 +144,7 @@ It is written so that you can follow it if you know basic computer operations (c
## Version and environment covered
- **Workflow Studio**: v0.9.9
- **Workflow Studio**: v0.10.3 (game pack ComfyUI-WFS-Games for the Game tab: v0.4.1)
- **ComfyUI**: the latest version at the time of writing
- **OS**: Windows (screen examples are from Windows)
@@ -619,6 +620,7 @@ It is enough to learn the tabs marked with a star under "Often used" first.
| Video | Video generation and video editing | | Chapter 11 |
| Tagger | Automatically generating tags (prompts) from images | | Chapter 11 |
| TagSpace | Showing tags, prompts and generated images in 3D by closeness of meaning, and picking tags | | Chapter 11 |
| Game | Playing mini games and generating images from what you clear (shown only when the game pack is installed) | | Chapter 11 |
| Settings | Language, theme, folders and other settings | | This chapter, Chapter 11 |
| Help | Feature list, shortcuts, troubleshooting | | This chapter |
| AI TOOL | Translation, chat, image analysis and text reading (OCR) with local AI | | Chapter 10 |
@@ -633,6 +635,8 @@ If the number of tabs makes you lose your way, it helps to think of them in thes
- **Support** - AI TOOL / Tagger / TagSpace / Settings / Help
Tabs that help with work in other tabs, or hold overall settings.
The **Game** tab is a special tab for making images while you play. It appears only when the separate game pack is installed (Chapter 11, section 11-8).
> **Tip**
> The tabs are connected to each other.
> For example, you can load a workflow picked in the Workflow tab into GenerateUI,
@@ -3292,6 +3296,17 @@ to a file (Export), and read it back to restore it (Import).
With **Full Backup (ZIP)**, you can back up everything together, including folder-based data such as styles and Lab plans.
Since v0.9.10, the settings kept in the browser (groups, badge colors, appearance, AI and VRAM Management settings, presets, the Game tab settings and so on)
are included in both the JSON export and the full backup.
After an import (restore), press the **Reload page** button that appears to apply the browser settings, and then restart ComfyUI.
In the full backup, checkboxes choose whether to include these:
| Checkbox | Contents |
| --- | --- |
| Include the Gallery semantic search index | On by default. Rebuilding it re-embeds every image (with Gemini this costs API usage) |
| Include the TagSpace cache | Off by default. Large, and can be rebuilt in the TagSpace tab |
> **Tip**
> Always take a backup before buying a new computer or reinstalling ComfyUI.
> The information you spent time organizing can be carried over as it is to the new environment.
@@ -3409,6 +3424,126 @@ A card's whole prompt can be read under **Full prompt**.
---
## 11-8 Game - play a game, and make images from what you clear (v0.10.0 and later, experimental)
The **Game** tab lets you play mini games in the style of 1980s computer games.
Each time you clear a stage, a "victory shot" of that game's heroine is generated automatically with ComfyUI.
Generation runs in the background while you play, so you never have to stop.
The games themselves come in a separate package, **ComfyUI-WFS-Games** (the game pack).
Without the game pack, neither the Game tab nor the "Game Tab" page of the Help tab is shown (nothing else changes).
### Preparation 1: install the game pack
The game pack is not registered in ComfyUI Manager. Install it in one of these ways.
- **With git**: open a command prompt in the `ComfyUI/custom_nodes` folder and run:
```
git clone https://github.com/ketle-man/ComfyUI-WFS-Games
```
- **With a ZIP**: download the latest ZIP from the GitHub releases page (https://github.com/ketle-man/ComfyUI-WFS-Games/releases)
and extract it into `ComfyUI/custom_nodes`. Name the folder `ComfyUI-WFS-Games`.
Restart ComfyUI and open Workflow Studio; the **Game** tab appears to the right of the TagSpace tab.
The game pack needs Workflow Studio v0.10.0 or later.
### Preparation 2: prepare a workflow for the images
The Game tab generates images with the workflow chosen in its settings. The default is **`ws_game_sdxl_t2i`**, a sample made for the Game tab
(an SDXL (Illustrious) text-to-image workflow, 1216x832, saved to `ComfyUI/output/WFS_Game`).
The Checkpoint saved in the sample is often not on your computer, so set it to your own model:
1. Import `ws_game_sdxl_t2i.png` from the `workflows` folder into the Workflow tab, as in Chapter 4, section 4-8.
2. Load the imported workflow into GenerateUI, choose one of your SDXL Checkpoints under **Model** and press **Apply** (Chapter 5).
3. Save it under a name with **Save** (Chapter 5, "Saving the workflow you generated with").
4. In the **Settings** tab on the right of the Game tab, choose the saved workflow under **Workflow**.
If it is not in the list, press the **Reload workflow list** button next to it.
Other text-to-image workflows work too, as long as they have a positive prompt node.
> **Caution**
> If the Checkpoint saved in the workflow is not on your computer, the game's images fail with an error.
> Generate once in GenerateUI and choose a workflow that works.
### The screen
| Place | Contents |
| --- | --- |
| **Games** on the left | The installed games. Click one to start it in the center |
| Center | The game. **Restart** at the top right goes back to the title screen |
| **Result** tab on the right | Cards for the generated images (newest on top) |
| **Settings** tab on the right | Play settings and image generation settings |
**Click** the game screen to send the keyboard to the game (keys pressed there do not affect the rest of Workflow Studio).
The game pauses when you switch to another tab or window.
### When images are generated
| When | Card | Image |
| --- | --- | --- |
| You clear a stage | A card for that stage | A victory shot of the heroine with that stage in the background |
| You caught all 5 hearts in the stage | A pink card (PERFECT!) | Instead of the victory shot, a private photo of the heroine off duty in casual clothes |
| You clear every stage | ENDING | The ending scene |
| Game over | A red GAME OVER card | A defeat scene of the heroine, with the stage where you fell in the background |
Images are made one at a time, in order. The seed is random every time.
They are saved in `ComfyUI/output/WFS_Game`. Starting a new game from the title screen clears the cards in the Result tab (the images stay).
What the heroine wears in a private photo differs by game and stage. The game adds negative tags so that it never goes beyond a swimsuit.
### What you can do with a card
- Open **Prompt** to see the prompts the game gave, each marked with its kind (**Style**, **Heroine**, **Scene**, **Stage**).
Uncheck any you don't want or edit **Prompt to generate (editable)**, then press **Regenerate** to make it again.
- **Open in GenerateUI** loads the workflow with that card's prompt into GenerateUI.
Handy when you want to remake it there with another size or model.
### The Settings tab
| Item | Contents |
| --- | --- |
| Difficulty | Easy, Normal or Hard. Lives and so on change by game |
| Music, Sound effects | On or off |
| Workflow | The workflow used to generate images (Preparation 2 above) |
| Base prompt | Words added before the prompts the game gives |
| Negative prompt | If empty, the workflow's own negative is used. The negative the game adds is appended to it |
| Generate an image at each stage clear / Also generate the ending image automatically / Also generate an image on game over | When off, images are generated only when you press **Generate** on a card |
Changing the play settings (difficulty, music, sound effects) restarts the game.
The settings are saved in the browser and included in the Settings tab's backups (section 11-5).
> **Tip**
> While the Game tab is open, VRAM Management messages (toasts) are not shown, so they never cover the game.
### The games (game pack v0.4.1)
| Game | Genre | Heroine | Contents |
| --- | --- | --- | --- |
| Star Formation | Vertical shooter | Rina | 5 stages, each ending with a boss. Enemies flashing yellow drop hearts |
| Turbo Heart | Racing | Misaki | 5 races. 8 cars; finish in the top 3 to go on. Nitro and obstacles |
| Prompt Typer | Typing | (none) | 10 stages. What you type, typos included, becomes the image prompt. 85% correct clears a stage |
| Sky Heart | Into-the-screen shooter | Hikari | 5 stages with bosses. An altimeter, hearts in the air and on the ground, power-ups |
| Smash Heart | Tennis | Nanami | Matches against 5 rivals, 4 games each. No music; racket hits and the umpire's calls set the mood |
| Knight Heart | Side-scrolling action | Kanon | 5 stages with bosses. Speed up on slopes, slide while running, jump farther the faster you run |
Every game except Prompt Typer has 5 hearts per stage (race, match).
Prompt Typer generates an image after every stage whether you clear it or not (when typing in Japanese or Chinese, use an image model that understands that language).
### Controls
| Game | Controls |
| --- | --- |
| Star Formation | ← → (A D) move, Space or Z shoots |
| Turbo Heart | ← → steer, ↑ or Z accelerates, ↓ or X brakes, Space or C nitro (3 per race) |
| Prompt Typer | Type the words. After a stage, Enter goes on, R retries, Q gives up. On the title, ↑ ↓ picks the language and ← → the start stage |
| Sky Heart | Arrow keys or WASD move, hold Space or Z to shoot |
| Smash Heart | Arrow keys move, Z or Space hits, X lobs. Hold ← → at contact to aim. Serve: Z to toss, Z again to hit |
| Knight Heart | ← → move, Space or X jumps, Z or C attacks (↑+attack throws straight up, ↓+attack in the air straight down), ↓ while running slides |
Every game pauses with **Esc** or **P**. A gamepad also works (except in Prompt Typer).
The detailed rules of each game are on the **Game Tab** page of the Help tab.
> **Tip**
> On game over in Knight Heart you can choose to **retry the stage** or **give up**.
> The defeat scene is generated only when you give up. While paused, **R** restarts the stage for one life.
---
> **Summary of this chapter**
> - In the Nodes tab you can list and organize installed nodes, and use them in the WS Library
> - Tagger automatically generates tags from images. A model and extra packages must be prepared
@@ -3417,6 +3552,7 @@ A card's whole prompt can be read under **Full prompt**.
> - "Default Checkpoint" and "Data Management (backup)" in the Settings tab are especially handy
> - Combined with Comic Creator by the same author, you can make manga from generated images
> - TagSpace lays out your tags, prompts and generated images in 3D by closeness of meaning, so you can browse it and pick tags for a prompt
> - In the Game tab you play the game pack's mini games, and an image of the heroine is generated automatically each time you clear a stage
---
@@ -3619,6 +3755,16 @@ Run the installation command shown in the error message in the Python that Comfy
The cause is a missing Comfy API key in `.env`. Write `COMFY_API_KEY=your key` (issued at platform.comfy.org) in the plugin's `.env` and restart ComfyUI (Chapter 5, section 5-8).
`.env` is read only at startup.
### The Game tab is missing, or a game does not work
| Symptom | Cause | What to do |
| --- | --- | --- |
| There is no Game tab | The game pack (ComfyUI-WFS-Games) is not installed, or ComfyUI was not restarted after installing it | Install it as in Chapter 11, section 11-8, and restart ComfyUI. Workflow Studio v0.10.0 or later is needed |
| Keys do not move the game | The keyboard is not on the game screen | Click the game screen once |
| "No workflow is selected in the Game settings." is shown | The Workflow in the Settings tab is empty | Choose one under **Workflow** in the Settings tab (Chapter 11, section 11-8, Preparation 2) |
| "The workflow has no positive prompt node." is shown | No node to write the prompt into was found in the chosen workflow | Choose a text-to-image workflow |
| A card shows an error and no image | The workflow's Checkpoint is not on your computer | Change it to your own model in GenerateUI, save it, and choose that workflow (Chapter 11, section 11-8, Preparation 2) |
| A game still behaves the old way after an update | The browser remembers old files | Reload the page with **Ctrl+F5** |
### ComfyUI freezes (no tab responds)
On Windows, ComfyUI can stop responding (generation included), for example after switching a Models tab list with many preview images.
In the Settings tab, under **Windows Stability (Event Loop)**, turn on **Use the Selector event loop on Windows (restart required)** and restart ComfyUI.
@@ -3797,6 +3943,7 @@ The main terms that appear in this book, in alphabetical order.
| --- | --- | --- |
| ComfyUI Comic Creator (https://github.com/ketle-man/comfyui-comic-creator) | Manga making. Works with the Gallery and image generation | Chapter 11 |
| comfyui-image-feeder (https://github.com/ketle-man/comfyui-image-feeder) | Feeder's Image Loop mode | Chapter 5 |
| ComfyUI-WFS-Games (https://github.com/ketle-man/ComfyUI-WFS-Games) | The game pack for the Game tab | Chapter 11 |
| comfyui-mask-editor-one (https://github.com/ketle-man/comfyui-mask-editor-one) | Advanced masking and background removal in Image Edit | Chapter 11 |
| ComfyUI-Impact-Pack (https://github.com/ltdrdata/ComfyUI-Impact-Pack) | Curly-brace-style wildcards | Chapter 7 |
| ComfyUI-Lora-Manager | Managing LoRAs; placing LoRAs together from the WS Library | Chapter 9 |
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -84,6 +84,7 @@ Together with the supporting features, it makes moving between the two screens s
- **Local AI integration** - translating prompts from Japanese, creating prompts and tags from images
- **Tagger and Video** - automatic tag generation from images, and video generation with simple editing
- **TagSpace** - lays out your own prompts, tags and generated images in a 3D space by closeness of meaning, so you can browse it and pick tags
- **Game** (experimental) - play the mini games of a separate pack, and an image of the heroine is generated each time you clear a stage
---
@@ -129,7 +130,7 @@ It is written so that you can follow it if you know basic computer operations (c
## Version and environment covered
- **Workflow Studio**: v0.9.9
- **Workflow Studio**: v0.10.3 (game pack ComfyUI-WFS-Games for the Game tab: v0.4.1)
- **ComfyUI**: the latest version at the time of writing
- **OS**: Windows (screen examples are from Windows)
@@ -25,6 +25,7 @@ It is enough to learn the tabs marked with a star under "Often used" first.
| Video | Video generation and video editing | | Chapter 11 |
| Tagger | Automatically generating tags (prompts) from images | | Chapter 11 |
| TagSpace | Showing tags, prompts and generated images in 3D by closeness of meaning, and picking tags | | Chapter 11 |
| Game | Playing mini games and generating images from what you clear (shown only when the game pack is installed) | | Chapter 11 |
| Settings | Language, theme, folders and other settings | | This chapter, Chapter 11 |
| Help | Feature list, shortcuts, troubleshooting | | This chapter |
| AI TOOL | Translation, chat, image analysis and text reading (OCR) with local AI | | Chapter 10 |
@@ -39,6 +40,8 @@ If the number of tabs makes you lose your way, it helps to think of them in thes
- **Support** - AI TOOL / Tagger / TagSpace / Settings / Help
Tabs that help with work in other tabs, or hold overall settings.
The **Game** tab is a special tab for making images while you play. It appears only when the separate game pack is installed (Chapter 11, section 11-8).
> **Tip**
> The tabs are connected to each other.
> For example, you can load a workflow picked in the Workflow tab into GenerateUI,
@@ -229,6 +229,17 @@ to a file (Export), and read it back to restore it (Import).
With **Full Backup (ZIP)**, you can back up everything together, including folder-based data such as styles and Lab plans.
Since v0.9.10, the settings kept in the browser (groups, badge colors, appearance, AI and VRAM Management settings, presets, the Game tab settings and so on)
are included in both the JSON export and the full backup.
After an import (restore), press the **Reload page** button that appears to apply the browser settings, and then restart ComfyUI.
In the full backup, checkboxes choose whether to include these:
| Checkbox | Contents |
| --- | --- |
| Include the Gallery semantic search index | On by default. Rebuilding it re-embeds every image (with Gemini this costs API usage) |
| Include the TagSpace cache | Off by default. Large, and can be rebuilt in the TagSpace tab |
> **Tip**
> Always take a backup before buying a new computer or reinstalling ComfyUI.
> The information you spent time organizing can be carried over as it is to the new environment.
@@ -346,6 +357,126 @@ A card's whole prompt can be read under **Full prompt**.
---
## 11-8 Game - play a game, and make images from what you clear (v0.10.0 and later, experimental)
The **Game** tab lets you play mini games in the style of 1980s computer games.
Each time you clear a stage, a "victory shot" of that game's heroine is generated automatically with ComfyUI.
Generation runs in the background while you play, so you never have to stop.
The games themselves come in a separate package, **ComfyUI-WFS-Games** (the game pack).
Without the game pack, neither the Game tab nor the "Game Tab" page of the Help tab is shown (nothing else changes).
### Preparation 1: install the game pack
The game pack is not registered in ComfyUI Manager. Install it in one of these ways.
- **With git**: open a command prompt in the `ComfyUI/custom_nodes` folder and run:
```
git clone https://github.com/ketle-man/ComfyUI-WFS-Games
```
- **With a ZIP**: download the latest ZIP from the GitHub releases page (https://github.com/ketle-man/ComfyUI-WFS-Games/releases)
and extract it into `ComfyUI/custom_nodes`. Name the folder `ComfyUI-WFS-Games`.
Restart ComfyUI and open Workflow Studio; the **Game** tab appears to the right of the TagSpace tab.
The game pack needs Workflow Studio v0.10.0 or later.
### Preparation 2: prepare a workflow for the images
The Game tab generates images with the workflow chosen in its settings. The default is **`ws_game_sdxl_t2i`**, a sample made for the Game tab
(an SDXL (Illustrious) text-to-image workflow, 1216x832, saved to `ComfyUI/output/WFS_Game`).
The Checkpoint saved in the sample is often not on your computer, so set it to your own model:
1. Import `ws_game_sdxl_t2i.png` from the `workflows` folder into the Workflow tab, as in Chapter 4, section 4-8.
2. Load the imported workflow into GenerateUI, choose one of your SDXL Checkpoints under **Model** and press **Apply** (Chapter 5).
3. Save it under a name with **Save** (Chapter 5, "Saving the workflow you generated with").
4. In the **Settings** tab on the right of the Game tab, choose the saved workflow under **Workflow**.
If it is not in the list, press the **Reload workflow list** button next to it.
Other text-to-image workflows work too, as long as they have a positive prompt node.
> **Caution**
> If the Checkpoint saved in the workflow is not on your computer, the game's images fail with an error.
> Generate once in GenerateUI and choose a workflow that works.
### The screen
| Place | Contents |
| --- | --- |
| **Games** on the left | The installed games. Click one to start it in the center |
| Center | The game. **Restart** at the top right goes back to the title screen |
| **Result** tab on the right | Cards for the generated images (newest on top) |
| **Settings** tab on the right | Play settings and image generation settings |
**Click** the game screen to send the keyboard to the game (keys pressed there do not affect the rest of Workflow Studio).
The game pauses when you switch to another tab or window.
### When images are generated
| When | Card | Image |
| --- | --- | --- |
| You clear a stage | A card for that stage | A victory shot of the heroine with that stage in the background |
| You caught all 5 hearts in the stage | A pink card (PERFECT!) | Instead of the victory shot, a private photo of the heroine off duty in casual clothes |
| You clear every stage | ENDING | The ending scene |
| Game over | A red GAME OVER card | A defeat scene of the heroine, with the stage where you fell in the background |
Images are made one at a time, in order. The seed is random every time.
They are saved in `ComfyUI/output/WFS_Game`. Starting a new game from the title screen clears the cards in the Result tab (the images stay).
What the heroine wears in a private photo differs by game and stage. The game adds negative tags so that it never goes beyond a swimsuit.
### What you can do with a card
- Open **Prompt** to see the prompts the game gave, each marked with its kind (**Style**, **Heroine**, **Scene**, **Stage**).
Uncheck any you don't want or edit **Prompt to generate (editable)**, then press **Regenerate** to make it again.
- **Open in GenerateUI** loads the workflow with that card's prompt into GenerateUI.
Handy when you want to remake it there with another size or model.
### The Settings tab
| Item | Contents |
| --- | --- |
| Difficulty | Easy, Normal or Hard. Lives and so on change by game |
| Music, Sound effects | On or off |
| Workflow | The workflow used to generate images (Preparation 2 above) |
| Base prompt | Words added before the prompts the game gives |
| Negative prompt | If empty, the workflow's own negative is used. The negative the game adds is appended to it |
| Generate an image at each stage clear / Also generate the ending image automatically / Also generate an image on game over | When off, images are generated only when you press **Generate** on a card |
Changing the play settings (difficulty, music, sound effects) restarts the game.
The settings are saved in the browser and included in the Settings tab's backups (section 11-5).
> **Tip**
> While the Game tab is open, VRAM Management messages (toasts) are not shown, so they never cover the game.
### The games (game pack v0.4.1)
| Game | Genre | Heroine | Contents |
| --- | --- | --- | --- |
| Star Formation | Vertical shooter | Rina | 5 stages, each ending with a boss. Enemies flashing yellow drop hearts |
| Turbo Heart | Racing | Misaki | 5 races. 8 cars; finish in the top 3 to go on. Nitro and obstacles |
| Prompt Typer | Typing | (none) | 10 stages. What you type, typos included, becomes the image prompt. 85% correct clears a stage |
| Sky Heart | Into-the-screen shooter | Hikari | 5 stages with bosses. An altimeter, hearts in the air and on the ground, power-ups |
| Smash Heart | Tennis | Nanami | Matches against 5 rivals, 4 games each. No music; racket hits and the umpire's calls set the mood |
| Knight Heart | Side-scrolling action | Kanon | 5 stages with bosses. Speed up on slopes, slide while running, jump farther the faster you run |
Every game except Prompt Typer has 5 hearts per stage (race, match).
Prompt Typer generates an image after every stage whether you clear it or not (when typing in Japanese or Chinese, use an image model that understands that language).
### Controls
| Game | Controls |
| --- | --- |
| Star Formation | ← → (A D) move, Space or Z shoots |
| Turbo Heart | ← → steer, ↑ or Z accelerates, ↓ or X brakes, Space or C nitro (3 per race) |
| Prompt Typer | Type the words. After a stage, Enter goes on, R retries, Q gives up. On the title, ↑ ↓ picks the language and ← → the start stage |
| Sky Heart | Arrow keys or WASD move, hold Space or Z to shoot |
| Smash Heart | Arrow keys move, Z or Space hits, X lobs. Hold ← → at contact to aim. Serve: Z to toss, Z again to hit |
| Knight Heart | ← → move, Space or X jumps, Z or C attacks (↑+attack throws straight up, ↓+attack in the air straight down), ↓ while running slides |
Every game pauses with **Esc** or **P**. A gamepad also works (except in Prompt Typer).
The detailed rules of each game are on the **Game Tab** page of the Help tab.
> **Tip**
> On game over in Knight Heart you can choose to **retry the stage** or **give up**.
> The defeat scene is generated only when you give up. While paused, **R** restarts the stage for one life.
---
> **Summary of this chapter**
> - In the Nodes tab you can list and organize installed nodes, and use them in the WS Library
> - Tagger automatically generates tags from images. A model and extra packages must be prepared
@@ -354,3 +485,4 @@ A card's whole prompt can be read under **Full prompt**.
> - "Default Checkpoint" and "Data Management (backup)" in the Settings tab are especially handy
> - Combined with Comic Creator by the same author, you can make manga from generated images
> - TagSpace lays out your tags, prompts and generated images in 3D by closeness of meaning, so you can browse it and pick tags for a prompt
> - In the Game tab you play the game pack's mini games, and an image of the heroine is generated automatically each time you clear a stage
@@ -197,6 +197,16 @@ Run the installation command shown in the error message in the Python that Comfy
The cause is a missing Comfy API key in `.env`. Write `COMFY_API_KEY=your key` (issued at platform.comfy.org) in the plugin's `.env` and restart ComfyUI (Chapter 5, section 5-8).
`.env` is read only at startup.
### The Game tab is missing, or a game does not work
| Symptom | Cause | What to do |
| --- | --- | --- |
| There is no Game tab | The game pack (ComfyUI-WFS-Games) is not installed, or ComfyUI was not restarted after installing it | Install it as in Chapter 11, section 11-8, and restart ComfyUI. Workflow Studio v0.10.0 or later is needed |
| Keys do not move the game | The keyboard is not on the game screen | Click the game screen once |
| "No workflow is selected in the Game settings." is shown | The Workflow in the Settings tab is empty | Choose one under **Workflow** in the Settings tab (Chapter 11, section 11-8, Preparation 2) |
| "The workflow has no positive prompt node." is shown | No node to write the prompt into was found in the chosen workflow | Choose a text-to-image workflow |
| A card shows an error and no image | The workflow's Checkpoint is not on your computer | Change it to your own model in GenerateUI, save it, and choose that workflow (Chapter 11, section 11-8, Preparation 2) |
| A game still behaves the old way after an update | The browser remembers old files | Reload the page with **Ctrl+F5** |
### ComfyUI freezes (no tab responds)
On Windows, ComfyUI can stop responding (generation included), for example after switching a Models tab list with many preview images.
In the Settings tab, under **Windows Stability (Event Loop)**, turn on **Use the Selector event loop on Windows (restart required)** and restart ComfyUI.
+1
View File
@@ -133,6 +133,7 @@ The main terms that appear in this book, in alphabetical order.
| --- | --- | --- |
| ComfyUI Comic Creator (https://github.com/ketle-man/comfyui-comic-creator) | Manga making. Works with the Gallery and image generation | Chapter 11 |
| comfyui-image-feeder (https://github.com/ketle-man/comfyui-image-feeder) | Feeder's Image Loop mode | Chapter 5 |
| ComfyUI-WFS-Games (https://github.com/ketle-man/ComfyUI-WFS-Games) | The game pack for the Game tab | Chapter 11 |
| comfyui-mask-editor-one (https://github.com/ketle-man/comfyui-mask-editor-one) | Advanced masking and background removal in Image Edit | Chapter 11 |
| ComfyUI-Impact-Pack (https://github.com/ltdrdata/ComfyUI-Impact-Pack) | Curly-brace-style wildcards | Chapter 7 |
| ComfyUI-Lora-Manager | Managing LoRAs; placing LoRAs together from the WS Library | Chapter 9 |