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

Ultimos54

Well-Known Member
Member
Joined
Aug 27, 2018
Messages
1,270
Trophies
0
XP
3,480
Country
Australia
MH Rise Codes wanted/ should be created if possible:
-inf hp and stamina
-1 hit kill
-Inf money
- x99 of item bought
-x99 of item in slot 1- XXX
-not sure if possible, but a code that shows an entire map
-fast charge of weapons
-instant capture
-no charge on companions abilities
-more capacity for rampages
There is probably more codes that could be created/implemented and I wish I knew how to create codes, but I will wait and leave it to the pros here :) forever grateful
 
  • Like
Reactions: zebrone

patjenova

Well-Known Member
Member
Joined
Jul 31, 2018
Messages
1,644
Trophies
1
XP
8,855
Country
Netherlands
MH Rise Codes wanted/ should be created if possible:
-inf hp and stamina
-1 hit kill
-Inf money
- x99 of item bought
-x99 of item in slot 1- XXX
-not sure if possible, but a code that shows an entire map
-fast charge of weapons
-instant capture
-no charge on companions abilities
-more capacity for rampages
There is probably more codes that could be created/implemented and I wish I knew how to create codes, but I will wait and leave it to the pros here :) forever grateful
the version that is going around on the internet is not working
 

TomSwitch

Well-Known Member
Member
Joined
Jan 10, 2019
Messages
4,476
Trophies
1
Age
44
XP
14,589
Country
United States
Ok i'm sorry for beeing Rude.
But i already said there's nothing I can Fix, it's Atmospheres fault.
My Cheats are all in alphabetical Order and Categorized.
I already arranged the Cheats so,
that the Important Stuff is on Top of the Cheat File.
It's like A4 paper is longer than letter size. You have a document that printed fine on a A4 and now got cut off on a letter size paper. Do you blame American for not using A4? Life would be easier if everyone uses A4 :)

Atmosphere has three limits. The number of cheats and the number of codes per cheat and total (as define by each 8 bytes being one code). It is what it is. Can't do much about it except to either accept it or hack the cheat VM. Atmosphere is open source and very likely these three limit could be increased to some extend.

The limits are as follows:
MaxCheatCount = 0x80; Search for this line and change it to have more cheats
uint32_t opcodes[0x100]; Search for this line and change it to give you more codes per cheats
MaximumProgramOpcodeCount = 0x400; Search for this line and change it to give more total codes

I haven't try it, could be that memory is size so precisely that increase any of these would break the sysmodule.
 
Last edited by TomSwitch,

crazy_p

Well-Known Member
Member
Joined
Sep 3, 2016
Messages
1,348
Trophies
1
XP
8,194
Country
Thailand
It's like A4 paper is longer than letter size. You have a document that printed fine on a A4 and now got cut off on a letter size paper. Do you blame American for not using A4? Life would be easier if everyone uses A4 :)

Atmosphere has two limits. The number of cheats and the number of codes (as define by each 8 bytes being one code). It is what it is. Can't do much about it except to either accept it or hack the cheat VM. Atmosphere is open source and very likely these two limit could be increased to some extend.

It was never my Intention to blame AMS for not showing more than 1024 Opcodes.
This is just a random Number that was picked by SciresM.
He asked me to Fix his Problem AMS not showing all Cheats.
1024 Opcodes is way more than enough, no sane Person should ever use that many Cheats in a Single File.
I just included them all for the Noobs that are too Stupid to Copy and Paste the Cheats from a separate File.
 

TomSwitch

Well-Known Member
Member
Joined
Jan 10, 2019
Messages
4,476
Trophies
1
Age
44
XP
14,589
Country
United States
It was never my Intention to blame AMS for not showing more than 1024 Opcodes.
This is just a random Number that was picked by SciresM.
He asked me to Fix his Problem AMS not showing all Cheats.
1024 Opcodes is way more than enough, no sane Person should ever use that many Cheats in a Single File.
I just included them all for the Noobs that are too Stupid to Copy and Paste the Cheats from a separate File.
Cheat not showing is to do with parsing the cheats.
I think these two apply to parsing the cheats
MaxCheatCount = 0x80;
uint32_t opcodes[0x100];

This one apply to enabled cheats, only enabled cheats contribute to reaching this limit
MaximumProgramOpcodeCount = 0x400;

I suppose when this function return false there will be no cheat code execution

bool CheatVirtualMachine::LoadProgram(const CheatEntry *cheats, size_t num_cheats) {
/* Reset opcode count. */
this->num_opcodes = 0;

for (size_t i = 0; i < num_cheats; i++) {
if (cheats.enabled) {
/* Bounds check. */
if (cheats.definition.num_opcodes + this->num_opcodes > MaximumProgramOpcodeCount) {
this->num_opcodes = 0;
return false;
}

for (size_t n = 0; n < cheats.definition.num_opcodes; n++) {
this->program[this->num_opcodes++] = cheats.definition.opcodes[n];
}
}
}

return true;
}
 
Last edited by TomSwitch,
  • Like
Reactions: TAOKTC and crazy_p

crazy_p

Well-Known Member
Member
Joined
Sep 3, 2016
Messages
1,348
Trophies
1
XP
8,194
Country
Thailand
Cheat not showing is to do with parsing the cheats.
I think these two apply to parsing the cheats
MaxCheatCount = 0x80;
uint32_t opcodes[0x100];

This one apply to enabled cheats, only enabled cheats contribute to reaching this limit
MaximumProgramOpcodeCount = 0x400;

His Cheats are showing fine to a certain Point until 1024 Opcodes are reached.
According to Cheat Emulator my File has:

Total Cheat count: 282 / 128
Total Opcode count: 1624 / 1024
 

Mr.Bonner

Active Member
Newcomer
Joined
Dec 26, 2012
Messages
30
Trophies
1
Age
40
XP
361
Country
United States
Can anyone take a look to see if any cheats are possible for Katamari Damacy Reroll? Ive seen older cheats posted when we didnt have a cheat menu.

possibly like freeze time or something like it
 
  • Like
Reactions: Yondaime_Kazzy

TomSwitch

Well-Known Member
Member
Joined
Jan 10, 2019
Messages
4,476
Trophies
1
Age
44
XP
14,589
Country
United States
His Cheats are showing fine to a certain Point until 1024 Opcodes are reached.
According to Cheat Emulator my File has:

Total Cheat count: 282 / 128
Total Opcode count: 1624 / 1024
In these two lines:
MaxCheatCount = 0x80; Gives you problem
uint32_t opcodes[0x100]; Overkill as each of your cheats very unlikely to need 256 codes;

For example maybe this can work
MaxCheatCount = 0x150;
uint32_t opcodes[0x40];
 
  • Like
Reactions: crazy_p

ZeusX

Well-Known Member
Member
Joined
Feb 20, 2020
Messages
173
Trophies
0
Age
44
XP
645
Country
Mexico
It was never my Intention to blame AMS for not showing more than 1024 Opcodes.
This is just a random Number that was picked by SciresM.
He asked me to Fix his Problem AMS not showing all Cheats.
1024 Opcodes is way more than enough, no sane Person should ever use that many Cheats in a Single File.
I just included them all for the Noobs that are too Stupid to Copy and Paste the Cheats from a separate File.
Stupid noobs uh...what a nice guy you are
 

crazy_p

Well-Known Member
Member
Joined
Sep 3, 2016
Messages
1,348
Trophies
1
XP
8,194
Country
Thailand
In these two lines:
MaxCheatCount = 0x80; Gives you problem
uint32_t opcodes[0x100]; Overkill as each of your cheats very unlikely to need 256 codes;

For example maybe this can work
MaxCheatCount = 0x150;
uint32_t opcodes[0x40];

This is more something for you, i have not enough Skills to Fork/Mod AMS Source Code.
Maybe you can implement this Feature somehow into Edizon to bypass that.
What i don't get is why AMS not only Limits the Total amount of Activated Cheats,
instead of Limiting the amount of Listed Cheats...

Next Time i make a separate .txt File and the Users can decide for them self,
which Codes they want to Copy and Paste into their Cheat File.

Wait for my Atelier Ryza Ever Darkness & the Secret Hideout - Slot 1 Modifier Codes. ;)

Atelier Ryza Ever Darkness & the Secret Hideout - Slot 1 Modifier Codes Preview.png
 

TomSwitch

Well-Known Member
Member
Joined
Jan 10, 2019
Messages
4,476
Trophies
1
Age
44
XP
14,589
Country
United States
This is more something for you, i have not enough Skills to Fork/Mod AMS Source Code.
Maybe you can implement this Feature somehow into Edizon to bypass that.
What i don't get is why AMS not only Limits the Total amount of Activated Cheats,
instead of Limiting the amount of Listed Cheats...

Next Time i make a separate .txt File and the Users can decide for them self,
which Codes they want to Copy and Paste into their Cheat File.

Wait for my Atelier Ryza Ever Darkness & the Secret Hideout - Slot 1 Modifier Codes. ;)

View attachment 253311
For own amusement it is as easy as just changing these lines and make a build. If you like I can do it for you for 18.1 as I have it on my drive. But asking user to use the fork is not something I recommend.

The amount of memory taken up by each cheat definition is large.
The amount of memory taken up by enabled cheat is much smaller and the limit is more about CPU time the VM is taking up as each code need to be processed by the VM.

There is only one thing edizon se could do, that is to calculate the enabled code count. It can't by pass anything as the execution of the cheat VM has nothing to do with edizon se.
 
Last edited by TomSwitch,
  • Like
Reactions: crazy_p

crazy_p

Well-Known Member
Member
Joined
Sep 3, 2016
Messages
1,348
Trophies
1
XP
8,194
Country
Thailand
For own amusement it is as easy as just changing these lines and make a build. If you like I can do it for you for 18.1 as I have it on my drive. But asking user to use the fork is not something I recommend.

The amount of memory taken up by each cheat definition is large.
The amount of memory taken up by enabled cheat is much smaller and the limit is more about CPU time the VM is taking up as each code need to be processed by the VM.

Ok thanks for the detailed Information, it's always nice to learn something new!

I just thought it was not a big Deal since it works fine in SXOS...

Thanks for the offering but for me its not necessary, (but if you like you can do it anyway) maybe @Yondaime_Kazzy is interested.
 
  • Like
Reactions: Yondaime_Kazzy

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=A0FyqCEfD0E