Repository navigation
Conversation
davdxpx
marked this pull request as ready for review
November 25, 2026 12:34
…eded Games that read amiibo (Breath of the Wild's daily rewards, Super Mario Odyssey's costumes, Smash's fighters) now find one: a virtual stand in the host that the app places the player's amiibo on. GitHub issue igawa6#582. - dm/peanuts/peanuts_amiibo.c takes over nn::nfc and nn::nfp in the Android host in place of hle_sdk16.c's block (PN_AMIIBO, one marked pair of lines). It sits above the figures' encryption: TagInfo, ModelInfo, CommonInfo, RegisterInfo and the application areas are plain, so no amiibo keys are asked for, read or shipped. - The activate and deactivate events are signalled; mount, read, write, flush and create or recreate of an area answer as the SDK's; each game keeps an area of its own on an amiibo; a second after the game unmounts it the amiibo leaves the stand on its own. One placed in advance is found at the game's next search. - The owner is the player's Mii, the nickname the character's name. - dev.peanuts.amiibo: AmiiboAPI's table offline (MIT, peanuts/scripts/amiibo-db.py), the player's own amiibo, imports of .bin files, folders and ZIP packs (ID and UID only), pictures loaded on demand, and the adb control's game do=amiibo. Tests: test_amiibo_host.py (the stand in C, made-up IDs), test_amiibo.py (AmiiboJvmTest), test_ctl.py. Round 65.
…s yours A game that uses amiibo now has an amiibo area on its page, so a player sees which figures do something in it before playing, brings in their own and resets what a game saved on one. - The tile (after Controls) only for games AmiiboAPI lists or that were seen looking for an amiibo; its line counts yours and all that fit. - The area: your own that fit first (the last placed first), then every amiibo that fits the game, as square pictures with names; a search over all of them; Import of .bin files, ZIP packs or a folder. - An amiibo's page: picture, series, type, what it does in this game, the game's data on it with Reset game data (that game only), where it came from, the other games that use it, Remove from yours. - Pictures load when the area shows them; Peanuts' own card (the new stand icon, pi_amiibo) stands in offline. B goes back to the pictures. Tests: test_amiibo.py (Page), test_game_page.py (the ten areas).
davdxpx
force-pushed
the
amiibo-game-page
branch
from
November 25, 2026 19:52
40b195f to
e42e43e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A player can't see today which amiibo a game takes, or what a figure does in it. This PR gives every game that uses amiibo an amiibo area on its page. The player sees there what each figure brings before playing, imports their own, and resets what a game saved on one.
Builds on Part A (#711, the stand), on main 0.1.8.
What players get
Pictures
How it is built
dev.peanuts.amiibo.AmiiboPagebuilds the area and an amiibo's page.AmiiboFilespicks files or a folder through the system's picker.GameAreasgets the AMIIBO area after CONTROLS, andGamePagehas one hook for the tile and its result line.pi_amiibocomes frompeanuts/scripts/icons.py.Tested
AmiiboJvmTest(Part A).peanuts/tests/test_amiibo.py(Page) andtest_game_page.py(the ten areas).upstream-update.sh --check,check-publish.sh, andcheck-min-api.pyon the APK.