Denjin Makai cheats don't load

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
Garsoyas
CheatFinder Private
Posts: 3
Joined: Thu Nov 25, 2021 9:11 pm

Denjin Makai cheats don't load

Post by Garsoyas »

Hello.
I have problem with Denjin Makai cheats.
They don't load. Here the problem : https://imgur.com/a/2BHTWnA
The xml file exists.
For now I have problem only in this game.
Any help?
Thanks.
jman
CheatFinder Sergeant
CheatFinder Sergeant
Posts: 161
Joined: Tue Dec 01, 2020 1:24 pm

Re: Denjin Makai cheats don't load

Post by jman »

Garsoyas wrote:I have problem with Denjin Makai cheats.
They don't load
I confirm that this problem for plug-in cheat. No problem for built-in cheat though.
The following message is printed when start the game.

Code: Select all

[LUA ERROR] in execute_function: plugins/cheat/cheat_xml.lua:21: attempt to index a nil value (local 'str')
And line 21 (to 48) in denjinmk.xml (official 0.221 package) is...

Code: Select all

  <!--    <cheat desc="Desperation moves (Both Players)"> <comment>Desperation move always available, independent of health and power meter.</comment> -->
  <!--      <script state="on"> -->
  <!--        <action>temp0=maincpu.mw@8EF24</action> -->
  <!--        <action>temp1=maincpu.mw@8CA20</action> -->
  <!--        <action>temp2=maincpu.mw@9903E</action> -->
  <!--        <action>temp3=maincpu.mw@93CF6</action> -->
  <!--        <action>temp4=maincpu.mw@918A6</action> -->
  <!--        <action>temp5=maincpu.mw@9BA06</action> -->
  <!--      </script> -->
  <!--      <script state="run"> -->
  <!--        <action>maincpu.pb@110B1F=02</action> -->
  <!--        <action>maincpu.pb@110C3F=02</action> -->
  <!--        <action>maincpu.mw@8EF24=0000</action> <!== This ROM cheat was made by syndromtr ==> -->
  <!--        <action>maincpu.mw@8CA20=0000</action> -->
  <!--        <action>maincpu.mw@9903E=0000</action> -->
  <!--        <action>maincpu.mw@93CF6=0000</action> -->
  <!--        <action>maincpu.mw@918A6=0000</action> -->
  <!--        <action>maincpu.mw@9BA06=0000</action> -->
  <!--      </script> -->
  <!--      <script state="off"> -->
  <!--        <action>maincpu.mw@8EF24=temp0</action> -->
  <!--        <action>maincpu.mw@8CA20=temp1</action> -->
  <!--        <action>maincpu.mw@9903E=temp2</action> -->
  <!--        <action>maincpu.mw@93CF6=temp3</action> -->
  <!--        <action>maincpu.mw@918A6=temp4</action> -->
  <!--        <action>maincpu.mw@9BA06=temp5</action> -->
  <!--      </script> -->
  <!--    </cheat> -->
Perhaps xml parser for plug-in cheat fails to interpret "comment out tag" with this format.

Anyway, I suggest 3 ways to solve it.
  1. Use built-in cheat (It's very simple but easy fix)
  2. Delete the above "comment out tag" lines from denjinmk.xml.
  3. Replace your cheat package with 0.187 (Release Date: 7th July 2017) without the above "comment out tag" lines.
But I check in 0.238 (the latest version in this time) and not test in 0.195 (I think no longer support this version though) so that this problem will be not solved by the above ways.
Garsoyas
CheatFinder Private
Posts: 3
Joined: Thu Nov 25, 2021 9:11 pm

Re: Denjin Makai cheats don't load

Post by Garsoyas »

jman wrote: Fri Nov 26, 2021 9:52 am
  1. Replace your cheat package with 0.187 (Release Date: 7th July 2017) without the above "comment out tag" lines.
I did this and works. Thanks for the help.
Post Reply