References ›
Map format One JSON file per map. maps/school.json is a complete example. Axes are Unreal's (X, Y, Z up), rotations are in degrees.
{
"name": "My school",
"unit": "m",
"spawns": [[0, 0, 0]],
"walls": [
{ "a": [0, 3], "b": [12, 3], "thickness": 0.3, "zmin": 0, "zmax": 4 }
],
"zones": [
{ "name": "Classroom 1", "shape": "box", "center": [6, 8, 2], "size": [11.7, 9.7, 4], "rotation": 0,
"data": { "type": "classroom", "bucket": 101 } },
{ "name": "Fountain", "shape": "sphere", "center": [0, 30, 0], "radius": 4 },
{ "name": "L-shaped classroom", "shape": "polygon",
"points": [[0, 0], [10, 0], [10, 4], [4, 4], [4, 10], [0, 10]], "zmin": 0, "zmax": 4,
"bucket": 140 },
{ "name": "Lecture hall and its mezzanine",
"shapes": [
{ "shape": "box", "center": [0, 0, 2], "size": [20, 12, 4] },
{ "shape": "box", "center": [0, 4, 5.5], "size": [20, 4, 3] }
],
"holes": [ { "shape": "sphere", "center": [0, 0, 1], "radius": 1 } ] }
],
"entities": [
{ "type": "cauldron", "name": "Big cauldron", "pos": [6, 11, 0], "bucket": 101, "props": { "full": true } }
]
}
Root#
Field
Role
name
map name, shown to players
unit
m (default) or cm
spawns
spawn points, handed out in turn
walls, zones, entities
see below
navigation
for bots only
Zones#
Field
Role
shape
box (center, size, rotation), sphere (center, radius) or polygon (points, zmin, zmax)
shapes, holes
several shapes, with parts removed; a single entry and a single exit
bucket
bucket set by the map , without a script
data
free fields, read by map.zones
who
players (default), entities or all
priority
overlapping zones: the highest wins; if equal, the last one entered
exitMargin
distance to go past in order to leave, in the map's unit; 0.25 m by default
insideEvery
seconds between two calls to inside (0.25 by default)
debug
thick outline, for debugging
A polygon may be concave. It is refused, with the zone name and the reason, if it has fewer than 3 points, if its outline crosses or touches itself, if two points are in the same place or if its area is zero.
Walls#
Field
Default
Role
a, b
–
both ends, [x, y]
thickness
0.3 m
thickness
zmin
0
bottom
zmax
zmin + 3 m
top
A move that goes through a wall is refused. The floor, stairs and objects are not checked.
Entities#
Field
Role
type
free kind, object by default
name
name
pos
position
rotation
degrees
bucket
0 by default
props
public properties