Page 1 of 2

Mortal Kombat 4 (All Versions)

Posted: Sat Aug 31, 2013 7:41 am
by Abystus
Mortal Kombat 4 (version 1.0)

mk4b.xml

Code: Select all

<cheat desc="Player 1 Character Modifier">
    <comment>Not dependent on character select screen.</comment>
    <parameter>
      <item value="0x00">Scorpion</item>
      <item value="0x01">Raiden</item>
      <item value="0x02">Sonya</item>
      <item value="0x03">Liu Kang</item>
      <item value="0x04">Sub-Zero</item>
      <item value="0x05">Fujin</item>
      <item value="0x06">Shinnok</item>
      <item value="0x07">Noob Saibot (Not select-able since earlier revisions.)</item>
      <item value="0x08">Quan Chi</item>
      <item value="0x09">Tanya</item>
      <item value="0x0A">Reptile</item>
      <item value="0x0B">Kai</item>
      <item value="0x0C">Jarek</item>
      <item value="0x0D">Jax Place Holder (Scorpion model w/Mileena Unused Tower Portrait!)</item>
      <item value="0x0E">Johnny Cage Place Holder (Scorpion model w/Mileena Unused Tower Portrait!)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@00109C=param</action>
    </script>
    <script state="off">
      <action>maincpu.pb@00109C=00</action>
    </script>
</cheat>

<cheat desc="Player 2 Character Modifier">
    <comment>Not dependent on character select screen.</comment>
    <parameter>
      <item value="0x00">Scorpion</item>
      <item value="0x01">Raiden</item>
      <item value="0x02">Sonya</item>
      <item value="0x03">Liu Kang</item>
      <item value="0x04">Sub-Zero</item>
      <item value="0x05">Fujin</item>
      <item value="0x06">Shinnok</item>
      <item value="0x07">Noob Saibot (Not select-able since earlier revisions.)</item>
      <item value="0x08">Quan Chi</item>
      <item value="0x09">Tanya</item>
      <item value="0x0A">Reptile</item>
      <item value="0x0B">Kai</item>
      <item value="0x0C">Jarek</item>
      <item value="0x0D">Jax Place Holder (Scorpion model w/Mileena Unused Tower Portrait!)</item>
      <item value="0x0E">Johnny Cage Place Holder (Scorpion model w/Mileena Unused Tower Portrait!)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@00109D=param</action>
    </script>
    <script state="off">
      <action>maincpu.pb@00109D=00</action>
    </script>
</cheat>
Unused Mileena Portrait:

Image

As we all know Mileena was not included in any build of MK4 (excluding MK Gold). Now there is actual proof that she was originally going to be part of the arcade roster, but unfortunately was removed completely in revision 2.1 and 3.0 along with Noob Saibot getting replaced with Reiko.

Mortal Kombat 4 (version 2.1)

mk4a.xml

Code: Select all

<cheat desc="Player 1 Character Modifier">
    <comment>Not dependent on character select screen.</comment>
    <parameter>
      <item value="0x00">Scorpion</item>
      <item value="0x01">Raiden</item>
      <item value="0x02">Sonya</item>
      <item value="0x03">Liu Kang</item>
      <item value="0x04">Sub-Zero</item>
      <item value="0x05">Fujin</item>
      <item value="0x06">Shinnok</item>
      <item value="0x07">Reiko</item>
      <item value="0x08">Quan Chi</item>
      <item value="0x09">Tanya</item>
      <item value="0x0A">Reptile</item>
      <item value="0x0B">Kai</item>
      <item value="0x0C">Jarek</item>
      <item value="0x0D">Jax</item>
      <item value="0x0E">Johnny Cage</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@00127D=param</action>
    </script>
    <script state="off">
      <action>maincpu.pb@00127D=00</action>
    </script>
</cheat>

<cheat desc="Player 2 Character Modifier">
    <comment>Not dependent on character select screen.</comment>
    <parameter>
      <item value="0x00">Scorpion</item>
      <item value="0x01">Raiden</item>
      <item value="0x02">Sonya</item>
      <item value="0x03">Liu Kang</item>
      <item value="0x04">Sub-Zero</item>
      <item value="0x05">Fujin</item>
      <item value="0x06">Shinnok</item>
      <item value="0x07">Reiko</item>
      <item value="0x08">Quan Chi</item>
      <item value="0x09">Tanya</item>
      <item value="0x0A">Reptile</item>
      <item value="0x0B">Kai</item>
      <item value="0x0C">Jarek</item>
      <item value="0x0D">Jax</item>
      <item value="0x0E">Johnny Cage</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@00127E=param</action>
    </script>
    <script state="off">
      <action>maincpu.pb@00127E=00</action>
    </script>
</cheat>
Mortal Kombat 4 (version 3.0)

mk4.xml

Code: Select all

<cheat desc="Player 1 Character Modifier">
    <comment>Not dependent on character select screen.</comment>
    <parameter>
      <item value="0x00">Scorpion</item>
      <item value="0x01">Raiden</item>
      <item value="0x02">Sonya</item>
      <item value="0x03">Liu Kang</item>
      <item value="0x04">Sub-Zero</item>
      <item value="0x05">Fujin</item>
      <item value="0x06">Shinnok</item>
      <item value="0x07">Reiko</item>
      <item value="0x08">Quan Chi</item>
      <item value="0x09">Tanya</item>
      <item value="0x0A">Reptile</item>
      <item value="0x0B">Kai</item>
      <item value="0x0C">Jarek</item>
      <item value="0x0D">Jax</item>
      <item value="0x0E">Johnny Cage</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@002096=param</action>
    </script>
    <script state="off">
      <action>maincpu.pb@002096=00</action>
    </script>
</cheat>

<cheat desc="Player 2 Character Modifier">
    <comment>Not dependent on character select screen.</comment>
    <parameter>
      <item value="0x00">Scorpion</item>
      <item value="0x01">Raiden</item>
      <item value="0x02">Sonya</item>
      <item value="0x03">Liu Kang</item>
      <item value="0x04">Sub-Zero</item>
      <item value="0x05">Fujin</item>
      <item value="0x06">Shinnok</item>
      <item value="0x07">Reiko</item>
      <item value="0x08">Quan Chi</item>
      <item value="0x09">Tanya</item>
      <item value="0x0A">Reptile</item>
      <item value="0x0B">Kai</item>
      <item value="0x0C">Jarek</item>
      <item value="0x0D">Jax</item>
      <item value="0x0E">Johnny Cage</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@002097=param</action>
    </script>
    <script state="off">
      <action>maincpu.pb@002097=00</action>
    </script>
</cheat>

Re: Mortal Kombat 4 (All Versions)

Posted: Tue Sep 03, 2013 7:50 am
by Abystus
Mortal Kombat 4 (version 1.0)

mk4b.xml

Code: Select all

  <cheat desc="Enable Scorpion Unused Bios Screen">
    <comment>Activate on the spinning dragon logo screen.</comment>
    <script state="on">
      <action>maincpu.pw@00201A=9B52</action>
      <action>maincpu.pd@019B54=08600000</action>
    </script>
  </cheat>

  <cheat desc="Enable Raiden Unused Bios Screen">
    <comment>Activate on the spinning dragon logo screen.</comment>
    <script state="on">
      <action>maincpu.pw@00201A=9B52</action>
      <action>maincpu.pd@019B54=08600001</action>
    </script>
  </cheat>

  <cheat desc="Enable Sonya Unused Bios Screen">
    <comment>Activate on the spinning dragon logo screen.</comment>
    <script state="on">
      <action>maincpu.pw@00201A=9B52</action>
      <action>maincpu.pd@019B54=08600002</action>
    </script>
  </cheat>

  <cheat desc="Enable Liu Kang Unused Bios Screen">
    <comment>Activate on the spinning dragon logo screen.</comment>
    <script state="on">
      <action>maincpu.pw@00201A=9B52</action>
      <action>maincpu.pd@019B54=08600003</action>
    </script>
  </cheat>

  <cheat desc="Enable Sub-Zero Unused Bios Screen">
    <comment>Activate on the spinning dragon logo screen.</comment>
    <script state="on">
      <action>maincpu.pw@00201A=9B52</action>
      <action>maincpu.pd@019B54=08600004</action>
    </script>
  </cheat>

  <cheat desc="Enable Fujin Unused Bios Screen">
    <comment>Activate on the spinning dragon logo screen.</comment>
    <script state="on">
      <action>maincpu.pw@00201A=9B52</action>
      <action>maincpu.pd@019B54=08600005</action>
    </script>
  </cheat>

  <cheat desc="Enable Shinnok Unused Bios Screen">
    <comment>Activate on the spinning dragon logo screen.</comment>
    <script state="on">
      <action>maincpu.pw@00201A=9B52</action>
      <action>maincpu.pd@019B54=08600006</action>
    </script>
  </cheat>

  <cheat desc="Enable Noob Saibot Unused Bios Screen">
    <comment>Activate on the spinning dragon logo screen.</comment>
    <script state="on">
      <action>maincpu.pw@00201A=9B52</action>
      <action>maincpu.pd@019B54=08600007</action>
    </script>
  </cheat>
I was able to successfully re-activate the disabled character bios screens in this early revision of the game (character bios were not enabled until revision 1.44 which is not currently emulated in MAME). They contain very funny non game related material, and were never meant to be seen by the public.

A playlist of all unused content found for this game (revision 1.0) can be found here.

Re: Mortal Kombat 4 (All Versions)

Posted: Fri Sep 06, 2013 3:21 am
by Abystus
Mortal Kombat 4 (version 1.0)

mk4b.xml

Code: Select all

<cheat desc="Replace Raiden with ?? in Attract Mode Story Introduction">
    <comment>Enable before introduction begins.</comment>
    <parameter>
      <item value="0x08600000">Scorpion</item>
      <item value="0x08600001">Raiden</item>
      <item value="0x08600002">Sonya</item>
      <item value="0x08600003">Liu Kang</item>
      <item value="0x08600004">Sub-Zero</item>
      <item value="0x08600005">Fujin</item>
      <item value="0x08600006">Shinnok</item>
      <item value="0x08600007">Noob Saibot</item>
      <item value="0x08600008">Quan Chi</item>
      <item value="0x08600009">Tanya</item>
      <item value="0x0860000A">Reptile</item>
      <item value="0x0860000B">Kai</item>
      <item value="0x0860000C">Jarek</item>
    </parameter>
    <script state="run">
      <action>maincpu.pd@019988=param</action>
    </script>
    <script state="off">
      <action>maincpu.pd@019988=08600001</action>
    </script>
</cheat>
Mortal Kombat 4 (version 2.1)

mk4a.xml

Code: Select all

<cheat desc="Replace Raiden with ?? in Attract Mode Story Introduction">
    <comment>Enable before introduction begins.</comment>
    <parameter>
      <item value="0x08600000">Scorpion</item>
      <item value="0x08600001">Raiden</item>
      <item value="0x08600002">Sonya</item>
      <item value="0x08600003">Liu Kang</item>
      <item value="0x08600004">Sub-Zero</item>
      <item value="0x08600005">Fujin</item>
      <item value="0x08600006">Shinnok</item>
      <item value="0x08600007">Reiko</item>
      <item value="0x08600008">Quan Chi</item>
      <item value="0x08600009">Tanya</item>
      <item value="0x0860000A">Reptile</item>
      <item value="0x0860000B">Kai</item>
      <item value="0x0860000C">Jarek</item>
      <item value="0x0860000D">Jax</item>
      <item value="0x0860000E">Johnny Cage</item>
    </parameter>
    <script state="run">
      <action>maincpu.pd@01B7BB=param</action>
    </script>
    <script state="off">
      <action>maincpu.pd@01B7BB=08600001</action>
    </script>
</cheat>
Mortal Kombat 4 (version 3.0)

mk4.xml

Code: Select all

<cheat desc="Replace Raiden with ?? in Attract Mode Story Introduction">
    <comment>Enable before introduction begins.</comment>
    <parameter>
      <item value="0x08600000">Scorpion</item>
      <item value="0x08600001">Raiden</item>
      <item value="0x08600002">Sonya</item>
      <item value="0x08600003">Liu Kang</item>
      <item value="0x08600004">Sub-Zero</item>
      <item value="0x08600005">Fujin</item>
      <item value="0x08600006">Shinnok</item>
      <item value="0x08600007">Reiko</item>
      <item value="0x08600008">Quan Chi</item>
      <item value="0x08600009">Tanya</item>
      <item value="0x0860000A">Reptile</item>
      <item value="0x0860000B">Kai</item>
      <item value="0x0860000C">Jarek</item>
      <item value="0x0860000D">Jax</item>
      <item value="0x0860000E">Johnny Cage</item>
    </parameter>
    <script state="run">
      <action>maincpu.pd@01B282=param</action>
    </script>
    <script state="off">
      <action>maincpu.pd@01B282=08600001</action>
    </script>
</cheat>

Re: Mortal Kombat 4 (All Versions)

Posted: Sun Sep 08, 2013 6:08 am
by Abystus
Mortal Kombat 4 (version 1.0)

mk4b.xml

Code: Select all

<cheat desc="Enable Unused Character Select Positions">
    <comment>Noob Saibot | Jax/Kitana Place Holder | Johnny Cage/Kitana Place Holder</comment>
    <script state="run">
      <action>maincpu.pd@0156B0=6A060008</action>
    </script>
    <script state="off">
      <action>maincpu.pd@0156B0=6A070008</action>
    </script>
</cheat
Character Select Screen Legend:

Image

Re: Mortal Kombat 4 (All Versions)

Posted: Sun Sep 22, 2013 1:27 pm
by CLE
Very good! Thanks!

But is possible play MK4 working 100% good in MAME?

Re: Mortal Kombat 4 (All Versions)

Posted: Thu Oct 03, 2013 4:53 am
by Abystus
CLE wrote:Very good! Thanks!

But is possible play MK4 working 100% good in MAME?
Eh, it runs ok but it could be a lot smoother. The most noticeable problem in emulation is on certain effects that require the alpha layer for transparencies like Sub-Zero's ice mist that surrounds his body. You can see for yourself how it runs on an i7 2600k with 8gb of ddr3 by checking out this playlist.

Re: Mortal Kombat 4 (All Versions)

Posted: Fri Oct 04, 2013 12:08 am
by CLE
Right.

I hope that in the next MAME versions this bugs will be corrected.

Thanks!

Re: Mortal Kombat 4 (All Versions)

Posted: Fri Dec 27, 2013 7:32 pm
by Pugsy
Thanks, added

Re: Mortal Kombat 4 (All Versions)

Posted: Tue Apr 15, 2014 5:53 am
by Abystus
Mortal Kombat 4 (version 3.0)

mk4.xml

Code: Select all

<cheat desc="Always Get Secret MK5 Greatest Warrior Announcement">
  <comment>Activate before Greatest Warrior announcement.</comment>
  <script state="run">
    <action>maincpu.pd@01B62D=6A040000</action>
  </script>
  <script state="off">
    <action>maincpu.pd@01B62D=6A040006</action>
  </script>
</cheat>
Image



Pugsy, letting you know I get an error when loading your last update to the cheat file in Mortal Kombat 4 (version 1.0):

Image

Version 2.1 and 3.0 seem to be free of this error. Wanted to make you aware before you push this latest update out.

Re: Mortal Kombat 4 (All Versions)

Posted: Mon Apr 21, 2014 11:43 pm
by Pugsy
Thanks, added. I've added XMLLINT syntax checking into my build process so it shouldn't be a problem in the next release.

Re: Mortal Kombat 4 (All Versions)

Posted: Mon Jul 07, 2014 5:59 am
by Abystus
Mortal Kombat 4 (version 3.0)

mk4.xml

Code: Select all

<cheat desc="Enable Finishers From Any Distance">
  <script state="run">
    <action>maincpu.pd@017D97=6A070000</action>
    <action>maincpu.pd@017DC3=6A070000</action>
    <action>maincpu.pd@017DFF=6A090000</action>
    <action>maincpu.pd@017E03=6A070000</action>
    <action>maincpu.pd@017E05=6A090000</action>
    <action>maincpu.pd@017E09=6A090000</action>
    <action>maincpu.pd@017E10=6A090000</action>
    <action>maincpu.pd@017E17=6A090000</action>
  </script>
  <script state="off">
    <action>maincpu.pd@017D97=6A0701E9</action>
    <action>maincpu.pd@017DC3=6A0701BD</action>
    <action>maincpu.pd@017DFF=6A090181</action>
    <action>maincpu.pd@017E03=6A07017D</action>
    <action>maincpu.pd@017E05=6A09017B</action>
    <action>maincpu.pd@017E09=6A090177</action>
    <action>maincpu.pd@017E10=6A090170</action>
    <action>maincpu.pd@017E17=6A090169</action>
  </script>
</cheat>

<cheat desc="Enable Finishers During Round">
  <comment>Works on any round. Can be interrupted by opponent. Do not use with "Infinite Time" cheat, or the round will never end.</comment>
  <script state="run">
    <action>maincpu.pd@017E1A=6A050000</action>
    <action>maincpu.pd@017E1C=6A060000</action>
    <action>maincpu.pd@017E23=6A060000</action>
    <action>maincpu.pd@017E28=6A060000</action>
  </script>
  <script state="off">
    <action>maincpu.pd@017E1A=6A050166</action>
    <action>maincpu.pd@017E1C=6A060164</action>
    <action>maincpu.pd@017E23=6A06015D</action>
    <action>maincpu.pd@017E28=6A060158</action>
  </script>
</cheat>

Re: Mortal Kombat 4 (All Versions)

Posted: Sat Jul 26, 2014 5:28 pm
by Pugsy
Thanks, added.

Re: Mortal Kombat 4 (All Versions)

Posted: Sat Dec 29, 2018 7:48 pm
by Abystus
Mortal Kombat 4 (version 3.0)

mk4.xml

Code: Select all

  <cheat desc="Turn Tanya Into Kitana">
      <comment>Replaces Tanya's model with Kitana's.</comment>
      <script state="run">
        <action>user1.md@00AA3C0=00A3BA67</action>
        <action>user1.md@00AA3C4=00A3BA67</action>
      </script>
      <script state="off">
        <action>user1.md@00AA3C0=00A3B851</action>
        <action>user1.md@00AA3C4=00A3B903</action>
      </script>
  </cheat>

Re: Mortal Kombat 4 (All Versions)

Posted: Sat Dec 29, 2018 10:11 pm
by Pugsy
Thanks, added

Re: Mortal Kombat 4 (All Versions)

Posted: Sat Jan 05, 2019 5:54 am
by CLE
Abystus wrote: Sat Dec 29, 2018 7:48 pm Mortal Kombat 4 (version 3.0)

mk4.xml

Code: Select all

  <cheat desc="Turn Tanya Into Kitana">
      <comment>Replaces Tanya's model with Kitana's.</comment>
      <script state="run">
        <action>user1.md@00AA3C0=00A3BA67</action>
        <action>user1.md@00AA3C4=00A3BA67</action>
      </script>
      <script state="off">
        <action>user1.md@00AA3C0=00A3B851</action>
        <action>user1.md@00AA3C4=00A3B903</action>
      </script>
  </cheat>
Great cheat!

Thanks, Abystus!

Re: Mortal Kombat 4 (All Versions)

Posted: Fri Apr 10, 2020 8:09 pm
by Abystus
Mortal Kombat 4 (version 3.0)

mk4.xml

Code: Select all

  <cheat desc="Walk Through Stage Boundaries">
    <script state="run">
      <action>maincpu.pd@01F405=6A00000F</action><!-- This Program Code cheat was made by Abystus -->
      <action>maincpu.pd@01F445=78800000</action>
    </script>
    <script state="off">
      <action>maincpu.pd@01F405=6A07000F</action>
      <action>maincpu.pd@01F445=78870000</action>
    </script>
  </cheat>
  
  <cheat desc="Walk Through Opponent">
    <script state="run">
      <action>maincpu.pd@01F3CE=0C800000</action><!-- This Program Code cheat was made by Abystus -->
    </script>
    <script state="off">
      <action>maincpu.pd@01F3CE=72070001</action>
    </script>
  </cheat>

Re: Mortal Kombat 4 (All Versions)

Posted: Fri Apr 17, 2020 2:37 am
by Abystus
Added "Walk Through Opponent" cheat above.

Re: Mortal Kombat 4 (All Versions)

Posted: Sat Apr 18, 2020 11:45 pm
by Abystus
mk4.xml

Code: Select all

  <cheat desc="Disable Blocking (Both Players)">
    <script state="run">
      <action>maincpu.pd@0198D4=6A05002C</action><!-- This Program Code cheat was made by Abystus -->
    </script>
    <script state="off">
      <action>maincpu.pd@0198D4=6A00002C</action>
    </script>
  </cheat>

Re: Mortal Kombat 4 (All Versions)

Posted: Sun May 17, 2020 8:23 pm
by Pugsy
Thanks, added. Replicated for the clones apart from the disable blocking cheat.

Re: Mortal Kombat 4 (All Versions)

Posted: Fri Apr 26, 2024 2:06 pm
by Abystus
mk4.xml

Code: Select all

  <cheat desc="CPU Always Performs A Fatality">
    <script state="on">
      <action>temp0=maincpu.pd@01625D</action>
    </script>
    <script state="run">
      <action>maincpu.pd@01625D=0C800000</action> <!-- This Program Code cheat was made by Abystus -->
    </script>
    <script state="off">
      <action>maincpu.pd@01625D=temp0</action>
    </script>
  </cheat>
mk4a.xml

Code: Select all

  <cheat desc="CPU Always Performs A Fatality">
    <script state="on">
      <action>temp0=maincpu.pd@01691E</action>
    </script>
    <script state="run">
      <action>maincpu.pd@01691E=0C800000</action> <!-- This Program Code cheat was made by Abystus -->
    </script>
    <script state="off">
      <action>maincpu.pd@01691E=temp0</action>
    </script>
  </cheat>
mk4b.xml

Code: Select all

  <cheat desc="CPU Always Performs A Fatality">
    <comment>Normal fatalities are exclusive to Sub-Zero and Quan Chi. However, the Prison stage fatality is applicable to all characters.</comment>
    <script state="on">
      <action>temp0=maincpu.pd@016F95</action>
    </script>
    <script state="run">
      <action>maincpu.pd@016F95=0C800000</action> <!-- This Program Code cheat was made by Abystus -->
    </script>
    <script state="off">
      <action>maincpu.pd@016F95=temp0</action>
    </script>
  </cheat>