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: 906
  • 2018062719294000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    2018062719294000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    49.7 KB · Views: 722
  • 2018062719295000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    2018062719295000-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    78 KB · Views: 706
  • 1234.jpg
    1234.jpg
    24.7 KB · Views: 703
  • searching.jpg
    searching.jpg
    109.1 KB · Views: 683
  • address_after_found.jpg
    address_after_found.jpg
    102.3 KB · Views: 669
  • changing_value.jpg
    changing_value.jpg
    24.4 KB · Views: 671
  • seccessful_changed.jpg
    seccessful_changed.jpg
    57.4 KB · Views: 726
Last edited by Type_O_Dev,

tides

Well-Known Member
Member
Joined
Apr 2, 2013
Messages
297
Trophies
1
Age
37
XP
791
Country
United States
holy shit the UI is super unfriendly.

but i have a problem, i managed to get it working but i added a few values that wasn't what i was looking for. these values freeze the switch and i have no clue how to delete/remove these cheats.

the app auto saves everything and auto loads everything so u r fked if u something that freezes your game


so how do i delete cheats addresses?
 
Last edited by tides,

dsrules

Well-Known Member
Member
Joined
Sep 20, 2005
Messages
8,699
Trophies
2
XP
6,262
Country
holy shit the UI is super unfriendly.

but i have a problem, i managed to get it working but i added a few values that wasn't what i was looking for. these values freeze the switch and i have no clue how to delete/remove these cheats.

the app auto saves everything and auto loads everything so u r fked if u something that freezes your game


so how do i delete cheats addresses?
huh, I've been usng this for awhile, didn't know it saves and loads everything
but, try delete the Search, Cheats folder in your microsd in the NSwitchDebugger folder
 

tides

Well-Known Member
Member
Joined
Apr 2, 2013
Messages
297
Trophies
1
Age
37
XP
791
Country
United States
huh, I've been usng this for awhile, didn't know it saves and loads everything
but, try delete the Search, Cheats folder in your microsd in the NSwitchDebugger folder

yea i found out that u have to go into the sd card and delete the file it generates.

yes all changes you make to any part of the memory is saved and loaded automatically. it is how they can let you search for an address/value.
if you accidentally edit a memory, it will be saved and that memory is forever edited. if that memory you accidentally save crashes or freezes the game, u r fked until u go into your sd card and delete the entry/file.
 

Chrisb8833

New Member
Newbie
Joined
Oct 23, 2018
Messages
1
Trophies
0
Age
23
XP
60
Country
United States
How do you install I'm on firmware 6.0.1 running reinx 1.7. I can search the values but but can't edit them

Edit:
Got it to work but whenever I put the switch in sleep mode it won't turn back on. I have to shut it down and boot up again
 
Last edited by Chrisb8833,

noblezerozx

New Member
Newbie
Joined
Nov 22, 2018
Messages
1
Trophies
0
Age
29
XP
52
Country
Canada
I got it to work as well but the same issue of when the switch goes in sleep mode it won't turn back on (I'm on FW6.1 BTW). Hard reset to fix, hopefully this problem can be fixed in the future. Best to use the NSwitchDebugger for what you need then switch back to a normal CFW. I was using KosmosV11 so the hekate_ipl.ini is different. if you have a problem with your games not loading its probably because of the loader.kip that you are using. I had the same issue but after I defaulted to the Kosmos Loader the issue went away.

Here is the code that I used,

Code:
{-- NSwitchDebugger --}
[NSDebugger_NZero_KosmosV11]
kip1=modules/required/loader.kip
kip1=modules/nsdebugger/nsdebugger.kip
kip1=modules/required/pm.kip
kip1=modules/required/sm.kip
secmon=modules/required/exosphere.bin
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
[NSDebugger_NZero_KosmosV11_fs_mitm_kip]
kip1=modules/required/loader.kip
kip1=modules/nsdebugger/nsdebugger.kip
kip1=modules/required/pm.kip
kip1=modules/required/sm.kip
kip1=modules/required/fs_mitm.kip
secmon=modules/required/exosphere.bin
kip1patch=nosigchk
atmosphere=1
debugmode=1
fullsvcperm=1
{ }
 
Last edited by noblezerozx,

mhamd

Active Member
Newcomer
Joined
Nov 27, 2017
Messages
28
Trophies
0
Age
36
XP
170
Country
Italy
How do you install I'm on firmware 6.0.1 running reinx 1.7. I can search the values but but can't edit them

Edit:
Got it to work but whenever I put the switch in sleep mode it won't turn back on. I have to shut it down and boot up again

how did you make it work?

I am using Reinx 1.7 & 5.1.0 FW & newest SDFiles

can't boot [NSDebugger] I got a message "the software was closed because an error occurred."
if i boot [NSDebugger_kip] can't open games and album (hbmenu)

if I boot via Reinx payload I can search values but can't edit them in games
 
Last edited by mhamd,

nanchan

Well-Known Member
Newcomer
Joined
May 10, 2015
Messages
83
Trophies
0
Age
27
XP
581
Country
United States
how did you make it work?

I am using Reinx 1.7 & 5.1.0 FW & newest SDFiles

can't boot [NSDebugger] I got a message "the software was closed because an error occurred."
if i boot [NSDebugger_kip] can't open games and album (hbmenu)

if I boot via Reinx payload I can search values but can't edit them in games
I have Reinx 1.7 wtih 5.1.0 FW as well. I am using NSDebugger 0.5.9 and do not have the problem. I launch the NSDebugger.nro and just use it directly after launching Reinx. I have it working on Monster Hunter, Setsuna, BOTW, Octopath and Diablo. Have not found a game where I cannot modify the basic like golds and items. Have not tried to modify anything that involve more than a few basic value search when I buy, sell, or use an item.
 

coldhunter77

Member
Newcomer
Joined
Jun 14, 2007
Messages
19
Trophies
1
XP
430
Country
United States
I'm on reinx and I can't seem to get it to work.

Couldn't search float values for money in South Park so I tried to search for item quantity to sell.

Except when I hit Y for repeat search, nothing happens
 

Zaybokk

Well-Known Member
Member
Joined
Jan 28, 2014
Messages
333
Trophies
0
Location
FÓDLAN
XP
361
Country
United Kingdom
how did you come to 51 for current hearts
question , if I may?.., it's about this tool being used if** possible with BOTW on switch of course.. perhaps is possible to find value(s) for inf. arrows or maybe Inf. Stamina?... and thanks as always for help guys...
 

nanchan

Well-Known Member
Newcomer
Joined
May 10, 2015
Messages
83
Trophies
0
Age
27
XP
581
Country
United States
question , if I may?.., it's about this tool being used if** possible with BOTW on switch of course.. perhaps is possible to find value(s) for inf. arrows or maybe Inf. Stamina?... and thanks as always for help guys...
this tool seems very basic, doubt you can freeze value to get infinite stamina. Would love to see an update to this tool since it is the only tool that works on the switch aside from SX OS cheat or the cheat searcher that requires a network connection (
sys-netcheat)
.
 

MikeHawke

Well-Known Member
Newcomer
Joined
Jul 30, 2016
Messages
76
Trophies
0
Age
103
XP
191
Country
For some strange reason Nswitchdebugger now works for me since updating atmosphere and firmware. The problem now is that whenever I attempt to save, the game freezes.

Okay, it turns out that I had a cheat active from a previous attempt. all ya gotta do is delete preexisting cheat files in there.
 
Last edited by MikeHawke,

nanchan

Well-Known Member
Newcomer
Joined
May 10, 2015
Messages
83
Trophies
0
Age
27
XP
581
Country
United States
For some strange reason Nswitchdebugger now works for me since updating atmosphere and firmware. The problem now is that whenever I attempt to save, the game freezes.

Okay, it turns out that I had a cheat active from a previous attempt. all ya gotta do is delete preexisting cheat files in there.
Glad it worked out for you. This is my goto cheat engine because it is just convenient.
 
  • Like
Reactions: MikeHawke

MikeHawke

Well-Known Member
Newcomer
Joined
Jul 30, 2016
Messages
76
Trophies
0
Age
103
XP
191
Country
how does nswitch display the addr? Hex or dec?
Glad it worked out for you. This is my goto cheat engine because it is just convenient.

haha, yeah. Same. Sys-netcheat by jaki is also good, it's faster and can choose something other than 4 byte or 8 byte, but for some reason it's easier to find the values I want using NSwitch. Not to mention it gives us a small but incredibly useful view of the surrounding values, so that we can make sense of the surrounding date structure.
 

Mizo

はじめまして私わみぞです、よろしく。
Member
Joined
May 27, 2016
Messages
283
Trophies
0
XP
441
Country
United States
Thanks! NSwitchDebugger worked on Dead or Alive Xtreme 3 Scarlet, sadly the game have money limit (3M) and I have to do all over again everytime I need money.

Any way to freeze the money value?
 
  • Like
Reactions: Type_O_Dev

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Bunjolio @ Bunjolio:
    if ur on a Chromebook and cant change jack about the laptop that's what I gotta use
  • SylverReZ @ SylverReZ:
    One of the sites that weren't blocked on the school's network was some file uploading sites. I would upload some games, write down the URL and take it to school one day.
  • Bunjolio @ Bunjolio:
    lol
  • SylverReZ @ SylverReZ:
    I did it when the teachers werent looking ofc. I even managed to take in a USB stick that wasn't allowed.
  • Bunjolio @ Bunjolio:
    my school has a chrome extension called light speed filter agent and it legit blocks YouTube pfps since the file cdn(I think aka yt3.ggpht.com) is classed as mature
  • Bunjolio @ Bunjolio:
    mhm
  • Bunjolio @ Bunjolio:
    they have other stuff like goguardian too
  • SylverReZ @ SylverReZ:
    Ours mainly relied on the router, I believe.
  • Bunjolio @ Bunjolio:
    our school network and chrome policies block stuff too
  • Bunjolio @ Bunjolio:
    alot of yt to mp3 sites are blocked by light speed for "Security"
  • SylverReZ @ SylverReZ:
    It was easy to bypass some of the restrictions, as one of the admins left a registry key in the administrative shares drive, which allowed me to get around the blocking of some sites.
  • Bunjolio @ Bunjolio:
    tf does tta mean
  • Bunjolio @ Bunjolio:
    yeah this is chrome os
  • Bunjolio @ Bunjolio:
    cant do shit
  • SylverReZ @ SylverReZ:
    @Bunjolio, Wdym 'TTA'?
  • Bunjolio @ Bunjolio:
    that* as in why yt to mp3 sites are blocked for security
  • SylverReZ @ SylverReZ:
    @Bunjolio, Remember when YouTubetoMP3 was a thing back in the 2010s?
  • SylverReZ @ SylverReZ:
    Until YT updated some stuffs and broke the website.
  • Bunjolio @ Bunjolio:
    I was 2 in 2010
  • SylverReZ @ SylverReZ:
    Oh lol
  • Bunjolio @ Bunjolio:
    lol
  • SylverReZ @ SylverReZ:
    This was in the Minecraft-era.
  • AncientBoi @ AncientBoi:
    lol Bun rockin out at 2 :rofl2:
    AncientBoi @ AncientBoi: lol Bun rockin out at 2 :rofl2: