10. Java editor
10.1 Project structure (user folder)
| Path | Content |
|---|---|
.project.yaml | project manifest (name, languages, Unity path, SFTP) |
.registry.log | change registry |
lines/<LINGUA>/<CID>.yaml | lines |
Characters/characters.list.yaml | characters |
variables/variables.yaml | variables |
graphs/ | graphs (optional: they normally reside in Unity) |
.engine/graphdigest.json | digest 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:
- validates the project (
validateForDeploy): if errors exist, it aborts without touching Unity;
- migrates the old
MySys22.DialogueEnginefolder if present;
- writes
Dialogue/<LINGUA>/<CID>.yamlnormalisingcharacterand sorting the DIDs, plus
manifest.txt per language;
- removes the
.yamlfiles no longer present and the stale language folders (with their.meta);
- writes
Characters/characters.list.yamlandVariables/variables.yaml(empty if absent);
- copies
graphs/*.yamlonly if the project has agraphs/folder, then rewrites
Graphs/manifest.txt from what it actually finds;
- writes
engine.manifest.jsonand 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
| Tab | File | Notes |
|---|---|---|
‹CID› [LINGUA] | LinesEditorTab | LID/Text table, Insert, +, −, undo/redo |
characters.list | CharacterListTab | CID/Name/Language table |
variables | VariableListTab | Name/Type/Default/Description table |
.project.yaml | ProjectConfigTab | configuration + Save + Create shortcut... |
.registry.log | RegistryLogTab | read-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:
| Command | Exit code |
|---|---|
validate | 0 if no errors, 1 if errors exist |
coverage | 0 if no referenced DID is missing, 1 otherwise |
deploy | 0 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 / parameter | Effect | |||
|---|---|---|---|---|
| `--type app-image\ | deb\ | dmg / -Type app-image\ | msi` | output type |
--version X.Y.Z / -Version | applied version | |||
--slim / -Slim | reduced runtime with jlink | |||
--fat | complete runtime (copy of the JDK) | |||
--runtime-image DIR | runtime supplied by the user | |||
--skip-build / -SkipBuild | reuses the already compiled jars | |||
--release | produces the portable folder jar + lib/ and terminates (no jpackage) |
For the writers,