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: 910
  • 2018062719294000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    2018062719294000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    49.7 KB · Views: 726
  • 2018062719295000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    2018062719295000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    78 KB · Views: 709
  • 1234.jpg
    1234.jpg
    24.7 KB · Views: 707
  • searching.jpg
    searching.jpg
    109.1 KB · Views: 687
  • address_after_found.jpg
    address_after_found.jpg
    102.3 KB · Views: 673
  • changing_value.jpg
    changing_value.jpg
    24.4 KB · Views: 675
  • seccessful_changed.jpg
    seccessful_changed.jpg
    57.4 KB · Views: 729
Last edited by Type_O_Dev,

Bedal

Active Member
Newcomer
Joined
Feb 28, 2016
Messages
26
Trophies
0
XP
142
Country
Gambia, The
I use ReinNX v1.7 and Hekate v4.2 and NSwitchdebugger v0.5.9.
So when I run NSwitchdebugger in Homebrew Menü it makes all the other apps unusable. It deletes all the images of the apps and if I try to start for the example AppStore, it says I have to push 12 sec the start button. Is there any other memory app as .nro like this https://github.com/jakibaki/sys-netcheat ?
 

aos10

Yuuki chan
Member
Joined
Apr 10, 2012
Messages
4,756
Trophies
2
Age
38
XP
4,030
Country
Saudi Arabia
then, I don't know. I don't use ReiNX
the file i should edit is hekate_ipl.ini?
this is what inside

Code:
[config]
autoboot=0
bootwait=3
customlogo=0
verification=2
{-- NSwitchDebugger --}
[NSDebugger]
kip1=modules/newfirm/*
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
[NSDebugger_kip]
kip1=modules/nsdebugger/loader.kip
kip1=modules/nsdebugger/nsdebugger.kip
kip1=modules/newfirm/sm.kip
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
[NSDebugger_fs_mitm_kip]
kip1=modules/nsdebugger/loader.kip
kip1=modules/nsdebugger/nsdebugger.kip
kip1=modules/newfirm/sm.kip
kip1=modules/newfirm/fs_mitm.kip
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
{ }
[stock_DANGEROUS]
[PreventGCUpdate]
kip1patch=nogc
 

dsrules

Well-Known Member
Member
Joined
Sep 20, 2005
Messages
8,736
Trophies
2
XP
6,303
Country
the file i should edit is hekate_ipl.ini?
this is what inside

Code:
[config]
autoboot=0
bootwait=3
customlogo=0
verification=2
{-- NSwitchDebugger --}
[NSDebugger]
kip1=modules/newfirm/*
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
[NSDebugger_kip]
kip1=modules/nsdebugger/loader.kip
kip1=modules/nsdebugger/nsdebugger.kip
kip1=modules/newfirm/sm.kip
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
[NSDebugger_fs_mitm_kip]
kip1=modules/nsdebugger/loader.kip
kip1=modules/nsdebugger/nsdebugger.kip
kip1=modules/newfirm/sm.kip
kip1=modules/newfirm/fs_mitm.kip
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
{ }
[stock_DANGEROUS]
[PreventGCUpdate]
kip1patch=nogc
yes, that is where you choose which cfw to boot
 

aos10

Yuuki chan
Member
Joined
Apr 10, 2012
Messages
4,756
Trophies
2
Age
38
XP
4,030
Country
Saudi Arabia
hmm, managed to edit the options in bootloader folder, but when launching the game it gives me error.
tried with rajnx with debug mode and managed to edit, however when i enter the room and it autosave, the switch freeze.
 

dsrules

Well-Known Member
Member
Joined
Sep 20, 2005
Messages
8,736
Trophies
2
XP
6,303
Country
hmm, managed to edit the options in bootloader folder, but when launching the game it gives me error.
tried with rajnx with debug mode and managed to edit, however when i enter the room and it autosave, the switch freeze.
for me hekate payload + [NSDebugger] error on boot game, +[NSDebugger_kip] game works fine on NSwitchDebugger 0.58
 

dsrules

Well-Known Member
Member
Joined
Sep 20, 2005
Messages
8,736
Trophies
2
XP
6,303
Country
The messenger always crashes on me on all option, maybe sigpatch?
are you using the newest SDFiles 9.0.4 and hekate 4.2?
here is what mine looks like

{-- NSwitchDebugger --}
[NSDebugger]
kip1=modules/newfirm/loader.kip
kip1=modules/newfirm/sm.kip
kip1=modules/newfirm/fs_mitm.kip
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
[NSDebugger_kip]
kip1=modules/nsdebugger/loader.kip
kip1=modules/nsdebugger/nsdebugger.kip
kip1=modules/newfirm/sm.kip
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
[NSDebugger_fs_mitm_kip]
kip1=modules/nsdebugger/loader.kip
kip1=modules/nsdebugger/nsdebugger.kip
kip1=modules/newfirm/sm.kip
kip1=modules/newfirm/fs_mitm.kip
atmosphere=1
debugmode=1
fullsvcperm=1
{ }
 

aos10

Yuuki chan
Member
Joined
Apr 10, 2012
Messages
4,756
Trophies
2
Age
38
XP
4,030
Country
Saudi Arabia
are you using the newest SDFiles 9.0.4 and hekate 4.2?
here is what mine looks like

{-- NSwitchDebugger --}
[NSDebugger]
kip1=modules/newfirm/loader.kip
kip1=modules/newfirm/sm.kip
kip1=modules/newfirm/fs_mitm.kip
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
[NSDebugger_kip]
kip1=modules/nsdebugger/loader.kip
kip1=modules/nsdebugger/nsdebugger.kip
kip1=modules/newfirm/sm.kip
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
[NSDebugger_fs_mitm_kip]
kip1=modules/nsdebugger/loader.kip
kip1=modules/nsdebugger/nsdebugger.kip
kip1=modules/newfirm/sm.kip
kip1=modules/newfirm/fs_mitm.kip
atmosphere=1
debugmode=1
fullsvcperm=1
{ }
yes, newest SDFiles 9.0.4 and hekate 4.2.

i will try this config

edit: i am getting "the software was closed because an error occurred."
maybe the sigpatch path is wrong?

only in the messenger i get that message.
 
Last edited by aos10,

dsrules

Well-Known Member
Member
Joined
Sep 20, 2005
Messages
8,736
Trophies
2
XP
6,303
Country
does this work with SX OS?
no, but SX OS has it's own cheat engine now

yes, newest SDFiles 9.0.4 and hekate 4.2.

i will try this config

edit: i am getting "the software was closed because an error occurred."
maybe the sigpatch path is wrong?

only in the messenger i get that message.
yes, like I said before, you need to use [NSDebugger_kip] for the Messenger
 

carlskie

Active Member
Newcomer
Joined
Dec 21, 2017
Messages
42
Trophies
0
Age
35
XP
224
Country
Philippines
its so hard to use... i thought it would be like using cheat engine. search for values like gold and edit it to 99999
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    ooowwww a new way for me to beat NFS 510 :D @SylverReZ
    +1
  • SylverReZ @ SylverReZ:
    @AncientBoi, Yeah, believe you can do PSP games as well. But a Pi5 is much powerful in comparison.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure about other models of Pi4 but the Pi 4 B with 8GBs OCed to 2Ghz handles PSP really great except like 1 game I found and it is playable it just looks bad lol Motor Storm Arctic something or other.
  • Psionic Roshambo @ Psionic Roshambo:
    Other games I can have turned up to like 2X and all kinds of enhancements, Motorstorm hmmm nope 1X and no enhancements lol
  • Veho @ Veho:
    Waiting for Anbernic's rg[whatever]SP price announcement, gimme.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I will admit that one does seem more interesting than the usual Ambernic ones, and I already liked those.
  • Veho @ Veho:
    I dread the price point.
    +1
  • Veho @ Veho:
    This looks like one of their premium models, so... $150 :glare:
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    To me that seems reasonable.
  • Psionic Roshambo @ Psionic Roshambo:
    I mean since basically all the games are errmmm free lol
  • Veho @ Veho:
    I mean yeah sure but the specs are the same as a $50 model, it's just those pesky "quality of life" things driving up the price, like an actually working speaker, or buttons that don't melt, and stuff like that.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I think all in my Pi 4 was well north of 200 bucks 150ish for the Pi 4 the case the fancy cooler, then like 70 for the 500GB MicroSD then like 70 for the Xbox controller. But honestly it's a nice set up I really enjoy and to me was worth every penny. (even bought more controllers for 2 or 4 player games.) hmmm have never played any 2 player games yet :(
  • Veho @ Veho:
    Yeah that's what I hate about the RPi, it's supposedly $30 or something but it takes an additional $200 of accessories to actually turn it into a working something.
  • Psionic Roshambo @ Psionic Roshambo:
    yes that's the expensive part lol
  • Veho @ Veho:
    I mean sure it's flexible and stuff but so is uremum but it's fiddly.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah a lot of it I consider a hobby, using Batocera I am constantly adjusting the collection adding and removing stuff, scraping the artwork. Haven't even started on some music for the theme... Also way down the road I am considering attempting to do a WiiFlow knock off lol
  • Veho @ Veho:
    I want everything served on a plate plz ktnx, "work" is too much work for me.
  • Veho @ Veho:
    Hmm, with that in mind, maybe a complete out-the-box solution with all the games collected, pacthed and optimized for me would be worth $150 :unsure:
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's all choice and that's a good thing :)
  • Bunjolio @ Bunjolio:
    animal crossing new leaf 11pm music
  • Bunjolio @ Bunjolio:
    avatars-kKKZnC8XiW7HEUw0-KdJMsw-t1080x1080.jpg
    wokey d pronouns
  • SylverReZ @ SylverReZ:
    What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo
    SylverReZ @ SylverReZ: What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo