Tutorial  Updated

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

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.png
  • 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.png

The next screen will appear
image.png
  • If you know the address this is where you would enter it...
    • Also if you see below We are our of range
Code:
XX XX XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX XX XX
XX XX XX XX XX XX XX XX XX XX
  • 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.png
  • Now hit A to do the search
you will see below as searches through addresses
image.png
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.png
  • 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.png
  • 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
image.png
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:
 

Attachments

  • 2018062719292500-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    2018062719292500-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    44.6 KB · Views: 907
  • 2018062719294000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    2018062719294000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    49.7 KB · Views: 723
  • 2018062719295000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    2018062719295000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    78 KB · Views: 707
  • 1234.jpg
    1234.jpg
    24.7 KB · Views: 704
  • searching.jpg
    searching.jpg
    109.1 KB · Views: 684
  • address_after_found.jpg
    address_after_found.jpg
    102.3 KB · Views: 670
  • changing_value.jpg
    changing_value.jpg
    24.4 KB · Views: 672
  • seccessful_changed.jpg
    seccessful_changed.jpg
    57.4 KB · Views: 727
Last edited by Type_O_Dev,

Spider_Man

Well-Known Member
Member
Joined
May 28, 2015
Messages
3,924
Trophies
0
Age
38
XP
5,165
Country
United States
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.
 
  • Like
Reactions: chromed

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
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
https://pastebin.com/dVd87Piv
 
  • Like
Reactions: lordelan

Type_O_Dev

Developer
OP
Developer
Joined
Dec 12, 2017
Messages
683
Trophies
0
XP
1,469
Country
United States
Only for game card?
Any game that runs in Atmosphere eshop, install games and gamecart. no sx os support though

--------------------- MERGED ---------------------------

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.
dont know what happened their but should be fixed now
 
  • Like
Reactions: Diavol0

Spider_Man

Well-Known Member
Member
Joined
May 28, 2015
Messages
3,924
Trophies
0
Age
38
XP
5,165
Country
United States
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
Any game that runs in Atmosphere eshop, install games and gamecart. no sx os support though

--------------------- MERGED ---------------------------


dont know what happened their but should be fixed now
you just answered my next question.... shame no support for sx.

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

dsrules

Well-Known Member
Member
Joined
Sep 20, 2005
Messages
8,704
Trophies
2
XP
6,270
Country
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.
did you tried hekate+sigpatches on .nsp games?
 
  • Like
Reactions: SliverSrufer

Gren22

Well-Known Member
Newcomer
Joined
Apr 24, 2018
Messages
63
Trophies
0
Age
26
XP
210
Country
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 :/
 

Type_O_Dev

Developer
OP
Developer
Joined
Dec 12, 2017
Messages
683
Trophies
0
XP
1,469
Country
United States
did you tried hekate+sigpatches on .nsp games?
yes thats will work, any title you can run from atmosphere.

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 :/
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
 
D

Deleted User

Guest
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?
 

Type_O_Dev

Developer
OP
Developer
Joined
Dec 12, 2017
Messages
683
Trophies
0
XP
1,469
Country
United States
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?
I honestly dont think so as the app doesn't stay running after exit it basically just patches memory with new value

--------------------- MERGED ---------------------------

memdump (memory Cheat/dumper) is a tool for the Ps Vita.
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.
 
  • Like
Reactions: Deleted User
D

Deleted User

Guest
These were the 6 offsets

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

Attachments

  • IMG_1827.JPG
    IMG_1827.JPG
    1.3 MB · Views: 620
Last edited by ,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: https://www.keepretro.com/products/miyoo-a30