Skip to content

Live Pokémon and Bag browsing while walking (#202; PokéNav excluded) - #297

Merged
ZallaxDev merged 10 commits into
ZallaxDev:integrationfrom
mkrieger95:feature/issue-202-live-party-browsing
Nov 21, 2026
Merged

ZallaxDev merged 10 commits into
ZallaxDev:integrationfrom
mkrieger95:feature/issue-202-live-party-browsing

Conversation

@mkrieger95

@mkrieger95 mkrieger95 commented Nov 20, 2026 •

Copy link
Copy Markdown

Summary

Implement the Pokémon party and Bag portions of #202: browse the existing v4.2 bottom-screen views without pausing overworld movement, and hand off to the original game menus only for actions.

Deliberate scope boundary: PokéNav is excluded from this PR by design. It remains unchanged and is separately tracked as #299, an unassigned follow-up for another contributor. PokéNav is not a blocker to reviewing or merging this implementation. This PR references—but does not close—the broader #202.

What changed

Live Pokémon party

  • Optional LIVE PARTY switch in ENHANCEMENTS (OFF by default).
  • Draw the current party, including names, sprites, HP, status, and held-item indicators, using the existing v4.2 view while the field keeps updating.
  • Touch to select a party member. ACTIONS waits for a safe field state before opening the original party menu, then routes selection through its normal handler.
  • The POKéMON tab button returns to MAP; the original animated menus still handle summary, moves, and other game actions.

Live Bag

  • Separate LIVE BAG switch (OFF by default).
  • Browse the five item pockets, touch/select items, swipe/scroll lists, and view quantities, registered key items, and item descriptions without starting the original Bag task.
  • Read decrypted quantities through the game's Bag API rather than interpreting encrypted save data.
  • ACTIONS transfers the current pocket and cursor position to the original Bag menu once the overworld is idle. The game's own item-use, give, toss, and other interactions remain authoritative.
  • Safeguards prevent forwarding live taps to non-running menu handlers and clear pending requests on interruption/soft reset.

Compatibility and performance

  • CLASSIC MENUS retains its existing behavior; the two live switches are independent.
  • Reuse current bottom-screen artwork/renderers and dirty-region updates, without new texture assets or a background game-menu task.
  • No PokéNav code, rendering, or input behavior is changed.

Intentionally out of scope

Live PokéNav browsing is a separate contributor task: #299. Its current screens rely on the game's GBA-rendered PokéNav task, so they need their own read-only data adapters and UI/state transition design. Do not extend this PR to implement PokéNav; leave it available for another developer.

Review fixes

Addressed all three Codex review findings from the review of 0f2e8af:

  1. Gaps in Bag pockets: read every slot and build a compact display-to-save-slot mapping. Do not compact the actual save just for browsing. Match the item when opening the real menu, including its native TM/Berry sorting.
  2. Cancelled Party action: revoke a queued selection when its start plan is canceled or replaced, and require the expected field-party session before dispatching a native tap. Never deliver it to a scripted chooser.
  3. Shrinking party: normalize the stored live selection as well as the drawn highlight so ACTIONS remains usable.

New compiled host fixtures exercise all three failure modes, including gaps at index zero/middle, native sorted item rank, cancelled/replaced plans, scripted menu rejection, and removal of the previously selected party member. Review discussions have replies and have been resolved.

Verification

  • CI run #863 on the latest commit: release versions, host tests (including the new fixtures), and Python audit/test jobs for both 3.11 and 3.15.2 passed; build-3ds was in progress at the last check.
  • Still requires interactive Azahar and preferably Old/New 3DS gameplay checks: continue walking while viewing/scrolling, action handoff into the correct original menu, interruptions, classic fallback and frame pacing. CI validates compilation and synthetic cases; it cannot establish real gameplay correctness.

Related: #202, #299, #106, #108.

@mkrieger95 mkrieger95 changed the title Draft: live Pokémon party browsing while walking (#202, phase 1) Draft: live Pokémon and Bag browsing while walking (#202) Nov 20, 2026
@mkrieger95 mkrieger95 changed the title Draft: live Pokémon and Bag browsing while walking (#202) Live Pokémon and Bag browsing while walking (#202; PokéNav excluded) Nov 20, 2026
@mkrieger95
mkrieger95 marked this pull request as ready for review November 20, 2026 21:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T21:17:07.073957Z 0f2e8af Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0f2e8afd02

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread 3ds_port/src/3ds_bottom_snapshot.inc Resolved
Comment thread 3ds_port/src/3ds_bottom_actions.inc Resolved
Comment thread 3ds_port/src/3ds_bottom_snapshot.inc Resolved
@ZallaxDev

Copy link
Copy Markdown
Owner

Thanks for the live Party/Bag work, @mkrieger95! We built edcf8a5: the three earlier Codex findings are addressed, both host fixtures pass, and in Azahar the existing Party and Bag menus behave as before and an existing save loads and reloads fine.

One blocker before merging: LIVE PARTY and LIVE BAG are registered in 3ds_extras.c (lines 292–293) and default to off, but neither key has an EXTRA_ROW in 3ds_bottom_options.inc (around lines 203–216), so players can't enable either feature. Could you expose both switches in a visible Options group (keeping the six-row limit) and check that each one persists independently after a restart?

A minor one: in 3ds_bottom_actions.inc (around lines 671–677), on a long list that's already scrolled, a purely horizontal drag of more than 8 px also scrolls one row up. Requiring vertical movement before applying the one-row minimum should fix it.

Once the switches are reachable, it would be great to retest walking with each view open, ACTIONS on a non-lead Pokémon, and a battle or warp interrupting the view (also on bike and surf). Thanks!

Add independently configurable Live Party and Live Bag toggles in a dedicated General/Live options group without exceeding tab/row limits. Ignore horizontal swipes with small vertical jitter while preserving row-by-row vertical scrolling. Add production-source swipe regression checks and a settings serializer/reload fixture to CI.

Copy link
Copy Markdown
Author

Hi @ZallaxDev — addressed both requests for #297 in ba66fff / d11f1cc:

  • Added LIVE PARTY and LIVE BAG as independent default-OFF EXTRA_ROW switches in a new GENERAL → LIVE group. GENERAL now has exactly four groups; all groups stay within the six-row limit, and existing groups/rows remain accessible.
  • Fixed the live Bag drag issue: a horizontal swipe (including up to 8 px of vertical jitter) no longer causes a one-row scroll; vertical swipes still scroll as expected.
  • Added host regression checks for option visibility/group limits, production swipe row calculation, and independent live_party / live_bag settings serialization and reload. The settings shutdown fixture now runs in host CI.

GitHub currently reports the PR mergeable with no conflicts. Fresh CI run: https://github.com/ZallaxDev/emerald-3ds/actions/runs/44910386052 (in progress as of this comment). I haven't claimed the additional Azahar/on-device walking, non-lead ACTIONS, battle/warp, bicycle or surf checks as complete; those still need manual gameplay validation.

@ZallaxDev

Copy link
Copy Markdown
Owner

Thanks @mkrieger95, both points are fixed in d11f1cc. In Azahar the LIVE group shows up under GENERAL, each switch persists on its own after a restart, ACTIONS works on a non-lead Pokémon, and walking and warps with the view open behave. With both switches off, Party and Bag look the same as before. CI is green. We'll merge it now.

Two things we couldn't test in the emulator, since it only sends taps: dragging in the Bag list and riding the bike with the view open. If you can try those on a real 3DS, that would help. One small thing for a later PR: a diagonal drag with more than 8 px of vertical movement still scrolls one row (3ds_bottom_actions.inc around line 687).

@ZallaxDev
ZallaxDev merged commit 1a20dbb into ZallaxDev:integration Nov 21, 2026
5 checks passed
DannyM90 added a commit to DannyM90/emerald-3ds that referenced this pull request Nov 21, 2026
…axDev#300 and the dev sync

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PjZs53yVtumpNLmM8AycET

# Conflicts:
#	3ds_port/src/3ds_extras.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants