[WIP] PKMN NTR - Pokémon Gen 6 Memory Editor

Discussion in '3DS - Homebrew Development and Emulators' started by fadx, Sep 15, 2016.

  1. fadx
    OP

    fadx GBAtemp Regular

    Member
    132
    120
    Sep 15, 2016
    I have discontinued this project, see the end of the post for a better version.

    Please back up your saves, this program is still early in development.


    What is this?

    A Pokémon Gen 6 real time memory editing/reading program.

    What can it do?
    Read, write and edit Pokémon, Money, Battle Points, Poké Miles & Trainer Name, TID, SID, Play Time, Language, Items.
    Check TID of save (hover over TID: or SID).
    Check OT's TID of dumped Pokemon (hover over OT TID or OT SID)
    Check PID of Pokemon (hover over PID).
    Mass clone Pokemon from your game or from an EKX file.
    Dump any specified Pokémon from your boxes(or all boxes at once).
    Dump your Pokémon that are in the daycare.
    Dump a wild encounter Pokémon (for checking IVs, soft resetting legendaries etc.).
    Dump a Pokémon shown to you in a trade.
    All dumped Pokémon can be written back to a slot in any box and/or be read with PKHeX.
    To write a Pokémon created with PKHeX make sure when you're saving in PKHeX that you select "EKX File (*.ek6;*.ekx)" in the "Save as type" drop down!
    Delete Pokémon from boxes (All boxes will be backed up to \Pokemon\Deleted\ upon delete).
    Note, I will not be adding Wi-Fi battle data dumping.

    Planned features

    Reading and writing of steps on daycare Pokémon (higher steps = higher level when you receive the Pokémon back).
    Reading of Battle Videos.
    View more dumped Pokémon stats.
    Reading of PokeBank boxes.
    Walk through walls cheat (if possible).
    Sun & Moon support (when those are released, should be easy).
    I'm open to suggestions!

    Requirements
    NTR CFW

    How do I use it?
    Load NTR CFW on your 3DS and enable debugging
    Launch the gen 6 game of your choice and connect it to the internet
    Launch PKMN NTR and input your IP in the "IP:" field then click Connect
    Editing: Change number/text you'd like to edit and click "Write" and the value will be sent to the 3DS.
    Dumping a Pokemon from Boxes: Select the box and slot of the Pokémon you'd like to dump, enter a filename and click "Dump".
    Dumping All Boxes: Enter a filename and click "Dump All Boxes".
    Dumping Daycare Pokémon: Enter a filename and click "Dump Slot 1" to dump the first daycare Pokémon and/or click "Dump Slot 2" to dump the second daycare Pokémon.
    Dumping Wild Encounter Pokémon: Enter a filename and click "Dump".
    Dumping Wild Encounter Pokémon: Enter a filename, have your trade partner show the Pokémon and whilst the Pokémon is displayed, click "Dump".
    All dumped Pokémon will be in the "Pokemon" folder created in the same directory as the executable.
    Write Pokémon: Click "Browse" and select the Pokémon file that you'd like to write. Choose the box and slot you'd like the Pokémon to be placed in and click "Write". You can only write Pokémon with a valid EKX/EK6 or PKX/PK6 format. A dump of All Boxes can not be written right now (will probably add that eventually).
    Delete Pokémon: Choose the Box and Slot of the Pokémon you'd like to delete and click "Delete". The deleted Pokémon will be saved to \Pokemon\Deleted\.

    Screenshots:
    Warning: Spoilers inside!

    Disclaimer
    I'm not a coder, this tool is probably coded very badly. Even though I've tested it there's still a chance it might not work for you or it may even harm your 3DS by writing somewhere it shouldn't (really should not happen, worst that could probably happen is it doesn't work for you and if it doesn't I'd recommend you do not save the game, then reset your 3DS to avoid saving over something you don't want to).
    Please back up your saves, this program is still early in development.

    Credits
    Me [Gathering offsets & creating the tool]
    44670 [NTR CFW & NTRClient(this tool is based off a modified NTRClient - https://github.com/fa-dx/NTR-Base)]
    Kaphotics [Helping with a few pieces of code(because I'm a coding noob), PKM Encrypt & Decrypt code + variables from the PKM layout from PKHeX, inspiration (most Pokemon Editing features were inspired by his save editing tool PKHeX)

    Program & Source
    https://github.com/fa-dx/PKMN-NTR/releases
    Please back up your saves, this program is still early in development.

    Past Updates
    Warning: Spoilers inside!

    This has been tested on the latest updates for all the gen 6 Pokémon games, it's possible that games that have not been updated will not work with the tool properly. If that is the case, let me know and I'll try to find a solution.
    If you'd like any of the offsets used PM me and I'll give them to you.

    If people like this and would like to see support for the VC titles I'll see what I can do!


    I have discontinued this project.


    Don't use my version of PKMN NTR, check out jackmax's or drgoku282's fork. They're updated further and the code is cleaned up.
    https://github.com/jackmax/PKMN-NTR
    https://github.com/drgoku282/PKMN-NTR

    http://gbatemp.net/threads/pkmn-ntr-real-time-memory-editing-program-for-pokémon-games-wip.448588/
     
    Last edited by fadx, Jan 14, 2017


  2. MsMidnight

    MsMidnight part time fe modder

    Member
    1,753
    1,308
    Oct 12, 2015
    kys
    Looks cool :)
     
  3. Wanderer0891

    Wanderer0891 Advanced Member

    Newcomer
    58
    7
    Dec 18, 2008
    United States
  4. fadx
    OP

    fadx GBAtemp Regular

    Member
    132
    120
    Sep 15, 2016
  5. Ericjwg

    Ericjwg Good

    Member
    2,864
    693
    Jul 2, 2015
    Canada
    cool
     
  6. dradonhunter11

    dradonhunter11 French o-MEGA modder

    Member
    586
    330
    Oct 27, 2015
    Canada
    The Distorded and chaotic land
    That some cool stuff :D
    I tested and it work exept for dump part, when you try to trade dumped pokemon with this this, it will refuse like if the pokemon was hacked.
    I ran legality check on pkhex to be sure and it said that everything was fine
     
  7. fadx
    OP

    fadx GBAtemp Regular

    Member
    132
    120
    Sep 15, 2016
    Hmmm, did you dump from 1 game and then write it to another then try to trade it?
     
  8. dradonhunter11

    dradonhunter11 French o-MEGA modder

    Member
    586
    330
    Oct 27, 2015
    Canada
    The Distorded and chaotic land
    I tried to dump the pokemon, it got success, then I was on trade with friend and write to see if pokemon would pass, it wouldn't work. Tested with X and OR
     
  9. fadx
    OP

    fadx GBAtemp Regular

    Member
    132
    120
    Sep 15, 2016
    When did you write the pokemon, during the trade or before?
     
  10. dradonhunter11

    dradonhunter11 French o-MEGA modder

    Member
    586
    330
    Oct 27, 2015
    Canada
    The Distorded and chaotic land
    before, well after because it was cloning
     
  11. SimplyFedorable

    SimplyFedorable Evangelion Geek

    Member
    566
    227
    Apr 7, 2016
    United States
    melee hell
    This will be useful, I guess. Don't play gen 6 that much anymore
     
  12. fadx
    OP

    fadx GBAtemp Regular

    Member
    132
    120
    Sep 15, 2016
    Ahh, so you dumped the pokemon. Then you traded the dumped pokemon and you exited the trade and wrote it back or did you write it back whilst you still had the trade open? Sorry for the questions, just trying to figure out why the game would reject it since it's just like a clone. Maybe if you write the pokemon and then move it in the boxes in-game it'll let you trade it after that?
     
  13. dradonhunter11

    dradonhunter11 French o-MEGA modder

    Member
    586
    330
    Oct 27, 2015
    Canada
    The Distorded and chaotic land
    Injecting in trade and out trade
     
  14. fadx
    OP

    fadx GBAtemp Regular

    Member
    132
    120
    Sep 15, 2016
    Okay, I'll do some testing tomorrow when I have access to another 3DS. Thanks for the info!
     
  15. Real.96

    Real.96 GBAtemp Advanced Fan

    Member
    977
    256
    Sep 14, 2015
    Italy
    Hey @fadx, can you add a real time IVs checker for opponent wilds pokemon? If yes, i will love you forever
     
    Last edited by Real.96, Sep 16, 2016
  16. fadx
    OP

    fadx GBAtemp Regular

    Member
    132
    120
    Sep 15, 2016
    If I can figure that out I will. Right now you can dump the wild pokemon and then read with PKHeX, if I remember right you can do it fast enough that by the time you see the IV's in PKHeX you're just about at the point you can run from the battle.

    But yeah, I can try figure that out.
     
    Real.96 likes this.
  17. Real.96

    Real.96 GBAtemp Advanced Fan

    Member
    977
    256
    Sep 14, 2015
    Italy
    Yes, dumping the Pokémon and checking it via Pkhex is really a useful thing! But if you implement a real time IVs checker, this will speed up the process. Hope you will find a way to add it!

    P.S. great app, thanks a lot!
     
    Ricken and fadx like this.
  18. hacksn5s4

    hacksn5s4 Banned

    Banned
    4,332
    450
    Aug 12, 2015
    add cloning pokemon feature and a way to dump pokemon your trading partner offers
     
    Last edited by hacksn5s4, Sep 16, 2016
  19. hacksn5s4

    hacksn5s4 Banned

    Banned
    4,332
    450
    Aug 12, 2015
    would some thing that allows you to cheat online be made you kinda can by dumping opnnets pokemon and viewing it with pkhex to know that moves its got
     
  20. Kloklopfer

    Kloklopfer GBAtemp Regular

    Member
    121
    40
    Aug 4, 2016
    Gambia, The
    If that is possible ill take a second look in competitive online battles :D
    Can someone confirm if dumping pokemon in online battles works? Im not at home so I cant test it on my own