Dubugging

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

Dubugging

Postby Alphonza » Fri Jan 22, 2010 8:13 pm

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=pit+fighter#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
CheatFinder Lieutenant
CheatFinder Lieutenant
Posts: 331
Joined: Wed Feb 18, 2009 7:09 am
Location: MO, USA
Contact:

Re: Dubugging

Postby NotAGoodName » Sat Jan 23, 2010 9:22 am

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
CheatFinder Private
Posts: 7
Joined: Wed Nov 04, 2009 8:45 pm

Re: Dubugging

Postby Alphonza » Sat Jan 23, 2010 8:07 pm

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
CheatFinder General
CheatFinder General
Posts: 3128
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Contact:

Re: Dubugging

Postby Pugsy » Sat Jan 23, 2010 8:27 pm

.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 ;-)

Grab the latest cheat collection:
MAME 0.187 XML cheat collection 7 JULY 2017) from http://www.mamecheat.co.uk or direct from:-
http://www.mediafire.com/file/0dvubha3b ... at0187.zip (ZIP Archive 1826 KB)

Alphonza
CheatFinder Private
Posts: 7
Joined: Wed Nov 04, 2009 8:45 pm

Re: Dubugging

Postby Alphonza » Sat Jan 23, 2010 8:46 pm

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
CheatFinder General
CheatFinder General
Posts: 3128
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Contact:

Re: Dubugging

Postby Pugsy » Sat Jan 23, 2010 9:34 pm

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 ;-)

Grab the latest cheat collection:
MAME 0.187 XML cheat collection 7 JULY 2017) from http://www.mamecheat.co.uk or direct from:-
http://www.mediafire.com/file/0dvubha3b ... at0187.zip (ZIP Archive 1826 KB)

User avatar
Pugsy
CheatFinder General
CheatFinder General
Posts: 3128
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Contact:

Re: Dubugging

Postby Pugsy » Sun Jan 24, 2010 3:23 pm

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 ;-)

Grab the latest cheat collection:
MAME 0.187 XML cheat collection 7 JULY 2017) from http://www.mamecheat.co.uk or direct from:-
http://www.mediafire.com/file/0dvubha3b ... at0187.zip (ZIP Archive 1826 KB)

Alphonza
CheatFinder Private
Posts: 7
Joined: Wed Nov 04, 2009 8:45 pm

Re: Dubugging

Postby Alphonza » Tue Jan 26, 2010 8:39 pm

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


Return to “Emulation Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest