Skip to content

v0.1.0-dev.3

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 14:05
· 26 commits to master since this release

v0.1.0-dev.3 — Guardian star helper (pre-release)

A pre-release dev build of the Nintendo Switch homebrew, based on upstream
v0.3.0 (the previous Switch build here is v0.1.0-dev.2). It is not the
default download.

Highlights

  • Guardian star helper. When one of your monsters is summoned and the game
    asks SELECT A GUARDIAN STAR, the two names now show which star is the
    better one to pick against the opponent's played monsters: the better star
    is green, the worse red, and an even pair stays white. The
    decision is a comparison of the two stars, not an absolute good/bad: if both
    are unfavourable, the less bad one is still green.
  • It reads the field, not the hand. The score is
    sum(Bonus(star, enemy) - Bonus(enemy, star)) over the opponent's monster
    row. Face-down monsters count too: the record still holds the star the
    monster was given, and the choice is made against what the opponent has
    actually played. Spells, traps and hand cards are not counted. Stars_Bonus
    keeps a mod's guardian_stars matchup table in charge, so custom stars work.
  • Off by default. Turn it on with View > Guardian star helper
    (guardian_star_helper in settings.txt, or
    MEMORIES_GUARDIAN_STAR_HELPER=1). With it off the box is exactly what it
    was, including a mod's card_text_colors colours.
  • "choice": "best" fix. The automatic summon pick read records
    side * 15 + slot with slot 0-4, which is the opponent's hand, not its
    monsters. It now reads the opponent's monster row, face-down monsters
    included, and so agrees with the helper. A mod using
    "guardian_stars": {"choice": "best"} will pick differently — correctly —
    from this build on. "ask" and "first" are unchanged.
  • No gameplay change. Nothing here touches the duel's arithmetic, random
    numbers, saves or matching code; src/game/ is untouched. The colour is
    written through the port's existing text-colour hook and restored as the
    game restores every text colour.

Install / upgrade

Unpack yfm-redecomp-v0.1.0-dev.3-switch.zip onto the SD card's root, or copy
the .nro into sdmc:/switch/. Put your USA disc's .bin in
sdmc:/switch/yfm-redecomp/game/ and start the homebrew in place of a game
(hold R while starting any title). Upgrading over v0.1.0-dev.2 keeps
user/ — saves and settings — and the new option appears under View.

Verification

  • Portable suite on ubuntu-24.04: green, including the new pc_stars_duel
    (tests/pc/stars_duel_test.c), which pins the monster row against the hand
    and spell rows, face-down monsters, the chosen star and the side, and the
    extended pc_stars score and better-star cases. pc_settings covers the
    new key and its host-only replay class.
  • The same cases were built and run locally on Windows x64 (clang, the
    project's Windows pointer model) as a focused check; the CI suite is the
    authority for the full set.
  • Switch build and packaging on ubuntu-24.04 with the pinned LLVM 21 and
    devkitA64 (ADR 0005); checksums ship beside the .nro and .zip.
  • Console acceptance: not performed for this build. It is published after
    the CI build at the maintainer's request; a hardware pass is still
    recommended (checklist below).

Hardware checklist

  1. Enable View > Guardian star helper.
  2. Summon a two-star monster while the opponent has a face-up monster it
    beats with one star and loses to with the other: the better star's name is
    green, the worse red.
  3. Repeat against a face-down opponent monster: the colours still appear
    and follow the recorded star.
  4. Summon with no opponent monster on the field: both names stay white.
  5. Turn the setting off and confirm the box is the previous white (or mod)
    colour, and that later text/boxes are not tinted.

Known limitations

  • It is a guardian-star comparison, not a battle simulation: ATK/DEF,
    position, terrain, equips and monster effects are not part of the score.
  • It uses the recorded stars of the opponent's face-down monsters. That is
    deliberate — the pick answers "what is best against what has been played" —
    but it does use information the card back hides from the player.
  • Green and red are the game's own text ramps; there is no second symbol for
    colour-blind players. An exact tie stays white.