tw2002
2026-02-09
TW2002
733 files · 26,787+ · 7,479-
Feature: Real-Time Player Stats in Terminal Header
- Added version identifier and player stats (name, sector, credits) to the terminal header (
terminal.html,terminal.js) baseline internal - Visual glow/fade animations on stat value changes with configurable timing (1.5s duration, 5s poll interval) decouple internal
- Detect login from terminal text buffer, fetch player data via
/web/playersAPI interface behavioral - Detect character switching and reset header display for new character instantiate behavioral
- Moved version display to footer, simplified header to “TradeWars vX.X.X” decouple behavioral
- Stripped cursor save/restore sequences from ANSI screens to fix 60+ xterm.js parsing errors remediate internal
Feature: Commodity Schema Rename
Feature: Player State Persistence
- Persist player state after each command dispatch to keep API data current interface behavioral
- Save newly created characters to DO database for API visibility interface behavioral
- Added
_storereference to game wrapper inentry.pyso game_loop can access DOStore instantiate internal - Cache invalidation in
save_player()ensures/web/playersAPI reloads fresh data streamline behavioral
Bugfix: ANSI Screen System for Cloudflare Workers
- Implemented bundled screen system for CF Workers (screens embedded in Python code) decouple internal
- Switched all screen displays from
.txtto.ansfiles for proper ANSI art decouple internal - Fixed CP437 encoding for terminal output, TWGS color code conversion in
.ansfiles remediate behavioral - Reverted computer menu to
.txt(no.ansversion exists) baseline internal - Used authentic
starmenu.txtfor Stardock menu, replaced Unicode box-drawing with ASCII decouple internal - Fixed corporation screen wiring, corrected port class 4 filename case (
Ferr4.ans->ferr4.ans) remediate internal - Added missing TWGS color codes to
COLOR_MAPinstantiate internal
Bugfix: Port Class and Universe Generation
Bugfix: WebSocket and Deployment Issues
- Routed
/default/wsWebSocket requests to correct game instance remediate behavioral - Removed debug messages causing WebSocket terminal corruption interface internal
- Added DO restart endpoint to force reload interface behavioral