[a5200/riveraid] River Raid

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/riveraid] River Raid

Post by mezdap »

[a5200] riveraid.xml

Code: Select all

  <cheat desc="Infinite Lives">
    <script state="on">
      <action>temp0=maincpu.pb@006A</action>
    </script>
    <script state="run">
      <action>maincpu.pb@006A=04</action>
    </script>
    <script state="off">
      <action>maincpu.pb@006A=temp0</action>
    </script>
  </cheat>

Code: Select all

  <cheat desc="Infinite Energy">
    <script state="run">
      <action>maincpu.pb@005B=FF</action>
    </script>
  </cheat>

Code: Select all

  <cheat desc="Select Difficulty Level for Practice">
    <parameter>
      <item value="0x00">Level 1(Easiest)</item>
      <item value="0x05">Level 2</item>
      <item value="0x14">Level 3</item>
      <item value="0x1F">Level 4</item>
      <item value="0x32">Level 5</item>
      <item value="0x3F">Level 6</item>
      <item value="0x4F">Level 7(Hardest)</item>
    </parameter>
    <script state="on">
      <action>temp0=maincpu.pb@0060</action>
    </script>
    <script state="run">
      <action condition="maincpu.pb@0023 == 14">maincpu.pb@0060=param</action>
      <action condition="maincpu.pb@0023 == 10">maincpu.pb@0060=(param+1)</action>
    </script>
    <script state="off">
      <action>maincpu.pb@0060=temp0</action>
    </script>
  </cheat>

Code: Select all

  <cheat desc="Select Starting Level"> <comment>Selected Level Starts at Bridge 1</comment>
    <parameter min="1" max="80"/>
    <script state="run">
      <action condition="(maincpu.pb@0061 == 0 AND maincpu.pb@0062 == 1)">maincpu.pb@0060=param</action>
    </script>
  </cheat>

Code: Select all

  <cheat desc="P1 Reset Score"> <comment>Allows to keep playing If the Score reaches max.</comment>
    <script state="on">
      <action>maincpu.pb@0063=00</action>
      <action>maincpu.pb@0064=00</action>
      <action>maincpu.pb@0065=00</action>
    </script>
  </cheat>

Code: Select all

  <cheat desc="P2 Reset Score"> <comment>Allows to keep playing If the Score reaches max.</comment>
    <script state="on">
      <action>maincpu.pb@006E=00</action>
      <action>maincpu.pb@006F=00</action>
      <action>maincpu.pb@0070=00</action>
    </script>
  </cheat>
Last edited by mezdap on Sat Jan 01, 2022 12:32 pm, edited 2 times in total.
mezdap
Posts: 96
Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times

Re: [a5200] River Raid "Select Game Mode"

Post by mezdap »

Now it works as it was supposed to be, no need to reset the game.
But, having that 'Reset' option in the cheat list is advantage.

Code: Select all

  <cheat desc="Select Game Mode">
    <parameter>
      <item value="0x01">GAME 1</item>
      <item value="0x02">GAME 2</item>
      <item value="0x03">GAME 3</item>
      <item value="0x04">GAME 4</item>
      <item value="0x05">GAME 5</item>
      <item value="0x06">GAME 6</item>
      <item value="0x07">GAME 7</item>
      <item value="0x08">GAME 8</item>
    </parameter>
    <script state="run">
      <action condition="maincpu.pb@00CE GT 8 AND maincpu.pb@0009 != param-1">
      maincpu.pb@00CE=param</action>
      <action condition="maincpu.pb@00CE == 0 AND maincpu.pb@0009 != param-1">
      maincpu.pb@00CE=FF</action>
    </script>
  </cheat>

Code: Select all

  <cheat desc="Reset Game">
    <script state="on">
      <action>maincpu.pb@00CE=00</action>
    </script>
  </cheat>
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] River Raid

Post by Pugsy »

Ok, had a look at Invincibility. Sprite/sprite collision code is around a3b6 and sprite background is around a3fc.

Code: Select all

   <cheat desc="Invincibility"> <comment>Don't run out of fuel/energy - so enable the infinite cheat for the best effect</comment>
    <script state="on">
      <action>temp0 =cartleft:cart:rom.mb@03B6</action>
      <action>temp1 =cartleft:cart:rom.mb@03B9</action>
      <action>temp2 =cartleft:cart:rom.mw@03F4</action>
      <action>temp3 =cartleft:cart:rom.mw@165A</action>
    </script>
    <script state="run">
      <action>cartleft:cart:rom.mb@03B6=A9</action> <!-- Sprites -->
      <action>cartleft:cart:rom.mb@03B9=00</action> <!-- Sprites -->
      <action>cartleft:cart:rom.mw@03F4=FFA9</action> <!-- Background   -->
      <action>cartleft:cart:rom.mw@165A=EAEA</action> <!-- Background Bullets -->
    </script>
    <script state="off">
      <action>cartleft:cart:rom.mb@03B6=temp0 </action>
      <action>cartleft:cart:rom.mb@03B9=temp1 </action>
      <action>cartleft:cart:rom.mw@03F4=temp2 </action>
      <action>cartleft:cart:rom.mw@165A=temp3 </action>
    </script>
  </cheat>
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] River Raid

Post by mezdap »

Thank you so much Pugsy.

The problem was I stuck and focused on RAM address for this cheat...
If you don't mind I will improve it a little bit more. Like enable it to fire over land and maybe adding fuel codes.
I'll take care rest of it.
Thank you.
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] River Raid

Post by Pugsy »

I've added the capability of firing over land and fixed a bug so you to die when you run out of fuel to the above. There's no need to add Infinite Energy to it as it exists seperately.
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)
Post Reply