Is there a maximum of cheat codes?

If you're having problems with Snes9x, or think you've found a bug, this is the place to be.
Post Reply
John256
Snes9x White Belt
Posts: 1
Joined: Fri Nov 13, 2015 3:19 pm

Is there a maximum of cheat codes?

Post by John256 »

Game : Simcity
Hi,
Using address values mod codes, I try to change the whole map land value to its max value (FF). In Simcity, the map's size is 120 tiles by 100 tiles. The game mechanics for land value use 2 tiles by 2 tiles units; so land value is generated in 2 tiles by 2 tiles units for a total of 3000 units for the whole map. Using a hex editor, I modified the .cht file for simcity to include all 3000 required addresses with their respective value of FF (there's no way I would enter all those codes by hand!). I made sure that every byte was placed in the right order using a small program that I've wrote. Upon launching the game, SNES9x crashed. I went back to my hex editor and reduced it from 3000 codes to just 3 and relaunched the game, no problems everything worked including the codes.

Is there a maximum to the number of cheat codes in a .cht file SNES9x can handle?
Or if after a X number of cheat codes, the hex value for a single code changes pattern?

Here's a excerpt of the hex values of my .cht file :

08 ff 00 6b 7f 55 fe fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (1st code)
08 ff 01 6b 7f 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (2nd code)
08 ff 02 6b 7f 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (3rd code)
[all the way to]
08 ff b7 76 7f 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (last code)

Except for the 1st code, they all follow the same pattern : starts with 08 (active state) followed by ff (value) followed by the address in the reverse order ( 7f 6b 00 becomes to 00 6b 7f [that's how .cht files work so it seems] and i must have all the addresses from 7f b6 00 up to 7f 76 b7 in order to cover the whole map) followed by 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (I think that's where the name goes. None of my codes are named to keep it simple).

There's no other codes in my .cht files except those above.

Thanks!
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: Is there a maximum of cheat codes?

Post by OV2 »

S9x supports a maximum of 150 cheat entries.
Post Reply