Question for Pugsy

General Chit-Chat about MAME and other emulators.
Post Reply
User avatar
CLE
Posts: 365
Joined: Sun Sep 09, 2007 9:06 pm
Location: Brazil
Has thanked: 31 times

Question for Pugsy

Post by CLE »

Hi, Pugsy!

You can help me? Please!

I would like find some MK cheats in MK rom using WinHex to get find other cheats, but I find only
when cheats is in this format (start with 399).

Look your cheats for exemple:
:mk:39900000:09425C:00000300:FFFFFFFF:Always have Reptile Clues

To find the value in rom, I used this calculation:
9425C / 2 = 4A12E

:mk2:39900000:00385C:00000300:FFFFFFFF:Always have Smoke/Jade Clues
385C / 2 = 1C2E

All cheats starting with 399 I get every using this calculation and when I find in rom, I get convert to cheat format using the inverse calculation.

Now I try find this cheat using this calculation:

:mk2:39800000:03677F:000000C0:FFFFFFFF:CPU always finishes with a Fatality
3677F / 2 = 1B38BF

Ok, I find this value 1B38BF but when I changing to 00C0 in rom, the game crash!
Note: This cheat starting with "398".

Or in this exemple:

:mk:39800000:094C0B:000000C0:FFFFFFFF:Always Get Secret Game Over Screen
94C0B / 2 = 4A605

I find this value 4A605 but when I changing to 00C0 in rom, the game crash too!
Note: This cheat starting with "398" too.

Well...

***And which calculation I use to find the position in rom how in this exemples?***

:mk:00000000:20A264:00000002:FFFFFFFF:Get Double Flawless Bonus
20A264 / ? = ?????

:mk2:00000000:20C368:000000FA:FFFFFFFF:Always Play Pong After First Round
20C368 / ? = ?????

:mkla3:00000000:2099C8:00000006:FFFFFFFF:Night Fight
:mkla3:00010000:2099C9:00000000:FFFFFFFF:Night Fight

2099C8 / ? = ?????
2099C9 / ? = ?????

Thanks!
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: Question for Pugsy

Post by Pugsy »

Cheats with a type of 399xxxxx will poke a word (16 bits), and cheats starting with 398xxxxx will poke a byte (8 bits) - so you don't poke 00c0 you poke c0 - poking the extra 00 will crash the game.

As for cheats starting with 00xxxxxxx, they are RAM cheats so they do NOT correlate to a ROM address at all.
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
User avatar
CLE
Posts: 365
Joined: Sun Sep 09, 2007 9:06 pm
Location: Brazil
Has thanked: 31 times

Re: Question for Pugsy

Post by CLE »

I understand.

Thanks for the explanation, Pugsy.
User avatar
leo_core
Posts: 26
Joined: Thu Aug 11, 2011 5:50 pm

Re: Question for Pugsy

Post by leo_core »

Hi Pugsy

I have here a code for Ultimate Mortal Kombat 3 and would like to make the change directly in the rom.
The code is:

:umk3:39900000:002174:000009E5:FFFFFFFF:Explosive Kombat:Only for 2 on 2 Endurance
:umk3:39B10000:002176:00227227:FFFFFFFF:Explosive Kombat (2/2)


Well, for the first code: address 2174/2 = 10BA

In this ROM address I write in um312u54.bin 09 and in um312u63.bin E5 right?

Ok, for the second code: Address is 2176/2 = 10BB

BUT, the changed values is 227227

How I'll write 22 72 27 in the same ROM address that I only have two files to write?

Thanks in advance and sorry bad eng.
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: Question for Pugsy

Post by Pugsy »

For starters, it's a longword write so that's four bytes not three.

It's 00 22 72 27 you need to write to the two files
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
User avatar
leo_core
Posts: 26
Joined: Thu Aug 11, 2011 5:50 pm

Re: Question for Pugsy

Post by leo_core »

hmmm... ok, step by step of what I tried:

The first code: :umk3:39900000:002174:000009E5:FFFFFFFF:Explosive Kombat:Only for 2 on 2 Endurance

address 2174/2 = 10BA

In this ROM address I write in um312u54.bin 09 and in um312u63.bin write E5

-------------------------------

The second code: :umk3:39B10000:002176:00227227:FFFFFFFF:Explosive Kombat (2/2)

address 2176/2 = 10BB

Well, I have to write 4 values: 00 22 72 27
​​But the cheat points only address: 10BB

I tried to write values from this address on:

from 10BB writing forward (in both files):
00 (in offset 10BB)
22 (in offset 10BC)
72 (in offset 10BD)
27 (in offset 10BE)

That did not work.

I also tried to write interleaving byte-byte in both files but also did not work.

Could you please explain how to write these values ​​and at what addresses?

Thanks in advance!
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: Question for Pugsy

Post by Pugsy »

I don't write to files, I use cheats to change ROM addresses on the fly - so I think you have a bit of a cheek asking to be honest.

I don't mind giving pointers, but what you are asking is basically just to tell you what to do and spend time looking at the source and the debugger and opening the ROM in a hex editor (not happy).....

at 10ba-10bc in one file write 09 72 00

at 10ba-10bc in the other file write e5 27 22


and make sure you change the right files, I think you may have them arse about face
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
User avatar
leo_core
Posts: 26
Joined: Thu Aug 11, 2011 5:50 pm

Re: Question for Pugsy

Post by leo_core »

Oh! I wanted to understand how it works. Thanks for your time to demonstrate, helped me understand :)

Edit:
Before I was writing in wrong order in the archives... =/

Well, really worked now! Thanks!
User avatar
CLE
Posts: 365
Joined: Sun Sep 09, 2007 9:06 pm
Location: Brazil
Has thanked: 31 times

Re: Question for Pugsy

Post by CLE »

Hi, Pugsy!

Is possible make the change directly in the Snes rom using Pro Action Replay or Game Genie cheats too?

For example, I have this cheat for Super Metroid for start with Hyper Beam - 7E0A7760 (Pro Action Replay), 62C5-14A6 (Game Genie Code).

Is possible change directly in rom?

Thanks!
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: Question for Pugsy

Post by Pugsy »

As I said to you in the last PM I don't know much about the SNES.

There are tools out that are supposed to do what you want, google is your friend.
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
User avatar
CLE
Posts: 365
Joined: Sun Sep 09, 2007 9:06 pm
Location: Brazil
Has thanked: 31 times

Re: Question for Pugsy

Post by CLE »

Right. But I tried some information and tools and unfortunately I don't have sucess... :(

And I don't have a great knowledge about the cheat as you.

Thanks, Pugsy!
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: Question for Pugsy

Post by Pugsy »

Well I've never applied SNES cheats to ROMs either. Did you try ucon64?

http://ucon64.sourceforge.net/
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
User avatar
CLE
Posts: 365
Joined: Sun Sep 09, 2007 9:06 pm
Location: Brazil
Has thanked: 31 times

Re: Question for Pugsy

Post by CLE »

Yes! But I don't understand how this program works. But I take a look.

Thanks, Pugsy!
Post Reply