[WIP] PHBankGB - Pokémon Homebrew Bank GB (R/B/Y)

Discussion in '3DS - Homebrew Development and Emulators' started by Gocario, Mar 11, 2016.

  1. Gocario
    OP

    Gocario GBAFail'd

    Member
    640
    560
    Sep 5, 2015
    France
    Bourg Palette


    PHBankGB is a homebrew which allows to manage a local bank for Red/Blue/Yellow, and in the future will handle the japanese titles.

    The source code will be available later, and the resources are available on github too.

    What this Homebrew can do:
    • Work on o3ds and n3ds, with a CFW!
    • Navigate through the PC boxes of a save and the Bank boxes.
    • Display a more specific resume per Pokémon (like IVs/EVs).
    • Select one Pokémon (with stylus or buttons) and move it to another slot/box.
    • Autocomplete the Pokédex when importing Pokémon to a gamesave.
    • Export/Import the savedata directly to/from the game, without the need of external tools (/sav.dat).
    • Load/Save the bankdata to/from the bank, located in the SD card (/pk/bank/bankgb).

    How to install it:
    • Just extract the archive at (to?) the root of your SD card.
    • It must contains:
      • The cia installer /cia/PHBankGB.cia
      • The data files /pk/[DataFiles].
    • Install /cia/PHBankGB.cia using FBI/BBM/etc.

    Controls:
    Movement
    • DPad/CPad: Move the cursor inbox, change box, change pc/bank.
    • L/R: Change the current box.
    • LZ/RZ: Switch from PC to Bank and vice versa (can be done with Pad and/or stylus too).
    • Touchscreen:
      • Move the cursor inbox.
      • Drag & Drop Pokémon.
      • /!\ Don't move any Pokémon to a locked slot, it will be lost /!\
    • Start: Save and return to the title selector.
    Selection
    • A: Select Pokémon / Move Pokémon if one is already selected.
    • B: Cancel selection.
    Todo List:
    • Implement the multiple selection...
    • Fix the touch screen locked slot bug.
    • Build a move database for the max PP.
    • When moving Pokémon with the DPad/A, switch the held Pokémon.
    • Add an export feature, to export to Gen VI.
    Please report any bug you find.

    Thanks to @suloku for all his work on the project.
    Thanks to @Kaphotics, @SciresM (and #projectpokemon) for their help.
    Thanks to @Chamber_ @Solo993 @BlueEmerald @Lake @Neslug @Pikachu25 @Ryta from hax.iimarck.us for the pokémon icons.
    Thanks to @xerpi (and SF2D/SFIL's contributors) for the graphic library.
    Thanks to @smealum and @yellows8 for the exploits.

    Merci !

    Disclaimer: I'm not responsible if you lose or corrupt your save by using this homebrew. It mays contain bugs even within the normal intended use. Use it at your own risk.
    ALWAYS MAKE A BACKUP! (use JKSM or SDF)


    Changelog
     

    Attached Files:

    Last edited by Gocario, Jun 25, 2016
    ttioali, CrisFTW, Darkyose and 47 others like this.


  2. Gocario
    OP

    Gocario GBAFail'd

    Member
    640
    560
    Sep 5, 2015
    France
    Bourg Palette
    And YES, there will be an export feature!
     
  3. Patxinco

    Patxinco Riding a Shooting Star

    Member
    665
    268
    Apr 18, 2011
    OW YEAH!!!!
    Thanks guys !!!
     
    Minnow likes this.
  4. A_Random_Guy

    A_Random_Guy Officially That Dev

    Member
    862
    459
    May 22, 2015
    Malaysia
    Smea's closet
    Oh cool a CIA. Will there be a CIA version of PHBank too?
     
  5. MajinCubyan

    MajinCubyan The Funky Super Saiyan

    Member
    588
    943
    Nov 24, 2014
    United States
    Orre
    You a great man. Thank you for this!
     
    Feeling it! likes this.
  6. 4gionz

    4gionz GBAtemp Advanced Fan

    Member
    786
    307
    Aug 16, 2014
    Canada
    Not for at least another week now:lol:
     
  7. Patxinco

    Patxinco Riding a Shooting Star

    Member
    665
    268
    Apr 18, 2011
    Ow well, error summoned:
    Problem happened: 0x4
    PHBankVersion: 010001a0
    Can't start the viewer

    Something that i did wrong?
     
  8. Gocario
    OP

    Gocario GBAFail'd

    Member
    640
    560
    Sep 5, 2015
    France
    Bourg Palette
    Erm.. I pushed the debug version, try again with the new archive. :)
     
    Patxinco likes this.
  9. AquaX101

    AquaX101 GBAtemp Advanced Fan

    Member
    714
    165
    Apr 15, 2014
    United States
    Somewhere
    3/11/2016
    Always Remember.
     
  10. Patxinco

    Patxinco Riding a Shooting Star

    Member
    665
    268
    Apr 18, 2011
    Well, something gone wrong transfering from red to yellow
     

    Attached Files:

  11. StarGazerTom

    StarGazerTom GBAtemp Advanced Fan

    Member
    865
    584
    Feb 2, 2015
    Sweet, gonna be handy using this, and looking forward to the Gen6 copy too!
     
  12. Gocario
    OP

    Gocario GBAFail'd

    Member
    640
    560
    Sep 5, 2015
    France
    Bourg Palette
    Which games? Which Region? Which Languages?
    Could you reproduce that?
    Can you reproduce that while transfering from red to bank, saving, from bank to red only?
    Can you reproduce that while transfering from yellow to bank, saving, from bank to yellow only?
     
  13. Patxinco

    Patxinco Riding a Shooting Star

    Member
    665
    268
    Apr 18, 2011
    OK, by order:
    1/2/3. Red/Yellow Spanish Version (Legit, redownloaded from eShop) (but strangely Yellow showed me "Gualdo" as a possible name for my starter
    4. I don't even know how it happened, dunno how to reproduce, but i made a backup of the bank archive, so they should be ok in that one.
    5/6. I'll try.

    @Gocario Well, dunno how, but now they are all ok, no bugs so far, the only thing i could think of being a problem, could be that i didn't catch any pokemon before transfering the pokemons to Yellow version.
    Soo, had the pokedex, but didn't catch any pokemon before, maybe is just that.
     
    Last edited by Patxinco, Mar 11, 2016 - Reason: Results
  14. Gocario
    OP

    Gocario GBAFail'd

    Member
    640
    560
    Sep 5, 2015
    France
    Bourg Palette
    @Patxinco, would you mind sending me your clean backups?
     
  15. Yuuyuun

    Yuuyuun Member

    Newcomer
    37
    27
    Mar 6, 2016
    Brazil
    Netherworld.
    Any plans on supporting FR/LG?
     
  16. Michu

    Michu Member

    Newcomer
    32
    18
    Oct 4, 2015
    Poland
    Moves aren't displaying correctly for me.
    [​IMG]
    [​IMG]
     
  17. Patxinco

    Patxinco Riding a Shooting Star

    Member
    665
    268
    Apr 18, 2011
    Well, there's gonna be a problem, didn't thought of transfering back the bugged pokes to the bank, and deleted from Yellow directly, i could send you the backup that used to transfer to Yellow the first time if that helps.
     

    Attached Files:

  18. Gocario
    OP

    Gocario GBAFail'd

    Member
    640
    560
    Sep 5, 2015
    France
    Bourg Palette
    There is no FR/LG VC release afaik.
    Well, moves names are shifted by one, I'll fix that. ;)
    Does it fix itself? Or there is still problem?
    Also "no Pokémon caught" can lead to a problem..? Can you try again with a further progress?
    When I said the backup, I was speaking about the sav.dat that you should dump using JKSV/SDF. :3
     
    Michu likes this.
  19. Patxinco

    Patxinco Riding a Shooting Star

    Member
    665
    268
    Apr 18, 2011
    When transfered again for second time, they showed correctly, as they should.
    I think that no pokemon caught was a problem, but i could try to make a new game and dump sav.dat before and try to do it again same way i did. This will take a time, i'll report later on.

    Edit: Bank files are in my last post.
     
  20. BadBoyXxX

    BadBoyXxX GBAtemp Regular

    Member
    107
    6
    Mar 8, 2016
    Gambia, The
    nice big thanks