[a5200/megmania] MegaMania

This forum is for posting cheats for any non-arcade game in M.A.M.E. ( aka the M.E.S.S. games ) including any softwarelist game. Requests will be fulfilled here....but please keep the requests to the requests forum.
Post Reply
mezdap
Posts: 96
Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times

[a5200/megmania] MegaMania

Post by mezdap »

[a5200] megmania.xml

Code: Select all

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@00E7=03</action>
    </script>
  </cheat>

Code: Select all

  <cheat desc="Infinite Energy">
    <script state="run">
      <action condition="maincpu.pb@00C6 == 4F AND maincpu.pb@0096 == 2">
      maincpu.pb@00C6=50</action>
    </script>
  </cheat>

Code: Select all

  <cheat desc="Two Player Version"> <comment>Turn it On for P2 and Press Start Button</comment>
    <script state="run">
      <action>maincpu.pb@009A=01</action>
    </script>
    <script state="off">
      <action>maincpu.pb@009A=00</action>
    </script>
  </cheat>

Code: Select all

  <cheat desc="Select Starting Level"> <comment>Selected Level Starts at First Game.</comment>
    <parameter min="0" max="10" step="1"/>
    <script state="run">
      <action condition="maincpu.pb@00F1==2 AND maincpu.pb@00F3==0">maincpu.pb@00F3=param</action>
    </script>
  </cheat> 

Code: Select all

 <cheat desc="Select Starting Enemy Object"> <comment>Selected Object Starts at First Game.</comment>
    <parameter>
      <item value="0x00">Deluxe Hamburgers</item>
      <item value="0x01">Ice Cream Sandwiches</item>
      <item value="0x02">Refrigerator Magnets</item>
      <item value="0x03">Radial Tires</item>
      <item value="0x04">Diamond Rings</item>
      <item value="0x05">Steaming Irons</item>
      <item value="0x06">Party Bow Ties</item>
      <item value="0x07">Dreaded Space Dice</item>
    </parameter>
    <script state="run">
      <action condition="maincpu.pb@00F1==2 AND maincpu.pb@00F5==0">maincpu.pb@00F5=param</action>
    </script>
  </cheat>
Last edited by mezdap on Sat Jan 01, 2022 12:35 pm, edited 2 times 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: [a5200] MegaMania

Post by Pugsy »

A quick glance at the cheats and notice that you are Binary ANDing a word value with byte value, this wont work as you may have intended..
eg 140 is wrong for pb value, it should be between 01 to FF
maincpu.pb@00AF BAND 140
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)
mezdap
Posts: 96
Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times

Re: [a5200] MegaMania "Move Through Stage Boundaries"

Post by mezdap »

A quick glance at the cheats and notice that you are Binary ANDing a word value with byte value, this wont work as you may have intended..
eg 140 is wrong for pb value, it should be between 01 to FF
maincpu.pb@00AF BAND 140
Fixed. Thank you Pugsy.

Code: Select all

  <cheat desc="Move Through Stage Boundaries">
    <script state="run">
      <action condition="maincpu.pb@00AF == C0">
      maincpu.pb@00AF=00|(maincpu.pb@00AF BAND 40)</action>
      <action condition="maincpu.pb@00AF == 38">
      maincpu.pb@00AF=BF|(maincpu.pb@00AF BAND 40)</action>
    </script>
  </cheat>
Post Reply