Commit Graph

22 Commits

Author SHA1 Message Date
5126d2b78c docs: session-3 worklog — CrossOver 26 runtime, white-screen root cause 2026-07-07 14:43:38 -05:00
5e5977bb80 fix: WHITE SCREEN — switch runtime to CrossOver 26 (wine 11)
Root cause: the 2023 wine-crossover 8.0.1 + DXVK-macOS 1.10.3 stack
renders correctly to the backbuffer (F2 captures were always right)
but its Metal-layer PRESENT path composites white on macOS 27. Verified
live-window capture: 97% white pixels on old stack, 0% on new.

New default run-client.sh: CrossOver 26 bottle 'neolegacy'
(wine-11.0 + CrossOver's current D3D->Metal translation on MoltenVK),
launched via the wine wrapper with --cx-app Z:-path. Old launchers kept
as run-client-wine8-legacy.sh / run-client-cx26.sh (raw loader attempt).
Verified: live window shows the main menu with panorama + selection bar.
2026-07-07 14:42:39 -05:00
0bb7722800 chore: add list_windows helper (wine window enumeration for testing) 2026-07-07 14:07:16 -05:00
c8e838c94b feat(iggy-shim): LCE-style selection bar + fixed list-item sizing
- translucent blue selection bar drawn behind the focused control (LCE's
  menu highlight); focused label tinted yellow
- FJ_List items render at a fixed font size and lay out in screen pixels
  from the list origin instead of inheriting the list's large bundle scale
Menus now read like the real game: compact list rows with a highlight.
2026-07-07 14:04:54 -05:00
36d0f03d9d docs: reflect full working flow + raw-D3D11 rationale + polish list 2026-07-07 14:01:35 -05:00
1305412dc2 milestone: FULL critical path works — boot to in-game gameplay
End-to-end through the open iggy-shim (no SWFs, all PNG UI):
title attract -> autosave dialog -> main menu -> Play Game -> EULA
(scroll+accept) -> Load/Create/Join -> Create tab -> Create New World
-> world options (name/seed/mode/difficulty) -> Create -> world
generates -> IN GAME with HUD rendering.

Every UI subsystem exercised: PNG sprite rendering, bitmap-font text,
focus highlight, keyboard nav (authored + geometric), button press,
scene transitions, dynamic FJ_List population, checkboxes, tab switch,
scroll-gated accept. Verified by screenshots at each stage.
2026-07-07 14:00:19 -05:00
f7bc78dcd0 feat(iggy-shim): FJ_List controls + restore RmlUi to build
- list API: addNewItem(label,data)/removeAllItems/RemoveItem/
  HighlightItem/SetButtonLabel build focusable child item nodes
- list-item press emits handlePress(listParentId, itemId) per the
  fourj FJ_List protocol; items join focus/nav enumeration
- unblocks world/load/join/DLC/settings lists across many scenes
- RmlUi backend restored to the build (rml_render/rml_backend + libs),
  stub removed; still gated IGGY_SHIM_RML=1
Verified: Create tab populates 'Create New World' + 'Play Tutorial',
rendered and focusable.
2026-07-07 13:57:37 -05:00
179513c070 milestone: full menu flow works — MainMenu→EULA→LoadCreateJoin
Verified end-to-end through the shim: title attract → autosave dialog →
main menu (navigable, 6 buttons) → Play Game → EULA (scroll+accept) →
Load/Create/Join tab menu. Rendering, focus highlight, keyboard nav,
button press, and scene transitions all functional.
2026-07-07 13:53:25 -05:00
d63141c1a5 fix(iggy-shim): SetFocus(-1) auto-focus — full title→main-menu flow works
The game calls SetFocus(-1) to mean 'auto-focus the first control', but
findById(-1) matched label nodes (default id=-1) instead. Now: negative
id = pick first focusable; findById ignores negative ids; dispatch
auto-focuses if nothing is focused yet.

Result: Intro→SaveMessage→(OK)→MainMenu chain completes. Main menu
renders all six buttons with labels and working focus highlight
(Play Game / Leaderboards / Achievements / Help & Options / Store /
Exit). Verified via screenshot.
2026-07-07 13:50:30 -05:00
cdfcfac50d feat(iggy-shim): legible text — em-metric glyph layout + font ranking
- glyph metrics now in em units (advance*fontPx), baseline from font
  ascent, bitmap scaled by fontPx/pixel_scale_correct (matches the game's
  UIBitmapFont convention); whitespace advances without drawing
- font provider ranking: prefer Mojangles_11/7 over the Unicode fallback
- can_bitmap gate honored before get_bitmap
Verified: dialog body text renders correctly ("This game has a level
autosave feature...") with proper spacing over the panorama.
2026-07-07 13:42:15 -05:00
81f33eebe4 feat(iggy-shim): raw D3D11 UI pipeline — UI VISIBLY RENDERS
Root cause of invisible UI: drawing through the gdraw vtable executed
(batches=1) but produced no pixels (state black-box). Fix: harvest the
game's ID3D11Device from a GDraw texture handle (layout mirrored from
the open gdraw_d3d1x source) and render with our own minimal pipeline —
runtime-compiled VS/PS (native d3dcompiler in prefix), premult blend,
SV_VertexID quads, letterbox from bound-RT desc. Same save/set/restore
pattern as the game's PostProcesser. GDraw still does texture uploads;
we bind its SRVs directly.

Verified: PressStart panel + glyph text visibly composite over the 3D
panorama. rml files temporarily out of build (stubs) pending the
Rml::Initialise wine fault.
2026-07-07 13:31:57 -05:00
25dc8b18d4 docs: continuation brief (WORKLOG.md) 2026-07-07 13:12:38 -05:00
df68c1705d docs: accurate de-SWF status — Iggy replaced, PNG+RmlUi, honest render-path state 2026-07-07 04:33:16 -05:00
d776e7fe02 chore(iggy-shim): fetch-deps.sh for RmlUi+FreeType; gitignore vendored source 2026-07-07 04:30:55 -05:00
d94d50f4a0 feat(iggy-shim): integrate RmlUi as the UI library (GDraw backend + FreeType)
Replaces the SWF/Flash UI with RmlUi — a standard HTML/CSS game-UI library
(the conventional Scaleform/Flash replacement), NOT a debug-overlay lib:
- cross-compiled RmlUi 6.2 Core + FreeType 2.13 for windows-clang-cl (/MT)
- rml_render.cpp: RmlUi RenderInterface backed by the game's GDraw D3D11
  vtable (so it runs through DXVK/MoltenVK, no second graphics backend)
- rml_backend.cpp: SystemInterface + per-scene Context/document built from
  the converted PNG+layout node tree; text via the game's own Mojangles.ttf
- routed scenePlayerDraw through RmlUi when enabled
Gated behind IGGY_SHIM_RML=1 while the runtime init path is stabilised under
Wine (a page-fault at Rml::Initialise remains to debug); the proven
display-tree renderer stays the default so the game always runs.
2026-07-07 04:30:08 -05:00
39c8678bc5 feat(iggy-shim): M-C — interactivity, text, focus/nav, scene controllers
- text_renderer: renders labels using the game's OWN captured bitmap-font
  provider (Mojangles) as R8 alpha glyph textures — no external font dep
- generic control semantics for Init/SetLabel/SetFocus/SetSafeZone/Show*/
  Hide*/EnableButton/checkbox in sceneCallMethod
- focus model: collectFocusables by id, handlePress/handleFocusChange/
  handleInitFocus emitted back to game via ExternalInterface protocol
- keyboard nav: authored m_objNav links (extracted from AS3) + geometric
  fallback; Enter/Space fire handlePress
- gen-scene-bundles: resolves class-linked art (Button:FJ_MenuButton_Normal
  -> skin symbol PNG) and emits nav-link (V) records
- animation-end auto-signal so Intro/Credits don't block boot
Verified: dialogs dismiss via synthesized button press, intro completes,
boot reaches menu flow, focus init fires per scene
2026-07-07 04:20:00 -05:00
2e1e752e0a feat(iggy-shim): M-B — PNG scene rendering through the game's GDraw vtable
- gen-scene-bundles.py: resolves every scene placement to a concrete PNG
  (follows ImportAssets2 into skin SWFs), emits flat .scene bundles
- ui_renderer.cpp: stb_image PNG loads, premultiplied-alpha uploads via
  MakeTexture*, quads via the builtin quad-IB path, display-tree walk
  with matrix/alpha/visibility inheritance
- frame pacing for IggyPlayerReadyToTick (game ticks in a while-loop;
  always-true = infinite loop, window never shown)
Verified: intro scene renders (7 quads, 1920x1080 textures); dynamic
scenes confirm AS3-built content needs M-C controllers
2026-07-07 04:02:39 -05:00
51897bce95 feat(iggy-shim): M-A — game boots with Iggy DLL fully replaced
Open reimplementation of the Iggy flash-player C API (240+ symbols) as
iggy_shim_w64.dll. Object model: interned names, value-path resolution
over a Flash-like display/property tree, method-call dispatch hooks.
Scene identity via SWF byte fingerprinting (gen-scenes-tsv.py, 366
scenes) since the game passes a null config. Verified: client runs with
no RAD code loaded; scenes create/tick; game drives HUD+Intro methods.

patches/0002: upstream CMakeLists hard-set IGGY_LIBS; now overridable.
2026-07-07 03:50:19 -05:00
f8a0cdb28c feat: layout manifests for all 370 UI SWFs + upstream issue report
- ui-layout/*.json: per-SWF stage size, export/import tables, sprite
  display lists (regenerable via tools/DumpLayout.java)
- docs/UPSTREAM-ISSUES.md: committed conflict markers breaking clang
  builds, and two PE executables committed as .swf files in
  Windows64Media/Media (game survives via Common/Media fallbacks)
2026-07-07 03:19:48 -05:00
354ca1702b feat: SWF-to-PNG extraction pipeline + de-SWF roadmap
- extract-ui-pngs.sh: batch-exports all 377 Windows64 SWFs via ffdec
  (50,077 PNGs: bitmaps, shapes, sprite frames, named by export symbol)
- tools/DumpLayout.java: dumps per-SWF layout JSON (exports, imports,
  sprite display lists with matrices and instance names)
- docs/UI-DESWF-ROADMAP.md: phased plan to replace Iggy with a PNG-based
  iggy-shim, scene by scene
2026-07-07 03:15:35 -05:00
ad758d6ce5 fix: carry patch for upstream committed conflict marker in UIController.cpp 2026-07-07 03:10:08 -05:00
f9b5e53d30 feat: macOS port tooling — clang-cl cross-build + Wine/DXVK/MoltenVK runtime
- build-macos.sh: cross-compiles the Windows x64 client on Apple Silicon
  (LLVM clang-cl/lld-link + xwin Windows SDK, fxc via Wine with native
  d3dcompiler DLLs)
- run-client.sh: dedicated Wine prefix with DXVK-macOS (D3D11->Vulkan) on
  MoltenVK (Vulkan->Metal)
- tools/: in-Wine input injectors for automated verification
2026-07-07 03:09:00 -05:00