netfight eased to the newest snapshot with no buffer, so a jittery
client's robot stalled then jumped. Render ~120 ms in the past between
the two bracketing snapshots instead. Dev params ?netlag/?interp/
?netprobe reproduce it; unit test for the interp math + a Playwright
lag test (tests/e2e/netlag.spec.js).
After a database reset an old (still signed) token made economy.load insert a save for a missing user;
the FOREIGN KEY error escaped the WebSocket handler and took the process down in a restart loop.
Modules are classic-script factories RC.Game<Part>(G); G gives live access to the shared state.
Guarded by new browser tests for every moved page and workshop tool (tests/e2e/screens.spec.js).
- net.js: REST + one WebSocket with reconnect; single-flight refresh shared across tabs; ?slot=N
- lobby.js / netfight.js: server owns presence, challenges and the fight; client shows snapshots
- game.js: every workshop change goes through RC.Eco via act() (server-checked online);
results, rewards and achievements come from the server (match.end)
- ranking/live/cloudsave on the new REST endpoints; online tournament removed until P2-6
BREAKING CHANGE: needs the new server (protocol v1); old online saves are not migrated.
Replaces the Firebase-style /db facade (rtdb, rules, nodes tree) with explicit REST endpoints and a
WebSocket hub. Login by name or optional e-mail, seed accounts via npm run db:reset.
BREAKING CHANGE: old clients (lobby/netfight over /db) no longer work against this server; database is new.
Michi and Benni pair-program; main is the dev line. Branches only for
throwaway experiments. CI tests every push to main and deploys only green.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- docs/MULTIPLAYER-PLAN.md: analysis of the current online mode, target
architecture (server-authoritative fights over WebSocket, Firebase removed),
phased tasks with acceptance criteria, test strategy, deploy plan,
later TODOs (T-1..T-4)
- CLAUDE.md: binding quality rules (test first, lint/test before done,
server decides online), test-system note (no prod yet), Gitea remote
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>