[truxton] Truxton/Tatsujin

This forum is for posting M.A.M.E. Work In Progress "Arcade"cheats that are not quite ready for the prime time. If the cheats are buggy or the cheat descriptions are non-standard then please post them here. Help maybe given but there are no guarantees and they will only be added to the cheat file when the cheat file maintainer is happy with them.
Post Reply
jman
CheatFinder Lance Corporal
CheatFinder Lance Corporal
Posts: 67
Joined: Tue Dec 01, 2020 1:24 pm

[truxton] Truxton/Tatsujin

Post by jman »

First of all, this game has in-game rom check so that the following codes cause game crash unless you use together with "skip rom error".

Code: Select all

<cheat desc="no hit">
	<script state="on">
		<action>maincpu.mb@1a4d = 08</action> <!-- enemy 1 -->
		<action>maincpu.mb@1a9c = 60</action> <!-- bullet -->
		<action>maincpu.mb@1a21 = 34</action> <!-- middle enemy -->
		<action>maincpu.mb@1ad7 = 08</action> <!-- enemy 2 -->
	</script>
	<script state="off">
		<action>maincpu.mb@1a4d = 10</action>
		<action>maincpu.mb@1a9c = 64</action>
		<action>maincpu.mb@1a21 = 36</action>
		<action>maincpu.mb@1ad7 = 0a</action>
	</script>
</cheat>

<cheat desc="auto fire">
	<script state="on">
		<action>maincpu.mb@5b37 = 00</action>
	</script>
	<script state="off">
		<action>maincpu.mb@5b37 = 18</action>
	</script>
</cheat>

<cheat desc="player speed">
	<parameter>
		<item value="0x01">01</item>
		<item value="0x08">02</item>
		<item value="0x10">03</item>
		<item value="0x18">04</item>
		<item value="0x20">05</item>
	</parameter>
	<script state="on">
		<action>maincpu.md@5bb2 = 06400000</action>
	</script>
	<script state="change">
		<action>maincpu.mb@5bb5 = param</action>
	</script>
	<script state="off">
		<action>maincpu.md@5bb2 = d06e0034</action>
	</script>
</cheat>

<cheat desc="bullet speed - red">
	<parameter>
		<item value="0x28">01</item>
		<item value="0x50">02</item>
		<item value="0x78">03</item>
		<item value="0xa0">04</item>
		<item value="0xc8">05</item>
	</parameter>
	<script state="on">
		<action>maincpu.mq@5fd6 = 4eb900009d402a3c</action>
		<action>maincpu.mq@9d40 = 363c00a0283c0800</action>
		<action>maincpu.mq@9d48 = 08004e75ffffffff</action>
		<!--
		5fd6 | 4eb9 0000 9d40 : jsr    $9d40
		9d40 | 363c 00xx      : move.w #$xx,D3
		9d44 | 283c 0800 0800 : move.l #$8000800,D4
		9d4a | 4e75           : rts
		-->
	</script>
	<script state="change">
		<action>maincpu.mb@9d43 = param</action>
	</script>
	<script state="off">
		<action>maincpu.mq@5fd6 = 283c080008002a3c</action>
		<action>maincpu.mq@9d40 = ffffffffffffffff</action>
		<action>maincpu.mq@9d48 = ffffffffffffffff</action>
	</script>
</cheat>

<cheat desc="bullet speed - green">
	<parameter>
		<item value="0x0080">01</item>
		<item value="0x0100">02</item>
		<item value="0x0180">03</item>
		<item value="0x0200">04</item>
		<item value="0x0280">05</item>
	</parameter>
	<script state="on">
		<action>maincpu.mq@5ff8 = 4eb900009d502082</action>
		<action>maincpu.mq@9d50 = 363c0100283c0c00</action>
		<action>maincpu.mq@9d58 = 08004e75ffffffff</action>
		<!--
		5ff8 | 4eb9 0000 9d50 : jsr    $9d50
		9d50 | 363c xxxx      : move.w #$xxxx,D3
		9d54 | 283c 0c00 0800 : move.l #$c000800,D4
		9d5a | 4e75           : rts
		-->
	</script>
	<script state="change">
		<action>maincpu.mw@9d52 = param</action>
	</script>
	<script state="off">
		<action>maincpu.mq@5ff8 = 283c0c0008002082</action>
		<action>maincpu.mq@9d50 = ffffffffffffffff</action>
		<action>maincpu.mq@9d58 = ffffffffffffffff</action>
	</script>
</cheat>

<cheat desc="skip rom error">
	<script state="on">
		<action>maincpu.mw@04e26 = 0002</action> <!-- boot -->
		<action>maincpu.mw@01340 = 0002</action> <!-- ingame -->
		<action>maincpu.mb@030aa =   60</action> <!-- ingame -->
		<action>maincpu.mb@04cbc =   60</action> <!-- ingame -->
		<action>maincpu.mw@043fc = 0002</action> <!-- ingame -->
	</script>
	<script state="off">
		<action>maincpu.mw@04e26 = 029a</action>
		<action>maincpu.mw@01340 = 0f7a</action>
		<action>maincpu.mb@030aa =   67</action>
		<action>maincpu.mb@04cbc =   67</action>
		<action>maincpu.mw@043fc = ea3e</action>
	</script>
</cheat>
"player speed" code doesn't read address for speed "item" so that you can get max item bonus with slower speed.
Post Reply