Crusader_Decomp/docs/retail-debugger-entry-options.md
Marco 1225a3e737 Refactor and enhance documentation and tooling for Crusader USECODE
- Updated retail-debugger-entry-options.md to clarify the status of the debugger in No Remorse and No Regret, including findings from recent investigations.
- Revised usecode-format-specification.md to improve clarity on opcode behavior and historical naming conventions, with added references to Japanese executable analysis.
- Introduced usecode-jp-dispatch-analysis.md to document findings from the Japanese No Remorse executable, detailing opcode dispatch and search object behavior.
- Added ghidra_to_dosbox_memory.py, a new tool for translating Ghidra segment:offset addresses to DOSBox physical memory offsets, including comprehensive address validation.
- Created test_ghidra_to_dosbox_memory.py to ensure the correctness of address translation logic and selector base loading, with unit tests covering various scenarios.
2026-10-08 17:40:59 +02:00

30 KiB

Retail Usecode Debugger Entry Options

This note consolidates the current best entry-path analysis for the hidden retail usecode debugger in live CRUSADER.EXE.

Question:

  • What is the lowest-modification path that could realistically get the hidden debugger menu working?
  • Can ordinary usecode or a -u startup override reach it without another fragile executable patch?
  • What does the completed No Regret comparison establish, and which runtime questions remain?

Short Answer

Current best answer:

  • No zero-modification retail entry path is currently evidenced.
  • -debug, -laurie, jassica16, ~, and Ctrl+Q still do not provide a proven bootstrap into the hidden debugger.
  • The hidden debugger UI is real and usable, but it expects a live seg1408 break-state object at 1478:659c/659e and valid current-unit/runtime context.
  • The cleanest non-EXE exploration path is now the -u usecode-root override, but current evidence still does not show a script-visible way to construct the break-state object or write 1478:659c/659e.
  • The smallest structurally defensible executable patch is still the current interpreter-callsite-retarget family, but that remains more complex than a one-site tweak and therefore is not the preferred next move unless cross-build comparison fails.
  • The No Remorse versus No Regret static comparison is now closed for the debugger-owned surface: Regret retains a bootstrap writer and live vtable promotion that retail does not. The next discriminating check is runtime reachability; the JP build remains a separate optional comparison.

New Live-Ghidra Findings From This Pass

1. The missing retail bootstrap is still missing

Fresh live data-use recovery on 1478:659c still shows reads only.

Current confirmed reader families:

  • Interpreter_NextUsecodeOp at multiple sites including 1418:049e, 1418:04b1, 1418:0519, and several later helper windows
  • usecode_debugger_open_for_current_unit at 13a0:00af / 13a0:0165
  • usecode_debugger_format_expression_to_shared_buffer at 13a0:03db / 13a0:03f4
  • usecode_debugger_handle_event at 13a0:1e13, 13a0:1e3b, 13a0:1e5d, 13a0:20b2, 13a0:20b6
  • usecode_debugger_watch_pane_draw at 13a0:1791

What is still missing:

  • no recovered retail writer to 1478:659c/659e
  • no recovered retail caller of 1408:0000 Create
  • no recovered direct caller of 13a0:0086 usecode_debugger_open_for_current_unit
  • no recovered direct caller of 13a0:020d usecode_debugger_open_modal

That keeps the current retail model unchanged:

  • the seg109 UI is real
  • the seg1408 break-state object is real
  • the interpreter callback lane is real
  • but retail still looks like an orphaned debugger subsystem whose bootstrap/entry wiring was removed or compiled out

2. The UI wrappers are valid, but they are not safe cold-entry targets

Fresh decompile reads tighten the wrapper roles:

13a0:0086 usecode_debugger_open_for_current_unit

  • immediately calls usecode_debugger_gump_create(..., mode=1)
  • pulls the current unit name from Remorse::UsecodeDebuggerBreakState::CurrentEntryGetUnitName(_DAT_1478_659c)
  • resolves a usecode path under s_usecode
  • loads the corresponding unit file into the debugger pane
  • centers on current_line - 1
  • then enters Dispatch_ModalGump

Implication:

  • this wrapper is closest to the original intended debugger experience
  • but it absolutely expects a valid debugger object and current-entry state first

13a0:020d usecode_debugger_open_modal

  • also calls usecode_debugger_gump_create, but with generic mode 0
  • skips current-unit preload and line-centering
  • enters the same modal debugger gump

Implication:

  • this is the safer force-open target than 13a0:0086
  • but it still assumes the surrounding caller/context is sane enough for the debugger gump to live

3. usecode_debugger_gump_create proves the debugger control bundle is complete once the gump exists

Fresh decompile of 13a0:19b1 usecode_debugger_gump_create now gives the cleanest current constructor summary.

Verified behavior:

  • allocates a 0x50-byte root gump object when this == null
  • builds the debugger menubar and child panes
  • initializes the shared watch table
  • resolves the base usecode path with Filespec_GetFullPath(0, s_usecode, 0, 0)
  • registers the debugger/control event bundle through NewGump_1360_0f2a

Recovered registered event set from this pass:

  • 0x13d
  • 0x443
  • 0x142
  • 0x141
  • 0x143
  • 0x23f
  • 0x43e
  • 0x41f
  • 0x417
  • 0x431
  • 0x411
  • 0x410
  • 0x441
  • 0x421
  • 0x22d

Current direct callers are still only:

  • 13a0:009b from usecode_debugger_open_for_current_unit
  • 13a0:0256 from usecode_debugger_open_modal

This strengthens one important boundary:

  • 0x410 is a real debugger-gump event once the debugger UI has already been created
  • it is not evidence that retail gameplay already has a reachable path that creates the gump

4. 0x410 remains parallel debugger UI state, not the debugger bootstrap itself

usecode_debugger_handle_event at 13a0:1df3 still confirms the same split, but the current decompile makes it easier to summarize.

Verified cases include debugger-style commands for:

  • open file
  • resume / break-next / single-step state changes
  • go to line
  • watch / inspect / clear watches
  • change global memory
  • find / search again
  • local breakpoint/debug actions

Relevant 0x410 detail:

  • incoming event 0x410 is rewritten to local state 0x0e
  • case 0x0e clears one local selection/watch slot and refreshes debugger state

Implication:

  • the debugger's own event machine knows what to do with 0x410
  • but only after the debugger gump already exists and is registered
  • this does not give us a new no-patch retail entry path by itself

5. Retail still preserves a substantial debugger UI and command surface once the gump exists

The latest live CRUSADER.EXE decompile pass makes the surviving retail debugger capability map much clearer.

What retail can still do once a valid debugger object and gump already exist:

  • usecode_debugger_build_menubar still builds the full hidden debugger menu bar with File, Run, Breakpoints, Search, and Data menus.
  • usecode_debugger_translate_registered_event still translates the registered debugger/control event bundle into the local debugger command ids consumed by usecode_debugger_handle_event.
  • usecode_debugger_handle_event still implements real debugger actions rather than decorative UI stubs: open file, run, break-next, single-step, go to line, watch, inspect, change global, search, search again, break to TDP, and watch clearing.
  • usecode_debugger_source_pane_draw_visible_lines still clamps the source viewport, highlights the current line, scans the breakpoint table for visible marks, and draws the loaded source rows from the .unk buffer.
  • usecode_debugger_source_pane_handle_pointer_event still converts pointer position into source line and column state and also drives scroll-style commands when the pointer is above or below the pane.
  • the child-pane split is now clearer in retail than in the earlier first-pass mirror list: one pane is the loaded source view, while the sibling 13a0:16ee/1791/193f lane is a separate watch-pane create/draw/click surface.

The live retail file-loading path is now also much clearer than before.

  • usecode_debugger_source_pane_load_file resets local source-pane cursor state, destroys any previous source buffer, allocates a fresh source-buffer object from the requested path, updates the pane's line-count field, and refreshes the child widgets.
  • usecode_debugger_source_buffer_create_from_path and usecode_debugger_source_buffer_open_from_path still build a dedicated far-memory file object, normalize the requested path, open the file, and pass it into the text-loader path.
  • usecode_debugger_source_buffer_load_text still reads the whole file into far memory, rejects obviously non-text inputs, and hands the buffer to usecode_debugger_source_buffer_split_lines_in_place.
  • usecode_debugger_source_buffer_split_lines_in_place still walks the loaded text, zero-terminates newline boundaries in place, and populates the per-line pointer table later consumed by draw, click, search, and goto-line logic.
  • usecode_debugger_source_buffer_get_line_ptr is still the shared accessor used by source draw, pointer handling, find/find-next, and source-pane command handling.

Retail source navigation helpers are now closed well enough to describe the pane behavior directly.

  • usecode_debugger_set_line_selection clamps the requested line against the loaded file range, clears transient cursor state, optionally updates the anchor line, and forces a redraw.
  • usecode_debugger_center_on_line stores the target current line, computes a top-of-window line from the visible row count, and then delegates to usecode_debugger_set_line_selection.
  • this means retail still preserves the ordinary source-browser workflow expected from the strings: load file, jump to line, center on current line, search through lines, and redraw the viewport around the active selection.

The watch-pane side is also more concrete now.

  • usecode_debugger_watch_pane_create still allocates a real watch child gump and installs the watch-pane vtable.
  • usecode_debugger_watch_pane_draw still iterates the shared 10-slot watch table at 1478:5580, asks the break-state callback table to format each populated watch entry, and highlights the selected row.
  • usecode_debugger_watch_pane_handle_click still converts pointer Y position into a watch-row index, updates the selected watch slot, and triggers a repaint.
  • that is stronger evidence for interactive watch list still survives than the earlier weaker watch-related strings still exist wording.

Current safest interpretation:

  • retail did not merely keep a few string tables or unused menu labels
  • retail still keeps a functioning debugger front-end shell with real search, breakpoint, watch, inspect, and source-view logic
  • the main missing piece is still how execution ever reaches that shell with valid live state

6. Retail callback and reachability limits are still the decisive difference from Regret

The same live pass also tightened the what retail still cannot do side.

Current direct-caller state in live CRUSADER.EXE:

  • usecode_debugger_open_for_current_unit still has no recovered callers
  • usecode_debugger_open_modal still has no recovered callers
  • Remorse::UsecodeDebuggerBreakState::Create at 1408:0000 still has no recovered callers
  • usecode_debugger_handle_event is still only reached through usecode_debugger_translate_registered_event and usecode_debugger_forward_child_event

Current callback state is still the key retail blocker too:

  • Remorse::UsecodeDebuggerBreakState::OnBreakTriggeredNoop at 1408:046f is still the live slot-0 callback
  • Remorse::UsecodeDebuggerBreakState::VtableSlot1ReturnZero at 1408:0474 is still the live slot-1 callback
  • unlike Regret, retail still has no recovered bootstrap that rewires the break-state object onto a live frontend-aware vtable

So the retail-versus-Regret split is now even sharper:

  • both builds preserve a large debugger UI/event subsystem
  • retail still lacks the recovered object bootstrap and live callback target that would naturally open the debugger on break
  • Regret keeps both the writer/bootstrap path and the vtable upgrade that turns break-state callback slot 0 into a real open_for_current_unit launch path

That is why retail still reads as functional debugger shell plus dormant break-state object, while Regret reads as same shell plus a surviving end-to-end open-on-break path.

One practical refinement from the latest retail pass is that the shell is not merely a static menu/window skeleton.

  • the file-open path still reaches a real far-memory source-buffer loader
  • the search path still walks live source lines through usecode_debugger_source_buffer_get_line_ptr
  • the goto-line path still updates line selection through the same source-pane helpers used by current-line centering
  • the watch path still stores, formats, selects, clears, and redraws real watch rows

So the remaining barrier is still entry/bootstrap, not lack of interior debugger behavior after entry.

What This Means For Usecode As An Entry Path

Current Best Read

The -u retail override is now the best non-EXE exploration tool, but not yet a proven debugger-entry solution.

Why it still matters:

  • startup_apply_u_override_if_present at 1420:0cdf is a real startup hook
  • it is called from Init_Everything at 1048:05d3
  • it swaps the single live usecode runtime root rather than layering a second source
  • that replacement root is then consumed by ordinary compiled paths like Usecode_ItemCallEvent, UsecodeProcess_CreateProcess, and Interpreter_NextUsecodeOp

So -u gives a practical route to:

  • replace scripted behavior with minimal executable modification
  • test whether a data-driven/usecode-side path can indirectly reach an otherwise hidden compiled control lane

But the current negative evidence is still stronger than the hopeful side:

  • no recovered usecode intrinsic or compiled helper currently reads like open usecode debugger
  • no recovered usecode-visible primitive currently reads like construct debugger break state
  • no recovered usecode-visible primitive currently writes 1478:659c/659e
  • current script/event scans still do not show a plain usecode literal/ordinal trail for event 0x410

Current safest conclusion:

  • a -u archive replacement is the least invasive experimental platform
  • it is not yet an evidence-backed direct debugger unlock

Best Script-Side Host Families If We Try -u

If the next step is an asset-only experiment, the best current targets remain:

  • MONITNS / monitor-computer families
  • SURCAMNS / SURCAMEW
  • NPCTRIG

Why these are stronger than a generic chest or one-off gadget:

  • they already sit near real modal UI / camera / event-control behavior
  • they are more plausible bridges into a hidden control/event lane than ordinary loot or animation scripts

What they still do not currently prove:

  • direct debugger construction
  • direct seg109 wrapper calls
  • direct 1478:659c/659e bootstrap

So the immediate asset-only goal should be framed narrowly:

  • not open the debugger from usecode directly
  • but test whether any scripted family can reach a compiled control path closer to the hidden debugger than the currently known public gumps

Ranked Entry Options By Modification Cost

1. Zero-modification retail route

Current status: no proven path.

Still ruled out by current evidence:

  • -debug
  • -laurie
  • jassica16
  • ~
  • Ctrl+Q / event 0x410

Why:

  • they toggle debug/cheat/display behavior
  • they do not currently create the seg1408 break-state object or enter the seg109 wrappers

2. Asset-only route via -u replacement EUSECODE.FLX

Current status: lowest-modification practical experiment, but unproven as a debugger route.

Advantages:

  • no retail EXE byte changes required
  • fully reversible by swapping the override directory/archive
  • reaches normal compiled usecode consumers

Limitations:

  • still no direct evidence that usecode can create/write the required debugger state
  • more likely to find an indirect bridge than a direct open debugger primitive

Current recommendation:

  • prefer this over new ad hoc retail EXE patching if the goal is only to test indirect control-flow ideas

3. Minimal executable route: interpreter-callsite-retarget family

Current status: still the smallest structurally defensible retail patch family.

Why it remains the floor:

  • one-site retarget ideas fail because they do not also create/store the debugger object
  • direct shared-callback patching is too global and has already caused startup failures
  • direct cold-calls into the UI wrappers use the wrong stack/context

What the current viable family still needs:

  • lazy create-or-reuse of the seg1408 break-state object
  • store into 1478:659c/659e
  • preserve deferred interpreter timing
  • sanitize wrapper arguments before the seg109 UI entry

So even the best retail EXE path is still not a tiny one-byte/two-byte unlock.

4. Cross-build bootstrap recovery

Current status: best next investigation.

Why this is now preferred over more retail patch fishing:

  • if No Regret or JP No Remorse kept any surviving debugger bootstrap, it could collapse the retail problem from invent a new path to port or mimic one missing write/call
  • that is more likely to produce a truly minimal modification than another speculative retail patch chain

Retail Ghidra Surface Closure (2026-10-08)

The active CRUSADER.EXE database now has the debugger-owned surface mapped across the 13a0 UI, 1408 break-state, 1410 shared usecode-data, and 1418 interpreter components. This closes the anonymous debugger callbacks and the one missing source-pane function boundary. No executable bytes were changed.

UI Vtables And Callbacks

Constructor stores and raw reads of the far-pointer tables establish these owners. Each table has 18 four-byte entries stored as little-endian offset followed by selector. The generic analyze_vtable result treats these as two-byte pointers, so the slot map below comes from the raw table bytes and constructor stores.

UI object Vtable root Confirmed debugger overrides
Search/menu object 1478:58da +0x00 usecode_debugger_menu_destroy; the menu builder at 13a0:2882 installs this table.
Main debugger gump 1478:592a +0x00 usecode_debugger_gump_destroy; +0x10 shared parent-move handler; +0x14 usecode_debugger_forward_child_event; +0x18 usecode_debugger_translate_registered_event; +0x30 usecode_debugger_gump_forward_base_event_if_clean; +0x34 shared UI dispatcher 1360:0cb2.
Watch pane 1478:5972 +0x00 usecode_debugger_watch_pane_destroy; +0x08 usecode_debugger_watch_pane_handle_click; +0x10 shared parent-move handler; +0x30 usecode_debugger_watch_pane_draw; +0x34 shared UI dispatcher.
Source pane 1478:59ba +0x00 usecode_debugger_source_pane_destroy; +0x04 usecode_debugger_source_pane_forward_event_to_pointer_handler; +0x08 usecode_debugger_source_pane_handle_event_type_2; +0x10 usecode_debugger_source_pane_handle_pointer_event; +0x14 usecode_debugger_source_pane_on_layout_change; +0x18 usecode_debugger_source_pane_handle_command; +0x30 usecode_debugger_source_pane_draw_visible_lines; +0x34 shared UI dispatcher.

The missing function at 13a0:0e81 was confirmed as the source-pane table's +0x08 callback. Its two far-return paths end at 13a0:0ec9 and 13a0:0ef8; the next established function starts at 13a0:0ef9. It is now defined in Ghidra as usecode_debugger_source_pane_handle_event_type_2, with the exact body 13a0:0e81-0ef8. Event value 1 installs the active-gump context, sets widget flag bits 0x09, and invokes the pane's +0x10 callback. Value 3 clears that context and those flag bits. The corresponding user gestures remain unknown.

The additional anonymous UI functions are now named from their table slot and body:

  • 13a0:0aa1 = usecode_debugger_source_pane_on_layout_change
  • 13a0:0ef9 = usecode_debugger_source_pane_forward_event_to_pointer_handler
  • 13a0:1c08 = usecode_debugger_gump_forward_base_event_if_clean
  • 13a0:306f = usecode_debugger_menu_destroy
  • 13a0:30a9 = usecode_debugger_gump_destroy
  • 13a0:30e3 = usecode_debugger_watch_pane_destroy
  • 13a0:311d = usecode_debugger_source_pane_destroy

The break-state vtable root is now labeled g_usecode_debugger_break_state_vtable at 1478:65ab. Its two entries still target 1408:046f (OnBreakTriggeredNoop) and 1408:0474 (VtableSlot1ReturnZero), respectively. The global at 1478:659c is now labeled g_usecode_debugger_break_state.

Shared Usecode Data And Interpreter Helpers

The formerly anonymous 1410 functions close the symbol-data path used by the debugger:

  • 1410:0000 = usecode_global_data_release; frees the loaded usecode sidecar buffers and clears their globals. It is reached from game start and restart cleanup.
  • 1410:0051 = usecode_global_data_load; loads the usecode data and symbol sidecars during initialization and savegame load.
  • 1410:039f = usecode_global_symbol_lookup_by_name; searches the loaded symbol records and returns the associated value and far-pointer payload. Direct callers are the debugger expression formatter at 13a0:0309 and the Global name command at 13a0:25a3.
  • 1410:02e7 = usecode_global_data_save; quick-save at 1050:0115 passes a live file/stream object and uses its serialization callback. With a null argument, the helper writes the cached UNKDS.DAT bytes back under s_usecode.

These routines are shared usecode-data infrastructure, not a writer for g_usecode_debugger_break_state. The debugger object global still has recovered reads from the interpreter and UI, but no write in this retail program.

The remaining anonymous interpreter helpers are now separated by evidence:

  • 1418:034f = usecode_interpreter_advance_source_cursor; advances the source-cursor offset and has multiple callers inside Interpreter_NextUsecodeOp.
  • 1418:035f = usecode_interpreter_context_load_source_cursor_from_global_unit; resolves a source cursor through EntityVmRuntime::GetSlotChunkPtrAtOffset and stores it in the interpreter context.
  • 1418:0172 remains unnamed. It copies a 200-word context block plus two trailing words, has no recovered callers, and is not needed to explain debugger record production.

The retail record lifecycle is directly connected to the interpreter dispatch body:

  • opcode 0x5b updates the line and checks break conditions through 1408:0053 at 1418:04b5.
  • opcode 0x5c pushes the live unit/source/frame record through 1408:02f5 at 1418:051d.
  • opcode 0x57 pops the parent record at 1418:2a56, then copies it into the child context through 1408:03b0 at 1418:2ab9.
  • opcode 0x50 pops at 1418:3378; the interpreter hook also has a guarded unwind pop at 1418:3d78.

Two other 13a0 functions remain anonymous by design: 13a0:304b and 13a0:305c call shared 1238 resource/setup helpers using 1478:8b97, but are not entries in the debugger UI tables and have no recovered direct callers. Their registration owner is unresolved, so the Regret-side ITEMCACH attribution is not copied into retail. Within the debugger-connected ranges, these two wrappers and the unreferenced 1418:0172 context copy are the remaining non-debugger unknowns; the 1408 break-state family has no anonymous function entries.

Difference From No Regret

The cross-build reference is the completed No Regret hidden-debugger investigation. Both builds retain the functional debugger shell, source loader, watch/expression/global commands, breakpoint state, and interpreter current-entry producer/pop lifecycle. The important differences are in UI composition and activation:

Surface No Remorse (CRUSADER.EXE) No Regret (REGRET.EXE)
Child control 1478:5972 is a watch pane with create/draw/click functions at 13a0:16ee, 1791, and 193f. 1480:68e2 is an auxiliary ten-row source-line selector/drawing control; its selected row connects to breakpoint-marker handling.
Break-state bootstrap Constructor exists at 1408:0000, but no caller or write to g_usecode_debugger_break_state was recovered. The base table at 1478:65ab remains inert. usecode_debugger_bootstrap_init at 1398:0000 allocates the object, writes 1480:712c/712e, and replaces the base vtable with 1480:6972.
Break callback Slot 0 targets 1408:046f, a no-op, so a matched break does not open the UI through this callback. The promoted slot 0 targets usecode_debugger_open_for_current_unit, providing a static open-on-break path once the object is initialized.
Interpreter records The 0x5b/0x5c/0x57/0x50 and unwind transitions are statically connected in Interpreter_NextUsecodeOp. The equivalent opcode-dispatch producer, child copy, line update, and pop lifecycle is statically connected in the recovered Regret hook.
Shared symbol data 1410 includes release, load, save/stream serialization, and the name resolver used by the debugger. 13e8 has named release/load/name-lookup routines; its investigation note does not report a matching usecode_global_data_save helper.

This is a static wiring advantage, not proof of ordinary-session activation. The Regret bootstrap still has no recovered static caller, and the DOSBox runtime checks recorded in the Regret note observed 1480:712c/712e as null during ordinary gameplay and after the tested cheat inputs. The current distinction is therefore: Regret preserves a bootstrap and live break callback that retail lacks, but runtime reachability of that bootstrap remains unproven.

Practical Alternatives To Manual Hex Patching

Practical Alternatives To Manual Hex Patching

The current blocker is no longer we do not know what to patch. It is the delivery path needs to stop depending on blind byte edits.

1. Runtime-only proof via DOSBox-X debugger or equivalent live memory tooling

This is now the cleanest first confirmation path.

Use it to:

  • keep the retail executable on disk unchanged
  • patch or seed the debugger object only in live memory
  • prove whether a create/store/open sequence is sufficient before committing to any permanent binary patch

What this should target first:

  • seeding 1478:659c/659e with a valid debugger-state object
  • reusing the existing interpreter callback lane at 1418:049e..04b5
  • testing whether 13a0:020d or the vtable callback path can open a stable debugger gump once state exists

This is especially attractive because it turns the current question from did we edit the NE file correctly? into does the runtime model itself actually work?

2. Scripted patch application to a writable clone, not manual hex editing

If a permanent retail patch is still wanted, the next step should be a reproducible patcher, not another manual byte-edit round.

That means:

  • keep a dedicated writable clone of the executable
  • store each patch as address + expected old bytes + new bytes + reason
  • apply it through a scriptable patcher that validates the original bytes before writing
  • regenerate the same patch on demand instead of hand-transcribing offsets each time

This can be done with PowerShell or Python against raw file offsets even if Ghidra export remains unreliable.

3. Use Ghidra only for analysis and verified byte plans

The current evidence does not support treating Ghidra export as the final patch-delivery mechanism for this lane.

What still works well:

  • identify the correct callsite and byte budget in Ghidra
  • annotate the patch rationale in-session
  • test the control-flow hypothesis on a writable target
  • then convert the verified result into an external patch manifest or launcher-side patcher

That keeps Ghidra in the role it is good at here: reverse-engineering and patch design, not blind final-binary distribution.

4. Keep -u as the low-risk data-side experiment surface

The -u override still does not solve the missing bootstrap, but it remains valuable for adjacent experiments that do not require byte writes.

Use it for:

  • testing whether scripted monitor/camera/control families can get closer to debugger-adjacent compiled paths
  • validating source-file and unit-name assumptions without touching the executable
  • separating data-side idea failed from patching workflow failed

It should stay in the toolbox, but it should not be mistaken for a direct replacement for the missing retail bootstrap.

Current Recommendation

If the goal is the minimum modification that still has a realistic chance to work, the order should now be:

  1. Keep the completed retail Ghidra surface map and current debugger-state naming as the static baseline.
  2. Use read-only runtime observation to test whether a real session initializes the retail break-state object or reaches the recovered record producer.
  3. If sibling-build analysis continues, focus on the still-open JP /ja/CRUSADER.EXE function-side scan; the No Remorse/No Regret bootstrap and callback comparison is already documented above.
  4. Keep -u / replacement EUSECODE.FLX as the preferred low-risk experiment surface for any script-side proxy ideas.
  5. Do not resume broader retail executable patching unless the runtime proof or cross-build pass yields one clear small patch plan that can be applied by script to a writable clone.

That ranking fits both the new live evidence and the user's practical constraint that complex retail patch attempts have already been unstable.

Cross-Build Status

The No Remorse versus No Regret pass resolves the main static comparison questions: retail has no recovered object writer or constructor caller and keeps inert break-state slots; Regret has a bootstrap writer and promotes slot 0 to the current-unit opener. Both retain interpreter record production and a broad UI/event subsystem.

The remaining high-value work is dynamic confirmation of bootstrap reachability and record values. The Regret runtime note already records a null debugger pointer in ordinary tested gameplay, so its static bootstrap must not be presented as a demonstrated normal-session launch. A deeper JP /ja/CRUSADER.EXE function-side scan is separate work and remains open.

Bottom Line

Retail No Remorse retains a complete static debugger surface: its menus, source and watch panes, event dispatcher, global-symbol integration, break-state object, and interpreter record lifecycle are all mapped. The specific gap relative to No Regret is bootstrap and callback wiring, not a missing UI or interpreter producer. Regret is structurally better wired, but its bootstrap's ordinary runtime reachability is still unproven. The next useful step is read-only runtime validation, not more static searching through the already closed retail debugger clusters.