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.
mezdap
Posts: 135 Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times
Post
by mezdap » Tue Nov 03, 2020 10:05 am
[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: 135 Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times
Post
by mezdap » Sat Dec 04, 2021 5:13 am
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>
Pugsy
Posts: 3675 Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 16 times
Contact:
Post
by Pugsy » Thu Dec 30, 2021 8:18 pm
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>
mezdap
Posts: 135 Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times
Post
by mezdap » Thu Dec 30, 2021 8:55 pm
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.
Pugsy
Posts: 3675 Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 16 times
Contact:
Post
by Pugsy » Thu Dec 30, 2021 9:25 pm
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.