[ オリジナルレポート ]

BugID: #09552

カテゴリ 重要度 ステータス 解決状況 登録日時 最終更新
プラグイン新規未処理2026-09-19 20:57昨日 00:57
 
テスターRussell担当者 ソース
バージョン0.289発生バージョン修正バージョン
修正コミットプルリク
フラグ
セット
セット詳細
 
概 要Luaチートプラグインの|=表記が動作しない。
詳 細The Lua Cheat plugin cannot load an XML cheat action containing the MAME compound assignment operator like this one |=.
The same XML expression is accepted and executed correctly by MAME's regular built-in cheat engine. However, when the cheat is loaded through the Lua Cheat plugin, a pop-up error is displayed:
e.g.
<action>maincpu.pb@202A26 |= 01</action>
error cheat script error: "Compound assignment test" [string "Compound assignment testrun"]:1: unexpected symbol near '|'
再現手順1. Use an official MAME 0.289
2. Enable the Cheat Lua plugin.
https://www.mamecheat.co.uk/forums/viewtopic.php?t=14201
3. Place the XML example above in the configured cheat path as metamrph.xml
4. Start the game.
5. Open Plugin Options, then Cheat.
6. Observe the Lua compilation error near '|'.
追加情報The relevant regular-expression implementation is:

https://github.com/mamedev/mame/blob/mame0289/src/emu/debug/express.cpp

The XML converter that does not currently expand |= is:

https://github.com/mamedev/mame/blob/mame0289/plugins/cheat/cheat_xml.lua

Edit:
In case it is helpful for investigating this issue, I have posted my modified cheat_xml.lua. The file adds tested conversion support for the complete compound-assignment family and several other commonly used MAME XML expressions and conditions. And sorry about duplicated reports.

https://www.mamecheat.co.uk/forums/viewtopic.php?p=29916#p29916
 
添付ファイル