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.
- 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.
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.
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.
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.
- 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.
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.
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.
- 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
- 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
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.
- 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
- 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