From 4313941334168bbe6d5b41b7ce953372f7faa991 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Tue, 10 Feb 2026 14:36:57 -0500 Subject: [PATCH] Update if-journey: mark V8 MUD wiring as done, note upper window fix --- docs/how/if-journey.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how/if-journey.rst b/docs/how/if-journey.rst index ff94905..1c63cce 100644 --- a/docs/how/if-journey.rst +++ b/docs/how/if-journey.rst @@ -270,7 +270,7 @@ Concrete next steps, roughly ordered. Update as items get done. - [x] V8 support and Lost Pig: relaxed version gates (V8 = V5 with ×8 packed addresses), implemented extended opcode decoder, ported V5+ opcodes (aread, call_vn/vn2/vs2, save_undo stub, log/art shift, scan_table, tokenize, copy_table, print_unicode). found and fixed: insert_object wrong removal order, double-byte operand decoder reading type bytes interleaved with operands instead of all types first, opcode detection using 7-bit mask instead of 5-bit. Lost Pig now runs to completion (101K steps, 61 opcodes). (done — LostPig.z8 bundled in content/stories/, see ``scripts/trace_lostpig.py``) -- [ ] wire V8 games to MUD: ``EmbeddedIFSession`` currently only handles .z3 files. extend to .z5/.z8 so Lost Pig is playable via ``play lostpig`` in the MUD. +- [x] wire V8 games to MUD: ``play.py`` routes .z3/.z5/.z8 to ``EmbeddedIFSession``. Lost Pig playable via ``play lostpig``. fixed upper window leak: V5+ games write room names to window 1 (status line) via ``select_window``. ``MudScreen`` now tracks the active window and suppresses writes to the upper window, preventing status line text from appearing in game output. - [ ] implement real save_undo: currently stubs returning -1 ("not available"). a proper implementation needs in-memory state snapshots (dynamic memory + call stack). Lost Pig works without undo but players expect it.