[PR #2186] tools: read boot timeline states from the configured RVAs #2190

Open
opened 2026-11-26 21:20:21 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2186
Author: @ecox982745
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: ed/stage-timeline-peek-rvas


📝 Commits (1)

  • 132b131 tools: read boot timeline states from the configured RVAs

📊 Changes

3 files changed (+108 additions, -17 deletions)

View changed files

📝 scripts/windows-boot/README.md (+4 -0)
➕ tests/test_stage_timeline_rvas.py (+75 -0)
📝 tools/stage_timeline.py (+29 -17)

📄 Description

Claimed in the coordination issue as TOOL-STAGE-TIMELINE-PEEK-RVAS. This follows aslan2142’s finding after #2138 merged.

What and why

The boot script now records locally configured state addresses. The offline timeline still looked up three fixed addresses. A log recorded with different addresses could report “no title state yet” throughout a run and pair presses with misleading transitions.

The timeline now uses LEONIDA_GAME_STATE_RVA and LEONIDA_SESSION_STATE_RVA. Each can be overridden on the command line for saved logs. --load-state-rva selects the optional loading-screen byte. Unrelated samples are skipped, and a log with no matching fields exits with a diagnostic. A matching unreadable field still represents an unknown state.

Tested

  • Five offline CLI regression tests with hand-written logs. The new suite failed on main 0b11d86bc and passed on the proposed tree. It covers JSON and text output, press pairing, optional loading-state transitions, hexadecimal spellings, and configuration errors.
  • The semantic suite passed across 498 files and 6,351 tests. Documentation links, text line endings, Python compilation, and the changed-file game-data check passed.
  • The fork branch starts at its existing main. Its clean merge with upstream 0b11d86bc produces the exact tested tree (6dc52c3dd). #1789 also edits this parser and its proposed tests assume fixed addresses. If that PR proceeds, those fixtures will need to supply their RVAs.

GPUs tested: N/A for the offline log reader. Tests ran on Windows.

AI-assisted: OpenAI Codex (gpt-6.2-astra).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2186 **Author:** [@ecox982745](https://github.com/ecox982745) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ed/stage-timeline-peek-rvas` --- ### 📝 Commits (1) - [`132b131`](https://github.com/ubiquitarianism/leonida/commit/132b131b801edf589f3e94e88bae3d401c730c82) tools: read boot timeline states from the configured RVAs ### 📊 Changes **3 files changed** (+108 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `scripts/windows-boot/README.md` (+4 -0) ➕ `tests/test_stage_timeline_rvas.py` (+75 -0) 📝 `tools/stage_timeline.py` (+29 -17) </details> ### 📄 Description Claimed in the coordination issue as [TOOL-STAGE-TIMELINE-PEEK-RVAS](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7181546373). This follows [aslan2142’s finding](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7181450722) after #2138 merged. ### What and why The boot script now records locally configured state addresses. The offline timeline still looked up three fixed addresses. A log recorded with different addresses could report “no title state yet” throughout a run and pair presses with misleading transitions. The timeline now uses `LEONIDA_GAME_STATE_RVA` and `LEONIDA_SESSION_STATE_RVA`. Each can be overridden on the command line for saved logs. `--load-state-rva` selects the optional loading-screen byte. Unrelated samples are skipped, and a log with no matching fields exits with a diagnostic. A matching unreadable field still represents an unknown state. ### Tested - Five offline CLI regression tests with hand-written logs. The new suite failed on main `0b11d86bc` and passed on the proposed tree. It covers JSON and text output, press pairing, optional loading-state transitions, hexadecimal spellings, and configuration errors. - The semantic suite passed across 498 files and 6,351 tests. Documentation links, text line endings, Python compilation, and the changed-file game-data check passed. - The fork branch starts at its existing main. Its clean merge with upstream `0b11d86bc` produces the exact tested tree (`6dc52c3dd`). #1789 also edits this parser and its proposed tests assume fixed addresses. If that PR proceeds, those fixtures will need to supply their RVAs. GPUs tested: N/A for the offline log reader. Tests ran on Windows. AI-assisted: OpenAI Codex (`gpt-6.2-astra`). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2190
No description provided.