MySys22.DialogueSystem
Document
1.0
Engine
0.5 BETA
Editor
0.5 BETA
Updated
2026-09-28

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):

FieldTypeUsed byMeaning
idstringallnode identifier (8 characters)
typestringalldialogue, choice, function, condition, jump, end
speakerstringdialogue, choiceCID of the character
start_did / end_didintdialogueline range of the node (inclusive)
nextstringallnext node
actionstringfunctionid of the action to execute
paramsmapfunctionparameters passed to the action
waitboolfunctionif true the dialogue waits for the end of the function
conditionslistfunctioncondition nodes to which the result is passed
conditionstringcondition, dialogue, choiceboolean expression
elsestringconditionalternative branch
on_true / on_falsestringconditiondestination node for the two outcomes
optionstringconditionfree label of the branch
graphstringjumpdestination graph
returnbooljumpif true returns to the calling graph at the end of the branch
choiceslistchoiceoptions described in the following subsection
audio / audio_loopstring/booldialogueambient track of the node
voicebooldialogueone clip for each DID of the line
on_parallelstringdialogueaction started while the line is on screen
on_completestringdialogueaction executed when the line has been read
positionx/yeditorposition of the node in the canvas
isStartbooleditorhighlights the start node

The following table lists the fields of a choice option (ChoiceData):

FieldMeaning
textworking label (fallback if text_did is 0)
text_didDID from which the localised text of the choice is read
nextdestination node
portGuidport identifier (used by the editor)
onChosenaction executed when the option is chosen
conditionif 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)

FileContentConsumer
Graphs/manifest.txtone file name per line (test_new_graph.yaml)DialogueGraphIndex
Dialogue/<LINGUA>/manifest.txtone 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

dialogue does not block.

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

proceeds from there.

by means of the jump stack in the player.

4.3 Audio

repeats it.

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.