Skip to content

World Map Editor

Summary: The World Map editor authors a UWorldMapData asset (the Chasm map) and the domain art assets it draws. Its canvas is the game's own map widget, drawn for the asset in a chosen journey state, with editing gizmos on top. Every edit, from a canvas drag to a console verb or a JSON import, goes through one editing seam (WorldMapNodeEditing), so each tool fixes up references the same way and each edit is one undo step. A JSON text mirror and a console and Python surface let agents make the same edits headless.

Table of Contents


Architecture Overview

 ┌──────────────────────────── writers ────────────────────────────┐
 │ canvas gestures   Details rows   UWorldMapAuthoringLibrary       │
 │ (5 edit modes)    (one entry)    Eternal.WorldMap.<Verb>          │
 │                                  Eternal.WorldMap.ImportJson      │
 └───────────────────────────────┬──────────────────────────────────┘
                                 ▼
                ┌──────────────────────────────────┐
                │ WorldMapNodeEditing (the seam)    │
                │ • Modify() before every write     │
                │ • a no-op edit records nothing    │
                │ • a refusal changes nothing, says │
                │   why                             │
                │ • IDs, tags, links fixed up       │
                └────────────────┬─────────────────┘
                                 ▼
 ┌───────────────────────┐  ┌──────────────────────────┐  ┌─────────────────────┐
 │ UWorldMapData         │  │ UWorldMapDomainArt (×N)   │  │ UWorldMapStyle       │
 │ nodes, links, areas,  │─▶│ bounds, territory, field, │  │ DA_WorldMapStyle:    │
 │ domains, passages,    │  │ paintings, tone, Lord     │  │ masters, seals,      │
 │ camera, ruler, veil   │  │ effects, loading defaults,│  │ text styles, clip    │
 │ (Nodes[] = only copy) │  │ Bake fields               │  │                     │
 └──────────┬────────────┘  └─────────────┬────────────┘  └─────────┬───────────┘
            └─────────────────────────────┼─────────────────────────┘
                                          ▼
                  ┌───────────────────────────────────────────┐
                  │ SChasmMapCanvas (the game's map widget)    │
                  │ drawn into a target like the capture       │
                  │ harness, then SWorldMapEditorCanvas paints │
                  │ the mode's gizmos over it                  │
                  └───────────────────────────────────────────┘
Principle What it buys
One seam for every writer The canvas, Details, the library, the console and the JSON import keep IDs, tags and links consistent the same way
The editor draws the game's canvas What you see is what ships: with gizmos off, the editor's frame is byte-identical to the capture harness's frame of the same scenario
Presentation lives in data Domains differ only by their domain art asset; no code names a domain
JSON mirror of the asset Reviewable diffs, scripted edits, and a bootstrap path from the design prototype

Core Concepts

The asset model

A world map is one UWorldMapData. It holds the graph (nodes, links, start and end node, domains and their HQ, areas) and how the map is drawn: the canvas size (1920 × 2808 world px), the camera's scroll range and named stops, ruler tick pins, the rim label, passages (connective art between domains), the knowledge veil's bands, the loading screen shared by nodes outside every domain, and a soft reference to its style. Nodes[] is the only copy of the nodes; nothing caches a second graph.

Each domain entry (FDomainRegion) points at a UWorldMapDomainArt. That asset is the domain's whole look: where its art lies (Bounds), its territory (a signed distance field and mask), the influence field and fringe, up to four paintings with their world rects and joins, the tone of the generic domain material, motion, how liberation changes it, optional Lord-effect and atmosphere layers, and the loading-screen defaults its areas fall back to. Its editor-only Bake fields (BakeId, Envelope) say how the offline bake makes its textures. The style (DA_WorldMapStyle) holds what every map shares: the master materials, seal brushes, text styles and the ink clip.

Why one editing seam

WorldMapNodeEditing (Source/ProjectEternalEditor/Public/MapEditor/Authoring/WorldMapNodeEditing.h) is what every editing tool calls to change the map and a domain art's placement. The one exception is the whole-asset Details view (see Details and Domain Context). Its rules:

  • Every mutator calls Modify() before writing, so the caller's transaction can undo it.
  • A call that would change nothing returns success without Modify(). A repeated MCP call or a drag frame that did not move dirties nothing and records no undo step.
  • A refused edit changes nothing and says why.
  • References stay whole: a renamed node is renamed in every link, start/end and domain HQ; a re-tagged domain carries its areas and nodes; links stay two-way.
  • The seam refuses only what can never be valid (off the canvas, a span upside down, a taken ID, a missing reference, an HQ outside its domain). Containment, such as a node lying on its domain's art, belongs to the presentation validator, because a tool moves things one at a time through states that are briefly invalid.

The editor shows the game's canvas

The editor does not have its own map renderer. SWorldMapEditorCanvas hosts the game's SChasmMapCanvas (every layer, the foreground ink, the hover card) and draws it into a render target exactly as the capture harness does. It redraws only on a frame where something it shows changed: an edit, a view change, playback, easing, and for one second after each change so streamed mips and shaders land. An idle editor draws the map zero times. Gizmos are painted over that target.

The journey state the map is drawn in comes from the same preview scenarios the capture harness uses (Tools/WorldMap/Scenarios), so a scenario looks the same in the editor, in a capture and in the review sheets.

The JSON round trip

Eternal.WorldMap.ExportJson writes the map as JSON and Eternal.WorldMap.ImportJson merges a file back by ID, all or nothing, as one undo step. Export, import and export again is byte-identical. The format and the merge rules are in Tools/WorldMap/SCHEMA.md. The asset stays the source of truth; the JSON is a mirror for review, scripts and agents.

WorldMap_Chasm was made from the design prototype: Tools/WorldMap/convert_prototype_map.py writes Tools/WorldMap/WorldMap_Chasm.bootstrap.json, and the import builds the asset from it. A spec still ties the asset to that file (ProjectEternal.Editor.WorldMapJson: "still matches its bootstrap file", and 18 nodes, the two test areas among them, and 17 links where the file puts them). An edit to WorldMap_Chasm needs the file brought in line too: edit the file and import it, or edit in the editor and update the file to match. Adding or removing nodes or links also changes that spec's counts.

A domain art has its own text mirror, the bake's Tools/TextureForge/worldmap/domains/<id>.domain.json. The asset owns the keys that say where things lie; the file keeps the bake recipe. See Rebuild domain art.


Opening the editor and moving around

Double-click a World Map Data asset (/Game/DataAssets/WorldMap/WorldMap_Chasm). The editor has three tabs: World Map (the canvas, an edit-mode row and the preview bar), Details, and Domain Context. The toolbar adds Validate.

The canvas shows the game's 1920 × 1080 screen letterboxed in the panel. Zoom runs from 1 (the whole screen fits) to 4. A pan first moves the magnified screen inside the panel, then scrolls the camera once the screen's edge meets the panel's. The editor scrolls over the whole canvas, past the game camera's range, so a node below the camera's reach is still editable.

Input Does
Mouse wheel Zoom at the cursor (×1.15 per notch)
Shift + wheel Scroll the camera
RMB or MMB drag Pan (an RMB click without a drag opens the mode's menu)
F Fit the whole screen (the Fit button too)
Home / End Scroll to the top / bottom of the canvas
Page Up / Page Down Scroll by 0.6 of a screen
1 to 5 Switch edit mode (no modifier)
Esc Cancel a drag; else drop the mode's focus; else clear the selection
Delete Delete what the mode has picked
Ctrl+D Duplicate the selected nodes (Nodes mode)
Ctrl+A Select every node
Ctrl+Z / Ctrl+Y Undo / redo

Edit modes

Each mode draws and picks only its own gizmos. Paint and hit tests read one gizmo list (WorldMapEditorGizmo::CollectGizmos), so a press only ever takes what the mode shows. The mode row shows a one-line hint of the mode's gestures.

Mode (key) Gestures RMB menu Delete Details shows
Nodes (1) Click selects (Shift adds, Ctrl toggles; the last picked is the primary). Drag moves the selection as a group. Drag on empty space marquees. Alt-drag from a node to another links or unlinks them Create any of the nine node types at the cursor; on a node: Duplicate, Delete, make it the start or end The selection The primary node, else the whole asset
Areas (2) Drag a label to move it. Select nodes, then drag them onto a label to put them in that area On a node: "Put in ", "Take out of its area". On a label: "Put the N selected node(s) here", "Delete area". On empty space: "Create area here, in " The focused area; its nodes leave it The focused area, else the primary node
Domains (3) Click a domain's art to focus it. Drag inside its bounds to move the whole domain (Alt: its art only). Drag the focused rect's corners and edges to resize. Drag anchors, the label, the span's two ends and envelope ellipses (centre, right and bottom radius handles). Click a shared outline to focus the next rect The domain's rects; add an ellipse at the cursor; delete the hovered ellipse; Rebuild domain art The focused ellipse The domain's FDomainRegion
Passages (4) Drag a passage to move it; drag the focused one's corners and edges to resize Create (300 × 450 at the cursor) or delete The focused passage The focused passage
Ruler/Camera (5) Drag a ruler tick (that pins it), the camera range's two ends, a camera stop, the rim label; drag the start or end flag onto a node Add a stop at the cursor's y, pin the next depth's tick, unpin a tick, delete a stop, start/end The focused stop, or unpins the focused tick The whole asset

What a whole-domain move carries. Moving a domain moves its art (bounds, paintings, layer rects, world-point anchors, envelope ellipses and painting join ramps), its label, its span, its area labels and its nodes, all in one step. Alt+drag moves the art alone, for lining art up under nodes that should stay put.

Anchors are the effect-layer vector values marked as world points, such as the storm's Lord and the cloud's Machine and Vent. A value that is world y but not a world point (the bane haze's Band) is not a handle and does not move with the art.

Clamps. A drag stops where the asset would break a presentation rule, so the validator rarely has anything to say afterwards:

  • A domain's bounds hold every painting, the area labels and the area nodes, and stay on the canvas. A painting stays inside the bounds. Layer rects and passages stay on the canvas.
  • A whole-domain move stops where its first part meets the canvas edge.
  • A domain label stays in its span, and the span stays around it. An area label stays on its domain's art.
  • Ruler ticks stay between their neighbours; stops stay between theirs and inside the camera range; the range stays around every stop, with the 1080 px view inside the canvas.
  • A value already outside its limits does not jump when you grab it.

Everything except nodes moves by whole world px. Integer steps keep rects exact, so a drag back lands on its start, and keep paintings on their texel grid. Nodes move freely.

Duplicate copies every authored field of the selected nodes under <id>_<n> IDs, keeps links between the copies, drops links to nodes left out, and offsets the copies by (40, 40) world px, or (−40, −40) at the canvas edge. Nothing points at a copy (HQ, start, end).


The preview bar

Control Does
Scenario menu "Authoring view (every node known)": every node known and open, every domain named and held, so each Lord's effects show. Then every journey or map-preview scenario in Tools/WorldMap/Scenarios, by group. "Reload scenario files" re-reads the folder. A scenario that does not fit the edited map falls back to the authoring view with a toast saying why
Play / Pause Runs or holds shader time: fields, rims, clouds and mist (the ink and links never move)
Card Shows the primary node's hover card as the game shows it
Inspect A held inspection of the primary node: the expanded card and its ground effect
Fit Fits the whole screen (F)
Zoom / Scroll Read-out of the current view

A scenario keeps its own selection and pin unless Card or Inspect is on; then the editor's primary node replaces them.


Details and Domain Context

Details follows the mode (table above). For a node, area, domain or passage it edits a copy of that one entry and writes it back through the seam (ApplyNodeEdit, ApplyAreaEdit, ApplyDomainEdit, ApplyPassageEdit) as one undo step. A spin-box drag writes once, on release. A refused edit shows a notification with the reason, and the rows go back to the stored values on the next tick. A rename keeps the entry selected under its new ID.

With nothing picked, Details shows the whole asset as a plain property view. Use it for the fields the canvas has no handle for, such as the style, the knowledge veil and the connective loading screen. Edits there go straight onto the asset and skip the seam, so rename, re-tag and delete nodes, areas and domains through the canvas, a verb or the library.

A domain art's own fields (textures, tone, layers, loading defaults, the Bake fields) are edited by opening the domain art asset. Domains mode edits only its placement.

Domain Context shows the selected node's domain: name and depth range, its dungeon config (topologies and rooms, with Open Domain Config) and the encounter's enemy pool.


Undo and saving

  • Every gesture, Details write, library call, console verb and JSON import is one transaction. A drag is one step across all its frames.
  • A drag that ends where it began, or is cancelled with Esc, leaves no step. A refused or repeated edit records nothing.
  • Undo restores the arrays wholesale; the canvas then drops a selection or focus that no longer resolves.
  • The toolbar's Save writes the map. A domain art changed in Domains mode is its own package: save it too (Save All, or Eternal.WorldMap.Save <domainArt>).
  • Console verbs and library calls never save; Eternal.WorldMap.Save <asset> does. A run of edits is then one save, and a refused edit can be undone before anything reaches disk. ImportJson is the exception and saves what it changed.

Rebuild domain art

The textures of a domain (territory SDF and mask, field, fringe, paintings, joins, underpaint) are baked offline by the TextureForge world-map pipeline (Tools/TextureForge/worldmap/README.md) from a domain description, domains/<id>.domain.json, and paintings that live outside the repo. The domain art asset owns where things lie; the description keeps how they are made.

Description key Asset field
id BakeId (picks the description through map.json domains; checked, not written)
rect Bounds
paintings[].rect Paintings[k].WorldRect, paired in composite.layers order
composite.layers[k].join.ramps Paintings[k].JoinRamps (world px; the first painting has none)
territory.ellipses, territory.smoothMinK Envelope (world px in the asset, relative to rect in the file)
liberation.fieldMul / fringeMul LiberatedFieldScale / LiberatedFringeScale

The loop. Edit placement and the envelope in Domains mode (or through the verbs below), then press Rebuild domain art (Domains mode's row, enabled with a focused domain, or its RMB menu), or run Eternal.WorldMap.RebuildDomainArt <domainArt> [sourceroot=<dir>] [wait]. A rebuild:

  1. writes the description from the asset, patching only the keys the asset owns and keeping every other byte and spelling;
  2. runs node build.mjs --only <id> --domain <file> --out Saved/WorldMap/Rebuild/<asset>/exports as a child process, with every painting checked against sources.manifest.json;
  3. imports the set with chasm_import_textures.py --exports ... --sets <id> --dest <the art's texture folder>;
  4. redraws every canvas showing the art.

A notification shows the bake's progress and elapsed seconds, with Cancel and Open log; the editor keeps running. wait blocks behind a slow-task dialog instead. The rebuild never saves the asset.

Setting or output Where
Painting folder Editor Preferences > Plugins > World Map Art > Source Root (per user), else ETERNAL_WORLDMAP_SOURCE_ROOT, else map.json's default. sourceroot= on the command wins over all three
node World Map Art > Node Executable, else the first on PATH
Result Saved/WorldMap/Rebuild/last_result.json
Log Saved/WorldMap/Rebuild/<asset>/rebuild.log

Failures say why and import nothing.

Message Cause
"The painting folder was not found. Set Editor Preferences > Plugins > World Map Art > Source Root (or ETERNAL_WORLDMAP_SOURCE_ROOT)." No folder at the resolved source root
"A painting differs from its committed hash (sources.manifest.json), so the bake stopped rather than use it." A painting's bytes changed; an intended change needs --rehash-sources and a commit
"A painting the domain needs is missing from the painting folder or from its hash list." A file is missing, or not listed in the manifest
" has no Bake Id: it names the domain the bake makes its textures as." BakeId empty
"The bake lists no domain '' (map.json domains)." The description is not listed in map.json
"'s textures lie in N folders (...); the import writes one." The art's textures are split across folders
" and both bake as '' into ; ..." Two arts own the same committed description

The writer also refuses, writing nothing, when the description belongs to another domain, has another painting count or another painting order, has an envelope territory but the asset has no ellipses, has ellipses on a supplied territory, or has joins on the first painting.

Determinism. The bake is byte-identical across processes, and the importer skips a texture whose source hash and settings match. Rebuilding a domain from unchanged data imports nothing and changes no .uasset byte (both shipped domains were checked: Ashwoods baked in 8.6 s, the Red Appetite in 11.9 s). A changed ellipse re-imports only the textures it changes (SDF, field, fringe). Never force an import (--force, CHASM_FORCE=1) in this loop: a forced re-import of an identical PNG still rewrites the .uasset bytes.

Copies. Only the art whose textures live in the bake's folder (map.json ueContentPaths.domain) writes the committed description. A copy whose textures live elsewhere bakes from a work copy under Saved/WorldMap/Rebuild/ and imports into its own folder, so an experiment can never overwrite committed data or shipped textures.

Eternal.WorldMap.WriteDomainArtJson <domainArt> [check] writes the description without baking; with check it only says whether the file would change.


Shader hot reload

The map's shader maths lives in struct-wrapped .ush files under Shaders/WorldMap/, mapped to the virtual path /ProjectEternal/WorldMap/. Thin Custom nodes in the master materials #include them. Editing a .ush needs no C++ build and no Eternal.WorldMap.BuildMaterials; changing the Custom-node code itself (Source/ProjectEternalEditor/Private/Authoring/ChasmMaterialCode.cpp) needs both.

The loop (checked on UE 5.8, 2026-10-17):

  1. Edit and save the .ush.
  2. Run recompileshaders material <M_UI_Chasm_X> for each master that includes the file (table below). The material must be loaded: open the map editor or run a capture first.
  3. Make the map draw. The new shaders arrive when the material is next drawn, and the idle editor canvas does not redraw on its own: press F, scroll or Play, or run Eternal.WorldMapEditor.Capture, which waits for the compile.
  4. Read the log for LogShaderCompilers.

recompileshaders changed does not work for these files. It logs No Shader changes found., because it only checks the source files of shader types, and a project .ush reached through a Custom node's #include is not one. Restarting the editor also picks the change up: the first draw after a start compiles the changed include.

File Masters that include it
ChasmCommon.ush All of the masters below
ChasmShaft.ush M_UI_Chasm_Shaft
ChasmDomain.ush M_UI_Chasm_Domain, M_UI_Chasm_LordCinobCloud, M_UI_Chasm_Atmosphere
ChasmLordStorm.ush M_UI_Chasm_LordStorm
ChasmCinobCloud.ush M_UI_Chasm_LordCinobCloud
ChasmAtmosphere.ush M_UI_Chasm_Atmosphere
ChasmVeil.ush M_UI_Chasm_Veil
ChasmPassage.ush M_UI_Chasm_Passage
ChasmFocusGround.ush M_UI_Chasm_FocusGround
ChasmLoading.ush M_UI_Loading_Shroud

The spike materials under MaterialLibrary/UI/Worldmap/Spike/ include some of these files too; recompile them only when a capture uses them. ChasmMaterialCode.cpp is the list of record.

When the compile fails. A missing semicolon in ChasmPassage.ush presented like this:

  • The log has one warning-level line, LogShaderCompilers: Warning: Failed to compile Material /Game/MaterialLibrary/UI/Worldmap/M_UI_Chasm_Passage... Default Material will be used in game., a Shader debug info dumped to: Saved/ShaderDebugInfo/... line, and the compiler's message with file, line and column (/ProjectEternal/WorldMap/ChasmPassage.ush:20:26: error: expected ';' after expression). It is not an Error: line, so a log filter on errors misses it.
  • Nothing shows on screen: no toast, no dialog, no Message Log entry. The status bar's "1 Unsaved" is the only change, and the recompile itself causes it.
  • The last good program is not kept. The material falls back to the engine's default material, which draws nothing here: the passage vanished and the rest of the frame stayed byte-identical. Until the canvas redraws, the editor keeps showing its last frame, which looks as if the old program survived.
  • The editor stays usable. Eternal.WorldMapEditor.Capture still reports success (error=""), so read the log.
  • Fixing the file and recompiling brings the frame back byte for byte.

recompileshaders material marks the material's package dirty. Do not save it: a recompile changes nothing in the .uasset, and a re-save only churns the binary. Decline it in the save prompt.


Validation

Two layers check a map, and both run on save, in content validation, in pre-push and in CI (Content Validation):

  • UWorldMapData::IsDataValid: the graph (unique IDs, links that resolve and run both ways, every non-dev node linked, a start node, dungeon nodes with a config, domain HQ routing, area references, every node's domain listed on the map).
  • UWorldMapPresentationValidator: how the map is drawn. Placement on the canvas and inside the ink clip, seal spacing, containment (a node in an area lies on its domain's art and span), ruler ticks, effect-layer values that name real material parameters, a complete style, each domain art's textures, every area and domain entry resolving to a loading painting and coverage, and the import settings of every referenced texture. It runs only once IsDataValid passes.

The editor's Validate button and the content browser's Validate World Map action run every validator, so they cannot disagree with CI. Both must stay at zero findings. Headless: Tools/run_validation.ps1 -Paths /Game/DataAssets/WorldMap,/Game/DataAssets/UI,/Game/DataAssets/Dungeon/DomainConfigs,/Game/TextureLibrary/UI/Worldmap.


Console and Python

Edit verbs

Eternal.WorldMap.<Verb> <asset> <args>, where <asset> is /Game/Folder/Name or a full object path. Each verb is one undo step, logs what it did under LogWorldMapEdit ("unsaved" until Eternal.WorldMap.Save), or logs an Error saying why it was refused. none clears a name or tag. Coordinates are world px. The console's help text for each verb gives its usage.

Group Verbs (on a world map unless noted)
Nodes CreateNode <type> <x> <y> [id], DeleteNode, RenameNode, Connect, Disconnect, MoveNode <id> <x> <y>, MoveNodesBy <dx> <dy> <id> [id ...], SetNodeArea, SetNodeDomain
Areas CreateArea <id> <domainTag> <labelX> <labelY> [display name], DeleteArea <id> [release], RenameArea, SetAreaDomain, MoveAreaLabel
Domains CreateDomain <domainTag> [display name], DeleteDomain, RetagDomain, SetDomainHQ, MoveDomainLabel, SetDomainSpan <domainTag> <minY> <maxY>, MoveDomain <domainTag> <dx> <dy>
Domain art (on a domain art) SetDomainArtBounds <x> <y> <w> <h>, MoveDomainArt <dx> <dy>, SetDomainArtPaintingRect <index> <x> <y> <w> <h>, SetDomainArtLayerRect <layerId> <x> <y> <w> <h>, SetDomainArtAnchor <layerId> <param> <x> <y>, SetDomainArtEllipse <index> <cx> <cy> <rx> <ry>, CreateDomainArtEllipse <cx> <cy> <rx> <ry>, DeleteDomainArtEllipse <index>, SetDomainArtEnvelopeBlend <px>
Passages CreatePassage <id> <x> <y> <w> <h>, DeletePassage, RenamePassage, SetPassageRect
Ruler, camera, terminals SetCameraRange <minY> <maxY>, CreateCameraStop <id> <scrollY>, DeleteCameraStop, MoveCameraStop, RenameCameraStop, SetDepthTick <depth> <y>, ClearDepthTick <depth>, MoveEdgeLabel <x> <y>, SetStartNode <node>, SetEndNode <node>

Asset-level commands

Command Does
Eternal.WorldMap.Save <worldMap or domainArt> Saves an asset the verbs changed
Eternal.WorldMap.ExportJson <asset> [path] Writes the map as JSON (default Saved/WorldMap/<AssetName>.json)
Eternal.WorldMap.ImportJson <asset> <path> [create] [prune] Merges a JSON file by ID and saves; report in Saved/WorldMap/last_result.json
Eternal.WorldMap.RebuildDomainArt <domainArt> [sourceroot=<dir>] [wait] Bakes and imports a domain's textures from the asset
Eternal.WorldMap.WriteDomainArtJson <domainArt> [check] Writes (or checks) the bake's domain description
Eternal.WorldMap.BuildMaterials Rebuilds the Chasm master materials from their C++ recipes; it re-saves every one, so restore the families that did not change

The authoring library

UWorldMapAuthoringLibrary (Source/ProjectEternalEditor/Public/MapEditor/Authoring/WorldMapAuthoringLibrary.h) offers the same edits to Python and Blueprint. Each call is one undo step, returns the refusal as a string (empty when done), and never saves. It returns a string because Python turns a false return beside out parameters into None and drops the reason. Domain tags are passed by name; an unregistered one is refused. Text typed as a string is keyed in the asset's package namespace, as the JSON import keys it.

lib = unreal.WorldMapAuthoringLibrary
m = unreal.load_asset("/Game/__Scratch/WorldMap_Scratch")   # a duplicate of WorldMap_Chasm to try things on
err, node_id = lib.create_node(m, unreal.WorldNodeType.COMBAT, unreal.Vector2D(980, 600), "ambush")
err = lib.connect_nodes(m, "combat2", node_id)          # "" when done, else why not
err = lib.move_node(m, node_id, unreal.Vector2D(1000, 610))
art = unreal.load_asset("/Game/__Scratch/DA_WorldMapDomainArt_Scratch")   # a duplicate domain art
err, index = lib.create_domain_art_ellipse(art, unreal.Vector2D(960, 1500), unreal.Vector2D(300, 280))

Rects are unreal.WorldMapRect(x=, y=, width=, height=). Read a map back through Eternal.WorldMap.ExportJson: Python's names for some fields are not the obvious snake case.


Driving and capturing the editor canvas

Two console commands give agents the canvas itself.

Eternal.WorldMapEditor.Drive <asset> <verb> [args] drives the open editor's canvas through its own input handlers, so a driven gesture takes the same path as a mouse. Verbs: press|move|release|rpress|rmove|rrelease <x> <y> [shift|ctrl|alt], wheel <n> <x> <y> [shift], key <Key> [mods], create <NodeType> <x> <y>, select <ids|none>, scenario <name|authoring>, play|card|inspect <0|1>, fit, scroll <y>, zoom <z> <x> <y>, mode nodes|areas|domains|passages|ruler, assign <area|none>, delete, newarea <domainTag> <x> <y>, newpassage <x> <y>, newstop <scrollY>, pin <depth> <y>, newellipse <x> <y>, rebuild, terminal start|end <node|none>, gizmos (the mode's gizmo list), state and stats [reset] (frames, map draws). Coordinates are world px.

Eternal.WorldMapEditor.Capture <asset> [key=value ...] builds a fresh canvas offscreen and writes a PNG. It needs no open editor. Keys: scenario=, select=a,b, card=1, inspect=1, scroll=, zoom= with at=x,y, mode=, click=x,y[/x,y...], hover=x,y, time=, w= (1600), h= (900), retain=0|1, gizmos=0|1, dir=, name=. The log line gives the path and a pixelSha1; with a fixed time= the same arguments give the same hash, which makes a before/after check cheap. Default folder: Saved/WorldMap/EditorCaptures.

Eternal.WorldMapEditor.Capture /Game/DataAssets/WorldMap/WorldMap_Chasm scroll=600 time=3 gizmos=0 dir=C:/abs/folder name=before
Eternal.WorldMapEditor.Drive /Game/DataAssets/WorldMap/WorldMap_Chasm mode domains

The game-side harness (Eternal.WorldMap.Capture, CaptureAll, Tools/run_worldmap_captures.ps1) captures the map without the editor; see Tools/WorldMap/Scenarios/README.md.


Traps

  • The OS cursor drives Drive gestures. With the mouse resting over the canvas, Slate's synthesized mouse moves can move a node that a press verb picked. Move the cursor off the editor before driving it.
  • An extra undo pops an earlier step. Undo only after a gesture that changed something.
  • dir= is relative to the engine's binaries folder. Pass an absolute path to Eternal.WorldMapEditor.Capture.
  • Git Bash mangles /Game/... arguments. Set MSYS_NO_PATHCONV=1, then pass Windows paths for local files.
  • A failed shader compile looks like success until the canvas redraws. See Shader hot reload.
  • The whole-asset Details view skips the seam. Rename and delete through the canvas, a verb or the library.
  • Changing texture settings in the editor fails validation. World-map textures come only through Tools/Python/WorldMap/chasm_import_textures.py; change settings in the pipeline manifest.

Source References

Component Location
Map asset Source/ProjectEternal/Public/WorldMap/WorldMapData.h
Domain art asset Source/ProjectEternal/Public/WorldMap/DataAssets/WorldMapDomainArt.h
Style asset Source/ProjectEternal/Public/WorldMap/DataAssets/WorldMapStyle.h
The game's map widget Source/ProjectEternal/Public/UI/Widgets/WorldMap/ChasmMapCanvas.h
Preview scenarios Source/ProjectEternal/Public/UI/Widgets/WorldMap/WorldMapPreviewScenario.h, Tools/WorldMap/Scenarios/
Editing seam Source/ProjectEternalEditor/Public/MapEditor/Authoring/WorldMapNodeEditing.h (WorldMapNodeEditing.cpp, WorldMapEntryEditing.cpp, WorldMapLayoutEditing.cpp)
Authoring library Source/ProjectEternalEditor/Public/MapEditor/Authoring/WorldMapAuthoringLibrary.h
Edit verbs Source/ProjectEternalEditor/Private/MapEditor/Authoring/WorldMapEditCommands.cpp
JSON mirror Source/ProjectEternalEditor/Private/MapEditor/Authoring/WorldMapJsonCommands.cpp, WorldMapJsonFields.cpp, Tools/WorldMap/SCHEMA.md
Domain art writer and rebuild Source/ProjectEternalEditor/Public/MapEditor/Authoring/WorldMapDomainArtJson.h, WorldMapDomainArtRebuild.h, WorldMapArtEditorSettings.h
Editor app (tabs, Details, Validate) Source/ProjectEternalEditor/Public/MapEditor/Application/WorldMapEditorApp.h
Canvas, modes, gizmos Source/ProjectEternalEditor/Public/MapEditor/Slate/WorldMap/SWorldMapEditorCanvas.h, WorldMapEditorGizmo.h; Private/MapEditor/Slate/WorldMap/SWorldMapEditorCanvas*.cpp, WorldMapEditorGizmoScene.cpp
Preview bar Source/ProjectEternalEditor/Public/MapEditor/Slate/WorldMap/SWorldMapPreviewBar.h
Drive and Capture Source/ProjectEternalEditor/Private/MapEditor/Slate/WorldMap/WorldMapEditorDrive.cpp
Shader maths Shaders/WorldMap/*.ush; material code Source/ProjectEternalEditor/Private/Authoring/ChasmMaterialCode.cpp
Presentation validator Source/ProjectEternalEditor/Public/Validation/WorldMapPresentationValidator.h
Art pipeline and importer Tools/TextureForge/worldmap/README.md, Tools/Python/WorldMap/chasm_import_textures.py


Recent Changes

Date Change Impact
2026-10-19 The link glint is gone Play / Pause runs the layers only; links are static and show opened paths (World Map System)
2026-10-17 First version: editor canvas, five edit modes, preview bar, verbs, rebuild domain art, shader hot reload One reference for authoring the Chasm map