How to edit Memory and change in-game values (NSwitchDebugger)

Discussion in 'Switch - Tutorials' started by Type_O_Dev, Jul 23, 2018.

  1. Type_O_Dev
    OP

    Type_O_Dev GBAtemp Advanced Fan

    Member
    7
    Dec 12, 2017
    United States
    NSwitchDebugger tutorial
    original post
    The goal is to check addresses until we find the correct one with the value we want to change. we do this by starting game multiple time and with process of deduction we can find it

    prerequisites

    Download above file
    1. extract SDfiles to your sd card (if you already have latest hekate skip this step)
    2. extract NSwitchDebuger to sd card overwriting files
    3. enter RCM mode and select "NSDebugger"
    Once in game note what items you wish to edit (coin count) then hit home
    • Start homebrew menu and run NSwitchDebugger
    image

    • Now use UP and Down to select the game by title id
      • flip threw until you see Application name where it says Apllication in image
    keep in mind a game may have multiple processes running you may have to try bellow a few times until you find results
    • Hit A, should show Success
    image


    The next screen will appear
    image

    • If you know the address this is where you would enter it...
      • Also if you see below We are our of range
    CODE

    • We dont know the address for this guide so we will need to search for our value
      • note: we now need to know how wide are the offset is lets say we are editing coins we note that coin count can go up to 9999999 so we use 8 bytes, lets say we are editing a item that can go up to 9999 so 4 bytes, 99 would be 2. we would change between them by hitting L and R
    • Hit X to search for value so lets say we are editing 1234 coins in SMO
    • use L and R to change byte size 2,4,8) use d-pad LEFT and RIGHT to move between digits and UP and DOWN to match 1234
      • it is easier to hit d-pad left a few places to change numbers to higher values instead of going from 1 to 1234
    image

    • Now hit A to do the search
    you will see below as searches through addresses
    image

    If you only found one or two offsets you do not need to exit and restart
    • After the search hit home
      • we will now spend coins and re-search the stored offsets from prior search
    If you find more than one addresses you will want to open game again and spend a couple coins re-search with Y.
    • Restart nswitchdebugger repeat above but hit Y instead of X to repeat search
      • this should narrow search down to a couple or one hit
    • If you still getting many hits open game up again and spend more coins and re-search again with Y
    When your search is done and narrowed down it will take you to first found address hit (hit L and R to change addresses if multiple hits). Now we can do our edit
    (I was only looking for number 1 for this screenshot to write this guide, assume I spent 1233 coins)
    image

    • The following is now where we do our value changing
      • note: write down the address listed as you will use it in future to do this mod without doing the whole searching method
    • We will now press A to change 4D2 to 5F5E0FF (again for guide i did 1 to 2)
    we will now see bellow
    image

    • press up or down to change number left or right to change column
      • note: we can also change byte size here but keep in mind this could break game if writing back a too large value
    finished
    rinse and repeat until you see your coins in-game change, continue the same for other values to get the result's desired

    Here is a Video Tutorial



    Congratulations you have now patched memory, Enjoy!:grog:
     

    Attached Files:

    Last edited by Type_O_Dev, Sep 20, 2018
  2. Retroboy

    Retroboy GBAtemp Maniac

    Member
    5
    May 28, 2015
    thanks ill give this a try but is it possible to fix image links.

    its hard to follow a basic translated guide, images do help alot.
     
    chromed likes this.
  3. FAST6191

    FAST6191 Techromancer

    pip Reporter
    21
    Nov 21, 2005
    United Kingdom
    Can't speak to the guide itself (the cheat making aspect appears fairly standard as these things go, no idea about the rest) but rehosted the images locally. Assuming it works then thanks for sharing as it is always nice to see cheat making and memory bothering stuff.

    In case the OP needs the original for some reason
    http://pastebin.com/dVd87Piv
     
    lordelan likes this.
  4. Diavol0

    Diavol0 Member

    Newcomer
    2
    Jun 29, 2018
    Italy
    Only for game card?
     
  5. Type_O_Dev
    OP

    Type_O_Dev GBAtemp Advanced Fan

    Member
    7
    Dec 12, 2017
    United States
    Any game that runs in Atmosphere eshop, install games and gamecart. no sx os support though

    — Posts automatically merged - Please don't double post! —

    dont know what happened their but should be fixed now
     
    Diavol0 likes this.
  6. Retroboy

    Retroboy GBAtemp Maniac

    Member
    5
    May 28, 2015
    i tried this but realised im only using sx os so ended up with a black screen as soon as i loaded the memory editor
    you just answered my next question.... shame no support for sx.

    i would love to jump on and start finding codes for switch games.
     
  7. dsrules

    dsrules GBAtemp Psycho!

    Member
    8
    Sep 20, 2005
    did you tried hekate+sigpatches on .nsp games?
     
    SliverSrufer likes this.
  8. Retroboy

    Retroboy GBAtemp Maniac

    Member
    5
    May 28, 2015
    ill have a look to see how to set up, ive only booted sx cfw using pro dongle to boot games and thats it.
     
  9. dsrules

    dsrules GBAtemp Psycho!

    Member
    8
    Sep 20, 2005
    yeah, me too
    I was hoping it would work on non purchased games or not just demos downloaded from eshop
     
    Last edited by dsrules, Jul 23, 2018
  10. Retroboy

    Retroboy GBAtemp Maniac

    Member
    5
    May 28, 2015
    think im going to wait hoping it wont be long before something will come out for sx cfw and hopefully with an ingame trainer menu.
     
  11. Gren22

    Gren22 Advanced Member

    Newcomer
    1
    Apr 24, 2018
    United States
    Looks pretty awesome. Right now I am having an issue where when I try to open the album for homebrew launcher after loading a game up my switch freezes up though. Can open HBL before running a game though :/
     
  12. Type_O_Dev
    OP

    Type_O_Dev GBAtemp Advanced Fan

    Member
    7
    Dec 12, 2017
    United States
    yes thats will work, any title you can run from atmosphere.

    this tool reads memory you will need to run title first. I would suggest trying the files in the OP. you need to be on fw 5.2.1 in order for this to work
     
  13. dsrules

    dsrules GBAtemp Psycho!

    Member
    8
    Sep 20, 2005
    5.7 is out
     
    Last edited by dsrules, Jul 23, 2018
  14. RyuSeisuke1992

    RyuSeisuke1992 GBAtemp Regular

    Member
    4
    Mar 24, 2018
    Germany
    http://disqus.com/by/NintendoX/?l=de
    There, I did it, to fill the hearts at Zelda BotW on the fly with the SwitchDebugger. Short question, can you freeze the values so that no heart loses at Zelda BotW?
     
  15. SliverSrufer

    SliverSrufer Member

    Newcomer
    2
    Jun 18, 2018
    United States
  16. RyuSeisuke1992

    RyuSeisuke1992 GBAtemp Regular

    Member
    4
    Mar 24, 2018
    Germany
    http://disqus.com/by/NintendoX/?l=de
    memdump (memory Cheat/dumper) is a tool for the Ps Vita.
     
    MikeHawke likes this.
  17. SliverSrufer

    SliverSrufer Member

    Newcomer
    2
    Jun 18, 2018
    United States
    Ah ok, wrong platform thanks.
     
  18. Type_O_Dev
    OP

    Type_O_Dev GBAtemp Advanced Fan

    Member
    7
    Dec 12, 2017
    United States
    I honestly dont think so as the app doesn't stay running after exit it basically just patches memory with new value

    — Posts automatically merged - Please don't double post! —

    BTW what was the offset for hearts in zelda and if you dont mind can you report any others you find so I can update OP with them.
     
    RyuSeisuke1992 likes this.
  19. RyuSeisuke1992

    RyuSeisuke1992 GBAtemp Regular

    Member
    4
    Mar 24, 2018
    Germany
    http://disqus.com/by/NintendoX/?l=de
    These were the 6 offsets

    Edit: I can find out the exact offset of the 6 :)
     

    Attached Files:

    Last edited by RyuSeisuke1992, Jul 23, 2018
  20. Type_O_Dev
    OP

    Type_O_Dev GBAtemp Advanced Fan

    Member
    7
    Dec 12, 2017
    United States
    how did you come to 51 for current hearts
     
    Zaybokk likes this.
Loading...