[barek2ch] Bare Knuckle II

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
Posts: 843
Joined: Tue Dec 01, 2020 1:24 pm

[barek2ch] Bare Knuckle II

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <!-- attack -->
        <action>maincpu.mq@0540a = 4eb90003ab306e06</action>
        <action>maincpu.mq@3ab30 = b6fcf0006f08d643</action>
        <action>maincpu.mq@3ab38 = d443b2424e757401</action>
        <action>maincpu.mq@3ab40 = 4e75ffffffffffff</action>
        <!--
        3ab30 | b6fc f000 : cmpa.w #$f000,A3
        3ab34 | 6f08      : ble    $3ab3e
        3ab36 | d643      : add.w  D3,D3
        3ab38 | d443      : add.w  D3,D2
        3ab3a | b242      : cmp.w  D2,D1
        3ab3c | 4e75      : rts
        3ab3e | 7401      : moveq  #$1,D2
        3ab40 | 4e75      : rts
        -->
        <!-- throw -->
        <action>maincpu.mb@16868 = 60</action> <!-- signal -->
        <action>maincpu.mb@15374 = 60</action> <!-- boss 1 -->
        <action>maincpu.mb@1c988 = 60</action> <!-- armor -->
        <action>maincpu.mb@1a556 = 60</action> <!-- boss 2 -->
        <action>maincpu.mb@1b0c2 = 60</action> <!-- ninja -->
        <action>maincpu.mb@17b24 = 60</action> <!-- boss 3 a -->
        <action>maincpu.mb@17af2 = 60</action> <!-- boss 3 b -->
        <action>maincpu.mb@12fb4 = 60</action> <!-- boss 4 -->
        <action>maincpu.mb@19768 = 60</action> <!-- boxer -->
        <action>maincpu.mb@122dc = 60</action> <!-- boss 5 -->
        <action>maincpu.mb@1fc28 = 60</action> <!-- shiva -->
    </script>
    <script state="off">
        <action>maincpu.mq@0540a = d643d443b2426e06</action>
        <action>maincpu.mq@3ab30 = ffffffffffffffff</action>
        <action>maincpu.mq@3ab38 = ffffffffffffffff</action>
        <action>maincpu.mq@3ab40 = ffffffffffffffff</action>
        <action>maincpu.mb@16868 =               66</action>
        <action>maincpu.mb@15374 =               66</action>
        <action>maincpu.mb@1c988 =               66</action>
        <action>maincpu.mb@1a556 =               66</action>
        <action>maincpu.mb@1b0c2 =               66</action>
        <action>maincpu.mb@17b24 =               66</action>
        <action>maincpu.mb@17af2 =               66</action>
        <action>maincpu.mb@12fb4 =               66</action>
        <action>maincpu.mb@19768 =               66</action>
        <action>maincpu.mb@122dc =               66</action>
        <action>maincpu.mb@1fc28 =               66</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mb@bf49 = 0c</action> <!-- attack -->
        <action>maincpu.mb@cb37 = 0c</action> <!-- body blow 1 -->
        <action>maincpu.mb@cab5 = 0c</action> <!-- body blow 2 -->
        <action>maincpu.mb@ca5f = 0c</action> <!-- throw (front) -->
        <action>maincpu.mb@cd29 = 0c</action> <!-- throw (back) -->
    </script>
    <script state="off">
        <action>maincpu.mb@bf49 = 04</action>
        <action>maincpu.mb@cb37 = 04</action>
        <action>maincpu.mb@cab5 = 04</action>
        <action>maincpu.mb@ca5f = 04</action>
        <action>maincpu.mb@cd29 = 04</action>
    </script>
</cheat>

<cheat desc="attack speed up">
    <script state="on">
        <action>maincpu.mq@20e52 = 4eb90003ab50bbfc</action>
        <action>maincpu.mq@3ab50 = 3b7100000016bafc</action>
        <action>maincpu.mq@3ab58 = f0006e1a0c550002</action>
        <action>maincpu.mq@3ab60 = 67140c550018670e</action>
        <action>maincpu.mq@3ab68 = 0c6d000200166d06</action>
        <action>maincpu.mq@3ab70 = 3b7c000200164e75</action>
        <!--
        3ab50 | 3b71 0000 0016 : move.w (A1,D0.w),($16,A5)
        3ab56 | bafc f000      : cmpa.w #$f000,A5
        3ab5a | 6e1a           : bgt    $3ab76
        3ab5c | 0c55 0002      : cmpi.w #$2,(A5)
        3ab60 | 6714           : beq    $3ab76
        3ab62 | 0c55 0018      : cmpi.w #$18,(A5)
        3ab66 | 670e           : beq    $3ab76
        3ab68 | 0c6d 0002 0016 : cmpi.w #$2,($16,A5)
        3ab6e | 6d06           : blt    $3ab76
        3ab70 | 3b7c 0002 0016 : move.w #$2,($16,A5)
        3ab76 | 4e75           : rts
        -->
    </script>
    <script state="off">
        <action>maincpu.mq@20e52 = 3b7100000016bbfc</action>
        <action>maincpu.mq@3ab50 = ffffffffffffffff</action>
        <action>maincpu.mq@3ab58 = ffffffffffffffff</action>
        <action>maincpu.mq@3ab60 = ffffffffffffffff</action>
        <action>maincpu.mq@3ab68 = ffffffffffffffff</action>
        <action>maincpu.mq@3ab70 = ffffffffffffffff</action>
    </script>
</cheat>
The above code is based on Streets of Rage II/Bare Knuckle II for megadrij with improvement/fix.
jman
Posts: 843
Joined: Tue Dec 01, 2020 1:24 pm

[barek2ch] Bare Knuckle II (update)

Post by jman »

Code: Select all

    <cheat desc="player speed">
        <parameter>
            <item value="0x0080">01 (slow)</item>
            <item value="0x0180">02       </item>
            <item value="0x0300">03       </item>
            <item value="0x0480">04       </item>
            <item value="0x0600">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.mw@c04a = 363c</action>
        </script>
        <script state="change">
            <action>maincpu.mw@c04c = param</action>
        </script>
        <script state="off">
            <action>maincpu.md@c04a = 36300000</action>
        </script>
    </cheat>
"player speed" : add new.

Code: Select all

    <cheat desc="console mode">
        <script state="on">
            <action>maincpu.mq@5a56 = 1038fc098038fc0b</action>
            <action>maincpu.mq@5a5e = 020000a0665e41fa</action>
        </script>
        <script state="off">
            <action>maincpu.mq@5a56 = 4ef9001f54004e71</action>
            <action>maincpu.mq@5a5e = 4e714e714e7141fa</action>
        </script>
    </cheat>
"console mode" : This code restores mode selection menu like Megadrive version. Also the game starts without inserting credit.
Image Image
But you can't change difficulty and players in option menu because barek2ch gives priority to DIP switch setting.
So 6th ~ 8th "unknown" DIP switches are for difficulty.
  • off, off, off : very easy
  • on, off, off : easy
  • off, on, off : normal
  • on, on, off : hard
  • off, off, on : hardest
  • on, on, on : mania
Post Reply