BlueGit

timfa questward

Overview

Activity

NovDecJanFebMarAprMayJunJulAugSepOctNov

593 contributions in the last 12 months

LessMore

Commits, merge requests and comments.

questward
fix: apply editor chunk save acks so dirty drafts clear
timfa project_85689633_bot_782f591ee30607a5698798444cb41267 · pushed by timfa · 2 months ago
cf62e091 History
README.md

Questward

Authoritative Node.js tile MMO with a FrameworkV3 web client. Architecture lives in questward_server_technical_design_v0.6.md. Implementation status lives in docs/FEATURES.md.

Layout

  • shared/ — protocol constants and tile definitions used by server and client
  • server/src/ — Node.js simulation, persistence, editor API, gateway
  • client/src/ — game client on top of FrameworkV3
  • client/assets/ — world sprites. Grounds and blocks live in a folder per type; each PNG is a visual state (first alphabetical is the default). Pivot is 8px from the bottom.
  • client/frameworkv3/ — FrameworkV3 git submodule

Run locally

git submodule update --init --recursive
npm install
npm run build:client
npm test
npm start

Open http://localhost:8080 to play and http://localhost:8080/editor for the world editor.

The world editor keeps an in-memory (and sessionStorage) draft across brief WebSocket drops: the gateway sends protocol pings ~every 25s, and the editor client auto-reconnects with backoff without wiping unsaved paint.

Sign in via auth.timfalken.com (OAuth). Without QUESTWARD_AUTH_CLIENT_SECRET, local dev uses stub admins (admin-1, …). A fresh world is infinite closed grass: open chunk 0,0 in the world editor, save, then Apply now before a character can walk.

Auth env (production)

VariablePurpose
QUESTWARD_AUTH_CLIENT_SECRETOAuth client secret from auth.timfalken.com /admin
QUESTWARD_AUTH_CLIENT_IDRegistered domain (default timfalken.com)
QUESTWARD_AUTH_REDIRECT_URICallback URL (default: {public-origin}/auth/callback)
QUESTWARD_AUTH_URLAuth base URL (default https://auth.timfalken.com)
QUESTWARD_AUTH_STUB=1Force stub auth

Register timfalken.com in auth admin with callback path /auth/callback and allowed port 1234 if using :1234.

Production env file (systemd)

On the game host, put secrets outside git:

sudo mkdir -p /etc/questward
sudo nano /etc/questward/env   # QUESTWARD_AUTH_CLIENT_SECRET=...
sudo chmod 600 /etc/questward/env

The systemd unit loads /etc/questward/env automatically (EnvironmentFile=-/... — missing file is OK). Reinstall or daemon-reload after edits.

cd ~/questward
sudo QUESTWARD_USER=timfa QUESTWARD_REPO="$HOME/questward" ./deploy/install-service.sh

The player-driven Central Exchange marketplace is live (hidden order book, escrow, midpoint matching, pigeon settlement). Place a Central Exchange counter in the editor next to a bank.