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

  • Thread starter Thread starter matias3ds
  • Start date Start date
  • Views Views 24,324,035
  • Replies Replies 73,389
  • Likes Likes 249
if use multimedia or rtld, the code can't be used for emulator... code will become NS only code, can't work on emulator

usually if the main file has small space as safe RWX(.txt region) code cave, i'd better use ALIGN 0x20 as code cave, the code will be worked on both ns and emulator , for instance:

one ALIGN 0x20 example:

[OHK Press (B) /(A guns) damage 9999999 ]
04000000 0339ED20 1753AA3D
04000000 00889614 1C000040
04000000 00889618 14AC55C3
04000000 0088961C 497423F0


multi-ALIGN 0x20 example:

[Equipment Enhancement no req. (Jungle DLC)]
040A0000 039DFCF4 173AA730
040A0000 008899B4 A9376BF9
040A0000 008899B8 F9404AB9
040A0000 008899BC 1400012E
040A0000 00889E74 5280001A
040A0000 00889E78 B9001B3A
040A0000 00889E7C 1400000E
040A0000 00889EB4 F9404AB6
040A0000 00889EB8 A9776BF9
040A0000 00889EBC 14C5578F

this kind of code can be used for both NS and emulator.
Post automatically merged:


jump the mul-ALIGN 0x20 from top to down (IDA lower address to higher address), corrected version

[31# Inf Health Beatle Battle (Jungle DLC)]
040A0000 0277B070 1762167D
040A0000 00000A64 A9376BF9
040A0000 00000A68 F9403918
040A0000 00000A6C 14000002
040A0000 00000A74 180000C3
040A0000 00000A78 B9003B03
040A0000 00000A7C 14000002
040A0000 00000A84 A9776BF9
040A0000 00000A88 149DE97A
040A0000 00000A8C 00000064

: old version
[31# Inf Health Beatle Battle (Jungle DLC)] An error pops up.
[Main+R10+0x0000000A64] = 0xA9376BF9 stp x25, x26, [sp, #-0x90]
[Main+R10+0x0000000A68] = 0xF9403918 ldr x24, [x8, #0x70]
[Main+R10+0x0000000A6C] = 0x14000002 b #0xa74
[Main+R10+0x0000000A74] = 0x180000C3 ldr w3, #0xa8c
[Main+R10+0x0000000A78] = 0xB9003B03 str w3, [x24, #0x38]
[Main+R10+0x0000000A7C] = 0x14000002 b #0xa84
[Main+R10+0x0000000A84] = 0xA9776BF9 ldp x25, x26, [sp, #-0x90]
[Main+R10+0x0000000A88] = 0x149DE97A b #0x277b070
[Main+R10+0x0000000A8C] = 0x64 .word 100
[Main+R10+0x000277B070] = 0x155D83C5 b #0x7edbf84 <<<<<<here is wrong

last line should be:
[Main+R10+0x000277B070] = 0x1762167D b #0xa64
[31# Inf Health Beatle Battle (Jungle DLC)]
040A0000 0277B070 1762167D
040A0000 00000A64 A9376BF9
040A0000 00000A68 F9403918
040A0000 00000A6C 14000002
040A0000 00000A74 180000C3
040A0000 00000A78 B9003B03
040A0000 00000A7C 14000002
040A0000 00000A84 A9776BF9
040A0000 00000A88 149DE97A
040A0000 00000A8C 00000064

The beetle battle causes the screen to freeze directly.

Never mind, I'll go back to the previous one. The previous version worked perfectly without any issues.
Post automatically merged:

if use multimedia or rtld, the code can't be used for emulator... code will become NS only code, can't work on emulator

usually if the main file has small space as safe RWX(.txt region) code cave, i'd better use ALIGN 0x20 as code cave, the code will be worked on both ns and emulator , for instance:

one ALIGN 0x20 example:

[OHK Press (B) /(A guns) damage 9999999 ]
04000000 0339ED20 1753AA3D
04000000 00889614 1C000040
04000000 00889618 14AC55C3
04000000 0088961C 497423F0


multi-ALIGN 0x20 example:

[Equipment Enhancement no req. (Jungle DLC)]
040A0000 039DFCF4 173AA730
040A0000 008899B4 A9376BF9
040A0000 008899B8 F9404AB9
040A0000 008899BC 1400012E
040A0000 00889E74 5280001A
040A0000 00889E78 B9001B3A
040A0000 00889E7C 1400000E
040A0000 00889EB4 F9404AB6
040A0000 00889EB8 A9776BF9
040A0000 00889EBC 14C5578F

this kind of code can be used for both NS and emulator.
Post automatically merged:


jump the mul-ALIGN 0x20 from top to down (IDA lower address to higher address), corrected version

[31# Inf Health Beatle Battle (Jungle DLC)]
040A0000 0277B070 1762167D
040A0000 00000A64 A9376BF9
040A0000 00000A68 F9403918
040A0000 00000A6C 14000002
040A0000 00000A74 180000C3
040A0000 00000A78 B9003B03
040A0000 00000A7C 14000002
040A0000 00000A84 A9776BF9
040A0000 00000A88 149DE97A
040A0000 00000A8C 00000064

: old version
[31# Inf Health Beatle Battle (Jungle DLC)] An error pops up.
[Main+R10+0x0000000A64] = 0xA9376BF9 stp x25, x26, [sp, #-0x90]
[Main+R10+0x0000000A68] = 0xF9403918 ldr x24, [x8, #0x70]
[Main+R10+0x0000000A6C] = 0x14000002 b #0xa74
[Main+R10+0x0000000A74] = 0x180000C3 ldr w3, #0xa8c
[Main+R10+0x0000000A78] = 0xB9003B03 str w3, [x24, #0x38]
[Main+R10+0x0000000A7C] = 0x14000002 b #0xa84
[Main+R10+0x0000000A84] = 0xA9776BF9 ldp x25, x26, [sp, #-0x90]
[Main+R10+0x0000000A88] = 0x149DE97A b #0x277b070
[Main+R10+0x0000000A8C] = 0x64 .word 100
[Main+R10+0x000277B070] = 0x155D83C5 b #0x7edbf84 <<<<<<here is wrong

last line should be:
[Main+R10+0x000277B070] = 0x1762167D b #0xa64
I think sometimes constantly changing cheat codes just causes more problems. I usually only consider modifying them when they don't work. If everything is fine as it is, it's better not to change them.


Anyway, this cheat code works perfectly fine, at least it does on my Switch console.
[31# Inf Health Beatle Battle (Jungle DLC)]
040A0000 07EDBF84 A9376BF9
040A0000 07EDBF88 F9403918
040A0000 07EDBF8C 18000083
040A0000 07EDBF90 B9003B03
040A0000 07EDBF94 A9776BF9
040A0000 07EDBF98 16A27C37
040A0000 07EDBF9C 00000064
040A0000 0277B070 155D83C5
 
Last edited by weilai,
[31# Inf Health Beatle Battle (Jungle DLC)]
040A0000 0277B070 1762167D
040A0000 00000A64 A9376BF9
040A0000 00000A68 F9403918
040A0000 00000A6C 14000002
040A0000 00000A74 180000C3
040A0000 00000A78 B9003B03
040A0000 00000A7C 14000002
040A0000 00000A84 A9776BF9
040A0000 00000A88 149DE97A
040A0000 00000A8C 00000064

The beetle battle causes the screen to freeze directly.

Never mind, I'll go back to the previous one. The previous version worked perfectly without any issues.
Post automatically merged:


I think sometimes constantly changing cheat codes just causes more problems. I usually only consider modifying them when they don't work. If everything is fine as it is, it's better not to change them.
I don't make sure what code you enabled when you tested. those old code overwrite many existing code as code cave injection. I just said potential crash risk....
 
I don't make sure what code you enabled when you tested. those old code overwrite many existing code as code cave injection. I just said potential crash risk....
No other functions were enabled; only this one was tested. This single cheat code works fine with no issues.

[31# Inf Health Beatle Battle (Jungle DLC)]
040A0000 07EDBF84 A9376BF9
040A0000 07EDBF88 F9403918
040A0000 07EDBF8C 18000083
040A0000 07EDBF90 B9003B03
040A0000 07EDBF94 A9776BF9
040A0000 07EDBF98 16A27C37
040A0000 07EDBF9C 00000064
040A0000 0277B070 155D83C5

The original one released by patjenova works perfectly fine.
But the modified version by patjenova causes direct errors and crashes.
And the one you provided freezes during the battle screen, though it doesn’t fully crash the system.

So personally, I think as long as the cheat code works fine, there's no need to keep modifying it—unless it causes issues or stops working.

From my own usage, I have basically tested all the cheat codes first released by patjenova and found no problems; they all work fine. I don't know if others have encountered any issues.
 
No other functions were enabled; only this one was tested. This single cheat code works fine with no issues.

[31# Inf Health Beatle Battle (Jungle DLC)]
040A0000 07EDBF84 A9376BF9
040A0000 07EDBF88 F9403918
040A0000 07EDBF8C 18000083
040A0000 07EDBF90 B9003B03
040A0000 07EDBF94 A9776BF9
040A0000 07EDBF98 16A27C37
040A0000 07EDBF9C 00000064
040A0000 0277B070 155D83C5

The original one released by patjenova works perfectly fine.
But the modified version by patjenova causes direct errors and crashes.
And the one you provided freezes during the battle screen, though it doesn’t fully crash the system.

So personally, I think as long as the cheat code works fine, there's no need to keep modifying it—unless it causes issues or stops working.

From my own usage, I have basically tested all the cheat codes first released by patjenova and found no problems; they all work fine. I don't know if others have encountered any issues.
it overwirted the following code:

text:0000007107EDBF84 MOV X19, X0
.text:0000007107EDBF88 BL sub_710093E5A0
.text:0000007107EDBF8C LDR X0, [X19,#0x10]
.text:0000007107EDBF90 LDR X8, [X0]
.text:0000007107EDBF94 LDR X8, [X8,#0x10]
.text:0000007107EDBF98 BLR X8
.text:0000007107EDBF9C STR XZR, [X19,#0x10]

when you play and the NS conducts existing code here the game will be crashed!
 
it overwirted the following code:

text:0000007107EDBF84 MOV X19, X0
.text:0000007107EDBF88 BL sub_710093E5A0
.text:0000007107EDBF8C LDR X0, [X19,#0x10]
.text:0000007107EDBF90 LDR X8, [X0]
.text:0000007107EDBF94 LDR X8, [X8,#0x10]
.text:0000007107EDBF98 BLR X8
.text:0000007107EDBF9C STR XZR, [X19,#0x10]

when you play and the NS conducts existing code here the game will be crashed!
This cheat code works fine without crashing, but the modified one caused a crash. The version you provided didn't crash, but the screen froze.
I don't really understand it. I'll stick with the earliest version instead; at least it works perfectly fine without any issues. Thanks for your explanation.
[31# Inf Health Beatle Battle (Jungle DLC)]
040A0000 07EDBF84 A9376BF9
040A0000 07EDBF88 F9403918
040A0000 07EDBF8C 18000083
040A0000 07EDBF90 B9003B03
040A0000 07EDBF94 A9776BF9
040A0000 07EDBF98 16A27C37
040A0000 07EDBF9C 00000064
040A0000 0277B070 155D83C5
 
[31# Inf Health Beatle Battle (Jungle DLC)]
040A0000 0277B070 1762167D
040A0000 00000A64 A9376BF9
040A0000 00000A68 F9403918
040A0000 00000A6C 14000002
040A0000 00000A74 180000C3
040A0000 00000A78 B9003B03
040A0000 00000A7C 14000002
040A0000 00000A84 A9776BF9
040A0000 00000A88 149DE97A
040A0000 00000A8C 00000064
040A0000 00000A88 149DE97A
change to
040A0000 00000A88 149DE97B
 
  • Like
Reactions: weilai
040A0000 00000A88 149DE97A
change to
040A0000 00000A88 149DE97B
yup. I wan't screening so detailed ,just noticed the long wrong address. yes, last code cave "b" code returned address should be the next address of the hook address to make sure the original code flowchart

Writing cheat code is a tough, labor-intensive, and eye-straining job! One wrong digit can lead to execution errors.
 
  • Like
Reactions: Nic87
Changed my codes. they should work now
Mmmm...nope...
I don't have the game installed...
I just look at your code and I fixed some codecave issues...
Hopefully I didn't make mistakes either... :)


[31# Inf Health Beatle Battle (Jungle DLC)]
040A0000 00000A64 A9376BF9
040A0000 00000A68 F9403918
040A0000 00000A6C 14000002
040A0000 00000A74 180000C3
040A0000 00000A78 B9003B03
040A0000 00000A7C 14000002
040A0000 00000A84 A9776BF9
040A0000 00000A88 149DE97B
040A0000 00000A8C 00000064
040A0000 0277B070 1762167D

[32# Max Money On Gain]
040A0000 00000B34 18000041
040A0000 00000B38 14FF03D5
040A0000 00000B3C 0098967F
040A0000 03FC1A88 1700FC2B

[33# Max Money On Gain Merman Village]
040A0000 00000B54 18000041
040A0000 00000B58 14FF041F
040A0000 00000B5C 0098967F
040A0000 03FC1BD0 1700FBE1

[34# Max Money On Gain (Jungle DLC)]
040A0000 00000B74 180000C3
040A0000 00000B78 B90012A3
040A0000 00000B7C 14000002
040A0000 00000B84 B94012B6
040A0000 00000B88 14D00CDA
040A0000 00000B8C 0098967F
040A0000 03403EEC 172FF322

[35# More NPC Friendship (Jungle DLC)]
040A0000 00000C74 18000055
040A0000 00000C78 14D04D8F
040A0000 00000C7C 0098967F
040A0000 034142B0 172FB271

[37# No Equipment Enhancement Requirements (Jungle DLC)]
040A0000 00000CD4 A9376BF9
040A0000 00000CD8 F9404AB9
040A0000 00000CDC 14000002
040A0000 00000CE4 5280001A
040A0000 00000CE8 B9001B3A
040A0000 00000CEC 14000002
040A0000 00000CF4 F9404AB6
040A0000 00000CF8 A9776BF9
040A0000 00000CFC 14E77BFF
040A0000 039DFCF4 171883F8
 
i don't see a reason for them not to work on emulators, at least it works on ryujinx as far as I could tell
anyways, if you found a solution in main then they are not needed
NOK for eden, i tried many code on Eden emulator. Eden cheat code engine is quite out of data and as old as Yuzu..., can't select a code ON or Off, just depended on the code positions in whole BID.txt...up to the position the code you put, no so convenient
 

Site & Scene News

Popular threads in this forum