upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/models.md
diff options
context:
space:
mode:
authorRafael <rafaelalvesp2005@gmail.com>2026-11-22 17:00:38 -0300
committerRafael <rafaelalvesp2005@gmail.com>2026-11-22 17:00:38 -0300
commitf76ee8ea330751a3feb43997bc11e28a01ea03a2 (patch)
treec6b185f22b434051edb230d994a427a7d447fd71 /docs/models.md
parent48cf8dbafbea665ba8d4ce3e1c8de7d5f6d22f8c (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.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/models.md b/docs/models.md
index 344697b8e..301661256 100644
--- a/docs/models.md
+++ b/docs/models.md
@@ -537,9 +537,11 @@ are little-endian:
537The group walk and its counts above were reproduced on a 1.0.2.1 copy (the same `shaders.rpf`, SHA-256 537The group walk and its counts above were reproduced on a 1.0.2.1 copy (the same `shaders.rpf`, SHA-256
538`0bc16345…`). So was @jeremygold02's census of both databases' effects with `tools/sgd5_effects.py 538`0bc16345…`). So was @jeremygold02's census of both databases' effects with `tools/sgd5_effects.py
539--list-effects` (#3036, `0029eba7`): 932 effect records with 932 distinct name hashes, 913 of them with a 539--list-effects` (#3036, `0029eba7`): 932 effect records with 932 distinct name hashes, 913 of them with a
540technique table, 25,037 techniques and 28,798 passes. The census finds technique tables by a validated search 540technique table, 25,037 techniques and 28,798 passes. Since `c0439966` the tool also **walks** the records
541inside each effect, not by a decoded pointer. The record and pass format below was also checked by hand on 541forward from each database's effect count, using only stored lengths: every record's string pool, the next
542three records: 542record, and at the end the terminal word and zero padding. Its tests, run against this package
543(`LEONIDA_GAME_DIR` set, `tests/test_sgd5_effects.py`), pass: the walk and the earlier search agree on every
544record, technique and pass. The record and pass format below was also checked by hand on three records:
543 545
544| Record | Stage list sizes | Techniques | Passes (total = sum of counts) | First pass list 0 / list 1 ordinal | 546| Record | Stage list sizes | Techniques | Passes (total = sum of counts) | First pass list 0 / list 1 ordinal |
545|---|---|---:|---:|---| 547|---|---|---:|---:|---|
@@ -549,8 +551,7 @@ three records:
549 551
550Two things are still open: 552Two things are still open:
551 553
552- **Decoding the pointers.** The census finds every effect's technique table by a validated search, not by a 554- **The u32 after an effect's name.** What it means is still unknown.
553 decoded pointer, and the u32 after an effect's name is still opaque.
554- **Which technique and pass the game draws with.** That is a run-time choice; it is presumably made in the 555- **Which technique and pass the game draws with.** That is a run-time choice; it is presumably made in the
555 executable (RT-5). 556 executable (RT-5).
556 557