3. Format model
3.1 engine.manifest.json
{
"formatVersion": 1,
"projectId": "test",
"name": "test",
"dialogueVersion": "1.0",
"chapter": "1",
"defaultLanguage": "EN",
"languages": ["EN"],
"graphs": 0,
"variables": 0,
"generatedBy": "MySys22 Dialogue Editor 0.1.0",
"generatedAt": "2026-09-24T12:18:37Z"
}
On mobile the file constitutes the source of truth for the language list, since it is not possible to enumerate folders.
3.2 Graphs/<id>.graph.yaml
graphId: test_new_graph
startNode: 2de7e841
nodes:
- id: 2de7e841
type: dialogue
speaker: 0
start_did: 1
end_did: 2
params: {}
next: 6cb687b5
choices: []
position: { x: 351, y: -62 }
isStart: true
The following table lists the fields of a node (NodeData):
| Field | Type | Used by | Meaning |
|---|---|---|---|
id | string | all | node identifier (8 characters) |
type | string | all | dialogue, choice, function, condition, jump, end |
speaker | string | dialogue, choice | CID of the character |
start_did / end_did | int | dialogue | line range of the node (inclusive) |
next | string | all | next node |
action | string | function | id of the action to execute |
params | map | function | parameters passed to the action |
wait | bool | function | if true the dialogue waits for the end of the function |
conditions | list | function | condition nodes to which the result is passed |
condition | string | condition, dialogue, choice | boolean expression |
else | string | condition | alternative branch |
on_true / on_false | string | condition | destination node for the two outcomes |
option | string | condition | free label of the branch |
graph | string | jump | destination graph |
return | bool | jump | if true returns to the calling graph at the end of the branch |
choices | list | choice | options described in the following subsection |
audio / audio_loop | string/bool | dialogue | ambient track of the node |
voice | bool | dialogue | one clip for each DID of the line |
on_parallel | string | dialogue | action started while the line is on screen |
on_complete | string | dialogue | action executed when the line has been read |
position | x/y | editor | position of the node in the canvas |
isStart | bool | editor | highlights the start node |
The following table lists the fields of a choice option (ChoiceData):
| Field | Meaning |
|---|---|
text | working label (fallback if text_did is 0) |
text_did | DID from which the localised text of the choice is read |
next | destination node |
portGuid | port identifier (used by the editor) |
onChosen | action executed when the option is chosen |
condition | if false, the option is not shown |
3.3 Dialogue/<LINGUA>/<CID>.yaml
character: '0'
language: EN
lines:
- did: 1
text: Ciao mi chiamo anna
- did: 2
text: Come stai?
The value did cannot be repeated within the same file; the DIDs need not be consecutive, since gaps are deliberately available for future insertions.
3.4 Characters/characters.list.yaml
characters:
- id: 0
name: Anna
language: EN
The field id is the CID used by the graphs; the field name is a UI label only.
3.5 Variables/variables.yaml
variables:
- name: has_key
type: bool
value: 'false'
description: The player has the key
The permitted types are bool, int, float, string.
3.6 manifest.txt (indices)
| File | Content | Consumer |
|---|---|---|
Graphs/manifest.txt | one file name per line (test_new_graph.yaml) | DialogueGraphIndex |
Dialogue/<LINGUA>/manifest.txt | one CID per line (0) | YamlLineProvider |
Lines starting with # are comments. On desktop the indices are ignored, since the engine enumerates folders.
3.7 engine.graphdigest.json
{
"formatVersion": 1,
"generatedBy": "MySys22.DialogueEngine 1.0",
"languages": ["EN"],
"characters": [{ "cid": "0", "name": "Anna", "language": "EN" }],
"graphs": [
{
"graphId": "test_new_graph",
"file": "test_new_graph.yaml",
"startNode": "2de7e841",
"nodes": [
{ "id": "2de7e841", "type": "dialogue", "speaker": "0",
"startDid": 1, "endDid": 2, "next": "6cb687b5", "choices": [] }
]
}
]
}
The file is intended for the writer, who can thereby know which DIDs are actually used. The Java editor imports it (Debug ▸ Import Digest), while the coverage command verifies that every referenced DID has a text available.
4. Data semantics
4.1 DID and CID
- CID: numeric string of the character, defined in
characters.list.yaml.
- DID: integer of the line within the file of that character.
- The
dialoguenode withstart_did: 5andend_did: 7shows lines 5, 6, 7 in sequence.
- A missing DID produces
[MISSING: <CID> - DID <n>]on screen and a warning in the Console: the
dialogue does not block.
- Stable DIDs: the
Insertcommand in the editor looks for a free gap among the neighbouring
DIDs and never reuses a number already referenced by the game; a referenced DID cannot be deleted. It follows that the graph continues to work even after months of editing.
4.2 Jump between graphs
- The
jumpnode loads another graph (LoadGraphByName, from the in-memory cache on mobile) and
proceeds from there.
- With
return: true, at the end of the destination graph the dialogue returns to the calling graph,
by means of the jump stack in the player.
- If the destination graph does not exist, the engine logs
[319]and terminates the dialogue.
4.3 Audio
- The field
audioon the Dialogue node starts a track (DialogueAudio.Play), whileaudio_loop
repeats it.
- The field
voice: truedetermines the search for a clip for each DID (PlayVoice(cid, did)).
- The clips are resolved from a registry (
DialogueAudio.RegisterAudioClip) or fromResources.
- The audio can also be commanded from the API (
Dialogue.PlayAudio,StopAudio,PlayVoice).
4.4 Position and saving
The engine does not save games: it exposes a snapshot of the position and leaves its management to the game.
Dialogue.Position // current position
Dialogue.SavePosition() // string to be saved at the required location
Dialogue.RestorePosition(s) // reads the string back
Dialogue.OnPositionChanged // event
Dialogue.SetFunctionProgress("step 3/7") // progress within a long-running function
The fields of DialoguePosition are: GraphId, NodeId, NodeType, Speaker, LineIndex, Did, LineCount, WaitingForChoice, WaitingForAction, FunctionActionId, FunctionProgress, Language, Running.
It falls within the responsibility of the game to save the string and, on restore, to bring the graph back to the desired state. See API for developers.