> ## Content Index
> Fetch the complete content index at: https://devlog.bujingames.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Moondog, day 5 (19 Oct): the world moves into the database, and skills arrive
- URL: https://devlog.bujingames.com/moondog-day-5-19-oct-the-world-moves-into-the-database-and-skills-arrive/
- Published: 2026-10-20T04:00:00.000Z
- Updated: 2026-12-01T19:49:13.000Z
- Description: 12 commits, but most of them are big.
- Author: Jin
- Tags: moondog, devlog

12 commits, but most of them are big.

## World content in the database

Up to now the world's objects lived in a JSON file baked into the server image. That fails as soon as a GM wants to place a tree in-game: there's nowhere to write it. So items, node types, their yields and every placed entity now live in the database, and the server reads the world from there. The file is gone.

Node types carry an appearance key, and the client builds a simple shape from it: a tree is a trunk and a canopy, a rock a squashed sphere, clay a wide flat cylinder.

## GM tools

- Admin pages for items and node types. The first version looked like it worked and did nothing: it queued a reload *after* saving, so the reload command was never written. The page said success, the audit log said success, and the game never heard about it.
- In-game GM tools: place, retype, delete and undo, aimed at whatever the camera points at, gated on the role in the player's verified token. The role had been parsed at login and then thrown away, so there was nothing trustworthy to check against.
- Entity ids are now assigned by the database, because two GMs placing at once would otherwise both pick MAX(Id)+1.

## Progression

The foundation for character progression, in one migration instead of several:

- Four kinds of skill (lore, gathering, refining, crafting) and six attributes. One gather trains two skills.
- Tier 1 materials: flint, linden wood, limestone, copper, flax and clay, each from its own source and gated by lore.
- Stations, which are just another kind of node: Sawmill, Crusher, Smelter, Kiln. A station with no recipes yet is still a station.

Before stations I did four small things that would have been painful to add later: entities can have an owner, lore can be locked, a maple tree, and a check that the database work can't deadlock.