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

10. Java editor

10.1 Project structure (user folder)

PathContent
.project.yamlproject manifest (name, languages, Unity path, SFTP)
.registry.logchange registry
lines/<LINGUA>/<CID>.yamllines
Characters/characters.list.yamlcharacters
variables/variables.yamlvariables
graphs/graphs (optional: they normally reside in Unity)
.engine/graphdigest.jsondigest imported from the engine

The state files of the editor, located outside the project (~/.mysys22-dialogue-editor/), are: settings.yaml (UI language), sessions/<projectId>.json (open tabs), recent-projects.json (max 20 recent). The .mysys22 shortcuts contain a project=<percorso> line.

10.2 Deployment

The service UnityDeployService.deploy(session, unityRoot) performs the following steps:

  1. validates the project (validateForDeploy): if errors exist, it aborts without touching Unity;
  1. migrates the old MySys22.DialogueEngine folder if present;
  1. writes Dialogue/<LINGUA>/<CID>.yaml normalising character and sorting the DIDs, plus

manifest.txt per language;

  1. removes the .yaml files no longer present and the stale language folders (with their .meta);
  1. writes Characters/characters.list.yaml and Variables/variables.yaml (empty if absent);
  1. copies graphs/*.yaml only if the project has a graphs/ folder, then rewrites

Graphs/manifest.txt from what it actually finds;

  1. writes engine.manifest.json and realigns the languages in the .project.yaml.

The same operation is available from the Inject button (GUI) and from the deploy command (CLI).

10.3 Tabs and panels

TabFileNotes
‹CID› [LINGUA]LinesEditorTabLID/Text table, Insert, +, −, undo/redo
characters.listCharacterListTabCID/Name/Language table
variablesVariableListTabName/Type/Default/Description table
.project.yamlProjectConfigTabconfiguration + Save + Create shortcut...
.registry.logRegistryLogTabread-only

The bottom panels are: Console (project shell), Debug (Import Digest + refresh), SFTP (connect/download), Git (git commands only). The undo/redo functions are associated with the combinations Ctrl+Z, Ctrl+Y, Ctrl+Shift+Z and the history comprises 200 steps.

10.4 CLI (headless)

MySys22 Dialogue Editor - headless tool

  validate --project <dir>
  coverage --project <dir>
  deploy   --project <dir> --unity <unity-project-root>

The exit codes of each command are reported in the following table:

CommandExit code
validate0 if no errors, 1 if errors exist
coverage0 if no referenced DID is missing, 1 otherwise
deploy0 if the deployment succeeded, 1 otherwise
usage error (missing arguments, invalid folder, unknown command)2

The --project option accepts exclusively the form --project <dir> (no --flag=value).

10.5 Packaging

The packaging scripts are packaging/package-app.sh (Linux/macOS) and package-app.ps1 (Windows):

Flag / parameterEffect
`--type app-image\deb\dmg / -Type app-image\msi`output type
--version X.Y.Z / -Versionapplied version
--slim / -Slimreduced runtime with jlink
--fatcomplete runtime (copy of the JDK)
--runtime-image DIRruntime supplied by the user
--skip-build / -SkipBuildreuses the already compiled jars
--releaseproduces the portable folder jar + lib/ and terminates (no jpackage)

For the writers, 0 is used: the produced folder contains the jar, lib/, the JavaFX jars for Linux/Windows/macOS, run.sh, run.bat and a README.txt. Only a JRE 21 is required.


11. Unity editor tools

ToolFileWhat it produces
Graph EditorDialogueGraphWindow / DialogueGraphView*.graph.yaml graphs; rewrites Graphs/manifest.txt at every save
ValidationDialogueValidator, DialogueProjectValidatorreport in the Console with [3xx] codes
DigestDialogueDigestTools, DialogueGraphDigestengine.graphdigest.json
IndicesManifestGeneratormanifest.txt for graphs and languages
AOT / IL2CPPDialogueAotTools, Assets/MySys22.DialogueEngine/link.xmllink.xml to prevent the classes used by reflection from disappearing
Scene setupDialogueSceneSetupCanvas, texts, choice panel, references

AOT note: the engine uses reflection (YamlDotNet, action discovery) and on IL2CPP this can break if the linker eliminates the types. The link.xml file is already in the package; the Generate AOT link.xml menu extends it with the user-defined actions.