Skip to content

About

Realm of Dragons: clean-room DragonRealms-inspired MUD, moving its runtime to Evennia

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Realm of Dragons

Clean-room DragonRealms-inspired MUD.

Current direction: pivoting runtime development to Evennia. The Node/Express API and React web client remain as the working prototype and regression reference while the Evennia implementation is brought to feature parity.

Goal: build a clean-room, text-first DragonRealms-inspired MUD on Evennia where players create accounts, choose canonical DragonRealms-style races, enter Crossing unaffiliated, join guilds in-world, train skills, advance through Circles, explore shops and hunting areas, and fight enemies through asynchronous range-based combat.

Evennia migration entry points:

Legacy prototype: Node/Express API, React web client, file-backed prototype persistence, command smoke coverage, and local telemetry reports.

For runtime and long-term stack direction, see ARCHITECTURE.md.

Run the app

Install dependencies once:

npm install
npm --prefix server install
npm --prefix frontend install

Run the API:

npm --prefix server run dev

Run the web UI:

npm --prefix frontend run dev -- --host 127.0.0.1 --port 4200

Open the UI at http://127.0.0.1:4200.

Standard checks

Run the full local agent check:

npm run agent:check

This runs build, unit tests, static UI smoke, browser smoke, focused target smoke, focused script smoke, full API smoke, agent prompt smoke, and git status telemetry.

Run the CI-shaped check:

npm run ci:check

This omits local-only target smoke, agent prompt smoke, and git status. It does run build, unit tests, static UI smoke, browser smoke, focused script smoke, and full API smoke, matching the checks used by GitHub Actions.

Focused smoke scripts

API smoke suites run against a live test server. Use scripts/with-test-server.mjs when running them from the repo root:

node scripts/with-test-server.mjs npm --prefix server run smoke:targets
node scripts/with-test-server.mjs npm --prefix server run smoke:scripts
node scripts/with-test-server.mjs npm --prefix server run smoke:combat
node scripts/with-test-server.mjs npm --prefix server run smoke:economy
node scripts/with-test-server.mjs npm --prefix server run smoke:progression
node scripts/with-test-server.mjs npm --prefix server run smoke:identity
node scripts/with-test-server.mjs npm --prefix server run smoke:api

The focused smoke:targets suite is the fastest target-regression path. It covers scan, structured room target payloads, help targets, target <name>, appraise <target>, engagement, and bare target range details.

The focused smoke:scripts suite is the fastest script-regression path. It covers script create, run, list, delete, post-delete removal, and lifecycle telemetry.

Browser smoke runs against both the API and web UI:

node scripts/with-test-app.mjs npm run smoke:browser

Static UI smoke does not need a server:

npm run smoke:ui

Agent prompt smoke validates autonomous continuation prompt generation:

npm run smoke:agent-prompt

This verifies that npm run agent:prompt reads the authoritative Current Status priority in SPEC.md instead of stale historical Next priority entries.

Telemetry artifacts

npm run agent:check and npm run ci:check write ignored telemetry files under artifacts/telemetry.

GitHub Actions uploads those files as the check-telemetry-build-unit-browser-script-api artifact after npm run ci:check.

Primary artifacts:

  • summary.json: complete step results with command lines, exit codes, durations, and output tails.
  • summary.md: human-readable check report with step status, gameplay coverage booleans, and gameplay counts.
  • coverage-summary.json: compact machine-readable coverage summary for agents and trend tooling, including gameplay, scripts, and frontend sections.
  • <step>.json: per-step telemetry for build, tests, smokes, prompt generation, and git status.

Coverage fields currently distinguish broad combat coverage from target-specific coverage:

  • gameplay.scanChecked
  • gameplay.structuredTargetsChecked
  • gameplay.targetDetailsChecked
  • gameplay.focusedTargetSmokeChecked
  • gameplay.agentPromptCurrentStatusChecked
  • gameplay.scriptLifecycleChecked
  • gameplay.scriptCreatedChecked
  • gameplay.scriptRunChecked
  • gameplay.scriptDeletedChecked
  • scripts.steps
  • scripts.created
  • scripts.ran
  • scripts.deleted
  • scripts.lifecycle
  • scripts.focusedSmoke
  • scripts.browserPresetSaved
  • frontend.staticCommandDiscoveryChecked
  • frontend.browserCommandDiscoveryVisible
  • frontend.browserScriptDiscoveryVisible
  • frontend.browserScriptPresetSaved
  • frontend.browserTargetDetailsClicked
  • frontend.browserVerbDiscoveryClicked

Use these fields when reviewing whether a report proves target discovery, target metadata, typed target details, command discovery, prompt generation, and web target-detail affordances all ran.

Successful agent:check and ci:check runs also validate the coverage-summary.json shape before writing final telemetry. Missing gameplay, scripts, frontend, duration, unit-suite, or required script lifecycle fields fail the check immediately.

Saved scripts and macros

The web UI includes a Scripts panel for reusable command macros.

  • Use load <preset name> buttons to copy a preset route or shop sweep into the editor.
  • Edit the command list directly; one command runs per line.
  • Use Save Script to store the macro on the logged-in account.
  • Use run on a saved script to execute it for the selected character.
  • Pace ms controls delay between commands, and Continue on command errors lets longer routes keep going after recoverable failures.

Scripts are useful for repeatable town routes, shop checks, guild tours, target discovery drills, and smoke-test-style setup flows.

Current command reference

Core information:

  • help: list available commands.
  • help scan or help targets: explain target discovery and target metadata.
  • look: show the current room, prompts, exits, shop presence, and visible local targets.
  • survey or search: summarize room exits, forage, shop, guild registrar, and immediate targets.
  • exits: list current room exits.
  • score: show character identity, circle, stance, balance, health, room, wallet, and combat summary.
  • skills: show skill ranks and learning pools.
  • inventory or inv: show carried items.
  • balance: show current balance and stance label.
  • range: show current combat range if engaged.
  • combat: show target, target HP, range, advantage, stance, and balance.
  • forage: search outdoor outskirts or hunting rooms for simple survival finds.

Movement:

  • north, south, east, west, n, s, e, w: move through visible exits.
  • go <direction>: movement alias.
  • enter, exit, up, down, ne, nw, se, sw: supported where the room graph defines those exits.
  • Web UI numpad and D-pad controls send the same movement commands.

Target discovery and inspection:

  • scan: list immediate room targets with vitality and aggression.
  • target: inspect the active combat target.
  • target <name>: inspect a visible room target.
  • appraise <target>: alias for target inspection.
  • Target details report vitality, aggression, current range, and suggested next verb.

Beginner combat:

  • stance: show current stance.
  • stance balanced, stance offensive, stance defensive, stance evasive: change combat stance.
  • advance or advance <target>: engage or close range toward a target.
  • retreat: open range from an engaged target.
  • attack or attack <target>: attack once in melee range.
  • circle: improve position/advantage while engaged; outside combat it checks circle advancement.
  • jab: faster maneuver usable at pole or melee range.
  • bash: heavier melee-only maneuver.
  • defend: guard and recover footing.
  • flee: break combat.
  • wait <ms>: wait through roundtime and allow recovery/pressure ticks.
  • rest: recover health, including from incapacitation.

Progression:

  • train: train the guild primary skill or a default starter skill.
  • train <skill>: train a named skill such as melee, evasion, tactics, or scholarship.
  • circle: attempt to advance to the next circle when requirements are met.
  • join guild: join the guild associated with the current guild room.

Shops and economy:

  • shop: show the local shop catalog if the room has a shop.
  • shop buy <code>: buy an item by catalog code.
  • shop sell <code>: sell an inventory item by code.
  • Wallet output currently uses plat, trias, lucan, and silk.

About

Realm of Dragons: clean-room DragonRealms-inspired MUD, moving its runtime to Evennia

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages