Using the Admin Panel
The admin panel is where you run the game day to day: look after players, talk to the server, and edit the content the world is made of. This page is a guide to doing those jobs. Web Apps and APIs lists what the app is, and GM Tools covers roles, in-game building and how content edits reach the game server.
Signing in
The panel runs on port 8081 (http://localhost:8081 on a local stack). Sign
in with an account that has the Admin role. On a fresh database the only one
is the seeded admin, created from Seed__AdminEmail and Seed__AdminPassword
(ADMIN_EMAIL and ADMIN_PASSWORD in the compose .env); see
Getting Started. Change that password before the panel is
reachable by anyone else.
An account without the role can sign in but sees no menus, and every page sends it
to Access denied. To make someone an admin, use scripts/set_role.py
(Making someone a GM). The
sign-in lasts 30 days and renews while you use it.
Finding your way around
The navbar has a Dashboard link and three menus, and the dashboard repeats them as shortcut cards:
| menu | pages | for |
|---|---|---|
| World | NPCs, Gathering nodes, Refining stations, Spawners | things placed in the world |
| Content | Quests, Races, Skills, Recipes, Items, Materials, Creatures, Creature kinds, Status effects, Node types, Crops, Inscriptions | what those things are |
| Operations | Players, Calendar, Server control | players and the running server |
Every content page works the same way: a searchable list down the left, and the record you picked open for editing on the right. Most pages open on the first record; Skills, Quests and Recipes open on a blank "add" form instead. The Add button sits under the list. After a save the page stays on that record and says Saved … at the top, or says why the save was refused. Delete buttons are at the foot of the editor.
Some help that works on every page:
- Search everything in the navbar finds anything with a name (items, creatures, recipes, skills, quests, NPCs, node types, races, crops, inscriptions, characters and players) and opens the page that edits it. Press Enter for the full list.
- The list remembers your search and filter while you move between records, and keeps the open record scrolled into view. Some lists also filter by group, such as items by category or recipes by station.
- Unsaved changes are marked next to the Save button, and leaving the page with them asks first.
- Long dropdowns (any with 25 choices or more) have a box in front: type to narrow them.
- A refused save marks the field at fault in red, with the reason under it.
- Links between records: an editor lists what uses the record, such as the recipes, quests and creatures that use an item, and each one links to its own page.
- History: the foot of each editor says who last changed the record and when; open it for that record's earlier changes.
- Duplicate (Items, Recipes, Creatures, gathering node types) opens the add form filled in from the record you're on, for making a variant.
- Keys:
/jumps to the list's search, the up and down arrows walk the list, and Ctrl+S (Cmd+S) saves.
How changes reach the game
The panel never talks to the game server directly. It does one of two things:
- Content edits (items, recipes, node types and so on) are saved to the
database straight away, and the panel queues a
reloadContentcommand so the game server re-reads the world. - Actions (broadcast, kick, moving a node, changing a character) are queued as commands. The game server picks them up and carries them out.
Either way, the game server has to be running for anything to happen in game. If it is down, commands wait and run when it comes back. The dashboard's Pending commands tile counts what is still waiting. If it keeps growing, the game server is not reading the queue, so check its logs.
Almost everything you do is written to the audit log, and the dashboard shows the 25 most recent entries: who did what, to which record (linked when it has a page), and how long ago. Hover the time for the exact UTC time.
The dashboard
- Current state and Heartbeat: the game server writes a heartbeat every few seconds. A heartbeat more than about 15 seconds old means the server is down or stuck, even if the tile still says Online.
- Online players out of the slot count.
- Pending commands: see above.
- Population: total accounts and characters.
- Recent admin actions: the audit log.
Looking after players
Operations → Players lists up to 50 accounts. Use the search box to find one by email or display name. Each row shows the role and characters; click a character to open its page.
Changing a role
Each row has a role box: Player, Tester (the check scripts' accounts, which
may name their own position), GM (game master powers in the game) or Admin
(GM powers and this panel). Pick one and press Set. The change reaches the
game the next time that player signs in to the client, and is written to the
audit log as SetRole.
You can't change your own role here, so an admin can't lock themself out. Use
scripts/set_role.py for that.
Registration keys
Nobody can create an account on the portal without a key. Operations → Registration keys is where you make them.
Under Make keys, fill in:
- Note: who the key is for. Only you see it.
- Role:
Player, orTesterfor accounts the check scripts use. A key never gives GM or Admin. - Uses: how many accounts the key can make. Use 1 for one person, or more for a group sharing one key.
- Expires in (days): leave blank for a key that never expires.
- How many keys: makes that many separate keys with the same settings.
The page then shows the new codes and a register link for each, to select and
copy. A player either types the code on the portal's Create account page or
opens the link, which fills it in. Set PORTAL_PUBLIC_URL in .env so the
links carry the portal's address.
The list shows each open key, how many uses are spent, and the accounts made with it. Revoke stops a key at once; accounts already made with it stay. Used-up, expired and revoked keys are hidden until you ask for them.
A use is only spent when the account is actually made: a registration that fails on a taken email or a weak password leaves the key as it was.
The seeded admin account and Moondog.Cli create-user need no key.
scripts/create_test_accounts.py takes one with --key.
Resetting a password
Passwords are stored as hashes, so you can't look one up, only replace it. Under Reset a password, enter the account's email and a new password, then press Set. The page shows the new password once, so you can pass it on to the player. The panel doesn't keep it, and reloading the page won't show it again.
The password must meet the sign-in rules: at least 8 characters, with an upper-
and lower-case letter, a digit and a symbol. If it doesn't, or no account has that
email, the page says so and nothing changes. A successful reset is written to the
audit log as ResetPassword.
Banning
Type a reason in the player's row and press Ban. Put a number in days for a ban that ends by itself; leave it blank for a ban with no end. A banned account can't sign in to the portal, can't sign in from the game client and is refused by the game server. A ban does not remove a player who is already online, so kick them as well (below).
A banned account's row shows the reason and when the ban ends, with an Unban
button that lifts it at once. Both are written to the audit log (BanUser,
UnbanUser).
Changing a character
A character's page shows its health, stamina, attributes, inventory, skills, karma and player tags. From there you can:
| action | how | when it works |
|---|---|---|
| Add an item | pick it, set a quantity (1–1000), Add | character offline |
| Remove an item | set the quantity on its row, Remove | character offline |
| Grant skill experience | pick a skill, enter XP, Grant | character offline; only skills that advance by use, and normal level rules apply |
| Set karma | enter the value, add an optional note, Save | any time, online or not |
| Set or remove a player tag | type the tag, Set tag; or Remove on its row | any time, online or not |
| Reset the character | type its exact name, Reset character | character offline |
The item, skill and reset actions are queued for the game server, which refuses them while the character is online. Recent actions at the bottom of the page shows each one's result. Press Refresh to see whether it ran, and retry once the player has logged out.
A reset can't be undone. It puts the character back at the start: attributes, location and starter skills. It deletes the inventory, pets with their gear and bags, quests, NPC relationships, player tags, gathering and crafting progress, and event progress. Karma is kept. See Karma for what it measures.
Running the server
Operations → Server control includes:
- Broadcast: a message shown to every online player.
- Kick player: disconnects a player who is online. Enter their character
name exactly as it appears in game, or their account email. The reason
is recorded in the audit log,
but the player is only told "kicked by admin". The page says Kick command
queued even when nobody matched; the outcome (
target not online) is only written to the command record. - Set server state: Online, Maintenance or Draining. This is a label
only. It shows on the dashboard and on the public
/monitor/serverendpoint, but it doesn't stop anyone logging in or playing. - Refresh world content: queues a reload of world nodes and other cached content from the database without restarting the game server. The message confirms the request was queued; the reload itself runs asynchronously.
- Request shutdown: the game server exits as soon as it reads the command.
It doesn't wait for players to leave, so broadcast a warning first. Under the
compose stack's
restart: unless-stopped, Docker starts it again, so in practice this is a restart. To keep it down, stop the container.
On the local development stack there is also Refresh local map, which copies
the terrain saved in the Godot client project to the game server and restarts it.
It only appears when GameServer:MapRefreshEnabled is set.
Editing the world
Things are placed in game and managed here: the panel can edit, move and
delete what is already in the world, but it can't put anything new down. For that
you use the in-game GM panel (F12); see
Placing things in-game.
Gathering nodes and stations
World → Gathering nodes (or Refining stations) lists up to 200 placed entities, with tabs for NPCs and Other. Filter by type name to narrow it down. For each one you can:
- Change to another type, and edit its x, z and rotation, then Save. You never set the height: the game server works it out from the terrain, and refuses a spot with no ground.
- Delete it. The only way to get it back is to place it again in game.
The Today column shows which nodes have been gathered out. They refill at midnight UTC, or straight away with Respawn all nodes.
Spawners
Place a spawner in game, then choose here what it produces: the creature, the maximum alive at once, the respawn time in seconds and the radius.
NPCs
World → NPCs opens the NPC editor: services, the conversation map (topics, replies and check topics on items, skills and player tags), relationship rules and per-player standings. See The NPC editor.
Editing content
The Content menu defines what the world is made of. Each page works the same way: pick an entry from the list, edit it and save, or start a new one. Saving reloads the game server's content.
| page | what you set | see also |
|---|---|---|
| Items | name, price, category, weight, equipment slots, tags and material, crafted stats, weapon and armour figures, status-effect resists while worn, and the status effect a consumable cures or gives | Refining and Crafting |
| Materials | real-world figures for each raw material (density, strength, stiffness…), from which the bowyer's stats are worked out | Refining and Crafting |
| Node types | what a node looks like, what it yields, which tools or tool kinds (such as any axe) are needed to gather it, how long one item takes to harvest (3 s by default), and how soon it regrows | Gathering and Skills |
| Recipes | refine or craft, station, duration, required skill and level, failure chance, inputs, outputs and tools | Refining and Crafting |
| Skills | category, how it advances (by use or bought from a trainer), prerequisites, and the material its lore covers | Gathering and Skills |
| Creatures | health, damage, speeds, aggro and leash radius, karma penalty, food, pet slots, attacks, what they hunt, the status effect a hit may give, and drops: each item a kill can leave, with its chance and quantity (takes effect on the next kill) | Creatures |
| Creature kinds | species-wide appearance, startle and flocking, taming rules, and status-effect resists | Combat and Pets |
| Races | a playable race's name, description, order and the six attributes a new character of it starts with (shown in the client's character creator; edit only, and existing characters keep theirs) | Models and Animation |
| Inscriptions | the builders' panels in the Sunken Ruin: title, position and text (edit only) | Dungeons |
| Status effects | timed effects such as venom: damage, tick, duration, category and the health bar's colour | Creatures |
| Quests | level, prerequisite, turn-in NPC, relationship reward, and the items, kills or crafting jobs required | NPCs and the Economy |
| Calendar | events on the 32-hour world clock: start hour, duration, zone, repeat and phase gate |
Some limits to know:
- You can't delete something that is still in use. That covers an item held in an inventory or yielded by a node type, a node type with nodes placed, and a recipe used by active jobs or quests. The delete button is disabled or the page says why.
- An item's category is locked while anyone holds the item, and Stackable can only be set when the item is created.
- A new gathering type is added from the Gathering nodes section of Node types. Its appearance key is a free-text suggestion list, because the keys belong to the client (Models and Animation).
- A model path must be a
res://scene that ships with the client.
Content edits made in the panel live only in that database. To make a change part of every fresh install, it also needs a migration; see Content and Migrations.