Add feasibility assessments for Japanese No Remorse Windows modding and Observer NPC analysis

- Created a new document outlining the feasibility of modding the Japanese version of No Remorse on Windows, detailing executive assessments, established evidence, modding base suitability, and potential risks.
- Introduced a comprehensive analysis of the Observer NPC in No Remorse, including its identity, data structure, AI behavior, and comparisons with similar NPCs, along with open questions for further investigation.
This commit is contained in:
Maddo 2026-10-10 14:42:43 +02:00
commit 1b70294ef7
17 changed files with 2124 additions and 345 deletions

View file

@ -7,6 +7,7 @@ applyTo: "**"
## Safety Guardrails ## Safety Guardrails
- Never create a git commit on your own. - Never create a git commit on your own.
- Never save or explicitly persist Ghidra project/program changes yourself, including through MCP endpoints or scripts. Leave requested database edits pending in the live session and let the user handle saving them in Ghidra.
- Never run a command that may delete files outside a temporary folder unless you first ask the user with `vscode_askQuestions` and get explicit confirmation. - Never run a command that may delete files outside a temporary folder unless you first ask the user with `vscode_askQuestions` and get explicit confirmation.
- If a request could remove or overwrite repository files, pause and confirm before proceeding. - If a request could remove or overwrite repository files, pause and confirm before proceeding.

View file

@ -3,212 +3,13 @@
<PROJECT_DATA_XML_NAME NAME="DISPLAY_DATA"> <PROJECT_DATA_XML_NAME NAME="DISPLAY_DATA">
<SAVE_STATE> <SAVE_STATE>
<ARRAY NAME="EXPANDED_PATHS" TYPE="string"> <ARRAY NAME="EXPANDED_PATHS" TYPE="string">
<A VALUE="Crusader:ja:" />
<A VALUE="Crusader:" /> <A VALUE="Crusader:" />
</ARRAY> </ARRAY>
<STATE NAME="SHOW_TABLE" TYPE="boolean" VALUE="false" /> <STATE NAME="SHOW_TABLE" TYPE="boolean" VALUE="false" />
</SAVE_STATE> </SAVE_STATE>
</PROJECT_DATA_XML_NAME> </PROJECT_DATA_XML_NAME>
<TOOL_MANAGER ACTIVE_WORKSPACE="Workspace"> <TOOL_MANAGER ACTIVE_WORKSPACE="Workspace">
<WORKSPACE NAME="Workspace" ACTIVE="true"> <WORKSPACE NAME="Workspace" ACTIVE="true" />
<RUNNING_TOOL TOOL_NAME="CodeBrowser">
<ROOT_NODE X_POS="176" Y_POS="116" WIDTH="1720" HEIGHT="931" EX_STATE="0">
<SPLIT_NODE WIDTH="100" HEIGHT="100" DIVIDER_LOCATION="0" ORIENTATION="VERTICAL">
<SPLIT_NODE WIDTH="1621" HEIGHT="816" DIVIDER_LOCATION="148" ORIENTATION="VERTICAL">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Entropy" OWNER="EntropyPlugin" TITLE="Entropy" ACTIVE="false" GROUP="Header" INSTANCE_ID="3207819926581772885" />
<COMPONENT_INFO NAME="Overview" OWNER="OverviewPlugin" TITLE="Overview" ACTIVE="false" GROUP="Header" INSTANCE_ID="3207819926581772883" />
</COMPONENT_NODE>
<SPLIT_NODE WIDTH="1708" HEIGHT="836" DIVIDER_LOCATION="143" ORIENTATION="HORIZONTAL">
<SPLIT_NODE WIDTH="244" HEIGHT="836" DIVIDER_LOCATION="640" ORIENTATION="VERTICAL">
<SPLIT_NODE WIDTH="244" HEIGHT="532" DIVIDER_LOCATION="502" ORIENTATION="VERTICAL">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Program Tree" OWNER="ProgramTreePlugin" TITLE="Program Trees" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757206881762536570" />
</COMPONENT_NODE>
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Symbol Tree" OWNER="SymbolTreePlugin" TITLE="Symbol Tree" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757206881762536565" />
</COMPONENT_NODE>
</SPLIT_NODE>
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="DataTypes Provider" OWNER="DataTypeManagerPlugin" TITLE="Data Type Manager" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757206885375929468" />
</COMPONENT_NODE>
</SPLIT_NODE>
<SPLIT_NODE WIDTH="1460" HEIGHT="836" DIVIDER_LOCATION="785" ORIENTATION="VERTICAL">
<SPLIT_NODE WIDTH="1386" HEIGHT="638" DIVIDER_LOCATION="705" ORIENTATION="VERTICAL">
<SPLIT_NODE WIDTH="1460" HEIGHT="653" DIVIDER_LOCATION="490" ORIENTATION="HORIZONTAL">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Listing" OWNER="CodeBrowserPlugin" TITLE="Listing: " ACTIVE="true" GROUP="Core" INSTANCE_ID="3757206884748880996" />
</COMPONENT_NODE>
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Decompiler" OWNER="DecompilePlugin" TITLE="Decompile" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757206881762536571" />
<COMPONENT_INFO NAME="Bytes" OWNER="ByteViewerPlugin" TITLE="Bytes: No Program" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206881762536573" />
<COMPONENT_INFO NAME="Data Window" OWNER="DataWindowPlugin" TITLE="Defined Data" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206885501758570" />
<COMPONENT_INFO NAME="Defined Strings" OWNER="ViewStringsPlugin" TITLE="Defined Strings" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757200037297742990" />
<COMPONENT_INFO NAME="Equates Table" OWNER="EquateTablePlugin" TITLE="Equates Table" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206884748880994" />
<COMPONENT_INFO NAME="External Programs" OWNER="ReferencesPlugin" TITLE="External Programs" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206884748880998" />
<COMPONENT_INFO NAME="Functions Window" OWNER="FunctionWindowPlugin" TITLE="Functions" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206884748881001" />
<COMPONENT_INFO NAME="Relocation Table" OWNER="RelocationTablePlugin" TITLE="Relocation Table" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206885501758574" />
</COMPONENT_NODE>
</SPLIT_NODE>
<SPLIT_NODE WIDTH="1386" HEIGHT="189" DIVIDER_LOCATION="495" ORIENTATION="HORIZONTAL">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Data Type Preview" OWNER="DataTypePreviewPlugin" TITLE="Data Type Preview" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206885227031670" />
</COMPONENT_NODE>
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Virtual Disassembler - Current Instruction" OWNER="DisassembledViewPlugin" TITLE="Disassembled View" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206884748880993" />
</COMPONENT_NODE>
</SPLIT_NODE>
</SPLIT_NODE>
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Console" OWNER="ConsolePlugin" TITLE="Console" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757206881762536572" />
<COMPONENT_INFO NAME="Bookmarks" OWNER="BookmarkPlugin" TITLE="Bookmarks" ACTIVE="false" GROUP="Core.Bookmarks" INSTANCE_ID="3757206881762536569" />
</COMPONENT_NODE>
</SPLIT_NODE>
</SPLIT_NODE>
</SPLIT_NODE>
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Function Call Trees" OWNER="CallTreePlugin" TITLE="Function Call Trees" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206881762536566" />
</COMPONENT_NODE>
</SPLIT_NODE>
<WINDOW_NODE X_POS="426" Y_POS="178" WIDTH="1033" HEIGHT="689">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Script Manager" OWNER="GhidraScriptMgrPlugin" TITLE="Script Manager" ACTIVE="false" GROUP="Script Group" INSTANCE_ID="3757206881762536567" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="423" Y_POS="144" WIDTH="927" HEIGHT="370">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Memory Map" OWNER="MemoryMapPlugin" TITLE="Memory Map" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206881762536548" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="383" Y_POS="7" WIDTH="1020" HEIGHT="1038">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Function Graph" OWNER="FunctionGraphPlugin" TITLE="Function Graph" ACTIVE="false" GROUP="Function Graph" INSTANCE_ID="3757206885501758576" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="550" Y_POS="206" WIDTH="655" HEIGHT="509">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Register Manager" OWNER="RegisterPlugin" TITLE="Register Manager" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206884748881000" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="287" Y_POS="186" WIDTH="1424" HEIGHT="666">
<SPLIT_NODE WIDTH="1408" HEIGHT="559" DIVIDER_LOCATION="573" ORIENTATION="HORIZONTAL">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Symbol Table" OWNER="SymbolTablePlugin" TITLE="Symbol Table" ACTIVE="false" GROUP="symbolTable" INSTANCE_ID="3757206885501758571" />
</COMPONENT_NODE>
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Symbol References" OWNER="SymbolTablePlugin" TITLE="Symbol References" ACTIVE="false" GROUP="symbolTable" INSTANCE_ID="3757206885501758572" />
</COMPONENT_NODE>
</SPLIT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="-1" Y_POS="-1" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Checksum Generator" OWNER="ComputeChecksumsPlugin" TITLE="Checksum Generator" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206884748880995" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="-1" Y_POS="-1" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Function Tags" OWNER="FunctionTagPlugin" TITLE="Function Tags" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206885375929469" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="-1" Y_POS="-1" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Comment Window" OWNER="CommentWindowPlugin" TITLE="Comments" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206885501758569" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="-1" Y_POS="-1" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Python" OWNER="InterpreterPanelPlugin" TITLE="Python" ACTIVE="false" GROUP="Default" INSTANCE_ID="3207819978370941531" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="0" Y_POS="0" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="PyGhidra" OWNER="PyGhidra" TITLE="PyGhidra" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206885501758568" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="0" Y_POS="0" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Source Files and Transforms" OWNER="SourceFilesTablePlugin" TITLE="Source Files and Transforms" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206884748880999" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="0" Y_POS="0" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Bundle Manager" OWNER="GhidraScriptMgrPlugin" TITLE="Bundle Manager" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206881762536568" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="0" Y_POS="0" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Jython" OWNER="Jython" TITLE="Jython" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757200037004141725" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="0" Y_POS="0" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Function Call Graph" OWNER="FunctionCallGraphPlugin" TITLE="Function Call Graph" ACTIVE="false" GROUP="Function Call Graph" INSTANCE_ID="3757206885227031671" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="0" Y_POS="0" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
<COMPONENT_INFO NAME="Defined Strings" OWNER="DefinedStringsPlugin" TITLE="Defined Strings" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757206885501758573" />
</COMPONENT_NODE>
</WINDOW_NODE>
</ROOT_NODE>
<DATA_STATE>
<PLUGIN NAME="NavigationHistoryPlugin">
<XML NAME="HISTORY_LIST_0">
<SAVE_STATE>
<STATE NAME="CURRENT_LOC_INDEX" TYPE="int" VALUE="0" />
<STATE NAME="LOCATION_COUNT" TYPE="int" VALUE="0" />
<STATE NAME="NAV_ID" TYPE="long" VALUE="-1" />
</SAVE_STATE>
</XML>
<STATE NAME="LIST_COUNT" TYPE="int" VALUE="1" />
</PLUGIN>
<PLUGIN NAME="ProgramTreePlugin">
<STATE NAME="Current Viewname" TYPE="string" VALUE="Program Tree" />
<STATE NAME="NavigationToggleState" TYPE="boolean" VALUE="false" />
<STATE NAME="NumberOfGroupsProgram Tree" TYPE="int" VALUE="0" />
<STATE NAME="NumberOfViews" TYPE="int" VALUE="1" />
<STATE NAME="TreeName-0" TYPE="string" VALUE="Program Tree" />
</PLUGIN>
<PLUGIN NAME="DecompilePlugin">
<STATE NAME="INDEX" TYPE="int" VALUE="0" />
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757199972885816475" />
<STATE NAME="Num Disconnected" TYPE="int" VALUE="0" />
<STATE NAME="Y_OFFSET" TYPE="int" VALUE="0" />
</PLUGIN>
<PLUGIN NAME="ByteViewerPlugin">
<STATE NAME="Block Column" TYPE="int" VALUE="0" />
<STATE NAME="Block Num" TYPE="int" VALUE="-1" />
<STATE NAME="Block Offset" TYPE="string" VALUE="0" />
<STATE NAME="Index" TYPE="int" VALUE="0" />
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757199972885816477" />
<STATE NAME="Num Disconnected" TYPE="int" VALUE="0" />
<STATE NAME="X Offset" TYPE="int" VALUE="0" />
<STATE NAME="Y Offset" TYPE="int" VALUE="0" />
</PLUGIN>
<PLUGIN NAME="ProgramManagerPlugin">
<STATE NAME="NUM_PROGRAMS" TYPE="int" VALUE="0" />
</PLUGIN>
<PLUGIN NAME="FunctionGraphPlugin">
<SAVE_STATE NAME="COMPLEX_LAYOUT_NAME" KEY="COMPLEX_LAYOUT_NAME" TYPE="SaveState">
<STATE NAME="LAYOUT_CLASS_NAME" TYPE="string" VALUE="ghidra.app.plugin.core.functiongraph.graph.layout.DecompilerNestedLayoutProvider" />
<STATE NAME="LAYOUT_NAME" TYPE="string" VALUE="Nested Code Layout" />
</SAVE_STATE>
<STATE NAME="DISPLAY_POPUPS" TYPE="boolean" VALUE="true" />
<STATE NAME="DISPLAY_SATELLITE" TYPE="boolean" VALUE="true" />
<STATE NAME="DOCK_SATELLITE" TYPE="boolean" VALUE="true" />
<STATE NAME="DOCK_SATELLITE_POSITION" TYPE="string" VALUE="LOWER_RIGHT" />
<STATE NAME="Disconnected Count" TYPE="int" VALUE="0" />
<ENUM NAME="EDGE_HOVER_HIGHLIGHT" TYPE="enum" CLASS="ghidra.app.plugin.core.functiongraph.EdgeDisplayType" VALUE="ScopedFlowsFromVertex" />
<ENUM NAME="EDGE_SELECTION_HIGHLIGHT" TYPE="enum" CLASS="ghidra.app.plugin.core.functiongraph.EdgeDisplayType" VALUE="AllCycles" />
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757200037297742991" />
</PLUGIN>
<PLUGIN NAME="CodeBrowserPlugin">
<STATE NAME="INDEX" TYPE="int" VALUE="0" />
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757200035699713156" />
<STATE NAME="Num Disconnected" TYPE="int" VALUE="0" />
<STATE NAME="Y_OFFSET" TYPE="int" VALUE="0" />
</PLUGIN>
</DATA_STATE>
</RUNNING_TOOL>
</WORKSPACE>
</TOOL_MANAGER> </TOOL_MANAGER>
</PROJECT> </PROJECT>

View file

@ -14,6 +14,9 @@
}, },
{ {
"path": "../../mcp/GhidraMCP" "path": "../../mcp/GhidraMCP"
},
{
"path": "I:/Apps/ghidra_12.1.4_PUBLIC"
} }
], ],
"settings": { "settings": {

BIN
JP/CRUSADER.EXE Normal file

Binary file not shown.

View file

@ -1,15 +1,15 @@
"Segment","Type","FileOffset","Length","CoverageStatus","KnownSubsystem","KeyNamedFunctions","Blockers","NotesSource" "Segment","Type","FileOffset","Length","CoverageStatus","KnownSubsystem","KeyNamedFunctions","Blockers","NotesSource"
"1","code","0x37600","0x8400","Deep","Gameplay cursor/input/projectiles","cursor_update_hover; entity_fire_weapon; projectile_update_tick","Broader gameplay subsystem still spans adjacent segments","crusader_decompilation_notes.md; plan-mid.md" "1","code","0x37600","0x8400","Deep","Gameplay cursor/input/projectiles","cursor_update_hover; entity_fire_weapon; projectile_update_tick","Broader gameplay subsystem still spans adjacent segments","crusader_decompilation_notes.md; plan-mid.md"
"2","code","0x40000","0x2B0","None","","","","crusader_ne_segments.csv" "2","code","0x40000","0x2B0","Partial","Resource image records, viewport row loading, and palette conversion","resource_image_record_allocate_and_load_1008_0032; resource_image_record_open_and_read_1008_0098; resource_image_read_rows_into_vport_1008_0167; resource_palette_rgb_to_vga6_1008_01eb; resource_palette_triplet_alloc_callback_1008_028c","All five functions in this short segment are identified; the complete resource-record schema and broader file-loader ownership remain partially characterized","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"3","code","0x40400","0x55A","None","","","","crusader_ne_segments.csv" "3","code","0x40400","0x55A","Partial","Tile area search and solid/damage overlap","AreaSearch_FindItemAtWorldPosition_1010_0032; AreaSearch_FindItemAtTilePosition_1010_0061; AreaSearch_FindItemInTileRect_1010_007d; Item_CheckSolidDamageOverlap_1010_02de","The four documented helpers have no exact auto-names remaining; broader area-search and overlap call paths are not fully characterized","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"4","code","0x40A00","0x10B1","Foothold","Reset/cache entry path","runtime_cache_reset_sequence","ASYLUM.24 and downstream reset callers still need tighter classification","crusader_decompilation_notes.md; plan-mid.md" "4","code","0x40A00","0x10B1","Partial","Configuration file loading and option persistence","LoadConfigFile; SaveOptionsToConfigFile","Loader validation and malformed/unknown-option behavior remain incompletely characterized","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"5","code","0x41E00","0x8D7","Partial","Startup/display transition prepare/driver lane","startup_display_transition_prepare; startup_display_transition_driver","The two main seg005 bodies are now named and tied to caller-side validation through vtable +0x0c, the seg108 0x4f38 sprite/object helper lane, the shared active-dispatch hold byte at 0x6828, the seg049 watch/controller lane at 0x2bd8, and the seg126 follow-up path; the exact higher-level state label is still unresolved","crusader_decompilation_notes.md; plan-mid.md" "5","code","0x41E00","0x8D7","Partial","Startup/display transition prepare/driver lane","startup_display_transition_prepare; startup_display_transition_driver","The two main seg005 bodies are now named and tied to caller-side validation through vtable +0x0c, the seg108 0x4f38 sprite/object helper lane, the shared active-dispatch hold byte at 0x6828, the seg049 watch/controller lane at 0x2bd8, and the seg126 follow-up path; the exact higher-level state label is still unresolved","crusader_decompilation_notes.md; plan-mid.md"
"6","code","0x42C00","0x75E","Foothold","Gameplay-side masked materializer and local state/value selector lane","entity_vm_context_try_create_mask_0008_slot30_with_offset; entity_vm_context_try_create_mask_0010_slot08_with_offset_if_ready","Outer callers for the renamed seg006 helpers are still unresolved, and the higher-level gameplay subsystem owning the local state-selector and adjacent class-linked value family still needs caller-side recovery","plan-mid.md; docs/raw-0008-000c.md" "6","code","0x42C00","0x75E","Partial","Gamepal Xformpal palette resources and greyscale fade processes","Gamepal_Init; Gamepal_InitXformpalDatStruct; Gamepal_LoadXformpalDat; Gamepal_ReadXformpal_1028_0348; Gamepal_ReleaseXformpalResources_1028_02dc; Palette_FadeToGreyscale; FadeProcess_Create_2; FadeProcess1_Run_PausesCycle; FadeProcess2_Run","Xformpal data parsing/resource ownership and fade-process scheduling are not fully traced in the active CRUSADER.EXE; prior gameplay-side helper evidence is from raw segment 0006, not this live selector","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md; docs/raw-0008-000c.md"
"7","code","0x43600","0x484","None","","","","crusader_ne_segments.csv" "7","code","0x43600","0x484","Partial","Animation-process render-state publication","AnimProcess_BeginRenderStateUpdate_1030_02a5; AnimProcess_CommitRenderStateAndClearFlag_1030_02b2","The remaining process creation, dispatch, timer, and lifecycle routines need behavioral characterization","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"8","code","0x43C00","0x1386","None","","","","crusader_ne_segments.csv" "8","code","0x43C00","0x1386","Partial","Item collision masks and gravity-process movement","AreaSearch_CheckCollision (1038:0000 wrapper; 1038:0072 core); GravityProcess_CreateProcess; GravityProcess_Finish_1038_04bc; GravityProcess_Run; GravityProcess_CheckDownwardSweep_1038_1131; GravityProcess_FastAreaCleanup; Item_Hurl; Item_Fall","Full GravityProcess_Run state transitions and caller-side interpretation of the collision mask remain open","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"9","code","0x45400","0x495","None","","","","crusader_ne_segments.csv" "9","code","0x45400","0x495","Partial","DOS extender calls and gravity trajectory helpers","DosExtenderCallInterrupt_1040_0000; DosExtenderCallInterrupt_1040_0035; DosExtenderCallInterrupt_1040_0041; DosExtenderCallInterrupt_1040_005a; Runtime_InitializeCommandLineAndRunLoop_1040_0079; Item_BuildHurlTrajectoryParams_1040_00a6; Item_HurlWithParams; Ensure_GravityProcess; Filespec_CopyCandidateIfExists_1040_039e; dos_free_disk_space","INT 21h/2Fh service/register contracts and caller-side purpose of the gravity-proximity helper are unresolved","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"10","code","0x45A00","0xD92","None","","","","crusader_ne_segments.csv" "10","code","0x45A00","0xD92","Partial","Game initialization, teardown, and command-line handling","Init_Everything; Uninitialize; HandleCommandlineArgs; Runtime_InitializeAndHandleCommandLine_1048_01dc; Runtime_DrawStartupBanner_1048_025b","Subsystem initialization/teardown dependencies and the remaining helper/config-dispatch behavior need closer characterization","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"11","code","0x46E00","0x5B1","None","","","","crusader_ne_segments.csv" "11","code","0x46E00","0x5B1","Partial","Savegame slot metadata, quick-save, and restore","Savegame_Init; Savegame_GetFilename; Savegame_QuickSave; Savegame_LoadProbably; SavegameSlot_GetLabelPtr; SavegameSlot_SetLabel; File_CloseAndMaybeFree","Save-file schema/versioning and malformed-file or partial-load behavior remain open","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"12","code","0x47600","0x94B","None","","","","crusader_ne_segments.csv" "12","code","0x47600","0x94B","None","","","","crusader_ne_segments.csv"
"13","code","0x48200","0x1F6C","None","","","","crusader_ne_segments.csv" "13","code","0x48200","0x1F6C","None","","","","crusader_ne_segments.csv"
"14","code","0x4AA00","0x526","None","","","","crusader_ne_segments.csv" "14","code","0x4AA00","0x526","None","","","","crusader_ne_segments.csv"
@ -28,7 +28,7 @@
"27","code","0x5B400","0x57B","None","","","","crusader_ne_segments.csv" "27","code","0x5B400","0x57B","None","","","","crusader_ne_segments.csv"
"28","code","0x5BA00","0x788","None","","","","crusader_ne_segments.csv" "28","code","0x5BA00","0x788","None","","","","crusader_ne_segments.csv"
"29","code","0x5C400","0x190A","Partial","Area-search collision move and step-aware sweep helper lane","AreaSearch_CollideMove; AreaSearch_SweepShapeBetweenPoints; AreaSearch_SweepItemToPointWithStepUp; AreaSearch_SweepShapeBetweenPointsWithStepUp","Current direct callers are still all movement/collision-side and the remaining gap is the earlier policy layer deciding when those paths instantiate the 0x236 queue or whether any non-collision lane feeds it","plan-mid.md; docs/ne-hole-filling-priorities.md; docs/raw-0008-000c.md" "29","code","0x5C400","0x190A","Partial","Area-search collision move and step-aware sweep helper lane","AreaSearch_CollideMove; AreaSearch_SweepShapeBetweenPoints; AreaSearch_SweepItemToPointWithStepUp; AreaSearch_SweepShapeBetweenPointsWithStepUp","Current direct callers are still all movement/collision-side and the remaining gap is the earlier policy layer deciding when those paths instantiate the 0x236 queue or whether any non-collision lane feeds it","plan-mid.md; docs/ne-hole-filling-priorities.md; docs/raw-0008-000c.md"
"30","code","0x5E000","0x5071","None","","","","crusader_ne_segments.csv" "30","code","0x5E000","0x5071","Partial","Process embedded EntityDispatchEntry destructor-copy cluster","Process_DestroyEmbeddedDispatchEntries; Process_DestroyEmbeddedDispatchEntries_10e8_41e3; Process_DestroyEmbeddedDispatchEntries_10e8_4744","28 exact FUN_ candidates remain; owning Process class/role and callers unresolved","docs/crusader-exe-function-identification-map.md"
"31","code","0x64000","0x6EE","Partial","StorageDataProcess queue create/run/release helpers","StorageDataProcess_Create; StorageDataProcess_Run; StorageDataProcess_Release; StorageDataProcess_RunAndTerminateProcs; storage_process_ref_list_create; storage_process_ref_list_append; storage_process_ref_list_terminate_item_matches; storage_process_ref_list_destroy","Still needs caller-side recovery beyond the verified collision producer and any stronger subsystem naming than the local hit/got-hit storage queue","plan-mid.md; docs/ne-hole-filling-priorities.md; docs/raw-0008-000c.md" "31","code","0x64000","0x6EE","Partial","StorageDataProcess queue create/run/release helpers","StorageDataProcess_Create; StorageDataProcess_Run; StorageDataProcess_Release; StorageDataProcess_RunAndTerminateProcs; storage_process_ref_list_create; storage_process_ref_list_append; storage_process_ref_list_terminate_item_matches; storage_process_ref_list_destroy","Still needs caller-side recovery beyond the verified collision producer and any stronger subsystem naming than the local hit/got-hit storage queue","plan-mid.md; docs/ne-hole-filling-priorities.md; docs/raw-0008-000c.md"
"32","code","0x64800","0x56A","Foothold","Item type / typename.dat loader helpers","ItemType_Init; ItemType_LoadTypeflagDat; ItemType_Load_TypenameDat; ItemType_GetTypenameRecordPtrAtIndex; ItemType_FindTypenameRecordIndex; Item_GetShapeFamilyOfShape","The segment is now clearly an item-type helper lane. The remaining gap is not local contract recovery but broader caller-side integration and any later higher-level item-family helpers that still sit outside this small loader-focused window.","plan-mid.md; docs/function-knowledge-roadmap.md" "32","code","0x64800","0x56A","Foothold","Item type / typename.dat loader helpers","ItemType_Init; ItemType_LoadTypeflagDat; ItemType_Load_TypenameDat; ItemType_GetTypenameRecordPtrAtIndex; ItemType_FindTypenameRecordIndex; Item_GetShapeFamilyOfShape","The segment is now clearly an item-type helper lane. The remaining gap is not local contract recovery but broader caller-side integration and any later higher-level item-family helpers that still sit outside this small loader-focused window.","plan-mid.md; docs/function-knowledge-roadmap.md"
"33","code","0x65000","0x10D7","Partial","NPC action / stand / pace / surrender / guard / loiter AI processes","NPCActionProcess_Create; NPCActionProcess_RunNoop; NPCActionProcess_Destroy; NPCActionProcess_VtableSlot10Noop; StandProcess_Run; StandProcess_Destroy; PaceProcess_CreateProcess; PaceProcess_Run; PaceProcess_Destroy; SurrenderProcess_CreateProcess; SurrenderProcess_Destroy; SurrenderProcess_Run; GuardProcess_CreateProcess; GuardProcess_Run; GuardProcess_Destroy; LoiterProcess_CreateProcess; LoiterProcess_Run; LoiterProcess_Destroy; LoiterProcess_VtableSlot10DispatchByShapeIfAlive; NPC_DoRandomIdleAnimTwiceIfNotBusy","The live AI-process lane now has owner-first Remorse class lifting in addition to run ownership, slot-1 destructor ownership, and the local slot-10 helper split. The remaining uncertainty in this immediate window is mostly higher-level behavior-policy meaning and whether the family is ready for a safe provisional datatype, especially what the slot-10/slot-11 transitions represent semantically beyond the now-named local function objects.","plan-mid.md; docs/function-knowledge-roadmap.md; docs/npc-action-process-class-layout.md" "33","code","0x65000","0x10D7","Partial","NPC action / stand / pace / surrender / guard / loiter AI processes","NPCActionProcess_Create; NPCActionProcess_RunNoop; NPCActionProcess_Destroy; NPCActionProcess_VtableSlot10Noop; StandProcess_Run; StandProcess_Destroy; PaceProcess_CreateProcess; PaceProcess_Run; PaceProcess_Destroy; SurrenderProcess_CreateProcess; SurrenderProcess_Destroy; SurrenderProcess_Run; GuardProcess_CreateProcess; GuardProcess_Run; GuardProcess_Destroy; LoiterProcess_CreateProcess; LoiterProcess_Run; LoiterProcess_Destroy; LoiterProcess_VtableSlot10DispatchByShapeIfAlive; NPC_DoRandomIdleAnimTwiceIfNotBusy","The live AI-process lane now has owner-first Remorse class lifting in addition to run ownership, slot-1 destructor ownership, and the local slot-10 helper split. The remaining uncertainty in this immediate window is mostly higher-level behavior-policy meaning and whether the family is ready for a safe provisional datatype, especially what the slot-10/slot-11 transitions represent semantically beyond the now-named local function objects.","plan-mid.md; docs/function-knowledge-roadmap.md; docs/npc-action-process-class-layout.md"
@ -137,10 +137,10 @@
"136","code","0xD7600","0x5BD","Partial","Shared active dispatch-entry owner and hold-state controller","active_dispatch_entry_mark_enabled; active_dispatch_entry_mark_disabled; active_dispatch_entry_create_default","The shared active entry is now tied to the seg126 DS:0x6341 transition-animation path and to the shared 0x31a2 break/hold depth; current evidence also separates its borrowed +0x40 presentation hold token from the seg108-local 0x4f38 bit-0x40 lane, but the exact higher-level transition/callback subsystem name is still unresolved","crusader_decompilation_notes.md; plan-mid.md" "136","code","0xD7600","0x5BD","Partial","Shared active dispatch-entry owner and hold-state controller","active_dispatch_entry_mark_enabled; active_dispatch_entry_mark_disabled; active_dispatch_entry_create_default","The shared active entry is now tied to the seg126 DS:0x6341 transition-animation path and to the shared 0x31a2 break/hold depth; current evidence also separates its borrowed +0x40 presentation hold token from the seg108-local 0x4f38 bit-0x40 lane, but the exact higher-level transition/callback subsystem name is still unresolved","crusader_decompilation_notes.md; plan-mid.md"
"137","code","0xD7E00","0xFBB","Partial","Palette and dispatch-entry emission helper family","entity_dispatch_entry_init_runtime_state; entity_dispatch_entry_release_runtime_state; vga_palette_set_all_black; vga_palette_set_all_white; vga_palette_set_all_rgb; dispatch_entry_create_black_palette_state_active; dispatch_entry_create_grayscale_palette_state_active; dispatch_entry_create_solid_palette_state_active","Higher-level event/script meaning is still unresolved, especially the paired 0x68bf object and the exact role of the 0004:5ad4-5b6e caller sequence","crusader_decompilation_notes.md; plan-mid.md" "137","code","0xD7E00","0xFBB","Partial","Palette and dispatch-entry emission helper family","entity_dispatch_entry_init_runtime_state; entity_dispatch_entry_release_runtime_state; vga_palette_set_all_black; vga_palette_set_all_white; vga_palette_set_all_rgb; dispatch_entry_create_black_palette_state_active; dispatch_entry_create_grayscale_palette_state_active; dispatch_entry_create_solid_palette_state_active","Higher-level event/script meaning is still unresolved, especially the paired 0x68bf object and the exact role of the 0004:5ad4-5b6e caller sequence","crusader_decompilation_notes.md; plan-mid.md"
"138","code","0xD9200","0x32E4","Partial","Entity cleanup/finalize with callback, watch-controller release, and dispatch-entry palette emission","entity_cleanup_resources_and_dispatch; sprite_redraw_global_if_active; FUN_000d_938c","Concrete callback-object subsystem naming is still unresolved, but this lane now has verified caller-side control of watch/controller state at 0x2bd8, uses the shared active-dispatch byte +0x40 as a borrowed presentation hold token rather than a local owner install, and emits two distinct 0x4588 payload pairs (entity +0x12d/+0x12f and +0x74f/+0x751) in addition to the palette-emission helpers","crusader_decompilation_notes.md; plan-mid.md" "138","code","0xD9200","0x32E4","Partial","Entity cleanup/finalize with callback, watch-controller release, and dispatch-entry palette emission","entity_cleanup_resources_and_dispatch; sprite_redraw_global_if_active; FUN_000d_938c","Concrete callback-object subsystem naming is still unresolved, but this lane now has verified caller-side control of watch/controller state at 0x2bd8, uses the shared active-dispatch byte +0x40 as a borrowed presentation hold token rather than a local owner install, and emits two distinct 0x4588 payload pairs (entity +0x12d/+0x12f and +0x74f/+0x751) in addition to the palette-emission helpers","crusader_decompilation_notes.md; plan-mid.md"
"139","code","0xDCC00","0x984","None","","","","crusader_ne_segments.csv" "139","code","0xDCC00","0x984","Partial","Item SFX data cleanup and no-op method","Sound_FreeItemSfxData_1450_00ec; NoOpMethod_1450_074b","The global item-SFX data owner and the no-op method's higher-level role remain unverified","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"140","code","0xDD800","0xC6F","None","","","","crusader_ne_segments.csv" "140","code","0xDD800","0xC6F","Partial","Viewport RLE bitmap drawing and callback forwarding","VPort_DrawRleBitmapRows_1458_04b0; VPort_DrawRleBitmapRowsWithSkip_1458_09d4; Callback_ForwardToSlot009d_1458_0b1c; Callback_ForwardToSlot00a5_1458_0bc1","No direct callers were recovered for these functions; the higher-level drawing and callback roles remain structural","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"141","code","0xDE600","0x2B","None","","","Short stub-sized segment","crusader_ne_segments.csv" "141","code","0xDE600","0x2B","Partial","MSB-first packed-stream bit extraction","ExtractBitsMSBFirst_1460_0000","Used by the 1468 video decoders; the wider packed-video format remains only partially characterized","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"142","code","0xDE800","0x4371","None","","","","crusader_ne_segments.csv" "142","code","0xDE800","0x4371","Partial","Video playback, packed-row decoding, palette, and display lifecycle","VideoPlayer_DecodePackedRowsToWords_1468_04f9; VideoPlayer_DecodePackedRowsToDwords_1468_0995; VideoPlayer_DecodePackedRowsToBytes_1468_0e51; VideoPlayer_DecodePackedRowsToWords_1468_12fe; VideoPlayer_UpdateTimedMessage_1468_1da1; VideoPlayer_BuildFadePalette_1468_354a; VideoPlayer_StopAndDestroy_1468_3d36; VideoPlayer_ReleasePlaybackResources_1468_3d7a","The compressed-frame format and some callback contracts remain partially inferred; no exact auto-names remain in this segment","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"143","code","0xE3400","0x6F5","None","","","","crusader_ne_segments.csv" "143","code","0xE3400","0x6F5","Partial","Video subtitle file loading, parsing, and timed-record access","VideoSubtitle_InitAndLoad_1470_005e; VideoSubtitle_ParseFile_1470_0239; VideoSubtitle_GetNextTimedRecord_1470_01ef; VideoSubtitle_ParseFrameTag_1470_05cc","The subtitle record format is behaviorally traced but not fully documented; no exact auto-names remain in this segment","crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md"
"144","data","0xE3C00","0x8DBC","None","","","Large data segment not yet classified","crusader_ne_segments.csv" "144","data","0xE3C00","0x8DBC","None","","","Large data segment not yet classified","crusader_ne_segments.csv"
"145","data","0x0","0x0","None","","","Zero-length data segment placeholder","crusader_ne_segments.csv" "145","data","0x0","0x0","None","","","Zero-length data segment placeholder","crusader_ne_segments.csv"
1 Segment Type FileOffset Length CoverageStatus KnownSubsystem KeyNamedFunctions Blockers NotesSource
2 1 code 0x37600 0x8400 Deep Gameplay cursor/input/projectiles cursor_update_hover; entity_fire_weapon; projectile_update_tick Broader gameplay subsystem still spans adjacent segments crusader_decompilation_notes.md; plan-mid.md
3 2 code 0x40000 0x2B0 None Partial Resource image records, viewport row loading, and palette conversion resource_image_record_allocate_and_load_1008_0032; resource_image_record_open_and_read_1008_0098; resource_image_read_rows_into_vport_1008_0167; resource_palette_rgb_to_vga6_1008_01eb; resource_palette_triplet_alloc_callback_1008_028c All five functions in this short segment are identified; the complete resource-record schema and broader file-loader ownership remain partially characterized crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
4 3 code 0x40400 0x55A None Partial Tile area search and solid/damage overlap AreaSearch_FindItemAtWorldPosition_1010_0032; AreaSearch_FindItemAtTilePosition_1010_0061; AreaSearch_FindItemInTileRect_1010_007d; Item_CheckSolidDamageOverlap_1010_02de The four documented helpers have no exact auto-names remaining; broader area-search and overlap call paths are not fully characterized crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
5 4 code 0x40A00 0x10B1 Foothold Partial Reset/cache entry path Configuration file loading and option persistence runtime_cache_reset_sequence LoadConfigFile; SaveOptionsToConfigFile ASYLUM.24 and downstream reset callers still need tighter classification Loader validation and malformed/unknown-option behavior remain incompletely characterized crusader_decompilation_notes.md; plan-mid.md crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
6 5 code 0x41E00 0x8D7 Partial Startup/display transition prepare/driver lane startup_display_transition_prepare; startup_display_transition_driver The two main seg005 bodies are now named and tied to caller-side validation through vtable +0x0c, the seg108 0x4f38 sprite/object helper lane, the shared active-dispatch hold byte at 0x6828, the seg049 watch/controller lane at 0x2bd8, and the seg126 follow-up path; the exact higher-level state label is still unresolved crusader_decompilation_notes.md; plan-mid.md
7 6 code 0x42C00 0x75E Foothold Partial Gameplay-side masked materializer and local state/value selector lane Gamepal Xformpal palette resources and greyscale fade processes entity_vm_context_try_create_mask_0008_slot30_with_offset; entity_vm_context_try_create_mask_0010_slot08_with_offset_if_ready Gamepal_Init; Gamepal_InitXformpalDatStruct; Gamepal_LoadXformpalDat; Gamepal_ReadXformpal_1028_0348; Gamepal_ReleaseXformpalResources_1028_02dc; Palette_FadeToGreyscale; FadeProcess_Create_2; FadeProcess1_Run_PausesCycle; FadeProcess2_Run Outer callers for the renamed seg006 helpers are still unresolved, and the higher-level gameplay subsystem owning the local state-selector and adjacent class-linked value family still needs caller-side recovery Xformpal data parsing/resource ownership and fade-process scheduling are not fully traced in the active CRUSADER.EXE; prior gameplay-side helper evidence is from raw segment 0006, not this live selector plan-mid.md; docs/raw-0008-000c.md crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md; docs/raw-0008-000c.md
8 7 code 0x43600 0x484 None Partial Animation-process render-state publication AnimProcess_BeginRenderStateUpdate_1030_02a5; AnimProcess_CommitRenderStateAndClearFlag_1030_02b2 The remaining process creation, dispatch, timer, and lifecycle routines need behavioral characterization crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
9 8 code 0x43C00 0x1386 None Partial Item collision masks and gravity-process movement AreaSearch_CheckCollision (1038:0000 wrapper; 1038:0072 core); GravityProcess_CreateProcess; GravityProcess_Finish_1038_04bc; GravityProcess_Run; GravityProcess_CheckDownwardSweep_1038_1131; GravityProcess_FastAreaCleanup; Item_Hurl; Item_Fall Full GravityProcess_Run state transitions and caller-side interpretation of the collision mask remain open crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
10 9 code 0x45400 0x495 None Partial DOS extender calls and gravity trajectory helpers DosExtenderCallInterrupt_1040_0000; DosExtenderCallInterrupt_1040_0035; DosExtenderCallInterrupt_1040_0041; DosExtenderCallInterrupt_1040_005a; Runtime_InitializeCommandLineAndRunLoop_1040_0079; Item_BuildHurlTrajectoryParams_1040_00a6; Item_HurlWithParams; Ensure_GravityProcess; Filespec_CopyCandidateIfExists_1040_039e; dos_free_disk_space INT 21h/2Fh service/register contracts and caller-side purpose of the gravity-proximity helper are unresolved crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
11 10 code 0x45A00 0xD92 None Partial Game initialization, teardown, and command-line handling Init_Everything; Uninitialize; HandleCommandlineArgs; Runtime_InitializeAndHandleCommandLine_1048_01dc; Runtime_DrawStartupBanner_1048_025b Subsystem initialization/teardown dependencies and the remaining helper/config-dispatch behavior need closer characterization crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
12 11 code 0x46E00 0x5B1 None Partial Savegame slot metadata, quick-save, and restore Savegame_Init; Savegame_GetFilename; Savegame_QuickSave; Savegame_LoadProbably; SavegameSlot_GetLabelPtr; SavegameSlot_SetLabel; File_CloseAndMaybeFree Save-file schema/versioning and malformed-file or partial-load behavior remain open crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
13 12 code 0x47600 0x94B None crusader_ne_segments.csv
14 13 code 0x48200 0x1F6C None crusader_ne_segments.csv
15 14 code 0x4AA00 0x526 None crusader_ne_segments.csv
28 27 code 0x5B400 0x57B None crusader_ne_segments.csv
29 28 code 0x5BA00 0x788 None crusader_ne_segments.csv
30 29 code 0x5C400 0x190A Partial Area-search collision move and step-aware sweep helper lane AreaSearch_CollideMove; AreaSearch_SweepShapeBetweenPoints; AreaSearch_SweepItemToPointWithStepUp; AreaSearch_SweepShapeBetweenPointsWithStepUp Current direct callers are still all movement/collision-side and the remaining gap is the earlier policy layer deciding when those paths instantiate the 0x236 queue or whether any non-collision lane feeds it plan-mid.md; docs/ne-hole-filling-priorities.md; docs/raw-0008-000c.md
31 30 code 0x5E000 0x5071 None Partial Process embedded EntityDispatchEntry destructor-copy cluster Process_DestroyEmbeddedDispatchEntries; Process_DestroyEmbeddedDispatchEntries_10e8_41e3; Process_DestroyEmbeddedDispatchEntries_10e8_4744 28 exact FUN_ candidates remain; owning Process class/role and callers unresolved crusader_ne_segments.csv docs/crusader-exe-function-identification-map.md
32 31 code 0x64000 0x6EE Partial StorageDataProcess queue create/run/release helpers StorageDataProcess_Create; StorageDataProcess_Run; StorageDataProcess_Release; StorageDataProcess_RunAndTerminateProcs; storage_process_ref_list_create; storage_process_ref_list_append; storage_process_ref_list_terminate_item_matches; storage_process_ref_list_destroy Still needs caller-side recovery beyond the verified collision producer and any stronger subsystem naming than the local hit/got-hit storage queue plan-mid.md; docs/ne-hole-filling-priorities.md; docs/raw-0008-000c.md
33 32 code 0x64800 0x56A Foothold Item type / typename.dat loader helpers ItemType_Init; ItemType_LoadTypeflagDat; ItemType_Load_TypenameDat; ItemType_GetTypenameRecordPtrAtIndex; ItemType_FindTypenameRecordIndex; Item_GetShapeFamilyOfShape The segment is now clearly an item-type helper lane. The remaining gap is not local contract recovery but broader caller-side integration and any later higher-level item-family helpers that still sit outside this small loader-focused window. plan-mid.md; docs/function-knowledge-roadmap.md
34 33 code 0x65000 0x10D7 Partial NPC action / stand / pace / surrender / guard / loiter AI processes NPCActionProcess_Create; NPCActionProcess_RunNoop; NPCActionProcess_Destroy; NPCActionProcess_VtableSlot10Noop; StandProcess_Run; StandProcess_Destroy; PaceProcess_CreateProcess; PaceProcess_Run; PaceProcess_Destroy; SurrenderProcess_CreateProcess; SurrenderProcess_Destroy; SurrenderProcess_Run; GuardProcess_CreateProcess; GuardProcess_Run; GuardProcess_Destroy; LoiterProcess_CreateProcess; LoiterProcess_Run; LoiterProcess_Destroy; LoiterProcess_VtableSlot10DispatchByShapeIfAlive; NPC_DoRandomIdleAnimTwiceIfNotBusy The live AI-process lane now has owner-first Remorse class lifting in addition to run ownership, slot-1 destructor ownership, and the local slot-10 helper split. The remaining uncertainty in this immediate window is mostly higher-level behavior-policy meaning and whether the family is ready for a safe provisional datatype, especially what the slot-10/slot-11 transitions represent semantically beyond the now-named local function objects. plan-mid.md; docs/function-knowledge-roadmap.md; docs/npc-action-process-class-layout.md
137 136 code 0xD7600 0x5BD Partial Shared active dispatch-entry owner and hold-state controller active_dispatch_entry_mark_enabled; active_dispatch_entry_mark_disabled; active_dispatch_entry_create_default The shared active entry is now tied to the seg126 DS:0x6341 transition-animation path and to the shared 0x31a2 break/hold depth; current evidence also separates its borrowed +0x40 presentation hold token from the seg108-local 0x4f38 bit-0x40 lane, but the exact higher-level transition/callback subsystem name is still unresolved crusader_decompilation_notes.md; plan-mid.md
138 137 code 0xD7E00 0xFBB Partial Palette and dispatch-entry emission helper family entity_dispatch_entry_init_runtime_state; entity_dispatch_entry_release_runtime_state; vga_palette_set_all_black; vga_palette_set_all_white; vga_palette_set_all_rgb; dispatch_entry_create_black_palette_state_active; dispatch_entry_create_grayscale_palette_state_active; dispatch_entry_create_solid_palette_state_active Higher-level event/script meaning is still unresolved, especially the paired 0x68bf object and the exact role of the 0004:5ad4-5b6e caller sequence crusader_decompilation_notes.md; plan-mid.md
139 138 code 0xD9200 0x32E4 Partial Entity cleanup/finalize with callback, watch-controller release, and dispatch-entry palette emission entity_cleanup_resources_and_dispatch; sprite_redraw_global_if_active; FUN_000d_938c Concrete callback-object subsystem naming is still unresolved, but this lane now has verified caller-side control of watch/controller state at 0x2bd8, uses the shared active-dispatch byte +0x40 as a borrowed presentation hold token rather than a local owner install, and emits two distinct 0x4588 payload pairs (entity +0x12d/+0x12f and +0x74f/+0x751) in addition to the palette-emission helpers crusader_decompilation_notes.md; plan-mid.md
140 139 code 0xDCC00 0x984 None Partial Item SFX data cleanup and no-op method Sound_FreeItemSfxData_1450_00ec; NoOpMethod_1450_074b The global item-SFX data owner and the no-op method's higher-level role remain unverified crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
141 140 code 0xDD800 0xC6F None Partial Viewport RLE bitmap drawing and callback forwarding VPort_DrawRleBitmapRows_1458_04b0; VPort_DrawRleBitmapRowsWithSkip_1458_09d4; Callback_ForwardToSlot009d_1458_0b1c; Callback_ForwardToSlot00a5_1458_0bc1 No direct callers were recovered for these functions; the higher-level drawing and callback roles remain structural crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
142 141 code 0xDE600 0x2B None Partial MSB-first packed-stream bit extraction ExtractBitsMSBFirst_1460_0000 Short stub-sized segment Used by the 1468 video decoders; the wider packed-video format remains only partially characterized crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
143 142 code 0xDE800 0x4371 None Partial Video playback, packed-row decoding, palette, and display lifecycle VideoPlayer_DecodePackedRowsToWords_1468_04f9; VideoPlayer_DecodePackedRowsToDwords_1468_0995; VideoPlayer_DecodePackedRowsToBytes_1468_0e51; VideoPlayer_DecodePackedRowsToWords_1468_12fe; VideoPlayer_UpdateTimedMessage_1468_1da1; VideoPlayer_BuildFadePalette_1468_354a; VideoPlayer_StopAndDestroy_1468_3d36; VideoPlayer_ReleasePlaybackResources_1468_3d7a The compressed-frame format and some callback contracts remain partially inferred; no exact auto-names remain in this segment crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
144 143 code 0xE3400 0x6F5 None Partial Video subtitle file loading, parsing, and timed-record access VideoSubtitle_InitAndLoad_1470_005e; VideoSubtitle_ParseFile_1470_0239; VideoSubtitle_GetNextTimedRecord_1470_01ef; VideoSubtitle_ParseFrameTag_1470_05cc The subtitle record format is behaviorally traced but not fully documented; no exact auto-names remain in this segment crusader_ne_segments.csv crusader_ne_segments.csv; docs/crusader-exe-function-identification-map.md
145 144 data 0xE3C00 0x8DBC None Large data segment not yet classified crusader_ne_segments.csv
146 145 data 0x0 0x0 None Zero-length data segment placeholder crusader_ne_segments.csv

217
docs/REA/ghidra-dos.md Normal file
View file

@ -0,0 +1,217 @@
# DOS MZ and COM analysis with Ghidra
REA can analyze DOS MZ executables and explicitly selected COM images through the bring-your-own Ghidra adapter.
The Linux x64 and macOS arm64 verification lanes exercise actual 16-bit disassembly and
decompilation through the CLI and stdio MCP. Provider admission accepts Ghidra
12.1.x and that installation's declared JDK range. The verification lane uses
Ghidra 12.1.4 and JDK 21; no DOS emulator or cross-compiler is required.
## Open and inspect
```bash
rea inspect /absolute/path/to/legacy.exe --provider ghidra --json
rea search /absolute/path/to/legacy.exe entry --kind procedures --provider ghidra --json
rea instructions /absolute/path/to/legacy.exe entry --provider ghidra --json
rea function /absolute/path/to/legacy.exe entry --provider ghidra --json
rea inspect-native-load-image /absolute/path/to/legacy.exe --provider ghidra --json
rea read-bytes /absolute/path/to/legacy.exe 0x10000 --length 16 --provider ghidra --json
rea address-to-file-offset /absolute/path/to/legacy.exe 0x10000 --provider ghidra --json
```
Use an observed procedure name or address from discovery when the target does
not name its entry function `entry`. MCP uses `open_binary`, `list_procedures`,
`procedure_info`, `read_function_instructions`, and `analyze_function` with the
same admitted target and provider semantics.
The classifier validates MZ page counts, initialized module length, header and
relocation-table bounds, relocation destinations, and the initialized entry
point. It distinguishes DOS load-module and relocation bytes from the Windows
new-header field. PE remains PE; NE, LE, and LX declarations are explicitly
unsupported. A damaged declared Windows header does not silently become DOS.
Inventory classification returns `unknown` when its bounded prefix cannot
establish the format; this is distinct from the complete target admission check.
Ghidra imports a private target snapshot with `MzLoader`, language
`x86:LE:16:Real Mode`, and compiler specification `default`. These settings,
the fixed Ghidra load segment `0x1000`, and the linear address convention are
committed in the analysis profile. The handshake rejects language or compiler
drift. Closing the session deletes the temporary project and snapshot.
The profile also commits `function_body_evidence: complete-inclusive-ranges-v1`,
so snapshots from older length-only Ghidra results do not satisfy the current
profile.
## Headerless COM images
COM has no identifying header. Select its interpretation explicitly; neither the
`.com` suffix nor arbitrary unrecognized bytes are enough to admit it.
```bash
rea inspect /absolute/path/to/legacy.com --target-format dos-com --provider ghidra --json
rea function /absolute/path/to/legacy.com 0x10100 --target-format dos-com --provider ghidra --json
rea inspect-native-load-image /absolute/path/to/legacy.com --target-format dos-com --provider ghidra --json
```
```json
{
"name": "open_binary",
"arguments": {
"path": "/absolute/path/to/legacy.com",
"format": "dos-com",
"provider_id": "ghidra"
}
}
```
The caller's interpretation applies to the complete file, even if its filename
suggests another format. Files must contain 1..65280 bytes: the 64 KiB COM segment
minus the 256-byte PSP prefix. Ghidra uses `BinaryLoader` with real-mode language
and maps file offset zero at `1000:0100` (linear `0x10100`). A packaged pre-analysis
script seeds the entry function and CS/DS/ES/SS context `0x1000`. These settings
and the preparation policy are committed in the analysis profile; a failed
preparation prevents the resident bridge from serving results.
Load-image verification checks all original and modified file bytes, complete
source mapping/memory digests, absence of relocations, entry and measured register
context. The context is imposed for analysis, not observed from execution. PSP
memory, initial stack contents/SP, DOS interrupts and PC-98 devices are not
modeled. COM has no MZ header, relocation table or appended-overlay model; all
selected bytes belong to its analysis module. The original file stays unchanged.
## Addresses and function extent
Returned default-space addresses are linear byte coordinates. A Ghidra
segment:offset address has linear value `segment * 16 + offset`; multiple
segment aliases can identify the same byte. REA accepts the returned linear
address for subsequent lookups and leaves instruction decoding context with
Ghidra. These coordinates are analysis load addresses, not file offsets or
observations of a running DOS system.
Offsets that Ghidra would truncate to a different address are rejected before
reading or annotating a function. This also applies to explicit or encoded
address-space names; leading zeros preserve the numeric offset.
`procedure_info` and function dossiers include `body` evidence:
```json
{
"available": true,
"provenance": "ghidra-function-body-address-set",
"ranges": [
{ "start": "0x10000", "end": "0x1000d" },
{ "start": "0x10060", "end": "0x10065" }
],
"total_bytes": 20,
"span_bytes": 102,
"non_contiguous": true,
"contains_entry": true
}
```
Each end is **inclusive**. `total_bytes` counts the complete observed
AddressSet; `span_bytes` measures its enclosing span and is null across address
spaces. Gaps and shared tails must not be treated as owned bytes. This is
Ghidra's database observation, not a proof of original source ownership or
exhaustive code discovery. Providers that do not report complete ranges return
`available: false` and an explicit reason.
## Loaded-image evidence
`inspect_native_load_image` independently checks the immutable session snapshot
against the loaded Ghidra Program. It measures complete original and modified
FileBytes digests, every source mapping and its memory digest, relocation records
(including multiplicity), and external entry points. It verifies MZ header and
module partitions, relocation fixups and linear coordinates rather than relying
on the imported executable SHA alone.
The result is `verified`, `mismatch`, or `unsupported`. Every check retains its
expected and observed values. A memory-digest mismatch identifies the source
range's file offset and analysis address; it does not locate the first differing
byte inside that range. Mapping ends are **inclusive**, unlike the exclusive ends
from `list_segments`. Appended overlays remain in source-file identity and are
excluded from initialized module coverage. Uninitialized allocations are reported;
their contents and DOS runtime semantics are not verified. Formats other than MZ and explicit COM return
`unsupported` with measured observations, not a successful MZ verification.
`read_bytes` returns initialized provider memory, including loader fixups; an
unmapped or uninitialized byte ends the read with an explicit returned length and
`complete: false`. `address_to_file_offset` uses the provider's source mapping;
unmapped, uninitialized and ambiguous mappings fail explicitly. A relocated word
can differ from the original file word even when its source offset is known.
## Coverage boundaries
Static decompilation does not execute the target or emulate BIOS, DOS
interrupts, device ports, or self-modifying code. PC-98 hardware behavior and
recovered calling conventions can remain uncertain; provider pseudocode and
diagnostics are retained for analyst review.
For a packed executable, importing the original can analyze its unpacking
stub. Analyze a separately prepared unpacked copy to inspect the original
program's recovered code. Retain both artifact digests and the transformation
evidence; REA never silently replaces the admitted target. Appended overlays
are separate from the initialized MZ module. Raw COM files and DOS extenders
without an admitted MZ real-mode entry are outside this import boundary.
DOS MZ is available through Ghidra, with no Hopper support claim. It is outside
the Windows native PE P0 boundary. macOS x64 DOS verification remains unverified.
## Real verification
```bash
npm run verify:ghidra:dos
```
The lane generates a small public fixture from source at runtime. It verifies
16-bit instruction bytes, a near call, a segment-relocated far call, actual
decompilation, disjoint function ranges, stable CLI/MCP observations, unchanged
input bytes, and session/process cleanup. It does not require external
executable fixtures, an emulator, or an existing analysis database.
Provider p-code representations can contain process-specific address-space selector
tokens. The lane preserves those reported values and compares stable dossier
observations rather than asserting cross-process identity of raw p-code.
## Local Verification (2026-10-10)
The connected VS Code MCP server identified itself as `rea-agents` 6.3.0, loaded
from `C:\Users\Maddo\AppData\Local\npm-cache\_npx\ec0ab2283efe73f6\node_modules\rea-agents`.
The session had no active binary when checked. The REA tool catalog exposed
native binary opening, procedure listing, function analysis, and loaded-image
inspection.
| Check | Result |
|---|---|
| Requested Ghidra installation | `I:\Apps\ghidra_12.1.4_PUBLIC` exists and contains `ghidraRun.bat` and `support\analyzeHeadless.bat`. Its `Ghidra\application.properties` reports Ghidra 12.1.4 and Java minimum 21; the maximum is unspecified. |
| Requested JDK | `C:\Program Files\Microsoft\jdk-25.0.3.9-hotspot\bin\java.exe` exists and reports Microsoft OpenJDK 25.0.3. |
| Ghidra headless startup | With both `JAVA_HOME` and `GHIDRA_JAVA_HOME` set to that JDK, `analyzeHeadless.bat -help` printed usage, then exited with code 1. Startup also reported an invalid manifest in the user `GhidraMCP` extension (`GHIDRA_MODULE_NAME` and `GHIDRA_MODULE_DESC` were rejected). This is evidence of launcher startup, not a successful analysis run; whether that extension warning affects the REA provider is unknown. |
| REA open of Crusader | `open_binary` with provider `ghidra` rejected `K:\ghidra\Crusader_Decomp\CRUSADER.EXE` as `unsupported NE executable in MZ image`. The file is 991,878 bytes. Rejection occurred before Ghidra analysis, so no Crusader functions, strings, or loaded-image checks were produced by REA. |
| REA end-to-end Ghidra analysis | Not verified. The installed npm package lists a `verify:ghidra:dos` command but does not include its referenced `scripts/verify-real-ghidra-dos.mjs` test runner; no DOS MZ/COM fixture was found in the workspace search. Antivirus blocked generation of a temporary MZ smoke-test image. |
The installed Ghidra/JDK pair is present, and the Ghidra headless launcher reached
its command-line usage path under JDK 25. That does **not** prove the REA provider
is configured to use these exact installations or that it can analyze Crusader.
The observed target-format rejection agrees with the provider boundary above:
the DOS workflow accepts validated MZ and explicitly selected COM images, not
NE. For the current Crusader executable, REA cannot replace the existing NE
Ghidra workflow. A future REA NE provider or a separately justified conversion
would be required before this MCP can analyze the game executable.
## Function annotations
`annotate_native_function` changes the name and/or comments at one exact local function entry, verifies readback, and returns a refreshed dossier. This is useful when recording recovered DOS function roles; it does not claim original-source names. Name writes preserve the existing namespace; readback returns the fully qualified name used by function inventories. Regular comments map to Ghidra PRE comments and inline comments to EOL comments. Empty text clears a comment; omitted fields preserve it. The whole edit rolls back if a setter, readback or analysis fails.
```json
{
"procedure": "0x10100",
"name": "entry",
"comment": "Recovered startup role",
"inline_comment": "Inspect segment setup"
}
```
```bash
rea annotate-native-function /local/program.com 0x10100 --target-format dos-com --provider ghidra --name entry --comment 'Recovered startup role' --json
```
The CLI returns the updated analysis before closing its isolated session. MCP edits remain visible to later reads until `close_binary`. Original bytes remain unchanged, database edits are discarded on close, and immutable analysis snapshots are invalidated after edits. This operation does not save a Ghidra project, change ABI/types/body ranges, patch instructions, or emulate a DOS runtime. Windows P0 does not admit it.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,94 @@
# Japanese No Remorse Windows Modding Feasibility
## Executive Assessment
The Japanese No Remorse release is a credible base for a **separate Windows-native mod target**, especially for data and script experiments. It is not a drop-in replacement for Western DOS retail, and executable patches or data should not be shared across those builds without validation.
| Question | Assessment | Main boundary |
|---|---|---|
| Use JP as a modding base | **Feasible with a version-specific toolchain** | JP has a native Win32 executable and a substantial data set, but maps and scripts are not interchangeable with Western retail by default. Rebuilt assets have not yet been proven in-game. |
| Launch natively on Windows 10/11 | **Plausible; runtime proof needed** | The game is a Win32 PE and does not require DOSBox by architecture. DirectDraw, DirectSound, display, and configuration behavior still need testing on current Windows. |
| Reuse Western retail decompilation or patches | **Low without translation and validation** | JP is a flat Win32 implementation; Western retail is a Phar Lap protected-mode MZ/NE executable. Addresses, ABI, loader, and some runtime behavior differ. |
| Use JP as a cross-reference | **Useful selectively** | Shared data and behavior can corroborate hypotheses, but JP-specific interpreter/debugger behavior must be checked per build. |
Track JP as its own target profile: separate executable fingerprint, asset manifest, USECODE assumptions, patch format, and Windows launch tests. Keep Western DOS/NE retail as a separate target for existing patches and DOSBox workflows.
## Established Evidence
The prior [Win9x investigation](jp-remorse-windows9x-investigation.md) found that JP is a PE-style Win32 application loaded at `0x00400000`, with Windows startup/window creation, registry-backed configuration, DirectDraw/DirectSound initialization, and a `GetVersion`/TLS branch for Win9x behavior. This strongly supports an intended native Windows 9x path. It does not certify runtime behavior on Windows 95, nor Windows 10/11 compatibility.
The active `/ja/CRUSADER.EXE` Ghidra program was also queried for `004459b0` (`video_init_directdraw_and_directsound`). It calls `DirectDrawCreate`, sets the display mode to `0x280 x 0x1e0` (640x480), creates a palette and primary surface, and initializes DirectSound. Its decompilation is still imperfect: the flat Win32 function has a `ulonglong __fastcall` signature, `undefined4` parameters, synthetic `extraout_ECX` values, and calls through interface-vtable offsets. This is a useful concrete example of both the clearer Windows API boundary and the remaining decompiler cleanup.
The local JP assets and renderer evidence establish substantial shared format support, not drop-in data identity:
- Retail, 1.01, and JP expose the same 63 detected maps, and the map viewer exports JP scenes.
- Every shared JP/Western-retail map differs in the normalized exported scene payload. Similar top-line counts in sampled maps do not make the payloads identical.
- `COMBAT.DAT` is byte-identical across JP and the listed Western builds, showing that some gameplay data is exactly shared.
See [family export differences](versions/family-export-differences.md) and [COMBAT.DAT evidence](combat-dat.md). A successful map export proves the reader can inspect the format; it does not prove that a rebuilt archive loads in the original JP game.
## Feasibility As A Modding Base
### Good fits
- **JP-targeted map and asset work:** `STATIC_JP` contains a substantial game data set, including `FIXED.DAT` and major graphics/resource archives, and the viewer supports JP map exports. Keep JP inputs and outputs together and test edits in the JP executable.
- **Shared data:** files confirmed byte-identical, such as `COMBAT.DAT`, are candidates for shared tooling and cross-build tests. Matching filenames alone are not evidence of compatibility.
- **Windows-native experiments:** JP is a better host than DOS retail when the goal is to investigate the Windows API path or build a mod that avoids DOSBox.
- **Behavioral cross-reference:** JP can help explain shared game concepts, data structures, and services, but each conclusion should be checked against its intended target.
### Boundaries and risks
- **Not a Western-retail replacement:** JP map payloads differ, the local JP archive is named `JUSECODE.FLX`, and executable behavior is version-specific. Do not mix JP and Western fixed data or scripts without format and in-game validation.
- **USECODE compatibility is not established:** the JP interpreter dispatches opcodes `0x00..0x79`; `0x71` and `0x72` take an invalid-token path. Its `0x5b`/`0x5c` handlers also differ from the classic DOS hidden-debugger line/current-entry behavior. This is concrete reason not to assume Western compiled USECODE is a safe JP replacement. See [JP USECODE dispatch analysis](usecode-jp-dispatch-analysis.md) and [JP debugger investigation](jp-remorse-hidden-debugger-investigation.md).
- **Archive naming needs closure:** the JP executable contains an `eusecode.flx` string associated with its `-u` startup override, while the local static folder contains `JUSECODE.FLX`. The override helper does not establish the default JP archive lookup. Trace or runtime-test the default loader before renaming files or designing an override package. See [JP launch parameters](jp-remorse-cheats-and-launch-params.md).
- **Palette caveat:** the viewer currently falls back to Western `GAMEPAL.PAL` when the JP copy is absent. That is a renderer workaround, not proof the JP game expects or accepts that palette. See [version differences](versions/version-differences.md).
- **No known general plugin ABI:** native code changes need build-specific PE patching or a separately validated shim/injection mechanism. Existing NE patch definitions and relocation logic target the DOS executable and cannot be reused as-is.
- **Japanese integration matters:** the executable imports DBCS/code-page and IME APIs. Preserve the intended text/input environment during tests and distinguish localization failures from game logic failures.
**Modding verdict:** JP is reasonable for JP-targeted data mods and controlled binary experiments, provided executable and assets are fingerprinted as one profile. It is not yet a turnkey mod platform: the archive rebuild/load loop, JP USECODE round-trip/compiler path, and runtime acceptance of edited resources remain unproven. For Western retail mod support, retain the DOS/NE target and its existing [patch/data feasibility path](remorse-patching-mod-system-feasibility.md).
## Windows 10/11 Native Launch Feasibility
### Why direct launch is plausible
JP is already a Win32 executable, not a DOS program dependent on `RUN286`, Phar Lap, NE segment loading, or DOS interrupts. A 32-bit Win32 application can generally run on x64 Windows through WoW64, which is Windows' x86 compatibility layer, not DOSBox. The recovered imports include windowing, registry, file, timing, joystick, DirectDraw, and DirectSound APIs. The Win9x TLS branch handles a Win9x-specific allocation constraint; no blanket Windows NT rejection has been established.
This makes unmodified direct launch the right first experiment. It does not prove all legacy API behavior works on current Windows, or that the original installer runs on x64 Windows. The prior analysis did not identify the required DirectX/runtime prerequisites or test Windows 95 in a VM.
### Compatibility work, ordered by risk
1. **Test the unmodified executable first** on clean Windows 10 and 11 x64 systems with a complete JP data set, expected working directory, and writable game directory. Test the game separately from its installer. Record startup, menu/game entry, display mode, input, audio, config/save paths, and shutdown.
2. **Add a launch wrapper only for environment setup** if needed: establish the working directory, pass supported arguments, and capture diagnostics. Do not silently rewrite data paths or mix asset versions.
3. **Use compatibility settings or shims only for a reproduced failure.** Investigate legacy DirectDraw fullscreen/palette behavior, DirectSound initialization, display changes/Alt-Tab, registry assumptions, and writes beneath protected install directories. These are risks inferred from the API surface, not observed Windows 10/11 failures.
4. **Patch the PE only for a localized, repeatable failure.** Identify the exact version check or failing call first. The Win9x `GetVersion` branch alone is not a reason to patch version detection. Tie changes to an exact executable fingerprint and retest ordinary startup.
Current claim: **native Windows 10/11 support looks attainable and may work without a code patch, but is unverified.** If "native" means no DOSBox, the PE architecture is favorable. If it means no WoW64 or compatibility behavior on x64 Windows, that is not a realistic requirement for a 32-bit game.
## Decompilation And Reverse-Engineering Differences
| Surface | Japanese Windows build | Western retail build |
|---|---|---|
| Executable model | Flat Win32 PE image, reported at `0x00400000` | DOS MZ containing an NE image, with Phar Lap protected-mode loading |
| Addressing | Linear 32-bit addresses and PE imports/relocations | Segment:offset addresses, far calls, NE fixups, extender/runtime services |
| Platform boundary | Windows windowing, registry, DirectDraw/DirectSound, WinMM | DOS/extender, segmented memory, hardware/service calls, DOS-oriented paths |
| Decompiler friction | Win32 API behavior, flat pointers, Windows structures; still has ABI/type recovery work | 16-bit widths, near/far pointer provenance, segmented calls, loader fixups, uncertain conventions |
| Reuse value | Native Windows implementation and semantic parallels | Canonical target for current Western exports, ABI work, and NE patches |
These are distinct implementations, not two load formats for an interchangeable binary. JP addresses do not map to NE addresses by a constant offset. PE and NE relocations, pointer widths, calling conventions, and data layouts require independent recovery. JP decompilation is not a source drop-in for `exports/src_remorse`, and the Western NE patcher cannot patch the JP PE.
There is meaningful overlap at the behavior and data level: JP retains USECODE execution, familiar launch/cheat concepts, and shared assets such as `COMBAT.DAT`. But the JP debugger and opcode analyses show implementation differences. Use function comparisons to test specific hypotheses; do not infer source identity from matching names, strings, or file formats.
No complete function-by-function JP-versus-Western diff is claimed. Existing evidence is strongest for executable format, Windows integration, selected USECODE behavior, and resource/export differences. A broader code-equivalence map needs a dedicated comparison pass.
## Recommended Next Work
1. **Runtime gate:** launch the unmodified JP game on Windows 10 and 11 x64 from a writable copy; establish startup, menu/game entry, resolution, input, audio, config/save paths, and shutdown.
2. **Loader gate:** trace/test JP lookup for `FIXED.DAT`, `JUSECODE.FLX`, palette, and core assets. Resolve the `JUSECODE.FLX` versus `eusecode.flx` discrepancy before recommending overrides.
3. **Data-mod gate:** make one reversible JP map or asset edit, rebuild it, and prove the original executable loads it. Renderer export success is not this gate.
4. **USECODE gate:** establish a JP-compatible round-trip/compiler corpus and compare supported opcodes, intrinsics, class/event tables, and archive conventions before porting Western scripts.
5. **Patch gate:** fingerprint the JP PE and prototype one low-risk reversible patch only after launch behavior is known. Define PE-specific RVA/file-offset and relocation handling; do not reuse NE patch records.
6. **Cross-build gate:** maintain separate JP and Western retail test profiles, promoting only verified shared formats or behavior into common tooling.
## Evidence Boundary
This assessment combines the existing live-Ghidra JP Win9x, launch-parameter, debugger, and USECODE investigations with local version/resource comparisons, and directly inspected JP `video_init_directdraw_and_directsound` at `004459b0`. It does not claim a Windows 95/10/11 runtime pass, successful JP asset rebuild-and-load, or complete function-level equivalence. Those remain explicit validation gates.

View file

@ -0,0 +1,120 @@
# No Remorse Observer NPC Investigation
## Executive Read
No Remorse has a real NPC definition named `Observer`: DTABLE row `6` selects actor shape `0x033c` (`828`). The strongest evidence does not support a unique Observer-specific AI script. Instead, row 6 configures the normal native NPC activity system with a pacing activity and two `Attack5` defaults. The resulting behavior is a mobile actor that can transition into the shared attack process when its visibility/alert path fires.
The unusual part is the mismatch between that ordinary combat-capable runtime profile and the sparse presentation/content evidence: the Observer class has only one short event body, its current renderer preview deliberately avoids lower frames because they are blank or broken, and map records that resolve to Observer are often paired controller records rather than unambiguous actor spawns. "Unused" is therefore a plausible description of its encounter role, not a proven description of its executable/data status.
## Identity And Data
No Remorse `STATIC/DTABLE.FLX` contains row `6`:
| Field | Value | Meaning / evidence |
|---|---:|---|
| Name | `Observer` | DTABLE name object 2, row 6 |
| NPC row | `6` | Index used by the DTABLE-backed NPC creation path |
| Shape | `0x033c` (`828`) | Actor shape stored at NPCDat offset `0x3e` |
| HP range | `35-45` | Minimum/maximum HP at row offsets `0x00/0x02` |
| Weapon selectors | `1 / 2` | Words at offsets `0x18/0x1a`; these are data selectors, not proof of two simultaneously equipped weapons |
| Default activities | `3 / 5 / 5` | Words at offsets `0x1e`, `0x40`, and `0x42` |
The 142-byte NPCDat row and parallel 32-byte name row are loaded from FLEX objects 0 and 2. The layout is corroborated by the `NPCDat` reader and the local [NPC spawner investigation](map_renderer/npc-spawners.md). Native `NPC_SetDataFromDTable` (`10e8:0152`) reads a `0x8e`-byte row into a local buffer, equips a weapon using the row's `+0x18` selector when nonzero, and writes the three activity fields into the actor's `0x06/0x08/0x0a` activity slots.
Shape `0x033c` is an NPC because it is the shape in DTABLE row 6 and is referenced as Observer's actor shape by the spawn data. The map renderer's catalog currently labels it `Helper Geometry` and notes that its display name was derived from NPC self-shape comparison in USECODE; that catalog label is not evidence that the actor is scenery.
## Native AI
### Configured Activities
The activity values are named in the live No Remorse `CRUSADER.EXE` Ghidra database:
| DTABLE field | Value | Native activity | Effect when selected |
|---|---:|---|---|
| `0x06` / default activity 0 | `3` | `Pace` | Creates `PaceProcess` (`1100:0693`, run at `1100:0708`) |
| `0x08` / default activity 1 | `5` | `Attack5` | Creates the shared `AttackProcess` |
| `0x0a` / default activity 2 | `5` | `Attack5` | Same activity family; used by other callers that select activity field `0x0a` |
`NPC_StartNextNPCActivityBehaviorProcess` (`10e8:2cfa`) resolves special activity selectors for fields `0x06`, `0x08`, and `0x0a`, then applies common gates: the NPC must be alive, not the controlled actor, not suppressed by the relevant actor flag, and inside a fast area before an activity process is created. It records current/previous activity and avoids restarting an activity that is already current. `NPC_ResetForEgg` (`10d8:04b1`) is a confirmed creation path that loads/sets the three activity fields and starts the field-`0x06` activity. Exact authored `0x04d0` spawner pairs can also supply activity values through their paired records, so the DTABLE row is the baseline profile, not a guarantee that every map instance uses all three unmodified.
### Observer's Likely Runtime Loop
For an Observer whose initial field-`0x06` activity remains DTABLE value `3`, the expected loop is:
1. Start `PaceProcess`, rather than `GuardProcess` or `LoiterProcess`.
2. Before pacing, `PaceProcess::Run` calls `NPC_StartBehaviorInField0x8IfCanSeeControlledNPC` (`1100:026e`). That helper checks that the actor is entirely on screen, field `0x08` is nonzero, the current activity is not already the field-`0x08` activity, and the controlled NPC is visible.
3. If those checks pass, field `0x08` is selected. For Observer, that is `Attack5`, which creates the common attack process.
4. Otherwise, when not busy, `PaceProcess::Run` tries a walk animation in the actor's current direction. A successful walk clears its local failed-step count and waits for the animation. After a failed walk, it performs a stand/turn-around response and waits 60 ticks; after more than one failed step it requests another activity.
5. That blocked-movement fallback requests `Attack5` for ordinary shapes. The explicit surrender exceptions in the native branch are shapes `0x2f5`, `0x2f7`, `0x2f6`, `0x344`, and `0x597`; Observer shape `0x033c` is not in that list.
This makes Observer a pacing/roaming combat actor, not an inert lookout. However, this code does not prove that every Observer placement immediately sees or attacks the player: visibility, fast-area activation, busy state, and map-specific activity overrides all gate the transition.
`Attack5` is an activity/process selector, not a literal weapon or a complete behavior description. The resulting `AttackProcess` uses the actor's combat-tactic state and `COMBAT.DAT` machinery. The confirmed egg reset path initializes tactic number `0`; [the COMBAT.DAT analysis](combat-dat.md) records the shipped tactic 0 name `Dumb` and an unresolved compatibility detail around how tactic 0 is interpreted. Do not infer a precise firing pattern for every Observer spawn from the activity value alone. At difficulty level `4`, the native selector can randomly remap an `Attack5` request to `AttackA` (`10e8:2cfa`); this is shared NPC behavior, not an Observer-specific rule.
### No Bespoke Observer AI Script
The extracted `OBSERVER` class (`0x033c`) has no bodies for `setActivity`, `hit`, `gotHit`, `schedule`, `enterFastArea`, or the other common events. Its only non-empty common event is slot `0x0e`, `calledFromAnim`:
```text
set_info(0x021A, *(arg_06));
process_exclude();
return;
```
That is a short state/process callback, not a custom movement or combat routine. Compare the neighboring `GUARD` and `SCIENTIS` slot-`0x0e` bodies: both perform the same setup and additionally spawn `NPCDEATH.slot_20`. Observer's body does not. This is a real script difference, but it only proves that Observer omits that scripted callback; it does not prove that the engine has no native death handling.
The distinction between actor identity and controller identity matters here. Shape `0x04d0` uses the `MONSTER` class as a spawner/controller. Its `enterFastArea` body checks frame 0 and `mapNum & 8`, then launches `MONSTER.equip`; paired `ITEM.slot_2D` logic handles actor creation. Those `MONSTER` event bodies are not Observer's AI. See [the paired-spawner investigation](map_1_spawners_targeted_investigation.md) for the unresolved question of which member of some frame-0/frame-1 pairs supplies the final spawned NPC row.
## Comparison With Similar NPCs
All values below are from the No Remorse DTABLE rows; activity names are the native enum values.
| NPC row | Shape | HP | Weapon selectors `+0x18/+0x1a` | Activities `0x06/0x08/0x0a` | Main contrast |
|---|---:|---:|---:|---|---|
| Observer `6` | `0x033c` | `35-45` | `1 / 2` | `Pace / Attack5 / Attack5` | Baseline under investigation |
| GUARD `4` | `0x02fd` | `20-35` | `1 / 2` | `Pace / Attack5 / Attack5` | Same activity profile and weapon selectors, lower HP; its animation callback adds `NPCDEATH` |
| Thermatron `10` | `0x0338` | `250-250` | `7 / 5` | `Pace / Attack5 / Attack5` | Same activity profile, much higher HP and different weapon selectors |
| RoamingSusan `11` | `0x02cb` | `35-45` | `1 / 2` | `Loiter / Attack5 / Attack5` | Same HP and weapon selectors; starts in `Loiter`, not `Pace` |
| Scientist `7` | `0x0344` | `5-12` | `0 / 0` | `Loiter / Attack5 / Attack5` | Unarmed selectors and low HP; `PaceProcess` specifically treats this shape as a surrender exception after repeated blocked steps |
| Vetron `19` | `0x04e6` | `425-625` | `9 / 10` | `Pace / Attack5 / AttackA` | Same initial activity family, much higher HP and a distinct third default |
The most useful comparison is not simply Observer versus the NPC named GUARD. Observer shares GUARD's and Thermatron's default activity tuple, but the activity value `3` starts `PaceProcess`; the named `GuardProcess` is selected by the separate activity value `8`. Observer therefore does not inherit the named Guard's stationary guard/idle loop just because the DTABLE contains an armed humanoid row or the character is called Observer.
At the process level, `GuardProcess::Run` (`1100:0a0e`) attacks when the player is visible and otherwise sleeps or chooses random idle animations. `LoiterProcess::Run` (`1100:0bfa`) plays idle animations or pathfinds to randomized points near its anchor. Observer's activity `3` chooses the distinct `PaceProcess`, which attempts a directional walk and can transition to field `0x08`'s attack behavior. These process differences are stronger evidence than visual resemblance or class names.
## Maps And Spawn Evidence
The current No Remorse map-export audit reports DTABLE row 6 on maps `6, 7, 9, 16, 23, 42, 47, 55, 56, 62, 69, 116, 170, 248`. The No Remorse demo audit reports no Observer map occurrence. This establishes map-data presence in retail exports, not that every listed map is an intended encounter or that every preview resolves to a live Observer. The audit is maintained in the [map-viewer NPC spawn audit](../../crusader_map_viewer/map_renderer/docs/npc-spawn-audit.md).
Examples that show why the distinction matters:
- Remorse map 69 has a frame-0 family-7 `0x024f` monster egg with `npcNum = 6`, which resolves directly to Observer in the current preview pipeline.
- On map 1, a frame-0 `0x04d0` record with `npcNum = 6` is paired with a frame-1 record resolving to RoamingSusan, ChemSuitGuy, or GUARD. The `MONSTER` controller can be dormant or paired; those records are not equivalent proof of an Observer actor.
- On map 248, some frame-1 `0x04d0` records resolve to Observer while their paired frame-0 controller records contain `npcNum` values such as `100` or `134`, which do not resolve in the current Remorse DTABLE preview. These are stronger Observer-spawn candidates, but the paired creation arguments still need a call-site-level close.
These examples and the broader pair scan are detailed in [the map-1 spawner investigation](map_1_spawners_targeted_investigation.md). The evidence supports calling Observer a shipped, spawnable NPC definition with map placements. It does not establish that maps 6, 7, or 248 are all "unused," nor does the label `Observer` by itself establish a surveillance-specific combat role.
## Sprite And Presentation State
The No Remorse reference data identifies shape `0x033c` as an NPC-derived shape, but the current map renderer has only indexed Observer sprite entries at frames `7` (`121 x 98`) and `15` (`48 x 35`). Its preview code explicitly chooses frame `0x0f` for Observer because lower-numbered preview frames are blank or broken. That is concrete evidence of incomplete usable preview art in the current pipeline and is consistent with the reported missing orientations.
The atlas is a curated set of scene/preview sprites, not a complete inventory of every frame in `SHAPES.FLX`. The code's `frames.length > 15` test establishes that frame 15 exists in the loaded shape, but the two indexed atlas entries do not establish that the full shape contains only two frames. Exact missing facings and animation sets remain unverified; do not treat frame numbers 7 and 15 as a complete orientation table.
## Open Questions And Next Checks
1. Enumerate shape `0x033c` directly from the full No Remorse `SHAPES.FLX`; classify blank frames, animation groups, and facing coverage instead of relying on the preview atlas.
2. Trace every map-69 `0x024f` Observer egg through its trigger, difficulty gate, and field-`0x06` activity startup in the retail executable.
3. Close the `0x04d0` paired-spawner call argument ownership so frame-0/frame-1 pairs can be classified as actual Observer spawns or controller-only records.
4. Recover the initial activity and combat-tactic values for actors created through the `0x04d0` path, including whether map/partner fields override DTABLE row 6.
5. Test the Observer `calledFromAnim` path in a live No Remorse session and determine whether native death handling replaces the absent `NPCDEATH.slot_20` callback.
6. Compare retail `CRUSADER.EXE` handling of tactic 0 against shipped `COMBAT.DAT` entry `Dumb` to establish Observer's concrete weapon/fire loop on the egg-spawn path.
7. Audit the listed map IDs against mission routing and editor-only/unreachable status before labeling any placement definitively unused.
## Evidence Pointers
- No Remorse DTABLE and NPC row layout: [NPC spawner data](map_renderer/npc-spawners.md), `STATIC/DTABLE.FLX`, and ScummVM's [NPCDat loader](https://raw.githubusercontent.com/scummvm/scummvm/master/engines/ultima/ultima8/world/actors/npc_dat.cpp).
- Observer event body and class slots: `USECODE/EUSECODE_extracted/pseudocode/OBSERVER/slot_0E_calledFromAnim.txt` and `USECODE/EUSECODE_extracted/class_event_index.tsv`.
- Native activity selection: `NPC_SetDataFromDTable` (`10e8:0152`), `NPC_StartNextNPCActivityBehaviorProcess` (`10e8:2cfa`), `NPC_StartBehaviorInField0x8IfCanSeeControlledNPC` (`1100:026e`), `PaceProcess::Run` (`1100:0708`), `GuardProcess::Run` (`1100:0a0e`), and `LoiterProcess::Run` (`1100:0bfa`) in live No Remorse `CRUSADER.EXE`.
- Process family ownership: [NPC action process layout](npc-action-process-class-layout.md).
- `0x04d0` controller and map pair evidence: [NPC spawners](map_renderer/npc-spawners.md) and [targeted map investigation](map_1_spawners_targeted_investigation.md).
- Combat tactic data and tactic-0 caveat: [COMBAT.DAT](combat-dat.md).