@@ -8,6 +8,109 @@ will move around when the evidence tells us they should.
88The rule is simple: get one small part behaving like the original, test it,
99and only then build the next part on top of it.
1010
11+ ## Current track: the small C99 game
12+
13+ The implementation under ` shadowflare/ ` is now the active replacement track.
14+ It uses the mature ` src/SF_EXE/ ` reconstruction as a strong behavioral
15+ reference, checks uncertain details against retail, and is intended to replace
16+ ` SF_EXE ` once it reaches the same playable coverage.
17+
18+ This version deliberately has a smaller shape: plain C99, fixed caller-owned
19+ memory, integer game math, TWL/TAL at the platform edge, and an 8 MiB main-RAM
20+ plus 4 MiB video-memory ceiling. Rendering primitives stay in ` render/ ` , all
21+ HUD and interface composition stays in ` ui/ ` , and the game must remain easy
22+ enough for a junior contributor to follow without learning a framework first.
23+ The standing details and measured screen budgets live in
24+ ` shadowflare/RULES.md ` and ` shadowflare/README.md ` .
25+
26+ The front-end, Remote Town map, player movement, retail PEOPLE actors,
27+ collision, pointing, speech bubbles, and interactive script-driven choices are
28+ live. Ostare's opening chain reaches its four opcode 10 starter drops, with the
29+ original item definitions, artwork, palettes, bounce, and landing sounds.
30+ Those drops can now be hovered, approached, and picked up into the player's
31+ fixed 9x4 inventory, including retail dimensions, gold stacks, failure bounce,
32+ and pickup sounds. Harley's complete ` Explanation ` branch also runs from the
33+ shipped SCS data. The authored bottom HUD now reads level, life, mana,
34+ experience, and walk/run state from the player owner. Its initial values come
35+ from a streaming scan of retail's parameter tables, and HUD clicks cannot leak
36+ into world movement. The first right-side inventory panel now exposes those
37+ owned items using the authored Status and Item sheets, keeps the left-hand
38+ world live around an x=160 camera anchor, and consumes its own input. Items can
39+ now be taken from that 9x4 owner, carried under the pointer, placed or swapped,
40+ and dropped back into the live world without turning the UI click into a move
41+ command. All nine visible equipment regions now use that same pointer owner.
42+ The new hero starts with the table-backed Leather Cloth in the body slot;
43+ weapons, shields, body armor, and accessories validate their retail slot and
44+ level rules, equipped weight is live, and only the active CAF appearance parts
45+ are drawn with their original color strengths. The lower HUD now has its own
46+ fixed 4x2 belt owner with the original staggered pockets. Pointer pickup,
47+ swapping, the ` 1 ` through ` 8 ` shortcuts, and right-click medicine use share the
48+ same item-transfer path as the backpack. A new hero receives the full retail
49+ loadout: Leather Cloth, four Tablets and four Capsules in both backpack and
50+ belt, and five mines in the separate 5/10 counter. Full life or mana leaves a
51+ medicine untouched, successful use plays the authored sound, and mine pickups
52+ fill their counter instead of entering the bag. Backpack and equipped items
53+ now share the retail three-update information overlay too. Its active
54+ ` Item.Ibn ` definition supplies the name, price, combat values, durability,
55+ weight, requirement, and elemental strengths. Pointer-relative placement,
56+ the translucent backing, faint frame, tier color, and wide Gold/medicine
57+ layout stay entirely in ` ui/ ` . Low-condition weapons and armor now compose
58+ ` Status.njp ` pattern 16 over backpack, equipment, and pointer-held icons too.
59+ The exact 0–9% threshold, eight-update blink halves, and permanently visible
60+ broken state live in a small game rule; only the marker composition lives in
61+ ` ui/ ` .
62+ The left-hand Special Item panel is live now as well. ` X ` opens its authored
63+ 9x10 grid, either side can remain open on its own or beside Inventory, and the
64+ same pointer owner moves items directly between them. Special Item placement,
65+ single-item swaps, partial Gold merges, hover information, and condition
66+ markers use the ordinary shared rules. Its fourth retail save container is
67+ decoded into a separate fixed owner and its required definitions stay in the
68+ active resource request.
69+ The shared Status/Magic window now has both retail tabs. ` S ` and the HUD button
70+ open Status with the saved identity, current pools, table-backed base values,
71+ valid equipment bonuses, affinities, and elemental marker. ` M ` or the top tab
72+ opens Magic's four six-spell pages, including availability states, saved
73+ levels and experience, table-backed MP/effect values, help text, arrows, and
74+ the authored large icons. Learned spells drag into eight persistent save-owned
75+ slots, while the small gameplay bar keeps retail's dynamic position beside
76+ left and right panels. Every gameplay load starts on normal attack as retail
77+ does. UI state only emits actions; persistent spell ownership remains in
78+ ` game/ ` , table scanning in ` data/ ` , and samples 57/58 reach TAL through a small
79+ general world event queue. Both tabs coexist with right-side Inventory,
80+ replace Special Item on the left, and share the same camera and input offset.
81+
82+ The player's owned companion has its first complete C99 owner now. Table 60
83+ selects one of the six companion types, tables 800 through 805 build its
84+ level-backed profile, and only that type's idle, walk, run, artwork, and shadow
85+ cells are retained from PARTNER. It enters beside the hero, follows through the
86+ same collision-aware edge controller used by other actors, routes around live
87+ PEOPLE, and keeps following while inactive. Space and the exact bottom-left HUD
88+ strip toggle the retail active/inactive state. The active type, all six level
89+ and experience rows, and the defeated countdown restore from their original
90+ save fields. Combat, death presentation, timed revival, Moon, swapping, and
91+ companion dialogue remain later slices rather than being folded into the
92+ follower.
93+
94+ Selecting a retail save now
95+ streams and verifies its ` ShadowFlare0005 ` envelope without allocating a
96+ payload buffer. The plain player record and exact backpack, belt, visible
97+ equipment, hidden alternate-weapon slots, and Special Item cells all populate
98+ the same fixed game owners used by new characters. The four development saves
99+ currently in the retail tree have been decoded through the complete save path.
100+ Quest state, unlocked transports, and all 1,000 persistent script/conversation
101+ values now reach the interpreter before its first periodic pass, so one-time
102+ handoffs such as Ostare's starter items stay complete. Mine count, walk/run
103+ pace, scenario, and authored entry reach the world owner as well. The three
104+ Remote Town saves also pass the complete asset-and-owner restore path. The
105+ load hand-off now recovers to the same selected row when a save belongs to a
106+ map which has not reached the C99 runtime yet, rather than closing the whole
107+ application after the honest asset-load failure. The
108+ remaining save work belongs to systems which are not in the small runtime yet:
109+ warehouse pages, automatic-item pages, and writing saves.
110+ A slice is only done after the C99/TWL/TAL tests, a release build, a practical
111+ check when visible behavior changed, and a fresh measured budget when assets
112+ changed.
113+
11114## Where we are now
12115
13116The compatibility-DLL milestone is complete. All fourteen DLLs build, reproduce
0 commit comments