[WIP] PHBank - Pokémon Homebrew Bank

Discussion in '3DS - Homebrew Development and Emulators' started by Gocario, Oct 3, 2015.

  1. Gocario
    OP

    Gocario GBAFail'd

    Member
    640
    562
    Sep 5, 2015
    France
    Bourg Palette


    PHBank is a homebrew which allows to manage a local bank for XY and ORAS Pokémon games, just like the Pokébank, but as a free offline service.
    This homebrew is not intended to cheat (not even cloning). It's just a storage solution.

    The source code is available under the GPLv3 license on github, and the resources are available on github too.

    What this Homebrew can do:
    • Work on o3ds and n3ds!
    • Navigate through the PC boxes of a XY/ORAS 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.
    • Select some Pokémon (with buttons) and move them to another box.
    • Swap an entire box content to another one (pc <-> bank).
    • Autocomplete the Pokédex when importing Pokémon to a gamesave.
    • Prompt a dialog to save/exit/backup during the homebrew execution.
    • Export/Import the savedata directly to/from the game, without the need of external tools (/main).
    • Load/Save the bankdata to/from the bank, located in the SD card (/pk/bank/bank).

    How to install it:
    • Just extract the archive at (to?) the root of your SD card.
    • It must contains:
      • The PHBank files /3ds/PHBank/[PHBankFiles].
      • The cia installer in /cia/PHBank.cia
      • The data files /pk/[DataFiles].

    How to import from <= [v1.1.4-beta-a]:
    • Install PHBank normally, see above.
    • Copy the bank file from /pkbank/bank to /pk/bank/bank.
    • You can delete the /pkbank/ folder.

    Controls:
    Everywhere
    • 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.
      • Change the current box.
      • Switch PC/Bank.
      • Drag & Drop Pokémon.
      • Change the selection mode.
    • Start: Open the savexit menu, for exiting or backing up.
    • Select: Switch the selection mode (Single -> Quick -> Multiple).
    In Single selection mode (Red):
    • A: Select Pokémon / Move Pokémon if one is already selected.
    • B: Cancel selection.
    In Quick selection mdoe (Blue):
    • A: Select Pokémon / Move Pokémon if one is already selected.
    • B: Cancel selection.
    • Y: Swap the current PC box content with the current Bank box content.
    In Multiple selection mdoe (Blue):
    • Y: Activate the box selector (TODO: transform it as a button on screen).
    Todo List:
    • Wonder box ;)
    • Display more specific information per Pokémon (Tabs for contest/met/etc).
    • Enhance more the GUI.
    • When moving Pokémon with the DPad/A, switch the held Pokémon.

    Nota Bene:
    • I only tested this homebrew with Pokémon Alpha Sapphire on a cartridge on a n3ds (9.3+).
    • Not cheat, no kidding.


    Thanks to @suloku for all his work on the project.
    Thanks to @Kaphotics & @Asia81 (and PKHex's contributors) for the save functions (offset, algorithms) and the data (personal, text).
    Thanks to @Slashcash & @Stracker (and PCHex/PCHex++'s contributors) for their help.
    Thanks to @Xenosaiga and @ihaveamac for being the cia build.
    Thanks to @xerpi (and SF2D/SFTD/SFIL's contributores) for the graphic library.
    Thanks to @profi200 and other people on #3dsdev who helped me.
    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! (Hold L while launching homebrew or/and use tvds/svdt)


    >>> Download link <<<

    Changelog
     
    Last edited by Gocario, Mar 18, 2016
  2. olshrimpeyes

    olshrimpeyes Your question is bad and you should feel bad

    Member
    454
    284
    Jul 30, 2015
    United States
    GNU/Somewhere
    Really cool man!
     
    Amani, Feeling it! and The Minish LAN like this.
  3. DarkRioru

    DarkRioru Dream Beeeeeaaaammmm!!!

    Member
    2,013
    427
    Aug 29, 2015
    United States
    looking up at the stars
    amazing!!!! thank you!!! :bow:
     
    The Minish LAN likes this.
  4. uberpubert69

    uberpubert69 GBAtemp Regular

    Member
    231
    42
    Sep 14, 2008
    United States
    Yeah man this is amazing! I only got 150 days left of my Pokemon Bank Subscription and I didn't plan on renewing. Now I have a free alternative! Thank you so much, keep up the good work! :grog:

    I could test for you if this works on Pokemon Y if you wish. Don't know if it's safe or not though.
     
    Last edited by uberpubert69, Oct 3, 2015
    The Minish LAN likes this.
  5. Deathbot64

    Deathbot64 GBAtemp Regular

    Member
    238
    35
    Dec 15, 2014
    Canada
    wow, sounds amazing. Going to test it out this weekend. Could it would for gateway?
     
    Last edited by Deathbot64, Oct 3, 2015
    The Minish LAN likes this.
  6. rainparadesamurai

    rainparadesamurai GBAtemp Regular

    Member
    149
    66
    Feb 28, 2014
    United States
    is it illegal to steal pokemon banks interface for this homebrew? lol do that if possible plz
     
    The Minish LAN likes this.
  7. Gocario
    OP

    Gocario GBAFail'd

    Member
    640
    562
    Sep 5, 2015
    France
    Bourg Palette
    I did this because my bank will expired in 100 days... :D

    If you tell me how, I could.

    I guess it's already illegal to read/write the save...
    I'm planning to do a GUI somelike the Pokébank anyway! :3
     
  8. duwen

    duwen Old Man Yoshi

    Member
    1,165
    649
    Sep 6, 2013
    United States
    Bullet Hell
    Now, if we can get this to be able to read/write to this homebrew bank we'll be sorted! :yaynds:
     
    geekqueen2010 and The Minish LAN like this.
  9. TheGrayShow1467

    TheGrayShow1467 屈折

    Member
    936
    1,205
    Oct 12, 2014
    United States
    I'm robbing a bank... My Pokemon Bank that is! LELELEL. Thanks man, can't wait to see improvement!
    One question: Can I import my PK6 Pokemon? I have a backup folder containing all my Pokemon.
     
    Last edited by TheGrayShow1467, Oct 3, 2015 - Reason: Hey, fuck this keyboard, am I right?
  10. Asia81

    Asia81 In my Ecchi World <3

    Member
    5,151
    2,569
    Nov 15, 2014
    France
    Albi
    Possible to have screens?
     
    The Minish LAN likes this.
  11. Tjessx

    Tjessx GBAtemp Maniac

    Member
    1,157
    508
    Dec 3, 2014
    Belgium
    This looks really good, do you need any help with that user interface?
     
  12. Deathbot64

    Deathbot64 GBAtemp Regular

    Member
    238
    35
    Dec 15, 2014
    Canada
    could you make a cia version?
     
  13. Asia81

    Asia81 In my Ecchi World <3

    Member
    5,151
    2,569
    Nov 15, 2014
    France
    Albi
    @Gocario The data folder need to be in the same folder as the .3dsx, right?
     
    The Minish LAN likes this.
  14. Gocario
    OP

    Gocario GBAFail'd

    Member
    640
    562
    Sep 5, 2015
    France
    Bourg Palette
    The GUI isn't my first focus atm. I'll contact you if I need help. :)
    Like I said. I dunno how to build cia. Just tell me (or give a link) and I could... ?

    As for now, the `pkbank/` folder is located at the root.
     
    The Minish LAN likes this.
  15. julialy

    julialy Homebrewer

    Member
    1,687
    596
    Nov 26, 2012
    United States
    United States
    I wonder if it's possible to extract the assets from Pokémon X/Y/OR/AS/Bank to have a preview pokémon feature.
     
  16. Returnofganon

    Returnofganon I pretend like I know what I'm talking about

    Member
    533
    199
    Jul 1, 2015
    United States
    Wow dude thanks! Just got AS and will try this soon. Keep up the good work!
     
    The Minish LAN likes this.
  17. Sonicbrawler

    Sonicbrawler Advanced Member

    Newcomer
    97
    59
    Sep 7, 2015
    United States
    Love this. making a youtube video asap
     
    The Minish LAN likes this.
  18. Asia81

    Asia81 In my Ecchi World <3

    Member
    5,151
    2,569
    Nov 15, 2014
    France
    Albi
    What about the PokeTransporter from G5 games?
     
    geekqueen2010 and The Minish LAN like this.
  19. RustInPeace

    RustInPeace Samurai Cop

    Member
    3,398
    2,649
    Oct 13, 2014
    United States
    Well damn man, I just renewed my Bank subscription, and then I read this. I'll try it out, thanks.
     
    The Minish LAN likes this.
  20. Sinon

    Sinon The Wolf Girl

    Member
    567
    460
    Sep 15, 2015
    Costa Rica
    Good job
     
    The Minish LAN likes this.