PKMN-NTR: Real-time memory editing program for Pokémon games [WIP]

Discussion in '3DS - Homebrew Development and Emulators' started by drgoku282, Nov 13, 2016.

  1. drgoku282
    OP

    drgoku282 GBAtemp Fan

    Member
    415
    468
    Oct 16, 2014
    Mexico
    Disclaimer: This program is a WIP, it's pretty stable for Gen VI and VII games. However it can fail at any time. Make a save backup of your games before using this tool. I will not take responsibility for any save corruption, loss of data or banning from Nintendo.

    What is this application?

    PKMN-NTR is a on-the-air memory editing program for pokémon games in the Nintendo 3DS. In other words, is a mini-PKHeX that works while the game is running. It also has some bots capable of automate tasks like Wonder Trading pokémon or Breeding.

    Which games are compatible?
    • Pokémon X
    • Pokémon Y
    • Pokémon Omega Ruby
    • Pokémon Alpha Sapphire
    • Pokémon Sun
    • Pokémon Moon
    All games need to be updated to the latest version and .NET Framework 4.6 is also needed. Pokémon Sun and Moon are compatible using Mode3-NTR.

    What it can do?
    • Dump and edit pokémon from boxes, Day Care/Nursery, Battle Box and Party using PKHeX interface.
    • See wild opponent pokémon and your partner's pokémon during a trade.
    • Clone and delete pokémon.
    • Inject pokémon from a *.pkx file in your computer.
    • Edit Items and Trainer Data.
    • Bots for Breeding, Soft-reset and Wonder Trade.
    • Search pokémon in the 3DS' RAM with Poké Digger.
    • Build your own mini-bots with the Script Builder.
    How do I use it?
    1. Read the wiki.
    2. Look for your 3DS' IP address using FBI or an FTP client.
    3. Start NTR-CFW (Use Mode-3 if you want to use a Gen 7 game in an old 3DS).
    4. If you want to use bots, enable InputRedirection.
    5. Open your game, both retail and digital version are supported.
    6. Enable the NTR debugger.
    7. Go to PSS / Festival Plaza.
    8. Connect to Internet.
    9. In your computer, start PKMN-NTR.exe.
    10. Input the IP Address of your Nintendo 3DS.
    11. Click on the Connect button
    12. Enjoy the application!
    Source code and downloads:
    Credits:
    • fa-dx: Gathering offsets, creating the tool.
    • 44670: NTR CFW & NTRClient, this tool is based off a modified NRClient.
    • Kaphotics: For PKHeX, which is used as the core of the program.
    • jackmax: Doing a large-scale rewrite of the code to make it more robust, readable and maintainable.
    • Stary2001 and Kazo: For InputRedirection which was the base for the Remote Controls and the Bots.
    • Davi Andrade: For the application icon.
     
    Last edited by drgoku282, May 22, 2017


  2. drgoku282
    OP

    drgoku282 GBAtemp Fan

    Member
    415
    468
    Oct 16, 2014
    Mexico
    First version with initial S/M support is on: https://github.com/drgoku282/PKMN-NTR/releases/tag/2.0.0-alpha1

    Changelog (compared to last stable version):

    Added:
    • Core: Pokémon Sun and Moon support: Can read and write the player's name, TID, SID, Money, current Festival Coins, Language and Played Time.
    • Core: Added a button to reload all data in the "Edit Save" tab.
    Fixed:
    • Core: Minor fixes and code rewriting.
     
    Last edited by drgoku282, Nov 13, 2016
    RustInPeace likes this.
  3. hacksn5s4

    hacksn5s4 Banned

    Banned
    4,332
    450
    Aug 12, 2015
    not alot of people have the new 3ds yet so thats a problem the soulion around the extened memory thing is to mod luma and add a debugger
     
  4. drgoku282
    OP

    drgoku282 GBAtemp Fan

    Member
    415
    468
    Oct 16, 2014
    Mexico
    Please, refer this talk to a proper thread. It is a known fact that NTR tools will not work with games which use Extended Memory mode.

    For everyone in this thread: Do not ask if Generation 7 games will be compatible with an Old 3DS, any questions of this nature will be ignored in the future.
     
    anonynom, Real.96, KunoichiZ and 2 others like this.
  5. Whimsii

    Whimsii Newbie

    Newcomer
    6
    0
    Nov 13, 2016
    United States
    Thanks so much for keeping this updated.

    So, I tried this out with Sun, and the edited Money value doesn't write. It'll change the value in the box, but it isn't reflected in-game.
     
  6. Mohammed__XD

    Mohammed__XD Advanced Member

    Newcomer
    55
    2
    Jan 4, 2016
    United States
    Which NTR Version do i have to use??
     
  7. Undi

    Undi The guy under your bed

    Member
    182
    29
    Feb 22, 2014
    Belgium
    NTR don't want me to go online to avoid cheating, so it's not possible.

    EDIT: I'm dumb, I forget to desactivate my cheat, now it's working.
     
    Last edited by Undi, Nov 13, 2016
  8. drgoku282
    OP

    drgoku282 GBAtemp Fan

    Member
    415
    468
    Oct 16, 2014
    Mexico
    Confirmed and fixed.

    I've used the application with 3.2, 3.3 and 3.4
     
  9. drgoku282
    OP

    drgoku282 GBAtemp Fan

    Member
    415
    468
    Oct 16, 2014
    Mexico
    New preview version: https://github.com/drgoku282/PKMN-NTR/releases/tag/2.0.0-alpha2

    Added:
    • Core: Pokémon Sun and Moon support:
      • Can read and write the player's name, TID, SID, Money, current Festival Coins, Language and Played Time.
      • Read and modify pokémon in boxes.
    • Core: Added a button to reload all data in the "Edit Save" tab.
    Fixed:
    • Core: Minor fixes and code rewriting.
     
    Real.96 and RustInPeace like this.
  10. Whimsii

    Whimsii Newbie

    Newcomer
    6
    0
    Nov 13, 2016
    United States
    Awesome! Thank you for the prompt fix!
     
  11. Sakiisa

    Sakiisa Member

    Newcomer
    36
    5
    Sep 17, 2016
    Malaysia
    Small suggestion that perhaps sweet scent can be used for shiny hunting on all versions =]

    as always ping us for any tests needed. thank you for your work!
     
  12. Slowbeatle

    Slowbeatle Advanced Member

    Newcomer
    70
    3
    Jul 29, 2014
    Trujillo Alto
    can i request for someone to add bp and festival plaza points to my save please (not sure if poke pelago beans are in as well, but that would be nice)
     
  13. QuickQuestion

    QuickQuestion Advanced Member

    Newcomer
    81
    24
    Apr 24, 2014
    United States
    Wow this looks amazing. I'd love to try and write my own bot/script for this, where in the Github is the source code for the Wondertrade bot?
     
  14. Joom

    Joom  ❤❤❤

    Member
    4,030
    2,734
    Jan 8, 2016
    United States
    But it's not our problem. The solution is to get a job and buy an N3DS rather than having developers bend over for obsolete hardware.
     
    Ricken, Rei Rukh, Kloklopfer and 2 others like this.
  15. drgoku282
    OP

    drgoku282 GBAtemp Fan

    Member
    415
    468
    Oct 16, 2014
    Mexico
    New preview version: https://github.com/drgoku282/PKMN-NTR/releases/tag/2.0.0-alph3

    Added:
    • Core: Pokémon Sun and Moon support:
      • Can read and write the player's name, TID, SID, Money, current Festival Coins, Language and Played Time.
      • Read and modify pokémon in boxes.
      • Read pokémon in party.
      • Clone pokémon
      • Write pokémon from a ".pk7" file
      • Delete pokémon
    • Core: Added a button to reload all data in the "Edit Save" tab.
    Fixed:
    • Core: Minor fixes and code rewriting.
    • Core: Party warning message fixed,.
    • GUI: Changing between radio boxes for pokémon sources no longer causes gui malfunctions.

    It was suggested, but I can only read one pokémon from hordes, so it's not that useful.

    It's in https://github.com/drgoku282/PKMN-NTR/blob/master/PKMN-NTR/MainForm.cs starting at line 3165 to 3698. Will probably move it to a new class later.
     
    Sakiisa, telon22, Real.96 and 4 others like this.
  16. drgoku282
    OP

    drgoku282 GBAtemp Fan

    Member
    415
    468
    Oct 16, 2014
    Mexico
    OK, guys update:
    • BP edit will not be implemented until PKHEX supports it. Will probably change the field to FC Collected.
    • No item support for now, I have the offsets but the actual handling of data is very different, compared with Gen VI, the entire handling of item data needs to be reworked, it might take time.
    • I still can't connect the application with the game outside from the Festival Plaza, so, only the Wonder Trade bot will be supported in Gen 7.
    When I implement a couple of changes I'll publish the first beta of version 2.0.
     
    Temptress Cerise and RustInPeace like this.
  17. Posghetti

    Posghetti Greninja Master

    Member
    GBAtemp Patron
    Posghetti is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,061
    357
    Mar 15, 2016
    United States
    Michigan
    Legit my dude.
     
  18. drgoku282
    OP

    drgoku282 GBAtemp Fan

    Member
    415
    468
    Oct 16, 2014
    Mexico
  19. Temptress Cerise

    Temptress Cerise Miss Magic~ <3

    Member
    2,181
    1,422
    May 1, 2016
    United States
    It shouldn't. While I didn't use this, I use my Gateway3DS to give myself max festival coins, I just level up as soon as I get a new coin
     
  20. gatao30cm

    gatao30cm Advanced Member

    Newcomer
    66
    24
    Mar 9, 2016
    Brazil
    Why the Wonder trade bot section is all grayed out? I'm trying on Pokemon Moon