Page 3 of 3

Re: [mk] Mortal Kombat (rev 5.0 T-Unit 03/19/93)

Posted: Thu May 23, 2024 3:16 pm
by Abystus
mk.xml

Code: Select all

  <cheat desc="Allow Fighting Before Round Starts">
    <script state="on">
      <action>temp0=maincpu.mw@00092D80</action>
      <action>temp1=maincpu.mw@00092D86</action>
      <action>temp2=maincpu.mw@00092D88</action>
      <action>temp3=maincpu.mw@0009CA82</action>
    </script>
    <script state="run">
      <action condition="(maincpu.pb@1051290 != 08 AND maincpu.pb@1051570 != 08)">maincpu.mw@00092D80=1230</action> <!-- This Program Code cheat was made by Abystus -->
      <action condition="(maincpu.pb@1051290 != 08 AND maincpu.pb@1051570 != 08)">maincpu.mw@00092D86=FFFF</action>
      <action condition="(maincpu.pb@1051290 != 08 AND maincpu.pb@1051570 != 08)">maincpu.mw@00092D88=CA01</action>
      <action condition="(maincpu.pb@1051290 != 08 AND maincpu.pb@1051570 != 08)">maincpu.mw@0009CA82=0300</action>

      <action condition="(maincpu.pb@1051290 == 08 OR maincpu.pb@1051570 == 08)">maincpu.mw@00092D80=temp0</action>
      <action condition="(maincpu.pb@1051290 == 08 OR maincpu.pb@1051570 == 08)">maincpu.mw@00092D86=temp1</action>
      <action condition="(maincpu.pb@1051290 == 08 OR maincpu.pb@1051570 == 08)">maincpu.mw@00092D88=temp2</action>
      <action condition="(maincpu.pb@1051290 == 08 OR maincpu.pb@1051570 == 08)">maincpu.mw@0009CA82=temp3</action>
    </script>
    <script state="off">
      <action>maincpu.mw@00092D80=temp0</action>
      <action>maincpu.mw@00092D86=temp1</action>
      <action>maincpu.mw@00092D88=temp2</action>
      <action>maincpu.mw@0009CA82=temp3</action>
    </script>
  </cheat>

Re: [mk] Mortal Kombat (rev 5.0 T-Unit 03/19/93)

Posted: Sun May 26, 2024 11:41 pm
by Abystus
mk.xml

Code: Select all

  <cheat desc="Clue Character Does Not Vanish">
    <script state="on">
      <action>temp0=maincpu.mw@000943A6</action>
      <action>temp1=maincpu.mw@000943C0</action>
    </script>
    <script state="run">
      <action>maincpu.mw@000943A6=C00A</action> <!-- This Program Code cheat was made by Abystus -->
      <action>maincpu.mw@000943C0=C007</action>
    </script>
    <script state="off">
      <action>maincpu.mw@000943A6=temp0</action>
      <action>maincpu.mw@000943C0=temp1</action>
    </script>
  </cheat>

Re: [mk] Mortal Kombat (rev 5.0 T-Unit 03/19/93)

Posted: Fri Jul 05, 2024 4:57 am
by leo_cor3
I would like a code so that the fight in "attract mode" does not end. I suppose the fight time should be controlled by a counter but I can't figure out how to stop that counter.
I've been trying to figure this out for weeks, any help I would greatly appreciate, thank you.

Re: [mk] Mortal Kombat (rev 5.0 T-Unit 03/19/93)

Posted: Mon Jul 08, 2024 4:37 pm
by Abystus
leo_cor3 wrote: Fri Jul 05, 2024 4:57 am I would like a code so that the fight in "attract mode" does not end. I suppose the fight time should be controlled by a counter but I can't figure out how to stop that counter.
I've been trying to figure this out for weeks, any help I would greatly appreciate, thank you.
The below code should be what you want (enable it when the demo fight starts):

mk.xml

Code: Select all

  <cheat desc="Watch Current Screen Forever">
    <script state="on">
      <action>temp0=maincpu.pw@10533C0</action>
    </script>
    <script state="run">
      <action>maincpu.pw@10533C0=0FFF</action>
    </script>
    <script state="off">
      <action>maincpu.pw@10533C0=temp0</action>
    </script>
  </cheat>

Re: [mk] Mortal Kombat (rev 5.0 T-Unit 03/19/93)

Posted: Mon Jul 08, 2024 8:43 pm
by leo_cor3
Thank you very much, Abistus. It works perfectly on mame that uses .xml cheats.
Can you please convert this cheat to the old format?

I've been trying this for a few hours but I forgot how to do the conversion. From what I remember, just use the offset address and the bytes that will be changed, for example:
:mk:39900000:96094:1A07:FFFFFFFF:End game after defeating any fight vs CPU

Following this example, your cheat would look like this:
:mk:39900000:10533C0:0FFF:FFFFFFFF:Watch Current Screen Forever

But the offset 10533C0 has a high value, even dividing by 2 (to obtain the ROM address the value is still high (10533C0 / 2 = 8299E0) and this address does not exist in the cpu ROM.
So I believe you made a RAM cheat and there is no way to find the address of this cheat in the cpu ROM.

Anyway, if you could convert this cheat to the old format it would help a lot.

Thank you for your attention.

EDIT:
By the way, I am converting my rom hacks and cheats to .xml format, so there is no need for you to figure out this cheat to the old format if it takes a lot of time, I wouldn't want to bother you with that.

Re: [mk] Mortal Kombat (rev 5.0 T-Unit 03/19/93)

Posted: Mon Jul 08, 2024 10:00 pm
by leo_cor3
I developed a mame code that makes the sub-zero spell trigger the cast credit screen. Where the fighters are shown during the current fight as shown in this video:
[youtube]https://youtu.be/jHgT3vJhjL4?list=LL&t=971[/youtube]

However, this cast credits screen has a counter and when it ends, the next credits screen activates.
I would like to know if you can develop code to stop this counter on the cast credits fighters screen.
Image
This way, fighters will be able to fight each other for an indefinite period of time.

Re: [mk] Mortal Kombat (rev 5.0 T-Unit 03/19/93)

Posted: Tue Jul 09, 2024 8:20 pm
by leo_cor3
Abystus wrote: Mon Jul 08, 2024 4:37 pm
leo_cor3 wrote: Fri Jul 05, 2024 4:57 am I would like a code so that the fight in "attract mode" does not end. I suppose the fight time should be controlled by a counter but I can't figure out how to stop that counter.
I've been trying to figure this out for weeks, any help I would greatly appreciate, thank you.
The below code should be what you want (enable it when the demo fight starts):

mk.xml

Code: Select all

  <cheat desc="Watch Current Screen Forever">
    <script state="on">
      <action>temp0=maincpu.pw@10533C0</action>
    </script>
    <script state="run">
      <action>maincpu.pw@10533C0=0FFF</action>
    </script>
    <script state="off">
      <action>maincpu.pw@10533C0=temp0</action>
    </script>
  </cheat>
I was talking to Cle here on the forum and he clarified something for me.
Since this is a RAM cheat, it is necessary to divide the hexadecimal address by 8, therefore:

10533C0/8 = 20A678

This cheat in the old format will look like this:

Code: Select all

:mk:00000000:20A678:0FFF:FFFFFFFF:Watch Current Screen Forever
Tested on Mame version 0.112 and working. Abistus, thanks again for creating this code!