Skip to content

Active Frontier

Blizz127 edited this page Sep 21, 2026 · 1 revision

Active Frontier

Keep this page short. Update when the real next gate changes. Canonical detail: OPEN_ISSUES.md and current handoff notes.

Current real frontier (July 26, 2026)

Decide the matching-vs-decompiled direction, then repair the four red pins.

The menu nav arc is complete through N2c-4 (b3bd4a2) — Items is functionally complete for every reachable path, with special item use done for magnitude 1 only. The next porting step is N3 (the remaining submenu screens), but the higher-priority open question is not a porting task at all:

Four pinned overlays currently fail make rom-check — slus_006.64, field.bin, member_change_menu.bin, shop_menu.bin. These are source regressions with named causes, not environment drift, and the toolchain is exonerated by construction (green-era commits still reproduce their pins byte-exact on this machine). The slus red traces to c55fd03, which decompiled MenuExecute nonmatching and declared its orphaned jump tables as literal u32 — the built image is 7,032 bytes short.

The decision to make deliberately: decompiled-but-nonmatching source in the tree at the cost of a red ROM, versus matched-via-asm coexistence with a green ROM. This is a values call about what the repo is for. Drifting into it by accident is how the current state arose.

Ordered follow-ups once decided: (a) scan shop's exact first-red and field's first-red (small; a bisect clone is kept at Projects/f27pin/xenogears-decomp), then (b) the slus repair. Full detail — including the labels.inc link fix, the gate's guarantees, and every parked debt — is in the nav-arc entry in OPEN_ISSUES.md.

Superseded (July 14 frontier): "Restore the matching ELF build" — make -B build stopping at the SLUS link on unresolved inline gte_* helpers. The matching build now completes from clean and emits all overlays (re-verified 2026-07-26 via a full make rom-check clean rebuild). include/gte_macros.inc and include/labels.inc became tracked files in cdc8dd1. The build completes; what it produces is four drifted overlays, which is a different and narrower problem.

The animation-opcode frontier is now evidence-backed but not yet prioritized: the dedicated unimplemented set (0x85, 0x8E, 0x98, 0xBE, 0xC8, 0xD4, 0xE2, 0xFA) was not observed during sentinel-backed passive startup runs of Maps 000/001/014. Targeted progression coverage must identify a live opcode before implementation work begins.

Historical July 8–9 frontier

The Map1 → Map15 reload path is now Verified working end-to-end up to mid-frame 117:

  1. Zone-5 CHANGE_FIELD out of map1 → func_800A5C40 + FieldFree — Committed fix (4b377be); heap reclaim Verified working after the FieldFree leak fix (fe8933f, verified f48a4ad)
  2. FIELDLOAD #2 map15 @ frame 116; load-time script VM completes — Verified working since the opcode 0x94 milestone (a389755): 3 type-2 child sprites spawn, tick, and finish their scripts (opcode chain 0xC6/0x96/0xFC/0xE0/0x8D in ce61f3d, 0xF5/0xF6 in 11b2474, 0xA3 in f24e035, 0xBC sub 0x24 in de23142)
  3. Frame 117 per-frame actor update func_80084158 completes for all actors, including the live POLYCHECK miss-path test — Committed fix (3858bd8)
  4. Per-frame child pump: 0xBC subs 0x24/0x25 cleared (de23142, ae30d53) → sub 0x16 is the gate

See Field Script VM and Opcodes for the opcode details and Phase Log for the commit-by-commit trail.

Next single action

Repair the matching-build GTE inline-helper integration so make -B build produces matching ELFs. Do not substitute untyped stubs or treat a native LINK OK as a replacement for the missing symbol information.

Do not:

  • Treat a green native link as proof that every game unit compiled
  • Hand-add stubs to paper over a changed undefined set
  • Implement an animation opcode merely because it appears in the assertion list

Queued after build integrity is restored

  • Possibly more 0xBC subs as the child positioning preamble unwinds (each partially mapped via jtbl_800185A8) — Decoded
  • func_80025718 — type-2 render callback (D_8004FD40[2]) needed for child-sprite visibility — Queued (missing slots currently log once)
  • misc8 select-target (.L80084520) and standing-on-top (.L80084570) machinery — deliberate asserts, Unresolved
  • Frame-117 rendering not yet proven (abort happens mid-frame) — Unresolved
  • Soft stubs newly reached, log-once and non-blocking: func_8001B5E8, SoundFreeWdsEntry, func_8008E718 (load path); func_80097954, func_8003A450, func_8008FB98 (frame 117)

Quick repro context

distrobox enter xenogears-dev -- bash -lc 'cd /home/blizz/Projects/xenogears-decomp && \
  XENO_FIELD_TEST=1 XENO_KERNEL_SEL=0 \
  XENO_FIELD_MAP=1 XENO_FIELD_ENTRANCE=8 \
  ./pc_port/build_native/xeno-port'

Zone-5 one-shot gdb injection probe: captures/render_diag/map1_opcode_e0_reload_20260709.gdb. Map15 FIELDLOAD #2 fires at frame 116; the assert lands on frame 117's child pump. Key logs: captures/render_diag/map1_opcode_{fc,e0,8d,f5,a3,bc,94}_reload_20260709*.log, map15_polycheck_20260709_run3.log, map15_bc25_20260709_run1.log.

What this is NOT

Ruled out Why
July 8 frontier: host rand() forcing shared var 0x0408 to 1 No longer the frontier — bypassed, not fixed: the zone-5 probe drives CHANGE_FIELD via gdb-injected input; the rand() range mismatch itself is still open and still gates the natural door path (see Current Status)
FieldLoad hang on reload Corrected diagnosis: was a FieldFree leak (wrong-width pointer reads + two skipped frees), fixed fe8933f, verified f48a4ad
Load-time script VM Completes since a389755; all three child sprites finish their scripts
Work-list garbage-callback crash WorkListEntry PSX 0x1C-byte layout fix landed in ce61f3d (see Matching and Porting Rules)
func_80083288 POLYCHECK branch Migrated in 3858bd8; frame-117 actor update completes
Baseline smoke stubs (func_80028B14 family) func_80028B14 joined the baseline smoke-stub family on July 9 (7acb74a); zero new stubs held across the opcode-chain passes (ce61f3d through ae30d53)

Clone this wiki locally