ROM Hack Cheat Codes AMS and Sx Os, Add and Request

TomSwitch

Well-Known Member
Member
Joined
Jan 10, 2019
Messages
4,439
Trophies
1
Age
44
XP
14,468
Country
United States
How do you create Cheats when the Address you are looking for is not in MAIN or HEAP, but in BASE????
Check if the game has dynamically loaded modules. Try get infos with gdb.
If you see more than the usual four in the modules list you have to rebase to that module which is a extra step you have to do before you can do ASM hack. WWZ is one game that needs it.

GDB>get infos
Process: 0x86 (Application)
Program Id: 0x0100ddc018870000
Application: 1
Hbl: 0
Layout:
Alias: 0x0408400000 - 0x14083fffff
Heap: 0x2eac000000 - 0x302bffffff
Aslr: 0x0008000000 - 0x7fffffffff
Stack: 0x26e2c00000 - 0x2762bfffff
Modules:
0x5ca9a00000 - 0x5ca9a01fff nnrtld.elf
0x5ca9a04000 - 0x5cac973fff SwitchPlayer.nss
0x5cae6ac000 - 0x5cae9eafff multimedia.elf
0x5caed46000 - 0x5caf322fff nnSdk.elf
 

-elfenlied-

Active Member
Newcomer
Joined
Nov 8, 2021
Messages
29
Trophies
0
Age
40
XP
571
Country
Germany

Bayonetta 2 (ver. 1.1.0)

Added support for Korean, Chinese (simplified), and Chinese (traditional) as in-game display and subtitle languages. *Voice support languages are Japanese and English only.
 
  • Like
Reactions: platanos

Smoker1

Well-Known Member
Member
Joined
Feb 17, 2015
Messages
5,035
Trophies
1
Location
California
XP
6,028
Country
United States
Check if the game has dynamically loaded modules. Try get infos with gdb.
If you see more than the usual four in the modules list you have to rebase to that module which is a extra step you have to do before you can do ASM hack. WWZ is one game that needs it.

GDB>get infos
Process: 0x86 (Application)
Program Id: 0x0100ddc018870000
Application: 1
Hbl: 0
Layout:
Alias: 0x0408400000 - 0x14083fffff
Heap: 0x2eac000000 - 0x302bffffff
Aslr: 0x0008000000 - 0x7fffffffff
Stack: 0x26e2c00000 - 0x2762bfffff
Modules:
0x5ca9a00000 - 0x5ca9a01fff nnrtld.elf
0x5ca9a04000 - 0x5cac973fff SwitchPlayer.nss
0x5cae6ac000 - 0x5cae9eafff multimedia.elf
0x5caed46000 - 0x5caf322fff nnSdk.elf
It is a Homebrew Game/Port.
 

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,758
Trophies
1
XP
6,426
Country
United States
Bayonetta 2 (ver. 1.1.0)
Added support for Korean, Chinese (simplified), and Chinese (traditional) as in-game display and subtitle languages. *Voice support languages are Japanese and English only.
probably the only code that is truly my own and all i ever needed:
(this code was updated using the Interactive Asm Updater program)

BID: F19B2E01E1794F93
Code:
[invincible/time control(stop) v4]
04000000 0120DBE0 180001F5 
04000000 0120DBE4 35000075 
04000000 0120DBE8 B9400108 
04000000 0120DBEC 17B83B63 
04000000 0120DBF0 71000ABF 
04000000 0120DBF4 54FFFFCB 
04000000 0120DBF8 52800035 
04000000 0120DBFC B9000115 
04000000 0120DC00 52A85E15 
04000000 0120DC04 B9001D15 
04000000 0120DC08 58000075 
04000000 0120DC0C F9000915 
04000000 0120DC10 17FFFFF7 
04000000 0120DC14 38D1B717 
04000000 0120DC18 40000000 
04000000 0001C974 1447C49B 

[enable option 1 (invincible)]
14060000 0120DC1C 00000002 
04000000 0120DC1C 00000001 
20000000 

[+-> Enable option 2 (time control)]
80000010 
04000000 0120DC1C 00000002 
20000000 

[+-> Disable option 2(time control)]
80000020 
04000000 0120DC1C 00000000 
20000000 

[time control mod stop to slow]
04000000 0120DC14 3DCCCCCD
 

khuong

Well-Known Member
Member
Joined
Jul 18, 2018
Messages
1,542
Trophies
1
Age
44
XP
6,502
Country
Canada
Okay I've done some cheats..

Moonscars-Game-Page-e1660169381879.jpg

Moonscars (US)​


0100787017A88000 (3D6DC1B90104D8B4)

Cheat List​

  1. Inf. HP
  2. OHK
  3. Tons of Bone Dust (On Pickup)
  4. Bone Dust Multiplier (4x)
  5. Inf. Spite Points (Must have 1)
  6. No Skill Cooldown
  7. Heal No Mana Cost
  8. Ignore Skill Mana Cost
  9. No Dash Cooldown
https://github.com/bad1dea/NXCheats/tree/main/Moonscars

Updated... https://github.com/bad1dea/NXCheats/tree/main/Moonscars

I tried to fix OHK -- played for like 30 mins.. everything dies.. (sometimes you have to use a skill on the monster.. as only witchery will actually kill it.... (it'll have 0 hp until you use skill)

Added a few more codes, glands, jump height, move speed, atk speed.... and invincible (ignores hits/spikes)

Moonscars (US)​


0100787017A88000 (3D6DC1B90104D8B4)


Cheat List​


  1. Invincible
  2. Inf. HP
  3. Inf. Jumps
  4. Inf. Spite Points (Must have 1)
  5. OHK
  6. Tons of Bone Dust (On Pickup)
  7. Tons of Glands (On Pickup)
  8. Bone Dust Multiplier (4x)
  9. Glands Multiplier (4x)
  10. Jump Height 2x
  11. Move Speed 2x
  12. Atk. Speed 2x
  13. No Skill Cooldown
  14. Heal No Mana Cost
  15. Ignore Skill Mana Cost
  16. No Dash Cooldown
 

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,758
Trophies
1
XP
6,426
Country
United States
Sounds good...check out my post here were i mentioned some things i found.
https://gbatemp.net/threads/cheat-codes-ams-and-sx-os-add-and-request.520293/post-9949674
so, i tried your breakpoint for xp, and it didnt. meanwhile, by searching for the exp awarded in battle, i was able to find, locate, and create a custom value xp multiplier. now the way this game is storing the Hp, and energy is a little weird, if memory serves right it was something like "str w0, [x2, x8, STXW#2]" or something like that. so, i had to get creative a little and use a sort-of pointer system to constant write the changes i wanted.
i already have Energy, Hp, Xp mod, and now im working on the command slots....
 

TomSwitch

Well-Known Member
Member
Joined
Jan 10, 2019
Messages
4,439
Trophies
1
Age
44
XP
14,468
Country
United States
It is a Homebrew Game/Port.
One normal thing that will show up as base is the stack. If something stay constantly on the same spot on the stack over the duration of your search it will appear on your candidate list. A local variable used in a piece of code that never exit in the duration of your search. Any pointer you find would likely be not so dependable, better go with ASM hack.
 
Last edited by TomSwitch,

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,758
Trophies
1
XP
6,426
Country
United States
One normal thing that will show up as base is the stack. If something stay constantly on the same spot on the stack over the duration of your search it will appear on your candidate list. A local variable used in a piece of code that never exit in the duration of your search. Any pointer you find would likely be not so dependable, better go with ASM hack.
yeah, just one problem, the forward doesnt work for me, while i can it to work with title override, gdb for an odd reason will not see it....
 

Smoker1

Well-Known Member
Member
Joined
Feb 17, 2015
Messages
5,035
Trophies
1
Location
California
XP
6,028
Country
United States
One normal thing that will show up as base is the stack. If something stay constantly on the same spot on the stack over the duration of your search it will appear on your candidate list.
Actually, the Addresses in BASE always Change on me. So everytime I run it, the Addresses are different.
 

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,758
Trophies
1
XP
6,426
Country
United States
what is forward and title override?
i might be using the wrong term,

forward, might be forwarder, is a nsp that has its own titldid/buildid but reference the game in the /switch folder. best example was Sonic 3 A.I.R.

title override was where you held the R button on a title(game) and instead of the game launching its launches the homebrew menu which the game has full ram access.
 

TomSwitch

Well-Known Member
Member
Joined
Jan 10, 2019
Messages
4,439
Trophies
1
Age
44
XP
14,468
Country
United States
i might be using the wrong term,

forward, might be forwarder, is a nsp that has its own titldid/buildid but reference the game in the /switch folder. best example was Sonic 3 A.I.R.

title override was where you held the R button on a title(game) and instead of the game launching its launches the homebrew menu which the game has full ram access.
GDB and Noexs can attach to most process and these should be not be the exception, you just need to know the name with GDB and pid with Noexs
 

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,758
Trophies
1
XP
6,426
Country
United States
then, to make i understand, i get the mario deluxe port running with a title override, (for example, bayonetta 2), i make sure dmnt is not attached, but i do not see "application" or the name, and the Pid i see with edizon displays the name hbloader. so do i attach to "hbloader"?

update: yes, i do attach to "hbloader" as that IS the game.
 
Last edited by Gamerjin,

Smoker1

Well-Known Member
Member
Joined
Feb 17, 2015
Messages
5,035
Trophies
1
Location
California
XP
6,028
Country
United States
@Smoker1,
good news, bad news
good news: thanks to @TomSwitch, i can now attach to mario deluxe.
bad news: i have no way of storing the asm hacks i find in a way that be auto-loaded when the game is launched.
So the ASM Hacks would not be Auto Loaded, meaning have to Apply them Manually every time it is run? Have to do that with Mario HD V8 anyway, so would not be a problem. Or do you mean something else?
 

jpmasterflex

Well-Known Member
Member
Joined
Jan 14, 2016
Messages
130
Trophies
0
Age
29
XP
1,616
Country
United States
so, i tried your breakpoint for xp, and it didnt. meanwhile, by searching for the exp awarded in battle, i was able to find, locate, and create a custom value xp multiplier. now the way this game is storing the Hp, and energy is a little weird, if memory serves right it was something like "str w0, [x2, x8, STXW#2]" or something like that. so, i had to get creative a little and use a sort-of pointer system to constant write the changes i wanted.
i already have Energy, Hp, Xp mod, and now im working on the command slots....
Oh i forgot to mention that the xp instruction i found has a add instruction above it at: main +1CBB20 = ADD W8, W9, W8(hex =2801080B)
i tried modifying it with an LSL but i can only do one of the registers so it only sometimes worked...i think that needs a code cave and oh nice....i found this one hit kill code in the previous version but i'm not sure how to port it over to the latest update...

Code:
[1-Hit Kill Enemies (Press ZR)] (from bid:76891617fe876b5f)
80000200
58000000 0A8706C8
58001000 00000020
58001000 00001618
78000000 000001D8
64000000 00000000 3f800000
20000000


I managed to port a speed up code though... I think...jumping makes you go really fast with this one
Code:
[Speed Up rebase]
580F0000 0A933688
580F1000 00000128
780F0000 0000019C
640F0000 00000000 3FA00000
 
Last edited by jpmasterflex,

piek50

Well-Known Member
Member
Joined
Jun 24, 2019
Messages
683
Trophies
0
XP
2,205
Country
Suriname
Updated... https://github.com/bad1dea/NXCheats/tree/main/Moonscars

I tried to fix OHK -- played for like 30 mins.. everything dies.. (sometimes you have to use a skill on the monster.. as only witchery will actually kill it.... (it'll have 0 hp until you use skill)

Added a few more codes, glands, jump height, move speed, atk speed.... and invincible (ignores hits/spikes)

Moonscars (US)​


0100787017A88000 (3D6DC1B90104D8B4)


Cheat List​


  1. Invincible
  2. Inf. HP
  3. Inf. Jumps
  4. Inf. Spite Points (Must have 1)
  5. OHK
  6. Tons of Bone Dust (On Pickup)
  7. Tons of Glands (On Pickup)
  8. Bone Dust Multiplier (4x)
  9. Glands Multiplier (4x)
  10. Jump Height 2x
  11. Move Speed 2x
  12. Atk. Speed 2x
  13. No Skill Cooldown
  14. Heal No Mana Cost
  15. Ignore Skill Mana Cost
  16. No Dash Cooldown
thank u very much for the codes and the effort you take to make them.
 
  • Like
Reactions: zebrone

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    realtimesave @ realtimesave: I have it in my hands