World

Level Editor

Make new maps and remasters of the disc's levels - starting a map, the tools, placing and editing objects, the Outliner, the map's settings and mission-list entry, the minimap and Play.

The Level Editor (World section) is the devkit's map editor. The map is drawn in the viewport the way the game draws it, you edit it with tools over the viewport and the Details panel, and every change is on the undo stack. It writes the files the game reads into the open mod's maps/ folder.

A map can be:

  • A new map on a disc level's ground (or on blank ground you sculpt), with its own objects, listed on the realm map as a mission of its own.
  • A remaster of a disc level: the map stands in for that level everywhere the game enters it, usually keeping the level's own objects and script and adding to them (Campaign and remasters).

This page covers making maps and placing objects. The ground has its own pages: Ground and caves (sculpting, painting and voxel rock), Tiles (building with the level's own pieces) and Water. Map objects lists what you can place and the actions they run.

Starting a map

With no map open, the Details panel offers three ways in:

New map. Type a name, pick a base level and choose the ground:

Ground What you get
The base level's geometry The level as the disc has it, to place objects on. The quickest way to a playable map.
Its pieces as tiles The level's building pieces as tiles you can move, remove and add to.
Blank: a sculpted heightfield Nothing of the base level's geometry: a flat heightfield of the size you choose and a start point. The base level still lends its textures, lights and sky.

Press Create the map. The map is maps/<id>.toml in the mod; its id is made from the name.

Maps in this mod. Every map of the open mod, with Open, Play and Delete (confirmed first, and every file and table of the map goes to the mod's trash).

Remaster a disc level. Pick a level and press Remaster (or double-click a level in the Content Browser's Game > Levels). This makes a map with replaces = "<level>" that keeps the disc's objects and script. The disc's objects show translucent; Copy the base level's objects into the map makes them editable (and stops the disc's from loading on top). Opening a level the mod already remasters opens that map.

The first time a level is opened it is prepared from the disc, if the game hasn't already done so.

The tools

Pick a tool on the tool bar at the top of Details, or with a key over the viewport:

Tool Key Does
Select Q Select, move, turn and scale objects. The gizmo's Move (W), Rotate (E) and Scale (R).
Place Put objects from the palette.
Sculpt Shape the heightfield (Ground).
Paint Paint the ground's layers, or with Paint the caves, the rock (Painting).
Tiles Build with the level's pieces (Tiles).
Water Draw lakes, puddles and sea (Water).
Caves Sculpt voxel rock: caves, tunnels, overhangs (Caves).

Under the tools are the settings every tool shares:

  • Snap (units and degrees) for moving and turning.
  • Keep objects on the ground: a moved object follows the floor.
  • Base objects: show the base level's own objects in a remaster or a map that keeps them.
  • World models: show the base level's buildings, trees and bushes (and let them be picked).
  • Objects as Models, Boxes or Both: objects are drawn with the model the game gives them (props, portals, save points, barrels, NPCs, critters and creatures, posed in their idle at the game's scale) or as boxes. An object without a model is always a box, and the selection always shows its box.
  • Show collision: everything characters collide with. Floors are green; walls and slopes too steep to climb are red.
  • Show walkable area: the 24-unit grid monsters find their way over (blue open, yellow at an edge).
  • Grid: the 60-unit cells around the cursor, the level's 120-unit tile lattice brighter.

All the overlays follow every edit.

Selecting and moving objects

With Select:

  • Click an object to select it; Ctrl+click adds or removes. Drag an empty spot for a box selection.
  • Drag an object to slide it over the ground, or use the gizmo: its arrows move along x, y and z, its ring turns (a group turns about its middle).
  • Del deletes, Ctrl+D duplicates, Esc clears, F centres the camera on the selection.

The viewport draws what the objects do: use radii, trigger rectangles, a spawner's 600-unit sight, facings, and labels with names and level-door targets.

The Selection tab

Details > Selection shows the selection's type, folder, position, facing, scale and parameters:

  • Scale is the game's Scale parameter, a percent.
  • Parameters are key = value rows. A list of each class's known keys adds one; a value may be an inline action such as @level:hub;@sound:door_open.anm.
  • With several selected, the position is their middle (an edit moves them together), and facing, scale, folder and type set all of them ("mixed" when they differ). Only the parameters every one has are listed; * marks values that differ, and an edit sets them all.
  • Drop to the ground, Focus, Duplicate, Delete, and Make prefab (turns the selection into a prefab and puts one placement of it in their place).
  • A selected Prefab placement has Unpack into its parts; a light has its colour, radius, mode, Casts shadows and Starts on.

Placing objects

With Place, the palette (Details > Objects) lists every class you can place, by category:

Category Has
Gameplay Start point, Planar Gateway, Level door, Shop, Portal, Save point, the gateway's rings
Triggers PushTrigger (a use spot), Trigger (an area), MonsterTrigger, Blocker, ScriptGenerator
NPCs The disc's characters
Monsters Every creature kind and class of the game, the mod's and its required mods' included
Spawners A spawner for any creature kind
Chests and breakables Every chest, barrel, crate and pot
Props Every model archive of the disc, and the mod's imported models
Items Any base or unique item, lying on the ground
Lights & FX Placed lights (steady, fire, magic, beacon, darkness) and effects
Critters & traps Bats, rats, ravens, traps, levers...
Level records The level's light, colour and camera records
World models Any model of the game's archives, as scenery
Floor pieces, Floor props The base level's floor decals, rocks and trees (Tiles)
Prefabs The mod's and its required mods' prefabs
Cutting room floor What the game's code supports but no disc level places: the hurt portal, candles, the lamp, the fireball and arrow shooters, the missile trap and the pushable metal crates (Map objects)

Pick an entry, then click in the viewport to place it. Z / X turn what you are about to place.

Note A map that places another mod's creatures, items, models or prefabs must list that mod in requires (edit it at the top of the Modules panel), so players are asked to turn it on too (Requirements).

World models

The base level's buildings, trees, palms and bushes (for example the village houses of INTRO) are world models: scenery drawn from other archives. In the Level Editor they are objects like any other (class @worldmodel): select, move, turn, scale, duplicate and delete them, with undo. The palette's World models places any model of the game's archives.

Saving writes them only when you changed them; the game then draws the map's list in place of the base level's. World models have no collision, in the game as on the disc: a moved building leaves its walls behind.

The Outliner

The Outliner panel (top right, like Unreal's World Outliner) lists everything in the map:

  1. The Landscape: the Ground and the Caves (click to show their settings, double-click to go there) and the placed Tiles by kind (click selects; their Details have the piece, its lighting, position, turn and mirror).
  2. Every object of the map, world models, lights and level records included, then the water bodies, and (read only) the base level's objects a remaster keeps.

A search field (class, name or folder) and a type filter narrow the list. The map's folders come first, then everything else grouped by type (Gameplay, Triggers, NPCs, Monsters, Props, Lights & FX, Level records, World models, Water, Other).

Do How
Select Click; Ctrl+click adds or removes; Shift+click selects a range
Go to it Double-click, or F with the Outliner focused
Delete, duplicate Del, Ctrl+D
Hide in the editor The eye button (a selected row's eye hides the whole selection). The game still has the object.
Make a folder New folder: the selection goes in, and you name it
File objects Drag rows onto a folder; drag onto a type heading to take them out
Folder menu Right-click a folder: Select contents, Rename, Hide / show contents, Delete folder (keeps the objects)

Folders and hidden marks are for the editor only. They are saved with each object (folder = "...", hidden = true) and the game ignores them.

The map's settings (Level tab)

Details > Level holds the map itself. Every setting shows the default and has its own reset.

The map. Name, description, author; Remasters (replaces, the disc level this map stands in for); Keep the base level's objects (they stay and yours are added); Run the base level's script (its quests, dialogs and waves); Monster level (the level creatures' numbers are rolled for; 0 is the base area's).

The mission list. Whether and where the map shows on the realm map:

  • Listed on the realm map and its picture (one of the twelve mission pictures).
  • Merge into a disc row (the row's level becomes this map) or a row of its own, at an order (1.5 lies between the disc's first two missions).
  • Requirements: a field, and Add term to build one from missions, medals, hero level, items, gold, variables, other maps and the realm's side (the terms).
  • Show the row locked (else unreachable) until then.
  • The medal arena and bonus mission, each Default (a merged row keeps the disc's, a row of its own has none), Custom (any disc level or map: make your own bonus as another map) or Blocked. When the bonus opens, and which other rows this map's Portal also completes.

The environment. The map's sky, weather, light rig and fog (presets of the mod's world.toml), music of another level and the starting hour (Skies, lighting and weather).

The minimap

Details > Minimap. The map's minimap (maps/<id>.automap) is generated on every save, the way the disc's are made: it walks the ground in small steps as a character would, from the start points (with doors shut and open) and from the other placed objects, and draws what it reached: a dark outline fading into a pale floor, liquids in blue. Placed water is waded up to its wade depth; voxel caves map by their floor, not their roof.

Generate now and Show over the viewport preview it. In the game it replaces the base level's map, with the usual icons and fog of exploration.

Play

Play (at the bottom of Details) saves the map and plays it in the devkit's window from its start point. The pause menu's Return to Editor, or Ctrl+Shift+Q, comes back to the editor.

A map needs a start point (Player1 with default=1); a new map gets one. To play a map as a player will, see Testing your mod.

Tip In a new map (not a remaster), a Portal is the way out: using it completes the map and takes the party back to the hub. Place one, or the players have no way to finish.

Saving and the files

Save (or Ctrl+S) writes:

File Holds
maps/<id>.toml The map's settings, mission entry, environment, objects, world models and water
maps/<id>.heightfield The sculpted, painted ground, if any
maps/<id>.voxels The caves, if any
maps/<id>.terrain The tiles, if any
maps/<id>.automap The generated minimap
maps/<id>.qs The map's own script, if any (Script Editor)

All of them open again in the Level Editor from the Content Browser's Mod tab or File > Open File. The map's key, which saves and other maps use to name it, is @<mod>/<id>.

A map file is plain text you can read:

[map]
name = "Kobold Keep"
description = "A warren of kobolds under the mines."
base = "BLOOD1"             # the disc level whose geometry, textures and lights are used
keep_base_objects = false
run_base_script = false
monster_level = 0           # 0: the base area's

[mission]
order = 4.5                 # between the 4th and 5th rows
requires = "mission:war level:8"
bonus = "none"

[environment]
sky = "dusk"
weather = "embers"

[object.0]
kind = "Player1"
pos = [1200, 340, 12]
yaw = 90
p0 = "default=1"

[object.1]
kind = "Kobold"
pos = [1300, 400, 12]
yaw = 270
p0 = "MiniBoss=1"
folder = "Guards"

Shortcuts

Keys Does
Q / W / E / R Select / Move / Rotate / Scale
Del, Ctrl+D, Esc Delete, duplicate, clear the selection
F Centre the camera on the selection
Z / X Turn the object, tile or piece being placed
[ / ] Brush smaller / bigger (Sculpt, Paint, Caves)
Ctrl+Shift+Q Leave a play test