Thread in 'Research & Development' started by tet2brik, 26 Aug 2011.

1. tet2brik

Hi all !

I’m playing TGM2 with this emulator : Mame 0.129 (for TGM2).
The emulation is good but it seems impossible to use cheats
In fact, when I press TAB button, there is no cheat menu (I have put the cheats.dat in the directory).

So I have tried with mame32FX 0.99u4 and it works perfectly (I have the cheat menu and I can use cheats) but this emulator is not proper because of a huge input lag.

Is there a way to use cheats with Mame 0.129 (for TGM2) ?

Or maybe is there a better emulator ?

Thanks !

2. nicofromtokyo

I am using MAMEUI32 0.141 with the tips Edo taught me here, no lag on my side.

Btw, how are you managing TAP ?

Question : is there a way to play the Invisible roll with the cheats ?

Last edited: 26 Aug 2011
3. K

yes,
i was until recently only using mame for m-roll training.
depending if you have the good cheat table.

4. tet2brik

Thanks guyz !

I have just downloaded the last version of MameUI32 (0.143.3) and the cheats work perfectly !
My training during those last weeks was not efficient as i played only T.A Death mode.
Now i have big problems with consistency after level 600 in master mode.

So my 1st objective will be to finish the game starting from level 600
2nd objective : finish the game from the begining .....
3rd objective : get the S7 grade

BTW, Edo your cheat file is just FANTASTIC !

5. nicofromtokyo

Just to be sure, this cheat file does not allow to play the m-roll, does it ?

What are we supposed to download to be able to play it ?

6. K

i've got this in my cheat folder

File size:
1.3 KB
Views:
45
7. nicofromtokyo

Just to be sure. I already have a cheat.zip in my MAME directory. Should I write over it with that new one, or rename it? Does this new file alow me to play from the Lvl I want?

8. K

Back up your cheat folder and use the one I gave you.. you can choose start level and unlock the m-roll.
Be sure to enable Cheat before launching the game :
Mameversion.exe tgm2p -c

9. Ezzelin

I've got edo's latest cheat.zip file (I think) but it seems to be missing any way of setting the level of Player 2. Is there a way to do this? I saw it in the old thread with the cheat.dat format, but that's of no use with shmupmametgm. I'd like this so I can play vs. mode with each player set to a different level (for handicapping). Also, a cheat code to always enable no items mode (in vs) would be nice.

edit: OK, so I've just dug in and tried this myself. I've made codes for Set Level P2 and Lock Level P2, but Start at Level P2 (the one I really want) is not working correctly. The code seems cut and dry. It just checks if the variables for level and section are set to 0, then sets the level and section, am I right? I've substituted the values for the addresses for these variables for P2, but for some reason it's not firing at the right time. I had it working once partially, in that it would work if a vs game was started, but I'm pretty sure they were firing off of P1's addresses since I hadn't replaced them all yet. Here are the codes for the ones I got working (edo, you're welcome to add them to your next version):

Code:
  <cheat desc="Set Level P2">
<parameter>
<item value="0x01">1</item>
<item value="0x02">101</item>
<item value="0x03">201</item>
<item value="0x04">301</item>
<item value="0x05">401</item>
<item value="0x06">501</item>
<item value="0x07">601</item>
<item value="0x08">701</item>
<item value="0x09">801</item>
<item value="0x0A">901</item>
<item value="0x0B">998</item>
</parameter>
<script state="change">
<action condition="(param==01)">maincpu.pb@6064FD9=00</action>
<action condition="(param==01)">maincpu.pw@6064F6E=0001</action>
<action condition="(param==02)">maincpu.pb@6064FD9=01</action>
<action condition="(param==02)">maincpu.pw@6064F6E=0065</action>
<action condition="(param==03)">maincpu.pb@6064FD9=02</action>
<action condition="(param==03)">maincpu.pw@6064F6E=00C9</action>
<action condition="(param==04)">maincpu.pb@6064FD9=03</action>
<action condition="(param==04)">maincpu.pw@6064F6E=012D</action>
<action condition="(param==05)">maincpu.pb@6064FD9=04</action>
<action condition="(param==05)">maincpu.pw@6064F6E=0191</action>
<action condition="(param==06)">maincpu.pb@6064FD9=05</action>
<action condition="(param==06)">maincpu.pw@6064F6E=01F5</action>
<action condition="(param==07)">maincpu.pb@6064FD9=06</action>
<action condition="(param==07)">maincpu.pw@6064F6E=0259</action>
<action condition="(param==08)">maincpu.pb@6064FD9=07</action>
<action condition="(param==08)">maincpu.pw@6064F6E=02BD</action>
<action condition="(param==09)">maincpu.pb@6064FD9=08</action>
<action condition="(param==09)">maincpu.pw@6064F6E=0321</action>
<action condition="(param==0A)">maincpu.pb@6064FD9=09</action>
<action condition="(param==0A)">maincpu.pw@6064F6E=0385</action>
<action condition="(param==0B)">maincpu.pb@6064FD9=09</action>
<action condition="(param==0B)">maincpu.pw@6064F6E=03E6</action>
</script>
</cheat>
<cheat desc="Lock Level P2">
<parameter>
<item value="0x01">1</item>
<item value="0x02">101</item>
<item value="0x03">201</item>
<item value="0x04">301</item>
<item value="0x05">401</item>
<item value="0x06">501</item>
<item value="0x07">601</item>
<item value="0x08">701</item>
<item value="0x09">801</item>
<item value="0x0A">901</item>
<item value="0x0B">998</item>
</parameter>
<script state="run">
<action condition="(param==01)">maincpu.pb@6064FD9=00</action>
<action condition="(param==01)">maincpu.pw@6064F6E=0001</action>
<action condition="(param==02)">maincpu.pb@6064FD9=01</action>
<action condition="(param==02)">maincpu.pw@6064F6E=0065</action>
<action condition="(param==03)">maincpu.pb@6064FD9=02</action>
<action condition="(param==03)">maincpu.pw@6064F6E=00C9</action>
<action condition="(param==04)">maincpu.pb@6064FD9=03</action>
<action condition="(param==04)">maincpu.pw@6064F6E=012D</action>
<action condition="(param==05)">maincpu.pb@6064FD9=04</action>
<action condition="(param==05)">maincpu.pw@6064F6E=0191</action>
<action condition="(param==06)">maincpu.pb@6064FD9=05</action>
<action condition="(param==06)">maincpu.pw@6064F6E=01F5</action>
<action condition="(param==07)">maincpu.pb@6064FD9=06</action>
<action condition="(param==07)">maincpu.pw@6064F6E=0259</action>
<action condition="(param==08)">maincpu.pb@6064FD9=07</action>
<action condition="(param==08)">maincpu.pw@6064F6E=02BD</action>
<action condition="(param==09)">maincpu.pb@6064FD9=08</action>
<action condition="(param==09)">maincpu.pw@6064F6E=0321</action>
<action condition="(param==0A)">maincpu.pb@6064FD9=09</action>
<action condition="(param==0A)">maincpu.pw@6064F6E=0385</action>
<action condition="(param==0B)">maincpu.pb@6064FD9=09</action>
<action condition="(param==0B)">maincpu.pw@6064F6E=03E6</action>
</script>
</cheat>
Edit 2: So here's the Start at Level P2 code. It's only working in Vs. mode at the moment, which is fine for me, but it still bugs me. It looks like the 6064BF5 address needs to be changed to something appropriate for P2, but I have no idea how to search for addresses. Anyone have any ideas?

Code:
  <cheat desc="Start at Level P2 (Vs. Only)">
<parameter>
<item value="0x01">1</item>
<item value="0x02">101</item>
<item value="0x03">201</item>
<item value="0x04">301</item>
<item value="0x05">401</item>
<item value="0x06">499</item>
<item value="0x07">501</item>
<item value="0x08">601</item>
<item value="0x09">701</item>
<item value="0x0A">801</item>
<item value="0x0B">901</item>
<item value="0x0C">998</item>
</parameter>
<script state="run">
<action condition="(param==01) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=00</action>
<action condition="(param==01) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=0001</action>
<action condition="(param==02) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=01</action>
<action condition="(param==02) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=0065</action>
<action condition="(param==03) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=02</action>
<action condition="(param==03) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=00C9</action>
<action condition="(param==04) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=03</action>
<action condition="(param==04) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=012D</action>
<action condition="(param==05) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=04</action>
<action condition="(param==05) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=0191</action>
<action condition="(param==06) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=04</action>
<action condition="(param==06) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=01F3</action>
<action condition="(param==07) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=05</action>
<action condition="(param==07) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=01F5</action>
<action condition="(param==08) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=06</action>
<action condition="(param==08) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=0259</action>
<action condition="(param==09) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=07</action>
<action condition="(param==09) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=02BD</action>
<action condition="(param==0A) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=08</action>
<action condition="(param==0A) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=0321</action>
<action condition="(param==0B) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=09</action>
<action condition="(param==0B) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=0385</action>
<action condition="(param==0C) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pb@6064FD9=09</action>
<action condition="(param==0C) and (maincpu.pw@6064F6E==0000) and (maincpu.pb@6064BF5==01)">maincpu.pw@6064F6E=03E6</action>
</script>
</cheat>

Last edited: 15 Jan 2012