mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:25:52 +01:00
[PR #1763] OLD-9905: navmesh: rule out stream lengths as the 4 KiB boundary selector (ASSET-445) #1778
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1778
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1763
Author: @potatoe0100
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9905📝 Commits (1)
04f3f50Measure the 4 KiB boundary cases in navmesh directories📊 Changes
3 files changed (+30 additions, -8 deletions)
View changed files
📝
docs/navmesh.md(+15 -4)📝
tests/test_navmesh_decode.py(+11 -2)📝
tools/navmesh_decode.py(+4 -2)📄 Description
Claimed in the coordination issue as: OLD-9905 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161295097)
What and why
Carries on old PR 9905 by @cdomergue (draft #170, branch
old-pr/9905, listed in #17), rebased on currentmainwith the author's commit kept.docs/navmesh.mdleft open what decidesu16@0x4e(storedpgor zero) on the 307 two-stream pages whose runtime data ends exactly on Stream 0's last 4 KiB boundary. The author's measurement rules out the obvious candidates: the ordered pair of inflated stream lengths, the 24-byte block map, and the distance fromdata_endto the end of Stream 0 all give both values. The doc now says so, with the steps to repeat it.tools/navmesh_decode.py --csvgains two columns,first_stream_bytesandruntime_data_end(the latter only when the block map check passes), which the repeat steps use;tests/test_navmesh_decode.pychecks them. The selection rule stays open.Tested
python -I tests/test_navmesh_decode.py: 17 tests OK. The othertests/test_navmesh*.pyand alltests/test_docs*.pypass (two navmesh tests skip without game files).python -m compileall -q make_game.py tools tests: clean. Python 3.13, Linux.GPUs tested: n/a (no GPU code)
AI-assisted: yes (Claude rebased and tested; the original commit says AI-assisted too)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.