diff options
| author | Rafael <rafaelalvesp2005@gmail.com> | 2026-11-22 17:00:38 -0300 |
|---|---|---|
| committer | Rafael <rafaelalvesp2005@gmail.com> | 2026-11-22 17:03:37 -0300 |
| commit | 3c0d5b449ab31dcb73c578ebd4b285b7909eb38e (patch) | |
| tree | fb6312e7971acc6129264cda4770f4c9f7f31a2e /docs/models.md | |
| parent | cb4ca6e25348f22dcdd7996b6c434b900aa68222 (diff) | |
docs/models.md: effect records are walked forward from stored lengths (#3036 c0439966)
The table-location caveat is gone: tests/test_sgd5_effects.py passes
against this package. The u32 after an effect name stays open.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/models.md')
| -rw-r--r-- | docs/models.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/models.md b/docs/models.md index c29e4e656..3926b81eb 100644 --- a/docs/models.md +++ b/docs/models.md | |||
| @@ -552,9 +552,11 @@ are little-endian: | |||
| 552 | The group walk and its counts above were reproduced on a 1.0.2.1 copy (the same `shaders.rpf`, SHA-256 | 552 | The group walk and its counts above were reproduced on a 1.0.2.1 copy (the same `shaders.rpf`, SHA-256 |
| 553 | `0bc16345…`). So was @jeremygold02's census of both databases' effects with `tools/sgd5_effects.py | 553 | `0bc16345…`). So was @jeremygold02's census of both databases' effects with `tools/sgd5_effects.py |
| 554 | --list-effects` (#3036, `0029eba7`): 932 effect records with 932 distinct name hashes, 913 of them with a | 554 | --list-effects` (#3036, `0029eba7`): 932 effect records with 932 distinct name hashes, 913 of them with a |
| 555 | technique table, 25,037 techniques and 28,798 passes. The census finds technique tables by a validated search | 555 | technique table, 25,037 techniques and 28,798 passes. Since `c0439966` the tool also **walks** the records |
| 556 | inside each effect, not by a decoded pointer. The record and pass format below was also checked by hand on | 556 | forward from each database's effect count, using only stored lengths: every record's string pool, the next |
| 557 | three records: | 557 | record, and at the end the terminal word and zero padding. Its tests, run against this package |
| 558 | (`LEONIDA_GAME_DIR` set, `tests/test_sgd5_effects.py`), pass: the walk and the earlier search agree on every | ||
| 559 | record, technique and pass. The record and pass format below was also checked by hand on three records: | ||
| 558 | 560 | ||
| 559 | | Record | Stage list sizes | Techniques | Passes (total = sum of counts) | First pass list 0 / list 1 ordinal | | 561 | | Record | Stage list sizes | Techniques | Passes (total = sum of counts) | First pass list 0 / list 1 ordinal | |
| 560 | |---|---|---:|---:|---| | 562 | |---|---|---:|---:|---| |
| @@ -564,8 +566,7 @@ three records: | |||
| 564 | 566 | ||
| 565 | Two things are still open: | 567 | Two things are still open: |
| 566 | 568 | ||
| 567 | - **Decoding the pointers.** The census finds every effect's technique table by a validated search, not by a | 569 | - **The u32 after an effect's name.** What it means is still unknown. |
| 568 | decoded pointer, and the u32 after an effect's name is still opaque. | ||
| 569 | - **Which technique and pass the game draws with.** That is a run-time choice; it is presumably made in the | 570 | - **Which technique and pass the game draws with.** That is a run-time choice; it is presumably made in the |
| 570 | executable (RT-5). | 571 | executable (RT-5). |
| 571 | 572 | ||