How-To: Add a Domain to the Chasm¶
last-verified: 2026-10-20 against
feature/worldmap-chasm(ca03ec642)
A domain is a region of the Chasm with its own paintings, territory, Lord and dungeons. Nothing in code knows a domain
by name: a new one is a gameplay tag, a dungeon config, a domain art asset, its baked textures, and entries on the world
map. This page is the order to make them in. The editor itself is described in
World Map Editor; the art pipeline in Tools/TextureForge/worldmap/README.md.
When in doubt, press Validate. The World Map editor's Validate button runs the same checks as CI, and each message
names the field that is wrong. Both shipped domains, the Ashwoods (Domain.Forest) and the Red Appetite
(Domain.Desert), pass with zero findings; open them beside yours when a step is unclear.
What a domain is made of¶
Domain.<Name> (gameplay tag)
│
├─ DungeonConfig_<Name> dungeons of its nodes; its Lord's HQ topology and boss; tier rules
│
├─ WorldMap_Chasm › Domains[] name, colour, depths, HQ node, default dungeon config,
│ MapArt, label, span, entry loading screen
│ ├─ Areas[] named parts of the domain: label, loading screen
│ └─ Nodes[] the domain's nodes; one DomainHQ node is its Lord
│
└─ DA_WorldMapDomainArt_<Name> where its art lies, its textures and tone, Lord effect
│ and atmosphere layers, loading defaults, Bake fields
└─ T_UI_WorldMap_<Name>_* baked by the art pipeline from domains/<id>.domain.json
and paintings kept outside the repo
1. Tag and dungeon config¶
- Register
Domain.<Name>inConfig/Tags/GameplayTags.inibesideDomain.ForestandDomain.Desert(Register a Gameplay Tag). The world-map tools refuse a tag that is not registered. - Make the domain's
UDomainDungeonConfigin/Game/DataAssets/Dungeon/DomainConfigs/(copyDungeonConfig_Crimson). Its Lord's node plays an HQ dungeon, so the config needsHQTopologiesand aBossEncounter; the config validator requires both once a map routes an HQ node to it. A boss room whose level places no boss spawns theBossEncounter, with an encounter and an end portal, so a shared boss room serves every domain (Boss Room Fill). - The start room gets a start portal, so its level needs room for one. Either an
AEternalPlayerStartmatchingDungeonStartwith about 4 m of clear floor beside it (the spot must lie at least 4 m from every door of the room and 1.5 m from its walls), or an actor taggedStartPortalSpotwhere the stone should stand (Start Portal). A start room with neither, or with no spot that fits, gets no portal and logs a warning. - Give
TierRulestwo entries, Tier II and Tier III. Each rule adds one tier above Tier I (anAreaLevelBonusand an optionalModifierPool); with none, the domain never offers Tier II. Only the domain's default config counts; a node's config override never adds or removes a tier. Work the bonuses out from the effective depths of the domain's fights (camps don't count), shallowestdminto deepestdmax: Tier II isdmax - dmin + 1, so the shallowest fight at Tier II plays one level above the Lord at Tier I, and Tier III is twice that. LeaveModifierPoolempty. Keep the deepest Tier III area level within the highestareaLevelinConfig/Balance/PlayerBenchmarks.json. These are starting numbers, set 2026-10-20 and meant to be tuned; the shipped domains' values are in World Map System §Tier numbers.
2. Paintings and the bake description¶
The domain's look on the map is baked offline from its paintings. Follow "Adding a domain" in
Tools/TextureForge/worldmap/README.md; in short:
- Paintings. Put them under the painting folder (the source root). They are never committed.
sources.manifest.jsonpins each file's hash: run the build once with--rehash-sourcesfor new paintings and commit the manifest change with the reason. Every later build stops if a painting's bytes change. - Description. Copy
domains/red-appetite.domain.jsontodomains/<id>.domain.json. Set itsid, anassetName(PascalCase; the textures becomeT_UI_WorldMap_<assetName>_<Role>), therectevery texture spans, each painting's source and world rect (sides in multiples of 4), and the territory as an envelope of a few ellipses over the paintings. - Recipes. Copy the Red field and fringe recipes to
recipes/T_UI_WorldMap_<assetName>Influence.tex.jsonandrecipes/T_UI_WorldMap_<assetName>Fringe.tex.json. They paint over the envelope's generated mass and rim stamps. - Composite. At most four paintings (the domain material's slots), join ramps for every painting after the first,
and an underpainting if the paintings leave gaps. Set the
toneandliberationblocks. - Build. Add the file to
map.jsondomains, then fromTools/TextureForgerunnpm run worldmap:build -- --rehash-sourcesonce,npm run worldmap:check -- --update, andnpm run worldmap:previewto look at it.
Where it fits. The canvas is 1920 × 2808 world px, and the shaft art (ground, walls, plates) is baked at exactly that
size. The two shipped domains fill y 260 to 2530. A domain that needs more room means a taller map: the pipeline's
world and shaft, the map's CanvasSize and its camera range all change together. Plan that with a programmer before
painting.
3. Import the textures¶
In the editor console: py "Tools/Python/WorldMap/chasm_import_textures.py" --sets <id>. The textures land in
/Game/TextureLibrary/UI/Worldmap/ with the settings their manifest asks for. This script is the only way in: a texture
imported or re-set by hand fails validation, because its import record no longer matches. Read
Saved/WorldMap/import_result.json; its naming lint should be empty.
build.mjs --only rewrites exports/worldmap/index.json with only the sets it built, so run a full build before a full
import.
4. The domain art asset¶
Make a World Map Domain Art data asset, /Game/DataAssets/WorldMap/DomainArt/DA_WorldMapDomainArt_<assetName>. Fill it
from the domain's manifest, Tools/TextureForge/exports/worldmap/<id>/manifest.json:
| Asset field | From the manifest |
|---|---|
Bounds |
worldRect |
TerritorySdf, Field, Fringe, PaintingJoins, Underpaint, TerritoryMask |
The texture entry with that role (only those the domain has) |
Paintings |
The Painting entries in layer order, each with its texture and worldRect |
SdfDecode, Tone, LiberatedFieldScale, LiberatedFringeScale |
The material block; COMPOSITE_CONTRACT.md maps each value to its field |
LoadingDefaults, LoadingWash |
The domain's fallback loading painting, coverage, paper and mist (step 6), and its field colour |
Bake › BakeId |
The description's id |
Bake › Envelope |
The description's ellipses, in world px (the file stores them relative to rect), and smoothMinK |
Then prove the asset and the file agree: Eternal.WorldMap.WriteDomainArtJson <art> check must report the file
unchanged. From here on the asset owns where things lie: move bounds, paintings and ellipses in the editor's Domains
mode and press Rebuild domain art, never edit those keys in the JSON.
Lord effect and atmosphere (optional). Add LordEffects or Atmospheres layers that reuse an effect master: the
storm (M_UI_Chasm_LordStorm, the Ashwoods), the Cinob cloud (M_UI_Chasm_LordCinobCloud) or the haze
(M_UI_Chasm_Atmosphere, both the Red Appetite). A look none of them gives is one new material for that layer. Never
edit the generic domain material for one domain. Every value a layer sets must name a parameter of that kind on its
material, or the validator says which one does not.
5. The map entry, areas and nodes¶
Before you add it to WorldMap_Chasm. That asset is still generated from the design prototype
(Tools/WorldMap/convert_prototype_map.py writes WorldMap_Chasm.bootstrap.json), and a spec pins it to that file:
17 nodes and 17 links. Adding a domain to it fails the spec until a programmer moves or retires that check. Until then,
build the domain on a duplicate of the map and play it with Eternal.WorldMap.BootMap (below).
- The domain entry.
Eternal.WorldMap.CreateDomain <map> Domain.<Name> <Display Name>(the rest of the line is the name). Point it at its art first, so the canvas draws it:SetDomainMapArtfrom Python, or the whole-asset Details view. Then set its other fields in Domains mode (click its art; Details shows the domain):MinDepth/MaxDepth,DefaultDungeonConfig, aLabelPosition, and aYSpanaround its nodes. - Areas. In Areas mode, RMB on the domain's art: "Create area here, in
". Each area's label lies on its domain's art. - Nodes. In Nodes mode, RMB creates a node at the cursor (its depth comes from the nearest ruler tick). Alt-drag links nodes. In Areas mode, drag selected nodes onto an area's label to put them in it. A node in an area must lie on the domain's art and inside its span; drawn nodes stay at least 68 px apart and inside the ink clip (x 318.5 to 1671.5). A node without an area claims no place on the art; the shipped map leaves its camps (the hub, the Ashwoods camp and The Cut) without one.
- The Lord. One
DomainHQnode inside the domain, set as its HQ (Eternal.WorldMap.SetDomainHQ, or the domain's Details). - Ruler and camera. In Ruler/Camera mode, pin ruler ticks for the new depths if their nodes' mean y is not where the tick should sit, and add a camera stop if the domain should have a named view. The camera range must reach the domain and keep the 1080 px view inside the canvas.
6. Loading-screen content¶
Three places can show a painting while travel loads a node in the domain:
| Where | Shown when |
|---|---|
Domain entry's EntryLoadingScreen |
Travel enters the domain from outside it |
Each area's LoadingScreen |
Travel goes into one of the area's nodes |
The domain art's LoadingDefaults |
Fallback for an area or entry with no painting of its own |
A painting is always set with its coverage, and the two must be the same size. Loading paintings come from the pipeline
too: list each in map.json loading.paintings (an id, the source, and usedBy), build, and import; they become
T_UI_Loading_<Id> and T_UI_Loading_<Id>_Coverage in /Game/TextureLibrary/UI/LoadingScreen/. Give each screen its
Eyebrow, Title and Passage, its Paper colour (the manifest has it), and Mist.
7. Check it¶
- Validate in the editor: zero errors and zero warnings. Headless:
Tools/run_validation.ps1 -Paths /Game/DataAssets/WorldMap,/Game/DataAssets/UI,/Game/DataAssets/Dungeon/DomainConfigs,/Game/TextureLibrary/UI/Worldmapmust endVALIDATION PASSED. Eternal.WorldMap.WriteDomainArtJson <art> checkreports the description unchanged, and Rebuild domain art on unchanged data imports nothing.npm run worldmap:checkpasses inTools/TextureForge.- The start portal fits the new domain's start room:
Tools/run_tests.ps1 -NoBuild -Filter ProjectEternal.Content.Dungeon.StartPortalpasses (it places the portal for every generated node ofWorldMap_Chasm, at two seeds). - Save the map, the domain art and the config (
Eternal.WorldMap.Savefor the first two when you edited by verb).
8. Look at it¶
- Quick look: pick scenarios in the editor's preview bar, or capture the editor canvas with
Eternal.WorldMapEditor.Capture <map> scroll=<y> time=3 gizmos=0. - Scenarios: add one or more journey states that reach the new domain to
Tools/WorldMap/Scenarios(Tools/WorldMap/Scenarios/README.md), so captures and the review sheets cover it. - Captures: with the editor closed,
Tools/run_worldmap_captures.ps1 -Sheets -Check baselines. Frames that show the new domain change on purpose: look at the sheets, then re-baseline withchasm_capture_review.py baseline. Goldens change only with the owner's approval (chasm_capture_review.py approve). - Play it: in a development build, set
Eternal.WorldMap.BootMap /Game/DataAssets/WorldMap/<YourMap>.<YourMap>before the game map loads, then start from a preset.
Not built yet¶
- A tool that fills a domain art asset from its manifest. Step 4 is done by hand.
- A way to create a domain from the editor's canvas; the verb or the library does it.