Commit graph

92 commits

Author SHA1 Message Date
522c52d65d 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.
2026-10-13 00:56:16 +02:00
Marco
c956923bcd Add feasibility study for C# and SDL3 Crusader rebuild
- Document the technical feasibility of rebuilding Crusader using C#, .NET 10, and SDL3.
- Outline the executive summary, platform assessment, recommended architecture, and delivery plan.
- Define mod support and creator workflow, including debugging scope and principal risks.
- Establish clear milestones and gates for project phases, from technical spike to No Regret integration.
2026-10-12 17:27:19 +02:00
4fd3f23271 Ghidra fix 2026-10-12 00:43:12 +02:00
b7b60c191a decomp work 2026-10-12 00:41:16 +02:00
ec236a2430 decomp 2026-10-11 18:49:46 +02:00
1b70294ef7 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.
2026-10-10 14:42:43 +02:00
7586979838 Add function identification map for CRUSADER.EXE and update workspace paths
- Introduced a new documentation file `crusader-exe-function-identification-map.md` detailing the inventory of functions in the Ghidra `CRUSADER.EXE` database, including unresolved naming candidates and processed functions.
- Updated the `Crusader_Decomp.code-workspace` to reflect changes in project paths, swapping the locations of `GhidraMCP` and `crusader_map_viewer`.
- Added a new binary file `db.74.gbf` to the user database.
2026-10-09 22:07:57 +02:00
Marco
048af58296 map editor doc 2026-10-09 19:31:55 +02:00
Marco
3b2561b053 Add build scripts, documentation, and smooth camera analysis for ScummVM's Ultima VIII engine
- Introduced `build-scummvm.ps1` and `run-scummvm.ps1` scripts for building and running the ScummVM project with MSVC.
- Created `phase-0-evidence-compatibility-gate.md` to outline the evidence and compatibility gate for the Crusader project.
- Added `smooth-camera-analysis.md` detailing the proposed smooth camera behavior and regression checks.
- Documented the Visual Studio build process in `visual-studio-build.md`, including prerequisites and steps for generating the Ultima solution.
- Updated `startup-map-patch-file.md` to clarify the behavior of the fixed-map and glob archives in the GOG installation.
2026-10-09 16:59:29 +02:00
9d253abcf9 workspace 2026-10-09 00:58:40 +02:00
Marco
1225a3e737 Refactor and enhance documentation and tooling for Crusader USECODE
- Updated retail-debugger-entry-options.md to clarify the status of the debugger in No Remorse and No Regret, including findings from recent investigations.
- Revised usecode-format-specification.md to improve clarity on opcode behavior and historical naming conventions, with added references to Japanese executable analysis.
- Introduced usecode-jp-dispatch-analysis.md to document findings from the Japanese No Remorse executable, detailing opcode dispatch and search object behavior.
- Added ghidra_to_dosbox_memory.py, a new tool for translating Ghidra segment:offset addresses to DOSBox physical memory offsets, including comprehensive address validation.
- Created test_ghidra_to_dosbox_memory.py to ensure the correctness of address translation logic and selector base loading, with unit tests covering various scenarios.
2026-10-08 17:40:59 +02:00
ffb1918f35 Add tests for controller fire attempt suppression and usecode interpreter functionality
- Enhanced isometric_controls_tests.cpp to include assertions for controller fire attempt suppression under various conditions.
- Added tests for the Usecode interpreter in usecode_vm_tests.cpp, verifying script execution and stack manipulation.
- Introduced a new PowerShell script, clean-old-build-artifacts.ps1, to facilitate the cleanup of old build artifacts in specified directories.
2026-10-08 09:01:31 +02:00
49a15602b6 Refactor entity dispatch entry management and enhance item grab search tests 2026-10-07 18:04:47 +02:00
25f258393f Roadmap update 2026-10-07 00:20:26 +02:00
a76b071049 Enhance animation and control tests; improve rendering and shape loading validation
- Added tests for player animations in animation_archive_tests to ensure all animations are loaded correctly.
- Updated entity_dispatch_entry_tests to validate animation direction updates and added tests for sixteen-direction animations.
- Expanded isometric_controls_tests with comprehensive key event handling and action requests for various controller states.
- Improved map_renderer_tests by adding viewport rendering tests to compare unbounded and bounded views.
- Enhanced shape_archive_tests to validate shape frame loading and decoding consistency.
2026-10-07 00:18:08 +02:00
e00f9f3186 Enhance teleporter and map rendering tests
- Added initialization of startup processes in flex_archive_tests to ensure proper setup before teleporter operations.
- Updated assertions to verify the correct allocation and state of processes during teleporter execution.
- Introduced new tests in map_renderer_tests to validate shape rendering, including isolated shape rendering and player sprite integration.
- Enhanced map_sorter_tests with additional checks for occlusion handling and boundary conditions in render order resolution.
2026-10-06 21:07:35 +02:00
6d4972933f Refactor USECODE tooling documentation and enhance map-viewer decompiler
- Updated the USECODE Tool Improvement Plan to focus on the map-viewer decompiler/editor, emphasizing its role as the primary development target for USECODE editing and recompilation.
- Revised the tooling comparison document to include the newer map-viewer decompiler, clarifying its purpose and distinguishing it from the Python parser.
- Introduced a new ClearAvatarInStasisProcessEntry structure in the entity dispatch entry header, along with related process creation and execution logic in the ProcessKernel.
- Implemented the setItemShape method in LiveFixedMapItems to allow dynamic shape updates for items.
- Enhanced the teleporter process to handle avatar stasis and integrated it into the game main loop, ensuring proper process management and state handling.
- Added tests for the new functionality, including shape setting and teleporter process behavior, to ensure correctness and stability.
2026-10-06 00:01:20 +02:00
0771c86043 Refactor usecode task management and enhance teleportation logic
- Improved the queueUsecodeTask function to streamline process termination and context management.
- Added robust error handling for event context creation and memory writing.
- Enhanced the loadSceneAsync function to better handle avatar teleportation, including a new teleporter process.
- Expanded entity dispatch tests to cover movement and teleporter processes, ensuring correct behavior under various conditions.
- Introduced new tests for usecode runtime memory allocation and context creation, validating edge cases and error handling.
- Updated flex archive tests to ensure proper loading and unloading of usecode slot chunk caches.
2026-10-05 21:50:41 +02:00
8c23bb02c9 Enhance Usecode handling with new structures and caching mechanisms
- Introduced UsecodeSlotOwnerBuffers for managing descriptors and chunk states.
- Added UsecodeSlotChunkCache class for efficient loading and unloading of event bodies.
- Updated UsecodeClass to include extraSlotCount and adjusted related functions.
- Implemented tests for new functionality, ensuring correct behavior of slot management and event loading.
2026-10-04 18:29:58 +02:00
08a907f322 Add comprehensive tests for ProcessKernel and Usecode VM functionality
- Implemented tests for ProcessKernel in entity_dispatch_entry_tests.cpp, covering process creation, termination, and scanning of runnable processes.
- Enhanced fixed_map_tests.cpp with tests for item allocation and release, including recycling of items and process ownership.
- Expanded flex_archive_tests.cpp to validate the interaction between usecode events and item processes, ensuring correct behavior of spawned tasks and rendering.
- Introduced usecode_vm_tests.cpp to thoroughly test the UsecodeInterpreterState and UsecodeProcessTask functionalities, including stack operations and opcode services.
2026-10-04 18:11:16 +02:00
e757bb33d0 Add extensive tests for animation, input handling, and map rendering
- Enhanced animation archive tests to validate frame metadata and start frame selection logic.
- Introduced new tests for entity dispatch entry handling, including key event queuing and processing.
- Added tests for fixed map item interactions, including glob egg hatching and item movement.
- Expanded flex archive tests to cover teleport egg spawning and usecode event selection.
- Implemented isometric controls tests to verify directional key handling and animation state changes.
- Improved map renderer tests to ensure correct rendering of map previews and collision detection.
2026-09-27 11:48:14 +02:00
2e16b2d524 Implement gravity resolution and fast area calculations in collision handling 2026-09-26 21:58:01 +02:00
b3975ca41b Refactor collision handling and item management in the Remorse project
- Introduced new structures for handling sweep impacts and collision results, including SweepItemImpact, SweepCandidateImpact, and SweepCollisionResult.
- Implemented functions to check if a world point or sweep footprint is within a defined fast area.
- Enhanced LiveFixedMapItems to manage contained items and support item allocation with parent-child relationships.
- Updated collision detection logic to handle solid item impacts and collect sweep impacts from live items.
- Added tests for new collision functionalities, including sweep impact resolution and candidate selection.
- Modified existing tests to validate new item management features and ensure proper integration with the collision system.
2026-09-26 19:50:26 +02:00
b99fb59c12 Enhance item handling and collision detection in remorse
- Introduced new functionality for staging and managing fixed map items, including the ability to build block chains and find candidates for item interactions.
- Updated the main application logic to utilize staged item block chains for improved item finding and grabbing mechanics.
- Added weight attribute to shape type information, allowing for more nuanced item interactions based on weight.
- Enhanced collision tests to cover new item handling scenarios, including gravity sweeps and item grabbing.
- Implemented additional tests for entity dispatch entries and fixed map items to ensure robustness of item spawning and movement logic.
- Improved type flags loading to validate weight against binary data, ensuring consistency in item attributes.
2026-09-26 19:20:20 +02:00
c346b0e1a7 Add comprehensive tests for entity dispatch, file system, fixed map, flex archive, isometric controls, and crash setup
- Enhance `entity_dispatch_entry_tests.cpp` with additional assertions for event type checks, group ID increments, and error handling.
- Refactor `file_system_tests.cpp` to streamline probe execution and enhance output validation.
- Extend `fixed_map_tests.cpp` to cover retail map loading, item classification, and process creation scenarios.
- Introduce new checks in `flex_archive_tests.cpp` for usecode loading and event handling, ensuring robust validation of game data.
- Add tests in `isometric_controls_tests.cpp` for controller direction mapping based on scan codes.
- Implement `test_crash_setup.cpp` to initialize crash diagnostics for improved error handling during tests.
2026-09-26 15:36:11 +02:00
202679f857 Add comprehensive tests for collision detection, entity dispatch, file system, isometric controls, map rendering, and sorting
- Implemented collision tests to verify overlap and movement logic for collision bodies.
- Enhanced entity dispatch entry tests to cover initialization, group ID management, and process handling.
- Expanded file system tests to include crash diagnostics and ensure proper game data root detection.
- Created isometric controls tests to validate movement requests and screen projection calculations.
- Added map renderer tests to check fixed map loading and rendering functionality.
- Introduced map sorter tests to confirm correct rendering order for various items.
2026-09-25 21:41:20 +02:00
8907604b84 Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
6ca3b18c3e Decomp 2026-04-20 07:58:27 +02:00
399017ab45 Dynamic map viewer psx 2026-04-18 16:53:43 +02:00
2b1f1a0191 map viewer 2026-04-18 16:34:35 +02:00
93bc6e7a07 Fixed palettes 2026-04-18 14:38:40 +02:00
9fe261610f psx map improvement 2026-04-16 23:52:41 +02:00
Marco
328a8ba30f Add Ghidra coverage agents and update documentation for enhanced function analysis
- Introduced `Ghidra Coverage Batch Director` and `Ghidra Coverage Mini` agents for improved parallel analysis and function coverage in `CRUSADER.EXE`.
- Updated `ghidra.instructions.md` to clarify documentation practices and legacy file handling.
- Added recent verified function coverage updates to `crusader_decompilation_notes.md` and `plan-mid.md` for better tracking of analysis progress.
- Included new binary files for enhanced data handling in the project.
2026-04-15 17:16:53 +02:00
2d6863f794 ghidra project 2026-04-15 08:14:23 +02:00
Marco
8d34c85c22 PSX Research 2026-04-13 16:50:28 +02:00
Marco
2f243976b6 psx map standalone exporter 2026-04-13 15:59:50 +02:00
a9153546ae Research 2026-04-12 14:45:08 +02:00
Marco
28cbbe3470 Furthened decomp work 2026-04-10 18:14:55 +02:00
746709f40c Decompilation unk files generation 2026-04-10 00:45:41 +02:00
d323bb28fc more work done 2026-04-09 00:32:12 +02:00
5cc5612f4e Documentation progress 2026-04-08 00:03:10 +02:00
Marco
94c49ac5bd PSX Research 2026-04-07 17:16:44 +02:00
bbd29b1f10 PSX Decompilation 2026-04-07 00:15:44 +02:00
56f6099820 Documentation upgrade 2026-04-06 12:19:03 +02:00
73931629ae deepened understanding 2026-04-05 18:27:09 +02:00
a70ec15899 more docs 2026-04-05 09:55:21 +02:00
1ad746ba82 Updated knowledge 2026-04-02 01:15:16 +02:00
Marco
5f22a8e2fd Documentation progress 2026-04-01 17:40:52 +02:00
7f935809b6 Added static files 2026-04-01 08:09:12 +02:00
5968c8a3ec decomp docs update 2026-04-01 00:31:23 +02:00