Commit graph

74 commits

Author SHA1 Message Date
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
eea47d884e Furthered knowledge 2026-03-31 00:35:13 +02:00
Marco
c36f6f6f11 Decomp progress 2026-03-30 17:37:20 +02:00
f528404761 Translucency doc 2026-03-30 14:07:00 +02:00
c4fa8a6b05 Decomp updates 2026-03-30 00:19:01 +02:00
f6a5155675 Removed items doc 2026-03-29 13:47:42 +02:00
c34f481c3a Documentation improvements 2026-03-29 01:14:09 +01:00
d78808d6b5 Moved map renderer to its own repo 2026-03-28 08:54:44 +01:00
Marco
90954fbf37 feat: enhance map renderer with catalog synchronization and reload functionality
- Added a "Reload Current Map" button to the left panel for refreshing the selected map after catalog edits.
- Updated catalog CSV handling to support non-authoritative `categorization` and `qualities` columns.
- Implemented automatic addition of newly observed shapes to the game catalog CSV during cache builds.
- Modified catalog entry handling to ensure proper boolean overrides for `roof` and `semitransparency`.
- Introduced `ensureShapeCatalogCoverage` function to maintain catalog integrity based on observed shapes.
- Enhanced the serialization of catalog entries to include new fields and proper formatting.
- Updated UI to reflect changes in reload state and button functionality.
2026-03-27 17:27:51 +01:00
Marco
f93cfc31c8 Refactor map renderer and server API
- Updated index.html to enhance UI with new elements for hidden shapes and catalog CSVs.
- Changed download button to a button element for better accessibility.
- Modified server.js to improve API endpoints:
  - Renamed overlays endpoint to scene for clarity.
  - Updated tile rendering endpoints to use atlas instead of tile coordinates.
  - Added new endpoint for downloading shape catalog CSV files.
  - Removed unused options in build creation.
2026-03-27 16:28:45 +01:00
Marco
ab5e514e61 Implement inspect mode for shape metadata and enhance overlay interactions 2026-03-27 13:30:49 +01:00
Marco
06e67d8341 Implement overlay sprite rendering and update API endpoints for overlays 2026-03-27 13:12:45 +01:00
Marco
d8940a1b1d Add overlay support with interactive tooltips and metadata display 2026-03-27 12:01:21 +01:00
Marco
549ff38334 Enhance map rendering with WebP support and loading feedback
- Update tile rendering to support both PNG and WebP formats.
- Introduce a loading spinner and progress bar for build feedback.
- Remove the manual build button; builds now trigger automatically on map selection.
- Add a phase plan document outlining future improvements and goals.
2026-03-27 11:02:30 +01:00
Marco
24a4d90a3e Added node based web map renderer 2026-03-27 10:04:44 +01:00
82ae89865a Add new modules for Crusader map rendering and processing
- Implemented `formats.py` to define data structures and functions for handling map data, including reading and decoding shape and map items.
- Created `png.py` for generating PNG images from shape frames and pixel data.
- Developed `sorting.py` to manage the sorting and rendering order of map items based on their properties and spatial relationships.
- Introduced `render_all_maps.py` to facilitate the rendering of all maps for specified games, including command-line argument parsing and subprocess management for rendering tasks.
2026-03-27 08:22:09 +01:00
af5b77ea13 Map sorting and usecode 2026-03-26 23:12:38 +01:00
589bfc31ef Pseudocode decompialtion improvements and docs 2026-03-26 22:10:48 +01:00
f869a181a3 renamed ghidra mcp wishlist to avoid gitignore 2026-03-26 17:35:07 +01:00