From 38eb7da2767c0d235ee2b855c8e2dea8b2496ba4 Mon Sep 17 00:00:00 2001 From: Homun Mage Date: Sat, 25 Jan 2025 19:46:03 +0800 Subject: [PATCH 1/4] v1.0.0 --- example.json | 9 ++++++--- lottery.json | 9 ++++++--- save_file.json | 9 ++++++--- trpg_play.json | 9 ++++++--- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/example.json b/example.json index 718a9d9..8297850 100644 --- a/example.json +++ b/example.json @@ -1,4 +1,6 @@ -{ +[ + { + "name": "root", "nodes": [ { "uniq_id": "uniq_id_12", @@ -111,5 +113,6 @@ } } ], - "node_counter": 15 - } \ No newline at end of file + "serial_number": 15 + } +] \ No newline at end of file diff --git a/lottery.json b/lottery.json index d28e484..88bc087 100644 --- a/lottery.json +++ b/lottery.json @@ -1,4 +1,6 @@ -{ +[ + { + "name": "root", "nodes": [ { "uniq_id": "uniq_id_1", @@ -92,5 +94,6 @@ } } ], - "node_counter": 7 - } \ No newline at end of file + "serial_number": 7 + } +] \ No newline at end of file diff --git a/save_file.json b/save_file.json index 765a4b1..52984e5 100644 --- a/save_file.json +++ b/save_file.json @@ -1,4 +1,6 @@ -{ +[ + { + "name": "root", "nodes": [ { "uniq_id": "uniq_id_1", @@ -73,5 +75,6 @@ } } ], - "node_counter": 5 - } \ No newline at end of file + "serial_number": 5 + } +] \ No newline at end of file diff --git a/trpg_play.json b/trpg_play.json index d631746..a342ff2 100644 --- a/trpg_play.json +++ b/trpg_play.json @@ -1,4 +1,6 @@ -{ +[ + { + "name": "root", "nodes": [ { "uniq_id": "uniq_id_10", @@ -58,5 +60,6 @@ } } ], - "node_counter": 11 - } \ No newline at end of file + "serial_number": 11 + } +] \ No newline at end of file From d0bbe7310a66a4b8dd610743d8fc0cafc5a0d0d9 Mon Sep 17 00:00:00 2001 From: Homun Mage Date: Mon, 27 Jan 2025 19:00:36 +0800 Subject: [PATCH 2/4] sugraph ok! --- subgraph.json | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 subgraph.json diff --git a/subgraph.json b/subgraph.json new file mode 100644 index 0000000..5ddd05d --- /dev/null +++ b/subgraph.json @@ -0,0 +1,86 @@ +[ + { + "name": "root", + "nodes": [ + { + "uniq_id": "1", + "type": "START", + "name": "Node 1", + "description": "", + "tool": "", + "nexts": [ + "2" + ], + "true_next": null, + "false_next": null, + "ext": { + "pos_x": 233, + "pos_y": 134, + "width": 150, + "height": 200, + "info": null + } + }, + { + "uniq_id": "2", + "type": "SUBGRAPH", + "name": "buy dog", + "description": "", + "tool": "", + "nexts": [], + "true_next": null, + "false_next": null, + "ext": { + "pos_x": 629, + "pos_y": 193, + "width": 150, + "height": 200, + "info": null + } + } + ], + "serial_number": 3 + }, + { + "name": "buy dog", + "nodes": [ + { + "uniq_id": "1", + "type": "START", + "name": "Node 1", + "description": "", + "tool": "", + "nexts": [ + "2" + ], + "true_next": null, + "false_next": null, + "ext": { + "pos_x": 210, + "pos_y": 105, + "width": 150, + "height": 200, + "info": null + } + }, + { + "uniq_id": "2", + "type": "STEP", + "name": "Node 2", + "description": "buy a dog", + "tool": "", + "nexts": [], + "true_next": null, + "false_next": null, + "ext": { + "pos_x": 640, + "pos_y": 184, + "width": 150, + "height": 200, + "info": null + } + } + ], + "serial_number": 3 + } +] \ No newline at end of file From 0214548ae699e134932cad6d0a455d7537378258 Mon Sep 17 00:00:00 2001 From: Homun Mage Date: Tue, 28 Jan 2025 06:16:01 +0800 Subject: [PATCH 3/4] update --- subgraph.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgraph.json b/subgraph.json index 5ddd05d..d698292 100644 --- a/subgraph.json +++ b/subgraph.json @@ -67,7 +67,7 @@ "uniq_id": "2", "type": "STEP", "name": "Node 2", - "description": "buy a dog", + "description": "feed a dog", "tool": "", "nexts": [], "true_next": null, From ffad0802fff8c9536e568a5ad92c64801a5360a4 Mon Sep 17 00:00:00 2001 From: Homun Mage Date: Thu, 30 Jan 2025 19:49:46 +0800 Subject: [PATCH 4/4] v1.1.2 better trpg play prompt --- trpg_play.json | 55 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 18 deletions(-) diff --git a/trpg_play.json b/trpg_play.json index a342ff2..1eb38b1 100644 --- a/trpg_play.json +++ b/trpg_play.json @@ -4,18 +4,18 @@ "nodes": [ { "uniq_id": "uniq_id_10", - "nexts": [ - "uniq_id_7" - ], "type": "STEP", "name": "Step2", - "description": "As a Player, I want to perform an action. (in short, we do fast play) Output the JSON in the format: {{\"action\": \"palyer: I want xxxx\"}}\nIf you see need_roll, then output json {{\"action\": \"palyer: roll x\"}}, you random gen x", + "description": "As a Player, I want to perform an action. (in short, we do fast play) Output the JSON in the format: {{\"action\": \"palyer:because blablabla I want xxxx\"}}", "tool": "", + "nexts": [ + "uniq_id_7" + ], "true_next": null, "false_next": null, "ext": { - "pos_x": 799.4, - "pos_y": 141.1999999999999, + "pos_x": 960.009555910482, + "pos_y": 148.07991229613796, "width": 358, "height": 459, "info": "" @@ -23,18 +23,18 @@ }, { "uniq_id": "uniq_id_7", - "nexts": [ - "uniq_id_10" - ], "type": "STEP", "name": "Step1", - "description": "As DnD DM, describe the current scenario for the player. (in short, we do fast play) sometimes roll dice, sometimes not. player roll , if > 0 you need explain what the roll affect result, start from your roll blablabla Output the JSON in the format: {{\"scenario\": \"DM: your action description\", \"need_roll\": True/False}} 50% case need roll", + "description": "As DnD DM, describe the next story for the player. (in short, we do fast play) output format: {{\"story\": \"DM: because you blablabla\"}} ", "tool": "", + "nexts": [ + "uniq_id_10" + ], "true_next": null, "false_next": null, "ext": { - "pos_x": 324, - "pos_y": -119.4, + "pos_x": 402.26505848642046, + "pos_y": 12.264473582491112, "width": 388, "height": 527, "info": "" @@ -42,24 +42,43 @@ }, { "uniq_id": "uniq_id_1", + "type": "STEP", + "name": "Node", + "description": "As DnD DM, describe the secene for the player. (in short, we do fast play) output format: {{\"scenario\": \"DM: \"}} ", + "tool": "", "nexts": [ "uniq_id_7" ], + "true_next": null, + "false_next": null, + "ext": { + "pos_x": -44.70780224171054, + "pos_y": -59.723776200616605, + "width": 264, + "height": 351, + "info": "" + } + }, + { + "uniq_id": "11", "type": "START", - "name": "Node", + "name": "Node 11", "description": "", "tool": "", + "nexts": [ + "uniq_id_1" + ], "true_next": null, "false_next": null, "ext": { - "pos_x": 37, - "pos_y": 54, - "width": 200, + "pos_x": -316.4791241918573, + "pos_y": -129.3754157722915, + "width": 150, "height": 200, - "info": "" + "info": null } } ], - "serial_number": 11 + "serial_number": 12 } ] \ No newline at end of file