Add log file for emulator execution on 2026-10-12
- Created a new log file `log-20261012.txt` to capture emulator activity. - Logged initialization steps including HTTP API startup, program executor creation, and MCP server launch. - Captured errors related to missing files during DOS operations. - Documented invalid opcode exception leading to emulation halt. - Included detailed state information at the time of errors for debugging purposes.
This commit is contained in:
parent
c956923bcd
commit
522c52d65d
9 changed files with 238 additions and 152 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -3,6 +3,7 @@
|
|||
<PROJECT_DATA_XML_NAME NAME="DISPLAY_DATA">
|
||||
<SAVE_STATE>
|
||||
<ARRAY NAME="EXPANDED_PATHS" TYPE="string">
|
||||
<A VALUE="Crusader:ja:" />
|
||||
<A VALUE="Crusader:" />
|
||||
</ARRAY>
|
||||
<STATE NAME="SHOW_TABLE" TYPE="boolean" VALUE="false" />
|
||||
|
|
@ -22,96 +23,96 @@
|
|||
<SPLIT_NODE WIDTH="192" HEIGHT="749" DIVIDER_LOCATION="640" ORIENTATION="VERTICAL">
|
||||
<SPLIT_NODE WIDTH="192" HEIGHT="477" 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="3757649058582132410" />
|
||||
<COMPONENT_INFO NAME="Program Tree" OWNER="ProgramTreePlugin" TITLE="Program Trees" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757766316925859545" />
|
||||
</COMPONENT_NODE>
|
||||
<COMPONENT_NODE TOP_INFO="0">
|
||||
<COMPONENT_INFO NAME="Symbol Tree" OWNER="SymbolTreePlugin" TITLE="Symbol Tree" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757649058582132405" />
|
||||
<COMPONENT_INFO NAME="Symbol Tree" OWNER="SymbolTreePlugin" TITLE="Symbol Tree" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757766316925859540" />
|
||||
</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="3757649130225039036" />
|
||||
<COMPONENT_INFO NAME="DataTypes Provider" OWNER="DataTypeManagerPlugin" TITLE="Data Type Manager" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757766343335294661" />
|
||||
</COMPONENT_NODE>
|
||||
</SPLIT_NODE>
|
||||
<SPLIT_NODE WIDTH="1148" HEIGHT="749" DIVIDER_LOCATION="785" ORIENTATION="VERTICAL">
|
||||
<SPLIT_NODE WIDTH="1386" HEIGHT="638" DIVIDER_LOCATION="705" ORIENTATION="VERTICAL">
|
||||
<SPLIT_NODE WIDTH="1148" HEIGHT="585" DIVIDER_LOCATION="500" ORIENTATION="HORIZONTAL">
|
||||
<COMPONENT_NODE TOP_INFO="0">
|
||||
<COMPONENT_INFO NAME="Listing" OWNER="CodeBrowserPlugin" TITLE="Listing: CRUSADER.EXE" ACTIVE="true" GROUP="Core" INSTANCE_ID="3757649128952067748" />
|
||||
<COMPONENT_INFO NAME="Listing" OWNER="CodeBrowserPlugin" TITLE="Listing: CRUSADER.EXE" ACTIVE="true" GROUP="Core" INSTANCE_ID="3757766343243019969" />
|
||||
</COMPONENT_NODE>
|
||||
<COMPONENT_NODE TOP_INFO="0">
|
||||
<COMPONENT_INFO NAME="Decompiler" OWNER="DecompilePlugin" TITLE="Decompile: heap_free_and_coalesce_block_1000_7c04" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757649058582132411" />
|
||||
<COMPONENT_INFO NAME="Bytes" OWNER="ByteViewerPlugin" TITLE="Bytes: CRUSADER.EXE" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757649058582132413" />
|
||||
<COMPONENT_INFO NAME="Data Window" OWNER="DataWindowPlugin" TITLE="Defined Data" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757649130441045674" />
|
||||
<COMPONENT_INFO NAME="Decompiler" OWNER="DecompilePlugin" TITLE="Decompile: static_resource_cache_construct" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757766316925859546" />
|
||||
<COMPONENT_INFO NAME="Bytes" OWNER="ByteViewerPlugin" TITLE="Bytes: CRUSADER.EXE" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766316925859548" />
|
||||
<COMPONENT_INFO NAME="Data Window" OWNER="DataWindowPlugin" TITLE="Defined Data" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343335294665" />
|
||||
<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="3757649128952067746" />
|
||||
<COMPONENT_INFO NAME="External Programs" OWNER="ReferencesPlugin" TITLE="External Programs" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757649128952067750" />
|
||||
<COMPONENT_INFO NAME="Functions Window" OWNER="FunctionWindowPlugin" TITLE="Functions" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757649128952067753" />
|
||||
<COMPONENT_INFO NAME="Relocation Table" OWNER="RelocationTablePlugin" TITLE="Relocation Table" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757649130441045678" />
|
||||
<COMPONENT_INFO NAME="Equates Table" OWNER="EquateTablePlugin" TITLE="Equates Table" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766316925859551" />
|
||||
<COMPONENT_INFO NAME="External Programs" OWNER="ReferencesPlugin" TITLE="External Programs" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343243019971" />
|
||||
<COMPONENT_INFO NAME="Functions Window" OWNER="FunctionWindowPlugin" TITLE="Functions" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343243019974" />
|
||||
<COMPONENT_INFO NAME="Relocation Table" OWNER="RelocationTablePlugin" TITLE="Relocation Table" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343335294669" />
|
||||
</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="3757649129954506422" />
|
||||
<COMPONENT_INFO NAME="Data Type Preview" OWNER="DataTypePreviewPlugin" TITLE="Data Type Preview" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343335294659" />
|
||||
</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="3757649128952067745" />
|
||||
<COMPONENT_INFO NAME="Virtual Disassembler - Current Instruction" OWNER="DisassembledViewPlugin" TITLE="Disassembled View" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766316925859550" />
|
||||
</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="3757649058582132412" />
|
||||
<COMPONENT_INFO NAME="Bookmarks" OWNER="BookmarkPlugin" TITLE="Bookmarks" ACTIVE="false" GROUP="Core.Bookmarks" INSTANCE_ID="3757649058582132409" />
|
||||
<COMPONENT_INFO NAME="Console" OWNER="ConsolePlugin" TITLE="Console" ACTIVE="true" GROUP="Default" INSTANCE_ID="3757766316925859547" />
|
||||
<COMPONENT_INFO NAME="Bookmarks" OWNER="BookmarkPlugin" TITLE="Bookmarks" ACTIVE="false" GROUP="Core.Bookmarks" INSTANCE_ID="3757766316925859544" />
|
||||
</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="3757649058582132406" />
|
||||
<COMPONENT_INFO NAME="Function Call Trees" OWNER="CallTreePlugin" TITLE="Function Call Trees" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766316925859541" />
|
||||
</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="3757649058582132407" />
|
||||
<COMPONENT_INFO NAME="Script Manager" OWNER="GhidraScriptMgrPlugin" TITLE="Script Manager" ACTIVE="false" GROUP="Script Group" INSTANCE_ID="3757766316925859542" />
|
||||
</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="3757649058582132388" />
|
||||
<COMPONENT_INFO NAME="Memory Map" OWNER="MemoryMapPlugin" TITLE="Memory Map" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766316925859538" />
|
||||
</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="3757649130441045680" />
|
||||
<COMPONENT_INFO NAME="Function Graph" OWNER="FunctionGraphPlugin" TITLE="Function Graph" ACTIVE="false" GROUP="Function Graph" INSTANCE_ID="3757766343335294671" />
|
||||
</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="3757649128952067752" />
|
||||
<COMPONENT_INFO NAME="Register Manager" OWNER="RegisterPlugin" TITLE="Register Manager" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343243019973" />
|
||||
</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="3757649130441045675" />
|
||||
<COMPONENT_INFO NAME="Symbol Table" OWNER="SymbolTablePlugin" TITLE="Symbol Table" ACTIVE="false" GROUP="symbolTable" INSTANCE_ID="3757766343335294666" />
|
||||
</COMPONENT_NODE>
|
||||
<COMPONENT_NODE TOP_INFO="0">
|
||||
<COMPONENT_INFO NAME="Symbol References" OWNER="SymbolTablePlugin" TITLE="Symbol References" ACTIVE="false" GROUP="symbolTable" INSTANCE_ID="3757649130441045676" />
|
||||
<COMPONENT_INFO NAME="Symbol References" OWNER="SymbolTablePlugin" TITLE="Symbol References" ACTIVE="false" GROUP="symbolTable" INSTANCE_ID="3757766343335294667" />
|
||||
</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="3757649128952067747" />
|
||||
<COMPONENT_INFO NAME="Checksum Generator" OWNER="ComputeChecksumsPlugin" TITLE="Checksum Generator" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343243019968" />
|
||||
</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="3757649130225039037" />
|
||||
<COMPONENT_INFO NAME="Function Tags" OWNER="FunctionTagPlugin" TITLE="Function Tags" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343335294662" />
|
||||
</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="3757649130441045673" />
|
||||
<COMPONENT_INFO NAME="Comment Window" OWNER="CommentWindowPlugin" TITLE="Comments" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343335294664" />
|
||||
</COMPONENT_NODE>
|
||||
</WINDOW_NODE>
|
||||
<WINDOW_NODE X_POS="-1" Y_POS="-1" WIDTH="0" HEIGHT="0">
|
||||
|
|
@ -121,17 +122,17 @@
|
|||
</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="3757649130441045672" />
|
||||
<COMPONENT_INFO NAME="PyGhidra" OWNER="PyGhidra" TITLE="PyGhidra" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343335294663" />
|
||||
</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="3757649128952067751" />
|
||||
<COMPONENT_INFO NAME="Source Files and Transforms" OWNER="SourceFilesTablePlugin" TITLE="Source Files and Transforms" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343243019972" />
|
||||
</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="3757649058582132408" />
|
||||
<COMPONENT_INFO NAME="Bundle Manager" OWNER="GhidraScriptMgrPlugin" TITLE="Bundle Manager" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766316925859543" />
|
||||
</COMPONENT_NODE>
|
||||
</WINDOW_NODE>
|
||||
<WINDOW_NODE X_POS="0" Y_POS="0" WIDTH="0" HEIGHT="0">
|
||||
|
|
@ -141,12 +142,12 @@
|
|||
</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="3757649129954506423" />
|
||||
<COMPONENT_INFO NAME="Function Call Graph" OWNER="FunctionCallGraphPlugin" TITLE="Function Call Graph" ACTIVE="false" GROUP="Function Call Graph" INSTANCE_ID="3757766343335294660" />
|
||||
</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="3757649130441045677" />
|
||||
<COMPONENT_INFO NAME="Defined Strings" OWNER="DefinedStringsPlugin" TITLE="Defined Strings" ACTIVE="false" GROUP="Default" INSTANCE_ID="3757766343335294668" />
|
||||
</COMPONENT_NODE>
|
||||
</WINDOW_NODE>
|
||||
</ROOT_NODE>
|
||||
|
|
@ -154,29 +155,28 @@
|
|||
<PLUGIN NAME="NavigationHistoryPlugin">
|
||||
<XML NAME="HISTORY_LIST_0">
|
||||
<SAVE_STATE>
|
||||
<STATE NAME="CURRENT_LOC_INDEX" TYPE="int" VALUE="2" />
|
||||
<STATE NAME="LOCATION_COUNT" TYPE="int" VALUE="3" />
|
||||
<STATE NAME="CURRENT_LOC_INDEX" TYPE="int" VALUE="1" />
|
||||
<STATE NAME="LOCATION_COUNT" TYPE="int" VALUE="2" />
|
||||
<STATE NAME="MEMENTO_CLASS0" TYPE="string" VALUE="ghidra.app.plugin.core.gotoquery.DefaultNavigatableLocationMemento" />
|
||||
<STATE NAME="MEMENTO_CLASS1" TYPE="string" VALUE="ghidra.app.plugin.core.gotoquery.DefaultNavigatableLocationMemento" />
|
||||
<STATE NAME="MEMENTO_CLASS2" TYPE="string" VALUE="ghidra.app.plugin.core.gotoquery.DefaultNavigatableLocationMemento" />
|
||||
<XML NAME="MEMENTO_DATA0">
|
||||
<SAVE_STATE>
|
||||
<XML NAME="MEMENTO0">
|
||||
<SAVE_STATE>
|
||||
<STATE NAME="CURSOR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="MEMENTO_CLASS" TYPE="string" VALUE="ghidra.app.plugin.core.codebrowser.CodeViewerLocationMemento" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757649128952067748" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902283" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/CRUSADER.EXE" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:0000" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:0000" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757766343243019969" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902276" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/ja/CRUSADER.EXE" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="00400000" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="00400000" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.MemoryBlockStartFieldLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<ARRAY NAME="_COMMENT" TYPE="string">
|
||||
<A VALUE="//" />
|
||||
<A VALUE="// Code1" />
|
||||
<A VALUE="// ram:1000:0000-ram:1000:83ff" />
|
||||
<A VALUE="// Headers" />
|
||||
<A VALUE="// ram:00400000-ram:004003ff" />
|
||||
<A VALUE="//" />
|
||||
</ARRAY>
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
|
|
@ -185,17 +185,17 @@
|
|||
</XML>
|
||||
<STATE NAME="MEMENTO_CLASS" TYPE="string" VALUE="ghidra.app.plugin.core.gotoquery.DefaultNavigatableLocationMemento" />
|
||||
<STATE NAME="NUM_MEMENTOS" TYPE="int" VALUE="1" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902283" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/CRUSADER.EXE" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:0000" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:0000" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902276" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/ja/CRUSADER.EXE" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="00400000" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="00400000" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.MemoryBlockStartFieldLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<ARRAY NAME="_COMMENT" TYPE="string">
|
||||
<A VALUE="//" />
|
||||
<A VALUE="// Code1" />
|
||||
<A VALUE="// ram:1000:0000-ram:1000:83ff" />
|
||||
<A VALUE="// Headers" />
|
||||
<A VALUE="// ram:00400000-ram:004003ff" />
|
||||
<A VALUE="//" />
|
||||
</ARRAY>
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
|
|
@ -204,98 +204,35 @@
|
|||
</XML>
|
||||
<XML NAME="MEMENTO_DATA1">
|
||||
<SAVE_STATE>
|
||||
<STATE NAME="FOCUSED_NAV" TYPE="long" VALUE="3757649128952067748" />
|
||||
<XML NAME="MEMENTO0">
|
||||
<SAVE_STATE>
|
||||
<STATE NAME="INDEX" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="MEMENTO_CLASS" TYPE="string" VALUE="ghidra.app.plugin.core.decompile.DecompilerLocationMemento" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757649058582132411" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902283" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/CRUSADER.EXE" />
|
||||
<STATE NAME="X_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="Y_OFFSET" TYPE="int" VALUE="-10" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:059c" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:059f" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.ProgramLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
</SAVE_STATE>
|
||||
</XML>
|
||||
<XML NAME="MEMENTO1">
|
||||
<SAVE_STATE>
|
||||
<STATE NAME="CURSOR_OFFSET" TYPE="int" VALUE="311" />
|
||||
<STATE NAME="CURSOR_OFFSET" TYPE="int" VALUE="277" />
|
||||
<STATE NAME="MEMENTO_CLASS" TYPE="string" VALUE="ghidra.app.plugin.core.codebrowser.CodeViewerLocationMemento" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757649128952067748" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902283" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/CRUSADER.EXE" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:059c" />
|
||||
<STATE NAME="_ADDR_REP" TYPE="string" VALUE="1000:059c" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:059c" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757766343243019969" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902276" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/ja/CRUSADER.EXE" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="0045c92b" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="0045c92b" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.AddressFieldLocation" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.OperandFieldLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_REP" TYPE="string" VALUE="AL" />
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_SUBOPINDEX" TYPE="int" VALUE="0" />
|
||||
</SAVE_STATE>
|
||||
</XML>
|
||||
<STATE NAME="MEMENTO_CLASS" TYPE="string" VALUE="ghidra.app.plugin.core.gotoquery.DefaultNavigatableLocationMemento" />
|
||||
<STATE NAME="NUM_MEMENTOS" TYPE="int" VALUE="2" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902283" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/CRUSADER.EXE" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:059c" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:059f" />
|
||||
<STATE NAME="NUM_MEMENTOS" TYPE="int" VALUE="1" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902276" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/ja/CRUSADER.EXE" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="0045c92b" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="0045c92b" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.ProgramLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
</SAVE_STATE>
|
||||
</XML>
|
||||
<XML NAME="MEMENTO_DATA2">
|
||||
<SAVE_STATE>
|
||||
<STATE NAME="FOCUSED_NAV" TYPE="long" VALUE="3757649128952067748" />
|
||||
<XML NAME="MEMENTO0">
|
||||
<SAVE_STATE>
|
||||
<STATE NAME="INDEX" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="MEMENTO_CLASS" TYPE="string" VALUE="ghidra.app.plugin.core.decompile.DecompilerLocationMemento" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757649058582132411" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902283" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/CRUSADER.EXE" />
|
||||
<STATE NAME="X_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="Y_OFFSET" TYPE="int" VALUE="-10" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:059c" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:059f" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.ProgramLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
</SAVE_STATE>
|
||||
</XML>
|
||||
<XML NAME="MEMENTO1">
|
||||
<SAVE_STATE>
|
||||
<STATE NAME="CURSOR_OFFSET" TYPE="int" VALUE="272" />
|
||||
<STATE NAME="MEMENTO_CLASS" TYPE="string" VALUE="ghidra.app.plugin.core.codebrowser.CodeViewerLocationMemento" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757649128952067748" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902283" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/CRUSADER.EXE" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="_ADDR_REP" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.AddressFieldLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
</SAVE_STATE>
|
||||
</XML>
|
||||
<STATE NAME="MEMENTO_CLASS" TYPE="string" VALUE="ghidra.app.plugin.core.gotoquery.DefaultNavigatableLocationMemento" />
|
||||
<STATE NAME="NUM_MEMENTOS" TYPE="int" VALUE="2" />
|
||||
<STATE NAME="PROGRAM_ID" TYPE="long" VALUE="3721129048497902283" />
|
||||
<STATE NAME="PROGRAM_PATH_" TYPE="string" VALUE="Crusader:/CRUSADER.EXE" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.ProgramLocation" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.OperandFieldLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_REP" TYPE="string" VALUE="AL" />
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_SUBOPINDEX" TYPE="int" VALUE="0" />
|
||||
</SAVE_STATE>
|
||||
</XML>
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="-1" />
|
||||
|
|
@ -314,40 +251,44 @@
|
|||
<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="3757649058582132411" />
|
||||
<STATE NAME="INDEX" TYPE="int" VALUE="47" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757766316925859546" />
|
||||
<STATE NAME="Num Disconnected" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="Y_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="Y_OFFSET" TYPE="int" VALUE="-16" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="0045c92b" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="0045c92b" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.ProgramLocation" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.OperandFieldLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_REP" TYPE="string" VALUE="AL" />
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_SUBOPINDEX" TYPE="int" VALUE="0" />
|
||||
</PLUGIN>
|
||||
<PLUGIN NAME="ByteViewerPlugin">
|
||||
<STATE NAME="Block Column" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="Block Num" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="Block Offset" TYPE="string" VALUE="0" />
|
||||
<STATE NAME="Index" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757649058582132413" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757766316925859548" />
|
||||
<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="CURRENT_FILE" TYPE="string" VALUE="CRUSADER.EXE" />
|
||||
<STATE NAME="LOCATION_0" TYPE="string" VALUE="/D:/Ghidra/Crusader/" />
|
||||
<STATE NAME="LOCATION_0" TYPE="string" VALUE="/K:/ghidra/Crusader_Decomp/" />
|
||||
<STATE NAME="NUM_PROGRAMS" TYPE="int" VALUE="1" />
|
||||
<STATE NAME="PATHNAME_0" TYPE="string" VALUE="/CRUSADER.EXE" />
|
||||
<STATE NAME="PATHNAME_0" TYPE="string" VALUE="/ja/CRUSADER.EXE" />
|
||||
<STATE NAME="PROJECT_NAME_0" TYPE="string" VALUE="Crusader" />
|
||||
<STATE NAME="VERSION_0" TYPE="int" VALUE="-1" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="0045c92b" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="0045c92b" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.ProgramLocation" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.OperandFieldLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_REP" TYPE="string" VALUE="AL" />
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_SUBOPINDEX" TYPE="int" VALUE="0" />
|
||||
</PLUGIN>
|
||||
<PLUGIN NAME="FunctionGraphPlugin">
|
||||
<SAVE_STATE NAME="COMPLEX_LAYOUT_NAME" KEY="COMPLEX_LAYOUT_NAME" TYPE="SaveState">
|
||||
|
|
@ -361,20 +302,21 @@
|
|||
<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="3757649130441045680" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757766343335294671" />
|
||||
</PLUGIN>
|
||||
<PLUGIN NAME="CodeBrowserPlugin">
|
||||
<STATE NAME="INDEX" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757649128952067748" />
|
||||
<STATE NAME="INDEX" TYPE="int" VALUE="376071" />
|
||||
<STATE NAME="NAV_ID" TYPE="long" VALUE="3757766343243019969" />
|
||||
<STATE NAME="Num Disconnected" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="Y_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="_ADDR_REP" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="1000:7c04" />
|
||||
<STATE NAME="Y_OFFSET" TYPE="int" VALUE="-29" />
|
||||
<STATE NAME="_ADDRESS" TYPE="string" VALUE="0045c92b" />
|
||||
<STATE NAME="_BYTE_ADDR" TYPE="string" VALUE="0045c92b" />
|
||||
<STATE NAME="_CHAR_OFFSET" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.AddressFieldLocation" />
|
||||
<STATE NAME="_CLASSNAME" TYPE="string" VALUE="ghidra.program.util.OperandFieldLocation" />
|
||||
<STATE NAME="_COLUMN" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_REP" TYPE="string" VALUE="AL" />
|
||||
<STATE NAME="_ROW" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="_SUBOPINDEX" TYPE="int" VALUE="0" />
|
||||
</PLUGIN>
|
||||
</DATA_STATE>
|
||||
</RUNNING_TOOL>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -20,6 +20,9 @@
|
|||
},
|
||||
{
|
||||
"path": "G:/games/Crusader No Remorse"
|
||||
},
|
||||
{
|
||||
"path": "../Crusader-Rebuild-Sharp"
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
|
|
|
|||
129
docs/rebuild-sharp/crusader-movement-system-reference.md
Normal file
129
docs/rebuild-sharp/crusader-movement-system-reference.md
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
# Crusader: No Remorse Movement System Reference
|
||||
|
||||
## Scope and Evidence
|
||||
|
||||
The primary target is the Japanese Windows 9x build at `C:\RE\CRUSADER_JP_ISO\CRUSADER.EXE`, SHA-256 `037b7d2be829048a1b305eae15e7f78be72329af80425cc32e2f5fcee0ba5231`. Its address/name/comment map is `exports/CRUSADER_JP.EXE.xml`. The DOS executable is a separate NE build; `exports/src_remorse/CRUSADER.EXE.xml` and the DOS addresses below are consultation evidence, not proof that the JP build shares the same controls, selector meanings, timing, or animation behavior.
|
||||
|
||||
Evidence is static. REA used Ghidra 12.1.4 on the JP PE. No runtime input trace or gameplay observation was made. The exported XML is useful for symbols and prior function analysis, but an XML function record is not equivalent to a procedure body successfully resolved by REA.
|
||||
|
||||
Confidence labels used below:
|
||||
|
||||
- **JP / REA:** directly returned by REA for the JP PE.
|
||||
- **JP / export:** behavior recorded in the matching JP Ghidra XML, but not independently resolved as a procedure by the current REA session.
|
||||
- **DOS / comparison:** DOS behavior or address; useful for locating analogous code, not automatically portable to the JP build.
|
||||
- **Unresolved:** current evidence does not justify a behavior name or rule.
|
||||
|
||||
## System Outline
|
||||
|
||||
The JP input path is process- and item-oriented rather than a single movement routine. The gameplay keyboard handler at `00416c7c` tracks input state, selects numeric action values, applies direction changes through `0040a004`, and calls `0044dc9c`. The JP export identifies `0044dc9c` as an item-action dispatcher: it switches over selectors `0x00`-`0x3f`, creates type-`0xf0` item processes, assigns selector-specific vtables, and applies item/process-state gates. Its individual selector meanings are explicitly unresolved in the export comments.
|
||||
|
||||
Consequently, values such as `0x17`, `0x18`, `0x1c`, `0x1d`, `0x28`, `0x29`, `0x3a`, `0x3d`, and `0x3e` must be recorded as JP action selectors until their JP process bodies establish semantics. The same values have movement-animation names in the DOS animation enum, but numeric agreement alone is not a cross-build mapping.
|
||||
|
||||
## JP Findings
|
||||
|
||||
### Input and Facing
|
||||
|
||||
| JP address | Finding | Evidence / limit |
|
||||
|---|---|---|
|
||||
| `00416c7c` `input_keyboard_handle_gameplay_event` | Central gameplay key-event path. It queries tracked key states, handles multiple event families, calls the facing helper, applies a direction code, and dispatches action selectors. | **JP / export.** REA pseudocode was inspected. The exact event/modifier semantics remain unresolved. |
|
||||
| `00416a0c` `input_keyboard_adjust_facing` | When its guarded turn-key path runs, it adjusts a tracked direction, recomputes a 16-way direction from item coordinates, and stores the result. | **JP / REA and export.** The event/caller contract and direction field meaning are unresolved. Its references to item-marker helpers do not establish weapon aiming or target acquisition. |
|
||||
| `0040a004` `process_apply_direction_code` | Stores a low-nibble process direction at `+0x36`. Codes `0x10`-`0x12` resolve or adjust a base direction. Codes `0x11`/`0x12` change it by two slots when process flag `+0x4b` bit `0x40` is clear, or one slot when set; the result is masked to 16 directions. | **JP / REA and export.** The code and delta are visible; the gameplay names of the modes and flag are unresolved. |
|
||||
|
||||
The direction updater is discrete, not evidence of a continuous angular speed. Do not substitute the DOS turn rates or infer a JP degrees-per-second value from these direction slots.
|
||||
|
||||
### Movement and Action Dispatch
|
||||
|
||||
The handler at `00416c7c` assigns selectors including `0x01`, `0x02`, `0x04`, `0x0b`, `0x17`, `0x18`, `0x1c`, `0x1d`, `0x22`, `0x24`, `0x27`-`0x29`, `0x2e`, `0x3a`, and `0x3d`/`0x3e`. Some branches choose left/right variants from relative direction or item state; others gate on key state and current per-item fields. These are observed selector values, not yet named JP movement actions.
|
||||
|
||||
`0044dc9c` accepts the selector and dispatches through a 64-entry switch. REA recovered cases including `0x17`, `0x18`, `0x1c`, `0x1d`, `0x22`, `0x24`, `0x28`, `0x29`, `0x3a`, `0x3d`, and `0x3e`; many paths construct a type-`0xf0` item process through `00407550` and install a selector-specific vtable. The export describes per-item process thresholds, optional replacement, tracked-item markers, and AutoFirer state as additional gates/effects. No selector should be renamed to walk, run, roll, crouch, or jump based only on the DOS enum.
|
||||
|
||||
REA read the first 12 32-bit entries of the vtables below from the JP image. In each sampled table, the first entry is `00408874`, entries 3-12 match, and only the second entry varies. The selected second-entry addresses decode as code, but REA did not resolve procedure boundaries or behavior there; this establishes distinct process variants, not their action names.
|
||||
|
||||
| JP selector | Installed vtable | Distinct second entry |
|
||||
|---|---|---|
|
||||
| `0x17` | `0047da60` | `0040a4e0` |
|
||||
| `0x18` | `0047da30` | `0040a530` |
|
||||
| `0x1c` | `0047f614` | `00451fc0` |
|
||||
| `0x1d` | `0047f5e4` | `00452010` |
|
||||
| `0x22` | `0047db80` | `0040a300` |
|
||||
| `0x24` | `0047dc40` | `0040a1c0` |
|
||||
| `0x27` | `0047f4f4` | `004521a0` |
|
||||
| `0x28` | `0047f494` | `00452240` |
|
||||
| `0x29` | `0047f464` | `00452290` |
|
||||
| `0x2e` | `0047f3d4` | `00452380` |
|
||||
| `0x3a` | `0047f2b4` | `00452560` |
|
||||
| `0x3d` | `0047dac0` | `0040a440` |
|
||||
| `0x3e` | `0047da90` | `0040a490` |
|
||||
|
||||
REA read the first 12 entries of the three additional vtables above. They have the same first entry (`00408874`) and shared entries after the distinct second slot. The second-slot addresses decode as code but remain unresolved procedures; selector-to-action semantics therefore remain unknown.
|
||||
|
||||
`00408874` is the shared first-slot process routine in these sampled tables. It is called from `004076b0` and `00453c64`, and its body dispatches process methods at vtable offsets `+8`, `+0xc`, and `+0x2c`. It queries shape collisions directly or through `00448bdc`'s step fallback according to process state, then invokes `00448818` when collision-result state is present. This confirms a common process/collision path, not that every keyboard-selected action uses the same movement policy; the callers do not by themselves prove that every path is the controlled avatar.
|
||||
|
||||
JP animation infrastructure is also visible but is not yet linked to those action variants. `00429c00` constructs a process of type `0x230`; `00429d44` lazily initializes shared process globals and creates that animation process, while `00420368` advances visible-item animations. The available bodies do not establish that these routines supply frame displacement or action names for the keyboard-created type-`0xf0` processes.
|
||||
|
||||
| Requested behavior | JP status | DOS comparison reference |
|
||||
|---|---|---|
|
||||
| Walk / run / reverse | JP selectors `0x01`, `0x02`, and several other values appear in the handler, but their movement semantics are not established by the resolved dispatcher evidence. | `Animation` enum in `exports/src_remorse/CRUSADER.EXE.xml`: walk `0x01`, small-weapon retreat `0x02`, run `0x03`; controller selection at `1130:12d6`. |
|
||||
| Crouch / kneel | JP handler emits values including `0x28`, `0x29`, and `0x2e`; semantic equivalence is unresolved. | DOS enum: kneel start/stop `0x28`/`0x29`, kneel poses `0x2e`/`0x2f`; controller pose selection at `1130:10cf`. |
|
||||
| Sidestep / slide | JP handler emits `0x1c`/`0x1d` in directional branches; do not yet label these as slides in the JP spec. | DOS enum names `0x1c`/`0x1d` slide left/right. |
|
||||
| Jump | JP handler emits `0x3a` under a gated branch; the JP action process meaning and airborne transition are not verified. | DOS enum names forward jump `0x38`, quick jump `0x3a`, and landing `0x3b`; DOS key handling includes a jump-forward replacement at `1130:2648`. |
|
||||
| Roll | JP handler emits `0x17`/`0x18` and `0x3d`/`0x3e` in separate branches; action-process names and interruption rules are unresolved. | DOS enum names combat rolls `0x17`/`0x18` and slow combat rolls `0x3d`/`0x3e`. |
|
||||
| Aim / target selection | The JP turn/facing helper recomputes a direction from coordinates, but this alone does not prove aiming, weapon readiness, firing, or target selection. | DOS angle/pose update `1130:10cf`; small crosshair update `1130:0708`; weapon readiness and firing are handled separately by `1130:2211` and `10e8:0252`. |
|
||||
|
||||
### Collision, Position, and Gravity
|
||||
|
||||
| JP address | Finding | Evidence / limit |
|
||||
|---|---|---|
|
||||
| `00448174` `item_position_query_shape_collisions` | Initializes a shape-position query, scans nearby spatial items, and tests candidates for collision. | **JP / export** comment and REA body. The caller flags determine details; exact movement/contact policy is not fully established here. |
|
||||
| `00448818` `item_process_collision_contacts_and_events` | Processes a collision-query result, including item position/event state and linked contact records. | **JP / export** comment and REA body. Do not assume this matches the DOS hit/hurl response. |
|
||||
| `00448bdc` `item_query_shape_collision_with_step_fallback` | Wraps the shape collision query and conditionally retries at nearby vertical offsets for a step-compatible result. | **JP / REA** confirms the wrapper and its call to `00448174`; the XML comment describes the retries. Exact eligibility, probe geometry, and successful-position commit are not fully documented here. |
|
||||
| `0042aa14` `gravity_process_construct` | Constructs a type-`0x203` process, installs its vtable, and initializes fields; caller-supplied values populate additional fields. | **JP / REA.** Field meanings and axis mapping remain unresolved. |
|
||||
| `0042b7a4` `gravity_process_apply_position_delta` | Adds three 16-bit caller-supplied values to an existing type-`0x203` process, or creates one through the constructor when absent and its gate passes. | **JP / REA.** The three components' axis/order meaning is unresolved. |
|
||||
| `0042b834` `gravity_process_create_for_item_if_needed` | Checks item-record and shape metadata bits/fields, then creates a type-`0x203` process only when none exists. | **JP / REA.** The checked fields' gameplay meaning is unresolved. |
|
||||
| `0042ad04` `gravity_process_update` | The JP export identifies an update routine, but REA does not resolve a procedure at this address. | **JP / export.** No update formula, collision response, or grounded/airborne rule is verified. |
|
||||
|
||||
Other JP process comments indicate item-position probing at `004076b0`, target-direction process creation/update at `00453500`/`004536ac`/`004538c0`, and direction selection at `00453c64`. They document NPC/process behavior and are not, by themselves, proof that the controlled avatar uses the same path.
|
||||
|
||||
## DOS Consultation Map
|
||||
|
||||
These NE locations give detailed movement references for No Remorse, but remain a separate build from the primary JP PE target.
|
||||
|
||||
| DOS address | Reference role |
|
||||
|---|---|
|
||||
| `1130:2211` | `Controller_HandleKeyEvent`: key-event entry and action/animation handoff. |
|
||||
| `1130:12d6` | `Controller_PickNextAnimByKeyevent`: chooses movement/pose actions from key state, current facing, weapon, and stance. |
|
||||
| `1130:10cf` | `Controller_UpdateAvatarAngle`: turn/aim-facing and combat/kneel pose selection. |
|
||||
| `10e8:0252` | `NPC_DoAnim`: requests an NPC/avatar animation, including weapon-size remapping. |
|
||||
| `1150:016f` | `AnimPrimitive_CheckToStartNewAnimation`: starts or transitions an animation process. |
|
||||
| `1150:1906` | `AnimPrimitiveProcess_Run`: advances animation metadata and applies frame displacement. |
|
||||
| `10e0:162f` | Grounded shape sweep with step-up retries. The DOS analysis records probes at start-Z `+8`, then `+9`, when its grounded/endpoint gates pass. |
|
||||
| `10e0:0b39` | Point-sweep path used directly for airborne frames; does not take the grounded step-up retry. |
|
||||
| `10e0:032e` | Candidate collision filtering and blocking-contact determination. |
|
||||
| `10e0:123a` | Commits resolved movement and queues eligible collision/contact processes. |
|
||||
| `1038:12a6` | `Item_Hurl`: reuses an existing type-`0x203` gravity process or creates one for a fall request. |
|
||||
| `1038:06d2` | `GravityProcess_Run`; see also downward sweep helper `1038:1131`. |
|
||||
|
||||
### DOS Controller and Action Detail
|
||||
|
||||
At `1130:12d6`, `Controller_PickNextAnimByKeyevent` uses facing-relative advance/reverse and left/right turn paths in its NumLock mode; turn selection uses stand pose `0` when unarmed and combat stand `4` when armed. Its walk/run choice defaults to walk without a weapon and run with one, with Shift reversing that choice. Armed running selects animation `0x30` rather than the unarmed run `3`. These are DOS rules, not confirmed JP input semantics.
|
||||
|
||||
The DOS animation enum and controller paths distinguish several movement/stance actions: reverse step `2`; slides `0x1c`/`0x1d`; kneel start/stop `0x28`/`0x29` and kneel poses including `0x2e`/`0x2f`; forward jump `0x38`, quick jump `0x3a`, and landing `0x3b`; combat rolls `0x17`/`0x18` and slow combat rolls `0x3d`/`0x3e`. `Controller_UpdateAvatarAngle` (`1130:10cf`) selects combat-stand or kneeling poses while updating facing. `Controller_HandleKeyEvent` (`1130:2211`) handles a separate Space-key weapon-ready transition; readiness persists after key release, while a later Space key-down can request firing. Pointer/crosshair target selection is a separate path. These enum/action names are evidence for DOS only and do not promote same-numbered JP selectors to those meanings.
|
||||
|
||||
### DOS Animation and Collision Integration
|
||||
|
||||
The DOS animation process is also a movement integrator. `AnimPrimitiveProcess_Run` (`1150:1906`) reads direction-specific frame metadata, applies signed stride through the native direction projection, applies signed Z displacement and frame/flip state, then chooses grounded or airborne collision handling. Grounded frames use `AreaSearch_SweepShapeBetweenPointsWithStepUp` (`10e0:162f`): after a failed sweep, eligible level-Z destinations are retried at start-Z `+8`, then `+9`. Airborne frames use the direct point-sweep path (`10e0:0b39`) without those retries. A successful clipped sweep can commit the contact-resolved position; `AreaSearch_CollideMove` (`10e0:123a`) commits it and queues eligible collision/contact processes. Candidate blocking depends on the mover/candidate solid-mask intersection (`10e0:032e`), so recording a geometric contact is not alone proof that movement blocks.
|
||||
|
||||
The DOS analysis identifies `GravityProcess_Run` (`1038:06d2`) and its downward-sweep helper (`1038:1131`). Vertical impacts use sweep mode 4 followed by `AreaSearch_CollideMove` (`10e0:123a`); response branches on controlled-NPC state and masks from the separate `g_itemStatus` table, with callback/termination paths and controlled-item rebound using `RandomVal`. Collision movement can also queue hit/got-hit processes. `Item_Hurl` (`1038:12a6`) reuses an existing type-`0x203` process or creates one with zero velocity, gravity 2, and a 20-tick sleep for a fall request. These response and initialization details do not establish an acceleration, terminal speed, or complete landing formula. None of the animation displacement, step-up, contact, or gravity details above has been confirmed for the JP PE.
|
||||
|
||||
The DOS controller evidence also distinguishes turn/aim facing from weapon readiness. The controller can select stand/combat-stand or kneel poses while updating facing; a separate Space-key path requests weapon-ready poses and later firing. Map pointer/crosshair behavior and target acquisition are further separate. Keep these distinctions when using DOS addresses to guide JP follow-up.
|
||||
|
||||
## Open Verification Items
|
||||
|
||||
1. Resolve the JP action-specific vtable entries listed above into complete process bodies, then name selectors only where behavior supports it.
|
||||
2. Trace JP movement-process position updates from action creation through collision checks and final coordinate commit.
|
||||
3. Resolve the JP gravity update body and determine how it interacts with grounded/airborne movement and collision.
|
||||
4. Identify JP key-event codes and modifier semantics from the event producer and controller caller, rather than mapping DOS scan codes onto them.
|
||||
5. Separate JP aim/facing, weapon-ready, firing, and pointer-target paths; the current turn-helper evidence does not establish those behaviors.
|
||||
6. Determine whether the JP type-`0x230` animation service or visible-item animation path participates in controlled-avatar action processes; current evidence does not connect them.
|
||||
7. Compare JP movement/action branches with DOS addresses one behavior at a time. Record mismatches and keep both addresses where the builds differ.
|
||||
8. Add runtime observations only after a controlled JP build session is available; current statements are static-analysis findings.
|
||||
|
|
@ -98,20 +98,32 @@ There are not yet C# archive or map readers, rendering or simulation systems, a
|
|||
|
||||
### M7. No Remorse Startup and Input-Driven Movement Slice - In Progress
|
||||
|
||||
- `ShapeData_GetDamagingAndSolidFlags` (`1010:0000`) returns a base mask of `0x8000`, adding `0x0001` for `SI_SOLID` and `0x0020` for `SI_DAMAGING`. `AreaSearch_TestCandidateSweepCollision` (`10e0:032e`) passes only the mover/candidate mask intersection to `AreaSearch_RecordSweepContact` as its blocking boolean; eligible damaging or special contacts can be geometrically recorded without becoming `firstcollision`. The rebuild gates blocking candidates on this mask intersection and uses TYPEFLAG extents for its face sweep. Live disassembly at `10e0:032e` tests positive X/Y/Z faces before negative X/Y/Z faces; the host now follows that priority and retains zero-size TYPEFLAG axes as collision planes instead of dropping those candidates. The installed local map 1 contains 1,221 solid records with at least one zero footpad dimension. Synthetic regressions cover zero X/Y/Z dimensions and the mixed-sign horizontal/vertical corner. Retail shape 1 has `SI_SOLID`; a synthetic non-solid-mover regression verifies that a solid candidate does not block it. Nonblocking damage notifications, special candidate rules, and the native map-fast-area broadphase remain unmodeled.
|
||||
- Live No Remorse `CRUSADER.EXE` Ghidra evidence: `1020:0000` (`Game_Start`) initializes gameplay and calls `Teleporter_CreateProcessDirect(1, 0x1e, 1)`; `10e8:000c` (`NPC_Init`) initializes avatar item 1 with shape 1/frame 0. Teleporter creation and hatch paths at `1090:04ce`, `1090:0072`, `1090:05fd`, `1090:0718`, and `1090:022d` support the modeled two-hop route. Movement behavior is derived from live decompilation and local static retail assets; runtime comparison is out of scope.
|
||||
- The configured local map-1 data resolves record 1341 as the `0x1e` staging egg at `(6399,6399,0)`, record 1342 as the active `0x63` trigger (packed range `0x44`, map 1), and record 6556 as the destination egg at `(30328,29656,16)`. The retail corpus is not fingerprint-verified.
|
||||
- `NoRemorseFreshStart` creates a simulation-owned avatar (shape 1/frame 0), models both teleports, and schedules movement for that same entity. The normal `--data-root <install directory>` path loads map 1 and its local scene; `--map` remains a separate fixed-map diagnostic.
|
||||
- SDL key handling preserves absolute eight-direction controls with NumLock off. With NumLock on, Up/Down hold advance/reverse and Left/Right request relative turns; turn key repeats produce additional discrete turns. Losing window focus releases held movement. Caps Lock and Shift continue to choose walk versus run. This is the verified cardinal movement subset, not the full DOS keypad, modifier, or action-key controller.
|
||||
- SDL key handling preserves absolute eight-direction controls with NumLock off. With NumLock on, Up/Down hold advance/reverse and Left/Right hold relative turns. Turn input now accumulates angular change at 90 degrees/second in slow mode and 225 degrees/second in fast mode, then quantizes to the active 8- or 16-direction pose; this replaces the former immediate sector snap and arbitrary eight-tick repeat delay. Losing window focus releases held movement. Shift/Caps Lock select walk versus run, with the result inverted when a weapon is active to match DOS. This is the verified cardinal movement mapping; full DOS controller parity is not established.
|
||||
- Core movement loads shape 1 stand, walk, reverse, unarmed-run, combat-stand, and armed-run clips from `ANIM.DAT`, advances direction-specific frame metadata, and applies the signed 9-bit stride multiplied by two through the native direction projection table, the clip rotation flag, signed Z displacement, 12-bit shape-frame ID, and horizontal-flip bit. The local retail walk/run headers are `[17, 5, 2, 0]` and `[12, 5, 2, 0]`; these are static-data findings, not runtime observations. The host honors two-step starts, the looping frame path, and frame-repeat delays.
|
||||
- Live Ghidra evidence: `1130:12d6` (`Controller_PickNextAnimByKeyevent`) uses current facing for NumLock-on advance/reverse; relative left/right turns select stand animation `0` when unarmed and combat stand `4` when armed. The follow-up direction step is two slots for the 8-direction stand clip and one slot for the 16-direction combat stand clip. An active weapon selects run animation `0x30` instead of unarmed run `3`; `Controller_UpdateAvatarAngle` at `1130:10cf` confirms the weapon-out combat-stance turn path. The host implements these modes and exposes weapon-drawn state through `AvatarInputQueue.EnqueueWeaponDrawn`; inventory and weapon-ready actions do not yet drive that state. `1150:016f` (`AnimPrimitive_CheckToStartNewAnimation`) starts animation processes, and `1150:1906` (`AnimPrimitiveProcess_Run`) advances metadata and displacement.
|
||||
- The animation caller sends grounded frames through `AreaSearch_SweepShapeBetweenPointsWithStepUp` at `10e0:162f` with flags `0x11`; airborne frames call `AreaSearch_SweepTestPt` at `10e0:0b39` directly with flags `4`. The grounded wrapper first tries the requested sweep, then on failure tests vertical clearance and the raised destination at +8, followed by +9. The host models that retry as separate vertical and horizontal TYPEFLAG-bound sweeps, and keeps the direct-only path for airborne frames. For a rejected grounded solid sweep, it retains the last legal position and enters a blocked state. SDL key-repeat events can retry a held direction, while other repeated key-downs do not advance the movement animation. `AnimPrimitiveProcess_Run` at `1150:1906` applies frame flip metadata to persistent `FLG_Flipped` status before collision, but the `gotBlocked` jump bypasses `Item_SetFrame`; the host now preserves that status update without advancing the blocked sprite frame. The native candidate-area scan, point-sweep details, AreaSearch flags, and collision notifications/hurl response remain unimplemented.
|
||||
- Live Ghidra evidence: `1130:12d6` (`Controller_PickNextAnimByKeyevent`) uses current facing for NumLock-on advance/reverse; relative left/right turns select stand animation `0` when unarmed and combat stand `4` when armed. The follow-up direction step is two slots for the 8-direction stand clip and one slot for the 16-direction combat stand clip. Its `iswalk` selection defaults to walk without a weapon and run with one; Shift reverses that choice. An active weapon selects run animation `0x30` instead of unarmed run `3`; `Controller_UpdateAvatarAngle` at `1130:10cf` confirms the weapon-out combat-stance turn path. The host stores weapons as five avatar-owned entities in `AvatarWeaponLoadout`, tracks an active slot from 1 through 5, skips empty slots when cycling, and now carries explicit small/large weapon metadata for ready, combat-stand, and run animation selection. Weapon-size metadata remains caller-supplied until pickup/item metadata is implemented. `1150:016f` (`AnimPrimitive_CheckToStartNewAnimation`) starts or transitions animation processes, and `1150:1906` (`AnimPrimitiveProcess_Run`) advances metadata and displacement.
|
||||
- Movement stance/action extension: `Controller_UpdateAvatarAngle` (`1130:10cf`) selects combat stand `4` or kneel-small-weapon `0x2e` from combat stance and kneeling state without an active-weapon lookup in that pose-selection path. The host now models held aim independently of weapon ownership, kneel start/stop/idle (`0x28`/`0x29`/`0x2e`), slides (`0x1c`/`0x1d`), standing/crouched combat rolls (`0x3d`/`0x3e`, `0x17`/`0x18`), quick jump (`0x3a`), reverse step (`2`), and weapon advance (`0x24`). SDL action bindings use physical keypad scancodes: KP5 crouches; Ctrl+KP8 jumps or stands up, Ctrl+KP4/KP6 roll, and Ctrl+KP2 crouches; Alt+KP8 advances with a weapon, Alt+KP4/KP6 slide, and Alt+KP2 reverses; KP Divide advances with a weapon without Alt/Ctrl. Ctrl diagonal rolls use KP7/KP9/KP1/KP3 with Num Lock off; Alt keypad directions select facing-relative slides with Num Lock on. Right mouse supplies held aim, which the host now disengages when translational movement starts; this is separate from the persistent Space weapon-ready state. Target/crosshair parity remains open. The verified keypad subset does not cover full DOS controller behavior, weapon pickup/drop, firing, small/large weapon-specific poses, or per-weapon graphics. Synthetic tests cover aim without a weapon, aim release and movement cancellation, crouch transitions, both combat-roll variants, action frames/displacement, and the other mapped movement clips.
|
||||
- DOS Space-ready transition: `Controller_HandleKeyEvent` (`1130:2211`) passes key events through `Controller_PickNextAnimByKeyevent`, then checks `NPC_IsLastAnimNotWalkStandStow` (`10e8:1f4d`). On a Space key-down from `Walk`, `Stand`, `QuickJump`, or either unready-weapon animation, it requests `Anim_ReadyWeapon_SmallWpn` (`7`) through `NPC_DoAnim` (`10e8:0252`). `Anim_GetModifiedAnimForWeapon` (`1128:2105`) remaps that request to `Anim_ReadyWeapon_LargeWpn` (`0x0c`) when the active weapon is large. The retail shape-1 ready clips are 11 frames/8 directions (`7`) and 15 frames/8 directions (`0x0c`); `AnimPrimitive_CheckToStartNewAnimation` transitions the completed ready clip to combat stand `4`, which is remapped to large combat stand `0x25` for a large weapon. `NPC_DoAnim`'s ready cases set the ready flag; the ready state persists after Space is released. A later Space key-down in a non-neutral pose enters `Crusader_TryToFireWeapon`; the key-up path releases firing state. The host maps Space key-down to a persistent ready action, plays the size-specific ready clip, then settles into the matching combat stand. Right mouse aim remains separate, and the subsequent firing/release mechanics are still unimplemented.
|
||||
- `Game_CycleActiveAvatarWeaponForward` (`13e8:0c72`) cycles the active slot through inventory offsets 1-5, skipping empty entries, then refreshes weapon/ammo notifications and changes combat/kneeling poses only when applicable. `NPC_GetActiveWeaponOffset` (`10e8:331f`) returns the slot and `NPC_GetActiveWeaponItem` (`10e8:33b0`) resolves its item. `Controller_UpdateAvatarAngle` (`1130:10cf`) derives the 16-way facing from the aim direction and selects combat stand `4` or kneeling small-weapon pose `0x2e`; `Target_UpdateSmallCrosshairs` (`1130:0708`) places the native small reticle. Right mouse and the pointer continue to update aim through the fixed-map viewport and draw a host reticle. Eight axis/diagonal tests cover native-facing quantization; manual SDL aim interaction has not been checked. Native `WpnCache_Init` (`1158:03ff`) loads `STATIC/WPNOVLAY.DAT` and caches weapon overlays by animation; overlay rendering remains deferred.
|
||||
- The animation caller sends grounded frames through `AreaSearch_SweepShapeBetweenPointsWithStepUp` at `10e0:162f` with flags `0x11`; airborne frames call `AreaSearch_SweepTestPt` at `10e0:0b39` directly with flags `4`. The grounded wrapper first tries the requested sweep, then on failure tests vertical clearance and the raised destination at +8, followed by +9. The host models that retry as separate vertical and horizontal TYPEFLAG-bound sweeps, and keeps the direct-only path for airborne frames. A retail-backed isolated-obstacle regression uses map 1 records 6538 (`0x0019`), 6703 (`0x01ca`), and 6635 (`0x0550`) with the actual `TYPEFLAG.DAT` and shape-1 `ANIM.DAT` data: `0x0019` blocks at the contact plane, while the table and chest records cross only after the avatar steps from Z=16 to Z=24. This matches the native +8 probe and does not reproduce tunneling for these instances; the low-object traversal is native step-up behavior. For a rejected grounded solid sweep, the host retains the last legal position and enters a blocked state. SDL key-repeat events can retry a held direction, while other repeated key-downs do not advance the movement animation. `AnimPrimitiveProcess_Run` at `1150:1906` applies frame flip metadata to persistent `FLG_Flipped` status before collision, but the `gotBlocked` jump bypasses `Item_SetFrame`; the host now preserves that status update without advancing the blocked sprite frame. Additional live AreaSearch evidence: `AreaSearch_SweepTestPt` (`10e0:0b39`) derives the mover's X/Y/Z extents from packed shape data, swaps horizontal extents when flipped, checks map-fast-area corners at both endpoints, and initializes an item iterator over swept bounds expanded by `0x100`. `AreaSearch_TestCandidateSweepCollision` (`10e0:032e`) derives each candidate's shape extents, applies vertical and solid/damage filters, and computes contact offsets against candidate box faces. `AreaSearch_RecordSweepContact` (`10e0:0228`) stores contacts and conditionally updates `firstcollision` and blocked state. This is more specific than the host TYPEFLAG AABB sweep, but the AreaSearch field/flag meanings, exact collision-notification policy, and hurl response remain unresolved; full native collision parity is not established.
|
||||
- `AreaSearch_CollideMove` (`10e0:123a`) commits the resolved `srch->pt` with `Item_Move`. For `firstcollision`, it queues paired `0x20b`/`0x20c` hit and got-hit processes with computed impact strength, except matching quantity/reagent shapes may take the stacking path; eligible additional contact-list entries receive paired notifications with zero strength. The temporary process list is then run and destroyed. Exact contact eligibility and downstream hurl response remain open.
|
||||
- Validation after the collision/input corrections: `dotnet build .\CrusaderRebuild.slnx --configuration Debug` succeeded, and all 133 core tests passed with the installed No Remorse data selected through `CRUSADER_REMORSE_DATA_ROOT`, including the retail-backed named-geometry step-up regression. Interactive SDL gameplay has not yet been rechecked.
|
||||
- `AreaSearch_SweepTestPt` (`10e0:0b39`) marks an endpoint invalid when signed X/Y or Z exceeds the supported range, clamps `srch->pt`, and returns failure even if the broadphase scan completes. For an in-range endpoint, a recorded solid contact can still return success with `srch->pt` clipped to the contact; `AnimPrimitiveProcess_Run` then commits that point through `AreaSearch_CollideMove`. The C# movement path now rejects clamped out-of-range endpoints but commits valid clipped contacts and their frame metadata. Synthetic regressions cover both paths; exact native candidate/contact policy remains unresolved.
|
||||
- Map-loaded entity snapshots now derive horizontal flip from FIXED.DAT status bit `0x20`, matching the flag already consumed by the renderer.
|
||||
- The SDL scene sends all spawned or source-pose-changed world entities to a persistent map-render session. The session caches static indexed pixels and prepared shape frames, indexes static nodes in 128-pixel spatial cells, and recomposes only merged old/new sprite bounds intersecting the current viewport. Camera shifts refresh only visible dynamic sprites; deferred offscreen bounds are skipped until visible. The App reuses one streaming SDL texture and converts/uploads only returned patches. The live map's static-item crop recenters around the avatar before its `0x1000` world-coordinate radius is exhausted, then rebuilds the scene and texture so records outside the startup crop enter view; this is rolling map rendering, not a verified native tile-streaming implementation. The live avatar is not drawn as a topmost overlay. Snap camera follow is the default; `--smooth-camera` enables host-side exponential follow and edge clamping. Large position jumps and Z changes snap the camera so the modeled startup teleports do not leave interpolation trails.
|
||||
- The top-left HUD displays FPS. Frame pacing targets 60 FPS and waits only for the remaining frame budget instead of adding a fixed 16 ms sleep after rendering; sustained runtime performance remains unmeasured. Press `H` to toggle the temporary hack mover; while active, `HACK MODE (H)` appears at the top of the screen and a left click inside the map teleports the avatar to that projected world position at its current Z. This is a rebuild debugging control, not a port of the original mover. Follow zoom is limited to 0.5x-1x, using the original 640x480 screen as the native-scale reference. The map fills the available host area without side bars; wider aspect ratios show additional horizontal world. At 0.5x, the visible source dimensions are approximately doubled. The fixed-map diagnostic remains fit-to-window.
|
||||
- Renderer comparison with the earlier C++ implementation found two omission cases: fresh-start rendering inherited the diagnostic default that filters roof-flagged shapes, and C# allowed invisible map records to act as occluders although C++ excludes them. Gameplay now includes roofs, and invisible records no longer cull overlapping sprites. The separate map diagnostic retains its roof toggle/default.
|
||||
- Synthetic tests cover absolute controls, tank advance/reverse, unarmed 8-way and armed 16-way turns, armed run-clip selection, held/released input, walk/run selection, stand transitions, animation displacement and cadence, shape-frame/flip metadata, imported FIXED.DAT flip status, flip-state update before blocked frame rejection, focus-loss release, facing, rollback and held-input retry on map and spawned solid collisions, grounded low-solid step-up, spawn-overlap exit, renderer patch parity, sprite removal, moving bounds, zoom/camera behavior, and projection. Opt-in retail tests cover the roof-flagged shape `0x003c`, the avatar in the shared sort pass, start-scene crop, and the full route followed by movement of the same avatar ID.
|
||||
- `dotnet build CrusaderRebuild.slnx` passed. With `CRUSADER_REMORSE_DATA_ROOT` set to the configured No Remorse install, `dotnet test CrusaderRebuild.slnx` passed all 114 tests. An earlier SDL launch smoke test loaded retail resources, rendered a crop with 1,155 static scene items, and entered the event loop; it was stopped with Ctrl+C. The rolling map window has not yet had a manual boundary-crossing check because the existing debugger session was left undisturbed.
|
||||
- M7 remains incomplete: inventory/weapon-ready transitions into the weapon-drawn movement state, other DOS keypad and modifier combinations, target/crosshair angle updates, exact AreaSearch candidate selection and point-sweep behavior, native collision response/hurl behavior, frame-skip handling, visual input verification, rolling-map boundary verification, measured continuous-motion performance, and parity with native occlusion. The current TYPEFLAG AABB sweep is not full collision parity. Runtime comparison is intentionally out of scope for this movement work. The 320x200 rectangle in `Camera_RedrawViewportAndGameplayOverlays` is a centered redraw region, not the full screen; `Init_Everything` initializes viewport bounds through 639x479. Do not claim native movement or scheduler parity.
|
||||
- Synthetic tests cover absolute controls, tank advance/reverse, unarmed 8-way and armed 16-way turns, armed run-clip selection, held/released input, walk/run selection, stand transitions, animation displacement and cadence, shape-frame/flip metadata, imported FIXED.DAT flip status, flip-state update before blocked frame rejection, focus-loss release, facing, valid solid-contact clipping with frame/flip commit and held-input retry, out-of-range endpoint rejection, grounded low-solid step-up, spawn-overlap exit, renderer patch parity, sprite removal, moving bounds, zoom/camera behavior, and projection. Opt-in retail tests cover the roof-flagged shape `0x003c`, the avatar in the shared sort pass, start-scene crop, and the full route followed by movement of the same avatar ID.
|
||||
- A prior retail-enabled `dotnet test CrusaderRebuild.slnx` run passed all 117 tests with zero skips. After the movement extension, the solution build succeeded without warnings, the current default full suite passed 114 tests with 13 data-gated retail skips (`CRUSADER_REMORSE_DATA_ROOT` was unset), and the avatar-movement-focused filter passed all 24 tests. Synthetic coverage includes boundary rejection, valid solid-contact clipping, and non-solid-mover pass-through. An earlier SDL launch smoke test loaded retail resources, rendered a crop with 1,155 static scene items, and entered the event loop; it was stopped with Ctrl+C. The rolling map window has not yet had a manual boundary-crossing check because the existing debugger session was left undisturbed.
|
||||
- M7 remains incomplete: weapon pickup/drop, correct initial loadout population, firing, small/large-specific pose metadata, per-weapon `WPNOVLAY.DAT` graphics, other DOS keypad and modifier combinations, native reticle/target-acquisition parity, exact AreaSearch candidate selection and point-sweep behavior, native collision response/hurl behavior, frame-skip handling, manual visual input verification, rolling-map boundary verification, measured continuous-motion performance, and parity with native occlusion. The current TYPEFLAG AABB sweep is not full collision parity. Runtime comparison is intentionally out of scope for this movement work. The 320x200 rectangle in `Camera_RedrawViewportAndGameplayOverlays` is a centered redraw region, not the full screen; `Init_Everything` initializes viewport bounds through 639x479. Do not claim native movement or scheduler parity.
|
||||
- Validation after the ready/aim slice: the focused 8-case aim-facing test passed; `dotnet build CrusaderRebuild.slnx` succeeded; retail-enabled `dotnet test CrusaderRebuild.slnx` passed all 141 tests with zero failures. Manual SDL aim interaction remains unverified.
|
||||
- Keyboard weapon-input correction: Space key-down from a neutral animation starts the native ready/draw animation; the resulting weapon-ready state persists after key-up. A later Space press enters native firing, which remains unimplemented. Keypad `*` cycles weapons, and right mouse aim remains independent from weapon readiness.
|
||||
- DOS turn/aim correction: `Controller_UpdateAvatarAngle` (`1130:10cf`) applies 2 degrees per slow-turn keyboard cycle and 5 degrees per fast-turn cycle when `BYTE_1478_6046` is zero; the DOS keyboard daemon runs at 45 cycles/second, yielding 90/225 degrees per second. The native updater can use a separate accelerated global rate, which is not yet modeled. The host integrates the standard rates at its 60 Hz fixed step and quantizes to the current pose's direction count. Aim clears on translational input and remains off while translation is held; the separate weapon-ready flag is unchanged. Focused turn/aim tests passed 7/7. The full Debug solution build succeeded, and the complete suite passed 147/147 with zero skips. Manual SDL verification remains open.
|
||||
|
||||
- Ghidra follow-up verification: `AreaSearch_SweepShapeBetweenPointsWithStepUp` (`10e0:162f`) retries grounded horizontal movement at exactly `start Z + 8`, then exactly `start Z + 9`; it does not derive the step amount from an obstacle's TYPEFLAG footpad. Its raised probes run only when the endpoint Z matches the start Z and the packed destination flags include `0x10`. `AnimPrimitiveProcess_Run` (`1150:212c`) supplies grounded flags `0x11`; its airborne branch supplies `0x04` and does not use the step-up retry. The retail single-obstacle test now covers map records 6674/6677 (`0x003c`), 6701 (`0x00aa`), and 6702 (`0x0586`) as ground-level blocks, and confirms records 6703 (`0x01ca`) and 6635 (`0x0550`) cross at exactly +8. These instance-specific results match the native probes; broader collision parity remains open.
|
||||
|
||||
## Implementation Rules
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue