Page 1 of 1

[mjvegasa]+ Mahjong Vegas

Posted: Sat Oct 14, 2023 11:49 pm
by jman
mjvegasa and mjvegas don't have any cheat codes in the database based on 0.259.
And mjveas will work in 0.260 because of dumped internal ROM.

mjvegasa.xml

Code: Select all

<!-- Mahjong Vegas (Japan, unprotected) -->
<mamecheat version="1">

    <cheat desc="infinite credit">
        <script state="run">
            <action>maincpu.pd@689B = 09090909</action>
        </script>
    </cheat>

    <cheat desc="clear credit">
        <script state="on">
            <action>maincpu.pd@689B = 00000000</action>
        </script>
    </cheat>

    <cheat desc="winning hand">
        <comment>works in your turn</comment>
        <script state="run">
            <action>maincpu.pq@61C0 = 3535353232313131</action>
            <action>maincpu.pq@61C8 = FFFF373737363636</action>
        </script>
    </cheat>

    <cheat desc="watch all 14 tiles - player">
        <script state="run">
            <output format="player : %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X">
                <argument count="14">maincpu.pb@(61C0 + argindex)</argument>
            </output>
        </script>
    </cheat>

    <cheat desc="watch all 14 tiles - cpu">
        <script state="run">
            <output format="cpu : %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X">
                <argument count="14">maincpu.pb@(6140 + argindex)</argument>
            </output>
        </script>
    </cheat>

    <cheat desc="infinite donden">
        <script state="run">
            <action>maincpu.pb@6870 = 0A</action>
        </script>
    </cheat>

    <cheat desc="inifinite thinking time">
        <script state="run">
            <action>maincpu.pb@6550 = FF</action>
        </script>
    </cheat>

</mamecheat>
mjvegas.xml

Code: Select all

<!-- Mahjong Vegas (Japan) -->
<mamecheat version="1">

    <cheat desc="infinite credit">
        <script state="run">
            <action>maincpu.pd@689B = 09090909</action>
        </script>
    </cheat>

    <cheat desc="clear credit">
        <script state="on">
            <action>maincpu.pd@689B = 00000000</action>
        </script>
    </cheat>

    <cheat desc="winning hand">
        <comment>works in your turn</comment>
        <script state="run">
            <action>maincpu.pq@61C0 = 3535353232313131</action>
            <action>maincpu.pq@61C8 = FFFF373737363636</action>
        </script>
    </cheat>

    <cheat desc="watch all 14 tiles - player">
        <script state="run">
            <output format="player : %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X">
                <argument count="14">maincpu.pb@(61C0 + argindex)</argument>
            </output>
        </script>
    </cheat>

    <cheat desc="watch all 14 tiles - cpu">
        <script state="run">
            <output format="cpu : %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X">
                <argument count="14">maincpu.pb@(6140 + argindex)</argument>
            </output>
        </script>
    </cheat>

    <cheat desc="infinite donden">
        <script state="run">
            <action>maincpu.pb@6870 = 0A</action>
        </script>
    </cheat>

    <cheat desc="inifinite thinking time">
        <script state="run">
            <action>maincpu.pb@6550 = FF</action>
        </script>
    </cheat>

</mamecheat>
  • "clear credit" : This game saves current credit in nvram. If you use this code, turn off "infinite credit".
  • "winning hand" : This code works in your turn. Not opponent turn. So "tsumo" is available and "ron" is unavailable.
  • "inifinite donden" : "donden" exchanges player tiles and opponent tiles when you press start button.

Re: [mjvegasa]+ Mahjong Vegas

Posted: Tue Apr 02, 2024 3:26 pm
by Pugsy
Thanks added, though I did change it into the same format as used for some other mahjong cheats as it was quicker/simpler to add.