Systems
One page per game system: what the engine does in that area, which functions have been mapped, and what is still open.
At a glance
- What a page holds
- A summary, key functions, structs and globals, patch points and open questions, always in that order.
- Generated parts
- The function tables come from
symbols/functions.csvin Paleblood; everything else is written by hand. - Where to start
- Frame timing: the per-frame loop that the other systems hang from.
How to read a system page
Every page follows the same five sections, so you can compare systems side by side:
- Summary: how the system works, in prose, with call chains and worked examples.
- Key functions: the generated table of mapped functions, with address, size and status.
- Structs and globals: the data layouts and singletons the functions use.
- Patch points: where community patches or Paleblood's own options change the system.
- Open questions: what is not yet known.
Provenance (pull requests, sources, corrections) sits in collapsed boxes, so the explanation reads straight through.
The pages
| Page | What it covers |
|---|---|
| Frame timing | The frame limiter, the frame step, delta time and the task manager's frame |
| Kernel | The engine's thread, mutex and condition-variable wrappers over the PS4 kernel |
| Engine | Engine-wide helpers: the fatal error report, singletons, reference counting |
| Event | Event entries, Lua event scripts and event flags |
| Camera | Camera update, targeting, world collision and field of view |
| Input | The pad manager and its per-frame step |
| Character | Per-frame updates of character instances |
| AI | The shared Havok AI world and its per-frame step |
| Physics | The rigid-body world, its tables, and the physics-instance constructor |
| Parameters | The parameter tables (PARAM files): the solo parameter repository and its row lookups |
| Menu | The game's menus and dialogs: the text input dialog and item dialog list entries |
| Render | The render frame update and swap-chain presentation |
| Loading | File, Fios and PlayGo interfaces the executable imports |
| Audio | Sound playback, mixing and music |
Progress
| Functions (of target) | Bytes (of target) | |
|---|---|---|
| Target (Ghidra export) | 157,757 | 42,487,404 |
| Replaced | 1,369 (0.87%) | 384,388 (0.90%) |
| Edge-verified (includes verified) | 1,369 (0.87%) | 384,388 (0.90%) |
| Verified | 285 (0.18%) | 70,459 (0.17%) |
Counts are cumulative: verified functions are included in edge-verified and replaced totals.
| With function families | Functions (of target) | Bytes (of target) |
|---|---|---|
| Members of 156 function families | 27,733 (17.58%) | 651,051 (1.53%) |
| Replaced, with family members | 29,102 (18.45%) | 1,035,439 (2.44%) |
| Edge-verified, with family members | 29,102 (18.45%) | 1,035,439 (2.44%) |
| Verified, with family members | 18,304 (11.60%) | 132,885 (0.31%) |
Family members are tiny functions (one to a few bytes each) that share one replacement per family: they add far more to the function count than to the bytes.
Matching tier: 127 functions compile byte for byte to the original from their own C (clang-3.4.2, every reference checked; symbols/matching.csv). Matching is optional evidence and is not a separate status.
| System | Tracked | Replaced | Edge-verified (includes verified) | Verified | Replaced bytes |
|---|---|---|---|---|---|
| ai | 59 | 59 | 59 | 31 | 19,421 |
| audio | 9 | 9 | 9 | 2 | 902 |
| camera | 8 | 8 | 8 | 0 | 21,151 |
| character | 12 | 12 | 12 | 6 | 3,823 |
| engine | 659 | 658 | 658 | 76 | 155,086 |
| event | 2 | 2 | 2 | 2 | 545 |
| frame_timing | 100 | 99 | 99 | 16 | 23,286 |
| input | 13 | 13 | 13 | 6 | 2,431 |
| kernel | 39 | 39 | 39 | 29 | 4,385 |
| loading | 96 | 96 | 96 | 8 | 24,939 |
| menu | 30 | 30 | 30 | 6 | 4,830 |
| param | 141 | 141 | 141 | 23 | 44,134 |
| physics | 10 | 10 | 10 | 1 | 4,711 |
| render | 193 | 193 | 193 | 79 | 74,744 |
Generated by tools/sync_progress.py from the code repo. Do not edit.
Adding a system
- Add a directory under
game/in Paleblood. - Add a page here (copy any existing one).
- Add the page to the site navigation.
- Run
tools/sync_progress.py.