GM Tools
The world is built by people, in two places: the in-game GM panel, where you walk to a spot and put something there, and the admin panel, where content is edited in tables. This page covers roles, both tools, and the GM commands.
Roles
| role | what it allows |
|---|---|
| Player | playing |
| Tester | probe teleports, bots, screenshot mode |
| GM | probe teleports, @tele and @weather |
| Admin | the in-game GM panel, @tele, @weather and the admin panel |
Despite the name, the in-game GM panel's tools are checked against the Admin
role (GmRole = "Admin" in ServerMain.cs). The GM role is a lighter role for
getting around, not for building.
Making someone a GM
python3 scripts/set_role.py # who is what
python3 scripts/set_role.py someone@x.com Admin # promote
python3 scripts/set_role.py someone@x.com Tester
python3 scripts/set_role.py someone@x.com Player
Two stores have to change together and neither derives from the other:
| store | read by |
|---|---|
users."Role" | the JWT role claim, which the game server checks |
user_roles | [Authorize(Roles = "Admin")], which gates the admin panel |
Set only the column and they can play as a GM but cannot open the panel. Set only
the join row and they can open the panel but the game still treats them as an
ordinary player. set_role.py writes both in one transaction and reads them
back, because a promotion that lands in one store is worse than one that lands in
neither — it grants half the access and reports success.
The role reaches the game only on a new token: it is copied into the JWT when the token is issued, so an already-signed-in client keeps the old claim until it signs in again.
scripts/create_test_accounts.py gives the test accounts it creates the Tester
role.
Placing things in-game
F12 opens the GM panel. It has three tabs, and all of them aim at whatever the
camera is pointing at.
- Nodes: a type picker and four buttons: Place here, Retype aimed, Delete aimed and Undo last placement. Nodes include gathering nodes, stations, spawners, bind points and NPC presets.
- NPCs: place an NPC, then load, edit and save its content.
- Plots: a size (Small 28 m, Medium 40 m, Large 54 m), a price and a monthly upkeep, and two buttons: Place plot here and Remove aimed plot. See Housing plots.
The panel's buttons work only when the server says the session is an Admin.
Placement sends x and z but never y. The height is the game server's answer,
from GetGroundHeight, which reads Terrain3D's heightmap — the same data the
player stands on. So nobody can float a node, including by accident, and a
modified client gains nothing by lying about one.
Placement is leashed to 10 m from the server's own simulated position. Past that it is clamped, not refused: aiming slightly over a hill edge gives you a node at your feet rather than an error about arithmetic. A rejected request is one you would learn to work around.
Moving a node is delete-then-place, in-game. There is no drag control; it is separate work and a half-built one would be worse than two clear steps.
Undo covers placements only, twenty deep, and it removes rather than recreates — the id the server handed back at placement time goes back as a delete. If the node is already gone the server refuses and says so; nothing is ever resurrected. The stack is client-side and clears on disconnect.
Editing from the admin panel
The admin panel (port 8081) has a page for each kind of content, all behind
[Authorize(Roles = "Admin")]:
| page | what it edits |
|---|---|
/Items | the item catalogue, including base prices |
/Materials | physical properties of materials |
/NodeTypes | node types: kind, appearance key, model path, yields, tools |
/Nodes | placed gathering nodes; Respawn all nodes |
/Recipes, /Skills | recipes and skills |
/Creatures, /CreatureKinds | creature species and kinds |
/Spawners | what each placed spawner produces |
/Npcs | the NPC editor (NPCs and the Economy) |
/Quests | the quest catalogue |
/Calendar | calendar events |
/Players | players and characters, including karma |
/Server | server state, broadcasts and commands |
Every content edit writes a row and queues a reloadContent command. The
second half is not optional: the game server holds the world in memory, so a
saved row changes nothing until it re-reads them. Without the command the panel
would work perfectly and appear to do nothing.
scripts/check_admin_content.py asserts that chain: create → command written
→ server acks → world reloaded → delete. It exists because this exact bug shipped
once. Every handler queued its reload after SaveChangesAsync, so the row was
staged in the context and never persisted — the page reported success, the audit
log recorded the action, and the game server kept serving the old world.
Deletion is refused when an item is still referenced — by a character's
inventory or by a node type's yields — and the page says which. character_items
has no cascade here, so allowing it would either fail with a raw foreign key error
or, if someone "fixed" that later, silently strip items out of people's
inventories.
Appearance keys are a datalist, not a dropdown. The keys are a property of the client, so an enforced list here would be a second copy that drifts the moment a new one ships. See Models and Animation.
In-game and the panel do different jobs
The admin panel can edit and delete nodes but cannot create them:
| in-game | admin panel | |
|---|---|---|
| Place | yes | no |
| Retype | yes | yes |
| Delete | yes | yes |
| Move | delete + place | yes, via the game server |
Placement is spatial — you walk to a spot and put a tree there, which is what a coordinate form cannot tell you. Management is tabular. The honest cost: a world cannot be built from the panel, and a node deleted there only comes back by being placed in-game.
A panel position edit is queued as a moveNode command rather than written
directly, because the panel has no terrain and the height is the game server's to
answer. If the game server is down the move waits — the same behaviour every other
panel action has, and better than the panel inventing a height.
Only GM node edits reload the world
A full world reload is expensive, so QueueWorldReload is called only from the
four GM node edits: place, delete, retype and move. scripts/check_world_reload.py,
which check_rpc.py runs during the image build, fails if anything else calls it.
Respawn all nodes
The Respawn all nodes button on /Nodes refills every gathering node at once.
It writes a RespawnNodes audit entry and queues a respawnNodes command. The
game server clears entity_depletion and gather_node_cycles and makes the nodes
solid again.
Getting around
@tele x y in chat teleports a GM or Admin to map coordinates x, y. Anything that starts with @
and is not one of the commands here is ordinary chat.
- The server takes the height from the terrain, and refuses a point with no ground or outside the world.
@tele x y heightreaches a dungeon: with a height inside one, it lands on that level's floor instead (@tele 130 798 -20is a hall on the Sunken Ruin's first level).- It moves the body the server simulates, so the client snaps to the new spot.
- The move is recorded in
audit_logs. The command line is not shown in chat. - Anyone else gets "You can't use @tele."
@aggro off (and @aggro on, or @aggro alone to toggle) stops creatures
starting a fight with you, for GMs, Admins and Testers. A creature you hit still
fights back. Turning it off also drops you from every creature's threat list, so
whatever is chasing you gives up. It lasts until you log out. The screenshot tool
turns it off for its own account at the start of every run.
@skill <skill> <level | +N | -N> [for <player> | for me] sets a skill's
level for testing, for GMs and Admins. Name the skill or give its id; a plain
number sets the level (0 removes the skill), +N and -N raise or lower it,
within 0-100. Without for, or with for me, it is your own; for <name> is
another player who is online, who is told. Experience toward the next level
starts again from nothing, and attributes are not trained. The server picks
up the new level at once, and the skill window refreshes. For example,
@skill Stealth 55 shows you the stealth awareness eye. Live check:
scripts/check_gm_skill.py.
@time shows or sets the world clock, for GMs and Admins, to test what
keeps hours (night creatures such as the chōchin-obake, the hitodama and the
dullahan, and the sky). The world clock is its own, one game hour per real
hour, in a day of 32 hours: night 24-6, dawn 6-9, day 9-21, dusk 21-24. It is
not the server's wall clock.
| command | what it does |
|---|---|
@time | The world time, its phase and the day number. |
@time <hour> | Sets the hour, 0 to 32 (@time 22.5). The day number is kept. |
@time dawn|day|dusk|night | Sets the start of that phase (6, 9, 21 or 24). |
Clients follow at once, and spawners and creatures that keep hours on their next
tick. The change is recorded in audit_logs; anyone else gets "You can't use
@time."
@senses lists, for a GM, every creature within 60 m and how far it would
see, hear and smell you right now, with your stance, tall grass, light, time of
day, Stealth and noise taken into account, and how aware of you it is. It is
for tuning stealth.
@nightvision changes how well you see in the dark, on your own screen
only, for GMs and Admins. Every race has a night vision level, 0 to 100, set on
the admin's Races page (Catfolk and Ollo 60, Lizfolk 40, Elva and Draco 30,
Dogfolk 10, Huma 0 to start). In the dark, at night or under a roof
underground, the view is lifted by that much and its colours drain a little;
it never gets as bright as day.
| command | what it does |
|---|---|
@nightvision | Toggles full night vision and back to your race's level. |
@nightvision on | Full night vision (100). |
@nightvision off | Back to your race's level. |
@nightvision <0-100> | A set level; 0 sees only what the light allows. |
It lasts until you log out. The change is recorded in audit_logs; anyone else
gets "You can't use @nightvision."
Probe teleport (ClientSetProbePosition) is for scripted runs: the movement
probe, bots and screenshot mode. It is allowed for Testers, GMs and Admins, and
refusals are logged.
Weather
@weather sets up weather regions and the weather,
for GMs and Admins (anyone else gets "You can't use @weather."). Region
changes and forced weather are recorded in audit_logs.
| command | what it does |
|---|---|
@weather | The weather where you stand: its region, climate, kind, and when it next changes. |
@weather set <clear|cloudy|fog|rain|storm> [hours] | Forces that weather on the region you stand in (the smallest one you are at least half inside, else the world outside every region) for hours (default 1, at most 48), rolling in over a minute; then it carries on by its climate. |
@weather region add <name> <radius> <climate> | Adds a circular region centred where you stand. The name may have spaces; radius 20-4000 m; climate temperate, wet, dry or cold. |
@weather region list | Every region: id, name, climate, size, centre and current weather. |
@weather region remove <id> | Removes a region by its id from the list. |
@weather region mist <id> <on|off> | Turns the region's morning mist on or off. |
Regions live in weather_regions; there is no admin panel page for them yet.
To move or resize one, remove it and add it again.
Nothing here is trusted from the client
The role comes from the verified token and is the only authority. Every GM call is re-checked against the session; anyone else is refused identically whether unauthenticated or merely a Player, and without saying which.
Every action is recorded twice, on purpose: an audit_logs row (durable, queryable
later) and a GD.PrintErr line (visible in docker logs without anyone
remembering to query).
GM: Testgm01 (role=Admin) PlaceNode: type=2 at (2.00, 0.00, 2.00) -> entity 18
GM: peer 511205818 refused ClientPlaceNode (not an Admin)
scripts/check_gm_tools.py proves a Player cannot use any of it, with a real
token over a real connection. Both halves matter: a server that refused
everything would pass a refusal-only test perfectly, so the GM run is what gives
the Player run its meaning. The NPC data RPCs are covered the same way: the probe
aims ClientGetNpcData and ClientSetNpcData straight at a live NPC, so the gate
itself is exercised rather than only reached through a path that already refused.
Housing plots
A plot is a square of ground a player can buy and build a house on. The GM places it with its price and monthly upkeep; the aim line shows the plot under the crosshair with both.
The ground under it is flattened, for everyone, at once. The height is the
mean of the ground inside, so as much is cut as is filled, and a 4 m ring slopes
back into the hillside. The server flattens its own terrain and collision and
sends the plot to every client, and each client flattens its copy with the same
script (godot_client/scripts/PlotTerrain.gd, which sync_terrain.py copies into
the server). No heights cross the network. The map files never change: the
server reapplies every plot at boot, and every client applies them at login.
The server refuses a plot that, ring included:
- overlaps another plot, or runs off the map;
- has any ground within 0.5 m of a lake's surface (the lake's rectangle alone does not count: it spans most of the valley);
- covers a placed thing: a node, station, spawner, NPC, bind point, or a parked cart or boat;
- has another player standing in it. The placing GM may stand in it and is set down on the new ground.
Removing a plot puts the hillside back, exactly as it was. Only an open plot can be removed, and not while anyone, the GM included, stands on it; they would be left inside the ground as it comes back.
Plots are not on the undo stack, and the admin panel does not list them yet.
scripts/check_housing.py places, restarts, logs in fresh and removes a plot
through the real client.