Cheats making build and frontend crash in some games

If you are having problems finding or using cheats for an Emulator (particularly MAME/MESS) or have found a trick that you wish to share this is the place to do it. But please read the Cheat FAQ first.
Post Reply
User avatar
Cpt.Guapo
Posts: 7
Joined: Wed Apr 01, 2009 5:22 pm

Cheats making build and frontend crash in some games

Post by Cpt.Guapo »

Hi, everyone.

Whenever I enable cheats (latest) on MEWUI and M+GUI (latest x64 versions), some games as Samurai Shodown III and IV, Real Bout Fatal Fury 1 and 2 and WWF: WrestleMania make them crash, first passing the loading screens and hanging on initializing ones.

When cheats are disabled the problem disappears. I'm using Vista 64 Ultimate.

Any help would be much appreciated.
"Mythology is what grownups believe, folklore is what they tell children and religion is both."
User avatar
Cpt.Guapo
Posts: 7
Joined: Wed Apr 01, 2009 5:22 pm

Re: Cheats making build and frontend crash in some games

Post by Cpt.Guapo »

Well, I decided to test the previous cheat files since I got nothing out there. The 0.142 file is OK so far. Hope someone could check the apparent issue of the most recent file.
"Mythology is what grownups believe, folklore is what they tell children and religion is both."
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: Cheats making build and frontend crash in some games

Post by Pugsy »

Just downloaded MEWUI
Extracted to a new folder
Ran "mewui.exe -cc" from the commandline to create a mame.ini file
Edited mame.ini to point to my roms dir
copied cheat.7z into the mewui folder
Ran "mewui samsho3" and enabled a few cheats and it works fine - no crashing.

If you follow the exact same steps does it crash for you?
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
User avatar
Cpt.Guapo
Posts: 7
Joined: Wed Apr 01, 2009 5:22 pm

Re: Cheats making build and frontend crash in some games

Post by Cpt.Guapo »

Yep, it does. The issue continues with 0.143 to 0.149 cheat files. I did those steps several times, clean installs, tried root folder, specific folder, but nothing changed... :( FWIW, Wayder's cheats are running OK...
"Mythology is what grownups believe, folklore is what they tell children and religion is both."
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: Cheats making build and frontend crash in some games

Post by Pugsy »

Don't know what to tell you - I downloaded MEWUI "0.201 - 01.08.2013" and it works fine for me. I'm using Windows 7 X64, so not vastly different from you.

As you are the only person reporting to have this problem maybe there's something on your system that is screwing things up like a software firewall or anti-virus program?

Also, try copying just the cheat xmls you are having problems with to the cheat folder and delete the cheat.7z file.

Other than that I haven't a clue.
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
User avatar
Cpt.Guapo
Posts: 7
Joined: Wed Apr 01, 2009 5:22 pm

Re: Cheats making build and frontend crash in some games

Post by Cpt.Guapo »

OK, I give up. It really seems to be something on my system. I re-checked everything including your latest suggestions and nada... I'll stick to 0.142 file. It works flawlessly with it. Thanks a lot, Pugsy.
"Mythology is what grownups believe, folklore is what they tell children and religion is both."
User avatar
Cpt.Guapo
Posts: 7
Joined: Wed Apr 01, 2009 5:22 pm

Re: Cheats making build and frontend crash in some games

Post by Cpt.Guapo »

Hey, Pugsy. Just a update to verify if this has something to do with the problem and maybe its solving.

I'm using MAME64 0.150 now, all latest files and extras. The crashing as I described continues, in x64 official binary, latest MEWUI and M+GUI. But, this time, official binary and M+GUI give me the following error message:

Code: Select all

-----------------------------------------------------
Exception at EIP=00000000020470C0 (parsed_expression::normalize_operator(parsed_expression::parse_token*, parsed_expression::parse_token&)+0x0080): ACCESS VIOLATION
While attempting to read memory at 000000002BC215C0
-----------------------------------------------------
RAX=0000000000850085 RBX=FFFFFFFFFC801E60 RCX=0000000012D1FC48 RDX=000000002BC215B8
RSI=0000000013AC9097 RDI=000000000584A74E RBP=00000000002268C0 RSP=0000000000226880
R8=0000000012E48A40 R9=000000000E000029 R10=0000000012E48A80 R11=00000000020470A0
R12=0000000006B35AC0 R13=00000000000003E7 R14=0000000000000000 R15=0000000000000000
------------------------------------------
-----------
Stack crawl:
0000000000226880: 00000000020470C0 (parsed_expression::normalize_operator(parsed_expression::parse_to
ken*, parsed_expression::parse_token&)+0x0080)
00000000002269B0: 000000000204B038 (parsed_expression::infix_to_postfix()+0x022
8)
0000000000226B20: 0000000002074B12 (cheat_script::script_entry::script_entry(cheat_manager&, symbol_table&, char const*, xm
l_data_node&, bool)+0x01b2)
0000000000226C20: 00000000020754DE (cheat_script::cheat_script(cheat_manager&, symbol_table&, char
const*, xml_data_node&)+0x02ee)
0000000000226DE0: 0000000002076C31 (cheat_entry::cheat_entry(cheat_manager&, symbol_table&, c
har const*, xml_data_node&)+0x0501)
0000000000227180: 00000000
02078656 (cheat_manager::load_cheats(char const*)+0x02a6)
0000
0000002274B0: 0000000002078FCA (cheat_manager::reload()+0x054a)
00000000002275F0: 0000000002079378 (cheat_manager::cheat_manag
er(running_machine&)+0x0268)
0000000000227950: 0000000001F7305
6 (running_machine::start()+0x09f6)
0000000000227B40: 00000000
01F7398A (running_machine::run(bool)+0x02ea)
000000000022F350: 0000000001EBFE3E (mame_execute(emu_options&, osd_interface&)+0x
050e)
000000000022F890: 000000000201BDA3 (cli_frontend::execut
e(int, char**)+0x0d23)
000000000022FE00: 0000000001593FC4 (utf
8_main(int, char**)+0x0454)
000000000022FE60: 0000000002266FCC
(wmain+0x007c)
000000000022FF20: 00000000004013F0 (__tmainCRT
Startup+0x0270)
000000000022FF50: 00000000004014F8 (mainCRTStartup+0x0018)
000000000022FF80: 0000000076B5B1BD (BaseThreadInitThunk+0x000d)
000000000022FFD0: 0000000077226861 (RtlUserThreadStart+0x0021)


Does this help in any form to clarify things, to point out where the problem might be?
"Mythology is what grownups believe, folklore is what they tell children and religion is both."
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: Cheats making build and frontend crash in some games

Post by Pugsy »

Doesn't really help, though there are a few things to try:-

Replace all text in samsho3.xml with this:-

Code: Select all

<mamecheat version="1">

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pb@10849E=99</action>
    </script>
  </cheat>

  <cheat desc="Finish this Round Now!">
    <script state="on">
      <action>maincpu.pb@10849E=00</action>
    </script>
  </cheat>

  <cheat desc="Select Backdrop">
    <parameter>
      <item value="0x00">Haohmaru</item>
      <item value="0x01">Nakoruru</item>
      <item value="0x02">Rimururu</item>
      <item value="0x03">Hanzo Hattori</item>
      <item value="0x04">Galford</item>
      <item value="0x05">Kyoshiro Senryou</item>
      <item value="0x06">Ukyo Tachibana</item>
      <item value="0x07">Genjuro Kibagami</item>
      <item value="0x08">Kubikiri Basara</item>
      <item value="0x09">Shizumaru Hisame</item>
      <item value="0x0A">Gaira Kafuin</item>
      <item value="0x0B">Amakusa Shirou Tokisada</item>
      <item value="0x0C">Kuroko</item>
      <item value="0x0D">Zankuro Minazuki</item>
      <item value="0x0E">Zankuro Minazuki (Final Battle)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@109069=param</action>
    </script>
  </cheat>

  <cheat desc="Hit Anywhere (Both Players)">
    <script state="on">
      <action>temp0 =maincpu.mw@01773E</action>
    </script>
    <script state="run">
      <action>maincpu.mw@01773E=05CC</action> <!-- This ROM cheat was made by nolberto82 -->
    </script>
    <script state="off">
      <action>maincpu.mw@01773E=temp0 </action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Energy PL1">
    <script state="run">
      <action>maincpu.pb@108573=80</action>
    </script>
  </cheat>

  <cheat desc="Drain All Energy Now! PL1">
    <script state="on">
      <action>maincpu.pb@108573=00</action>
    </script>
  </cheat>

  <cheat desc="Infinite Power PL1">
    <script state="run">
      <action>maincpu.pb@10857C=40</action>
    </script>
  </cheat>

  <cheat desc="Drain All Power Now! PL1">
    <script state="on">
      <action>maincpu.pb@10857C=00</action>
    </script>
  </cheat>

  <cheat desc="Select Rounds Won PL1">
    <parameter min="0" max="2" step="1"/>
    <script state="run">
      <action>maincpu.pb@108592=(param)</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL1"> <comment>Free player selection. Activate between rounds or just after selection. There are however some glitches, eg. when you win with Zankuro Minazuki.</comment>
    <parameter>
      <item value="0x00">Haohmaru</item>
      <item value="0x01">Nakoruru</item>
      <item value="0x02">Rimururu</item>
      <item value="0x03">Hanzo Hattori</item>
      <item value="0x04">Galford</item>
      <item value="0x05">Kyoshiro Senryou</item>
      <item value="0x06">Ukyo Tachibana</item>
      <item value="0x07">Genjuro Kibagami</item>
      <item value="0x08">Kubikiri Basara</item>
      <item value="0x09">Shizumaru Hisame</item>
      <item value="0x0A">Gaira Kafuin</item>
      <item value="0x0B">Amakusa Shirou Tokisada</item>
      <item value="0x0C">#Kuroko</item>
      <item value="0x0D">#Zankuro Minazuki</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108470=param|(maincpu.pb@108470 BAND ~0F)</action>
    </script>
  </cheat>

  <cheat desc="Select Playing Style PL1">
    <parameter>
      <item value="0x00">Slash</item>
      <item value="0x50">Bust</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108470=param|(maincpu.pb@108470 BAND ~50)</action>
    </script>
  </cheat>

  <cheat desc="Select Character Colour PL1">
    <parameter>
      <item value="0x00">A colour</item>
      <item value="0x80">B colour</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108470=param|(maincpu.pb@108470 BAND ~80)</action>
    </script>
  </cheat>

  <cheat desc="Select Character Difficulty PL1">
    <parameter>
      <item value="0x00">Beginners Class</item>
      <item value="0x01">Medium Grade</item>
      <item value="0x02">Upper Grade</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108472=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Energy PL2">
    <script state="run">
      <action>maincpu.pb@108673=80</action>
    </script>
  </cheat>

  <cheat desc="Drain All Energy Now! PL2">
    <script state="on">
      <action>maincpu.pb@108673=00</action>
    </script>
  </cheat>

  <cheat desc="Infinite Power PL2">
    <script state="run">
      <action>maincpu.pb@10867C=40</action>
    </script>
  </cheat>

  <cheat desc="Drain All Power Now! PL2">
    <script state="on">
      <action>maincpu.pb@10867C=00</action>
    </script>
  </cheat>

  <cheat desc="Select Rounds Won PL2">
    <parameter min="0" max="2" step="1"/>
    <script state="run">
      <action>maincpu.pb@108692=(param)</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL2"> <comment>Free player selection. Activate between rounds or just after selection. There are however some glitches, eg. when you win with Zankuro Minazuki.</comment>
    <parameter>
      <item value="0x00">Haohmaru</item>
      <item value="0x01">Nakoruru</item>
      <item value="0x02">Rimururu</item>
      <item value="0x03">Hanzo Hattori</item>
      <item value="0x04">Galford</item>
      <item value="0x05">Kyoshiro Senryou</item>
      <item value="0x06">Ukyo Tachibana</item>
      <item value="0x07">Genjuro Kibagami</item>
      <item value="0x08">Kubikiri Basara</item>
      <item value="0x09">Shizumaru Hisame</item>
      <item value="0x0A">Gaira Kafuin</item>
      <item value="0x0B">Amakusa Shirou Tokisada</item>
      <item value="0x0C">#Kuroko</item>
      <item value="0x0D">#Zankuro Minazuki</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108471=param|(maincpu.pb@108471 BAND ~0F)</action>
    </script>
  </cheat>

  <cheat desc="Select Playing Style PL2">
    <parameter>
      <item value="0x00">Slash</item>
      <item value="0x50">Bust</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108471=param|(maincpu.pb@108471 BAND ~50)</action>
    </script>
  </cheat>

  <cheat desc="Select Character Colour PL2">
    <parameter>
      <item value="0x00">A colour</item>
      <item value="0x80">B colour</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108471=param|(maincpu.pb@108471 BAND ~80)</action>
    </script>
  </cheat>

  <cheat desc="Select Character Difficulty PL2">
    <parameter>
      <item value="0x00">Beginners Class</item>
      <item value="0x01">Medium Grade</item>
      <item value="0x02">Upper Grade</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108473=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Hide Background"> <comment>Activate before match start</comment>
    <script state="on">
      <action>
        temp0=maincpu.ow@013E8A, maincpu.ow@013E8A=4E71,
        temp1=maincpu.ow@013E96, maincpu.ow@013E96=4E71,
        temp2=maincpu.od@013E9C, maincpu.od@013E9C=4E714E71, <!-- solid shadows -->
        temp3=maincpu.od@01A0E6, maincpu.od@01A0E6=4E754E71 <!-- timer -->
      </action>
    </script>
    <script state="run">
      <action condition="maincpu.pb@10A3A0 == 0B"> <!-- activate only during match -->
        maincpu.pb@10B581=00, <!-- HUD -->
        maincpu.pb@10A0DB=02, <!-- BG layers -->
        maincpu.pd@10A0DE=8F8F8F8F <!-- BG color (pink) -->
      </action>
    </script>
    <script state="off">
      <action>
        maincpu.ow@013E8A=temp0, maincpu.ow@013E96=temp1,
        maincpu.od@013E9C=temp2, maincpu.od@01A0E6=temp3
      </action>
    </script>
  </cheat>

  <cheat desc="No Background Music">
    <script state="run">
      <action>audiocpu.pb@FE1A=00</action>
    </script>
  </cheat>

  <cheat desc="Select Cartridge/NeoGeo Type"> <comment>Use in conjuction with the 'Skip RAM/ROM Checks' cheat for the best effect, then enable it and reset. The Home (NEOGEO) setting may open up other aspects of the game or it may even make the game unplayable.</comment>
    <parameter>
      <item value="0x80">Arcade (MVS)</item>
      <item value="0x00">Home (NEOGEO)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@10FD82=param</action>
    </script>
  </cheat>

  <cheat desc="Skip RAM/ROM Checks"> <comment>Also allows a quicker start-up without the green screens. It's better to use together with Pre-Enable.</comment>
    <script state="on">
      <action>temp0 =maincpu.rd@C1315C</action>
      <action>temp1 =maincpu.rd@C1314E</action>
      <action>temp2 =maincpu.rd@C131E8</action>
      <action>temp3 =maincpu.rd@C13184</action>
      <action>temp4 =maincpu.rd@C1212E</action>
      <action>temp5 =maincpu.rd@C134FA</action>
    </script>
    <script state="run">
      <action condition="(maincpu.rd@C1315C==51CFFFF2)">maincpu.rd@C1315C=6000EB08</action> <!-- Euro + Japan-S2 BIOSs -->
      <action condition="(maincpu.rd@C1314E==51CFFFF2)">maincpu.rd@C1314E=6000EB16</action> <!-- Euro-S1 + Japan-S1 BIOSs -->
      <action condition="(maincpu.rd@C131E8==51CFFFF2)">maincpu.rd@C131E8=6000EA52</action> <!-- US BIOS -->
      <action condition="(maincpu.rd@C13184==51CFFFF2)">maincpu.rd@C13184=6000EAB6</action> <!-- US-E BIOS -->
      <action condition="(maincpu.rd@C1212E==51CFFFF2)">maincpu.rd@C1212E=6000EB36</action> <!-- Asia BIOS -->
      <action condition="(maincpu.rd@C134FA==51CFFFF2)">maincpu.rd@C134FA=6000E892</action> <!-- Japan BIOS -->
    </script>
    <script state="off">
      <action>maincpu.rd@C1315C=temp0 </action>
      <action>maincpu.rd@C1314E=temp1 </action>
      <action>maincpu.rd@C131E8=temp2 </action>
      <action>maincpu.rd@C13184=temp3 </action>
      <action>maincpu.rd@C1212E=temp4 </action>
      <action>maincpu.rd@C134FA=temp5 </action>
    </script>
  </cheat>

</mamecheat>
<!-- Cheat file downloaded from http://www.mamecheat.co.uk, see cheat.txt for list of contributors. -->
If that works without crashing, then try replacing all text with :-

Code: Select all

<mamecheat version="1">

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pb@10849E=99</action>
    </script>
  </cheat>

  <cheat desc="Finish this Round Now!">
    <script state="on">
      <action>maincpu.pb@10849E=00</action>
    </script>
  </cheat>

  <cheat desc="Select Backdrop">
    <parameter>
      <item value="0x00">Haohmaru</item>
      <item value="0x01">Nakoruru</item>
      <item value="0x02">Rimururu</item>
      <item value="0x03">Hanzo Hattori</item>
      <item value="0x04">Galford</item>
      <item value="0x05">Kyoshiro Senryou</item>
      <item value="0x06">Ukyo Tachibana</item>
      <item value="0x07">Genjuro Kibagami</item>
      <item value="0x08">Kubikiri Basara</item>
      <item value="0x09">Shizumaru Hisame</item>
      <item value="0x0A">Gaira Kafuin</item>
      <item value="0x0B">Amakusa Shirou Tokisada</item>
      <item value="0x0C">Kuroko</item>
      <item value="0x0D">Zankuro Minazuki</item>
      <item value="0x0E">Zankuro Minazuki (Final Battle)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@109069=param</action>
    </script>
  </cheat>

  <cheat desc="Hit Anywhere (Both Players)">
    <script state="on">
      <action>temp0 =maincpu.mw@01773E</action>
    </script>
    <script state="run">
      <action>maincpu.mw@01773E=05CC</action> <!-- This ROM cheat was made by nolberto82 -->
    </script>
    <script state="off">
      <action>maincpu.mw@01773E=temp0 </action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Energy PL1">
    <script state="run">
      <action>maincpu.pb@108573=80</action>
    </script>
  </cheat>

  <cheat desc="Drain All Energy Now! PL1">
    <script state="on">
      <action>maincpu.pb@108573=00</action>
    </script>
  </cheat>

  <cheat desc="Infinite Power PL1">
    <script state="run">
      <action>maincpu.pb@10857C=40</action>
    </script>
  </cheat>

  <cheat desc="Drain All Power Now! PL1">
    <script state="on">
      <action>maincpu.pb@10857C=00</action>
    </script>
  </cheat>

  <cheat desc="Select Rounds Won PL1">
    <parameter min="0" max="2" step="1"/>
    <script state="run">
      <action>maincpu.pb@108592=(param)</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL1"> <comment>Free player selection. Activate between rounds or just after selection. There are however some glitches, eg. when you win with Zankuro Minazuki.</comment>
    <parameter>
      <item value="0x00">Haohmaru</item>
      <item value="0x01">Nakoruru</item>
      <item value="0x02">Rimururu</item>
      <item value="0x03">Hanzo Hattori</item>
      <item value="0x04">Galford</item>
      <item value="0x05">Kyoshiro Senryou</item>
      <item value="0x06">Ukyo Tachibana</item>
      <item value="0x07">Genjuro Kibagami</item>
      <item value="0x08">Kubikiri Basara</item>
      <item value="0x09">Shizumaru Hisame</item>
      <item value="0x0A">Gaira Kafuin</item>
      <item value="0x0B">Amakusa Shirou Tokisada</item>
      <item value="0x0C">#Kuroko</item>
      <item value="0x0D">#Zankuro Minazuki</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108470=param|(maincpu.pb@108470 BAND ~0F)</action>
    </script>
  </cheat>

  <cheat desc="Select Playing Style PL1">
    <parameter>
      <item value="0x00">Slash</item>
      <item value="0x50">Bust</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108470=param|(maincpu.pb@108470 BAND ~50)</action>
    </script>
  </cheat>

  <cheat desc="Select Character Colour PL1">
    <parameter>
      <item value="0x00">A colour</item>
      <item value="0x80">B colour</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108470=param|(maincpu.pb@108470 BAND ~80)</action>
    </script>
  </cheat>

  <cheat desc="Select Character Difficulty PL1">
    <parameter>
      <item value="0x00">Beginners Class</item>
      <item value="0x01">Medium Grade</item>
      <item value="0x02">Upper Grade</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108472=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Energy PL2">
    <script state="run">
      <action>maincpu.pb@108673=80</action>
    </script>
  </cheat>

  <cheat desc="Drain All Energy Now! PL2">
    <script state="on">
      <action>maincpu.pb@108673=00</action>
    </script>
  </cheat>

  <cheat desc="Infinite Power PL2">
    <script state="run">
      <action>maincpu.pb@10867C=40</action>
    </script>
  </cheat>

  <cheat desc="Drain All Power Now! PL2">
    <script state="on">
      <action>maincpu.pb@10867C=00</action>
    </script>
  </cheat>

  <cheat desc="Select Rounds Won PL2">
    <parameter min="0" max="2" step="1"/>
    <script state="run">
      <action>maincpu.pb@108692=(param)</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL2"> <comment>Free player selection. Activate between rounds or just after selection. There are however some glitches, eg. when you win with Zankuro Minazuki.</comment>
    <parameter>
      <item value="0x00">Haohmaru</item>
      <item value="0x01">Nakoruru</item>
      <item value="0x02">Rimururu</item>
      <item value="0x03">Hanzo Hattori</item>
      <item value="0x04">Galford</item>
      <item value="0x05">Kyoshiro Senryou</item>
      <item value="0x06">Ukyo Tachibana</item>
      <item value="0x07">Genjuro Kibagami</item>
      <item value="0x08">Kubikiri Basara</item>
      <item value="0x09">Shizumaru Hisame</item>
      <item value="0x0A">Gaira Kafuin</item>
      <item value="0x0B">Amakusa Shirou Tokisada</item>
      <item value="0x0C">#Kuroko</item>
      <item value="0x0D">#Zankuro Minazuki</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108471=param|(maincpu.pb@108471 BAND ~0F)</action>
    </script>
  </cheat>

  <cheat desc="Select Playing Style PL2">
    <parameter>
      <item value="0x00">Slash</item>
      <item value="0x50">Bust</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108471=param|(maincpu.pb@108471 BAND ~50)</action>
    </script>
  </cheat>

  <cheat desc="Select Character Colour PL2">
    <parameter>
      <item value="0x00">A colour</item>
      <item value="0x80">B colour</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108471=param|(maincpu.pb@108471 BAND ~80)</action>
    </script>
  </cheat>

  <cheat desc="Select Character Difficulty PL2">
    <parameter>
      <item value="0x00">Beginners Class</item>
      <item value="0x01">Medium Grade</item>
      <item value="0x02">Upper Grade</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@108473=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Hide Background"> <comment>Activate before match start</comment>
    <script state="on">
      <action>
        temp0=maincpu.ow@013E8A, maincpu.ow@013E8A=4E71,
        temp1=maincpu.ow@013E96, maincpu.ow@013E96=4E71,
        temp2=maincpu.od@013E9C, maincpu.od@013E9C=4E714E71, <!--solid shadows-->
        temp3=maincpu.od@01A0E6, maincpu.od@01A0E6=4E754E71 <!--timer-->
      </action>
    </script>
    <script state="run">
      <action condition="maincpu.pb@10A3A0 == 0B"> <!--activate only during match-->
        maincpu.pb@10B581=00, <!--HUD-->
        maincpu.pb@10A0DB=02, <!--BG layers-->
        maincpu.pd@10A0DE=8F8F8F8F <!--BG color (pink)-->
      </action>
    </script>
    <script state="off">
      <action>
        maincpu.ow@013E8A=temp0, maincpu.ow@013E96=temp1,
        maincpu.od@013E9C=temp2, maincpu.od@01A0E6=temp3
      </action>
    </script>
  </cheat>

  <cheat desc="No Background Music">
    <script state="run">
      <action>audiocpu.pb@FE1A=00</action>
    </script>
  </cheat>

  <cheat desc="Select Cartridge/NeoGeo Type"> <comment>Use in conjuction with the 'Skip RAM/ROM Checks' cheat for the best effect, then enable it and reset. The Home (NEOGEO) setting may open up other aspects of the game or it may even make the game unplayable.</comment>
    <parameter>
      <item value="0x80">Arcade (MVS)</item>
      <item value="0x00">Home (NEOGEO)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@10FD82=param</action>
    </script>
  </cheat>

  <cheat desc="Skip RAM/ROM Checks"> <comment>Also allows a quicker start-up without the green screens. It's better to use together with Pre-Enable.</comment>
    <script state="on">
      <action>temp0 =maincpu.rd@C1315C</action>
      <action>temp1 =maincpu.rd@C1314E</action>
      <action>temp2 =maincpu.rd@C131E8</action>
      <action>temp3 =maincpu.rd@C13184</action>
      <action>temp4 =maincpu.rd@C1212E</action>
      <action>temp5 =maincpu.rd@C134FA</action>
    </script>
    <script state="run">
      <action condition="(maincpu.rd@C1315C==51CFFFF2)">maincpu.rd@C1315C=6000EB08</action> <!-- Euro + Japan-S2 BIOSs -->
      <action condition="(maincpu.rd@C1314E==51CFFFF2)">maincpu.rd@C1314E=6000EB16</action> <!-- Euro-S1 + Japan-S1 BIOSs -->
      <action condition="(maincpu.rd@C131E8==51CFFFF2)">maincpu.rd@C131E8=6000EA52</action> <!-- US BIOS -->
      <action condition="(maincpu.rd@C13184==51CFFFF2)">maincpu.rd@C13184=6000EAB6</action> <!-- US-E BIOS -->
      <action condition="(maincpu.rd@C1212E==51CFFFF2)">maincpu.rd@C1212E=6000EB36</action> <!-- Asia BIOS -->
      <action condition="(maincpu.rd@C134FA==51CFFFF2)">maincpu.rd@C134FA=6000E892</action> <!-- Japan BIOS -->
    </script>
    <script state="off">
      <action>maincpu.rd@C1315C=temp0 </action>
      <action>maincpu.rd@C1314E=temp1 </action>
      <action>maincpu.rd@C131E8=temp2 </action>
      <action>maincpu.rd@C13184=temp3 </action>
      <action>maincpu.rd@C1212E=temp4 </action>
      <action>maincpu.rd@C134FA=temp5 </action>
    </script>
  </cheat>

</mamecheat>
<!-- Cheat file downloaded from http://www.mamecheat.co.uk, see cheat.txt for list of contributors. -->
Hopefully the first one will work and the second one will crash.

BTW, both work for me. Let me know how you get on.
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
User avatar
Cpt.Guapo
Posts: 7
Joined: Wed Apr 01, 2009 5:22 pm

Re: Cheats making build and frontend crash in some games

Post by Cpt.Guapo »

Pugsy, the latter worked like a charm. The former don't. Exactly the contrary behavior you predicted... :-)

Considering what you did is a fix, and since I have the same problem with Samurai Shodowns and Real Bouts, how could I implement this? I mean, if you could explain what I have to do, it would be great!
"Mythology is what grownups believe, folklore is what they tell children and religion is both."
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: Cheats making build and frontend crash in some games

Post by Pugsy »

That makes no sense, the first replace is the altered cheats.....the second replace is identical to what is in the file already.

Are you absolutely sure that the first replace didn't work!!
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
User avatar
Cpt.Guapo
Posts: 7
Joined: Wed Apr 01, 2009 5:22 pm

Re: Cheats making build and frontend crash in some games

Post by Cpt.Guapo »

Yes, I'm sure. I did the process three times... Four after see your reply...
"Mythology is what grownups believe, folklore is what they tell children and religion is both."
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: Cheats making build and frontend crash in some games

Post by Pugsy »

The only possible difference between the existing file and the second snippet from above is the file may have an extra carriage return at the end - and I can't believe that is it. Open the two files in HxD and do a binary file compare you will see what I mean....

There's nothing more I can do
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
Post Reply