Dubugging

General Chit-Chat about MAME and other emulators.
Post Reply
Alphonza
Posts: 7
Joined: Wed Nov 04, 2009 8:45 pm

Dubugging

Post by Alphonza »

ok i got the debugging activated, each time i run a game it pops a window for debugging before running the game.. but i have trouble using the codes from the forum.. for example

pit fighter bootleg character select code on one of the post at
viewtopic.php?f=4&t=3048&p=10014&hilit= ... ter#p10014
is;
:pitfight:00000300:FFEACD:00000025:FFFFFFFF:p1 select player

i keep getting a 'unknown command' i don't even know if i am inputting it the right way...

I am running a MameUI 32 0.134u4, the debugging window consist of three parts, left section some kind of readings.. top right section you select a code out of many which none make any sense, and bottom right where i assume you put your input... can anyone please guide me

thank you
User avatar
NotAGoodName
Posts: 331
Joined: Wed Feb 18, 2009 7:09 am
Location: MO, USA
Contact:

Re: Dubugging

Post by NotAGoodName »

That's a .DAT format cheat and is not used for modern MAME.
Aww yeah. AMD A10-7850K givin' MAME and MESS systems what for.
Alphonza
Posts: 7
Joined: Wed Nov 04, 2009 8:45 pm

Re: Dubugging

Post by Alphonza »

So I make a .dat file for those, but how do i input them, as it is or there is a certain way??
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: Dubugging

Post by Pugsy »

.dat format cheats will only work upto MAME 0.125/0.126(if self-compile).
For your MAME version 0.134u4 you have to use xml format cheats

so in Pitfight this .dat cheat:-

Code: Select all

:pitfight3:00100001:FFEDB2:00000001:FFFFFFFF:One hit for enemy Now!
becomes

Code: Select all

  <cheat desc="One hit for enemy Now!">
    <script state="on">
      <action>maincpu.pw@FFEDB2=0001</action>
    </script>
  </cheat>
You can also do the above manually in the debugger by typing this in

Code: Select all

maincpu.pw@FFEDB2=0001
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)
Alphonza
Posts: 7
Joined: Wed Nov 04, 2009 8:45 pm

Re: Dubugging

Post by Alphonza »

omg it works, i had trouble figuring it out at start but it came through...
Thanks Pugsy


is there a guide on how to do these converts, please?

i mean like

:00000300:FFEACD:00000025:FFFFFFFF:

i think in debugging mode it will end with FFEACD=0025 but does it start with maincpu.pw@ ?? what is the conversion for 00000300 to debugging code?? and if it starts with 00010000, 00000000, or 62000000?? please

greatly appreciated
Last edited by Alphonza on Sat Jan 23, 2010 9:36 pm, edited 1 time in total.
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: Dubugging

Post by Pugsy »

I will look at adding that cheat for the next release (the cheats weren't added as I was busy at the time and the cheats were far from being of drop-in standard - that cheat for instance will need much cleaning up to be of use as a standard character select cheat).To convert old format into xml format you will need to understand the old format. In that example 00000300 is a select byte value cheat so the poke value can be anything from 0x00 to 0x25.

In the debugger you would need to type

Code: Select all

maincpu.pb@FFEACD=XX
where XX is a value from 0x00 to 0x25, eg 01, 09, 0F, 13, 1D, 21, & 24.
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
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: Dubugging

Post by Pugsy »

I looked at that p1 select player cheat for pitfight in MAME 0.126 & 0.136 and couldn't get it to work in either, so it won't be in the next release.
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)
Alphonza
Posts: 7
Joined: Wed Nov 04, 2009 8:45 pm

Re: Dubugging

Post by Alphonza »

it works but it got to be during selecting which got me confused till i figured it out some of these code needs pointers when to use it
Post Reply