reverse engineering XML to DAT

If you are having problems finding or using cheats for an Emulator (particularly MAME/MESS) or have found a trick that you wish to share this is the place to do it. But please read the Cheat FAQ first.
Post Reply
shredhead1260
CheatFinder Private
Posts: 2
Joined: Fri Jun 14, 2019 4:31 am

reverse engineering XML to DAT

Post by shredhead1260 »

I'm doing a retropie build and noticed that one of the cheats in jrpacman.xml (within cheats.zip) for a newer MAME is not contained within the cheats.dat that I have to use for Mame2003 which is what works well on a pi.

So I'm trying to figure out how to input this one cheat into the DAT file and I'm obviously not doing it right.

here is the XML file:

Code: Select all

<cheat desc="Enable Speed Hack"> <comment>This will greatly speed up your character.</comment>
    <script state="on">
      <action>temp0 =maincpu.mw@180B</action>
    </script>
    <script state="run">
      <action>maincpu.mw@180B=3218</action>
    </script>
    <script state="off">
      <action>maincpu.mw@180B=temp0 </action>
    </script>
  </cheat>
and what I have in the DAT which is obviously wrong:

Code: Select all

jrpacman:0:180B:32:000:Enable Speed Hack
jrpacman:0:180C:18:500:Enable Speed Hack (2/2)
I also tried it on one line and I also tried editing it from within the cheats menu in the game itself. That lets you do 16 bit or what I assume would be on one line. I wasn't sure if I did it on two lines if the location on the second line should be 180D instead, but that didn't work anyway. :(

I have to assume other cheats are in XML but not DAT for other games. For the moment this is the only one I care about. If I knew how to fix it myself, I could do so on my own in the future.

thanks in advance to anyone who can help / teach me.
User avatar
Pugsy
CheatFinder General
CheatFinder General
Posts: 3448
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Contact:

Re: reverse engineering XML to DAT

Post by Pugsy »

Moving, wrong forum....... M.A.M.E. "Arcade" Cheats is for posting new cheats only.

Code: Select all

:jrpacman:20900000:180B:00003218:FFFFFFFF:Enable Speed Hack:This will greatly speed up your character.
Pugsy

Servicing your cheating needs since 1985 ;-)

Grab the latest cheat collection:
MAME 0.221 XML cheat collection 19 JUNE 2020) from http://www.mamecheat.co.uk or direct from:-
http://www.mediafire.com/file/y5dktfpea ... 1.zip/file (ZIP Archive 3.66MB)
shredhead1260
CheatFinder Private
Posts: 2
Joined: Fri Jun 14, 2019 4:31 am

Re: reverse engineering XML to DAT

Post by shredhead1260 »

awesome. thanks. that code worked great.
Post Reply