cheat lua plugins

This forum is for making announcements about updated cheat files (for any emulator), updated web pages and of course about improvements to the MAME/MESS cheat engine.
Post Reply
BernaLuke
Posts: 0
Joined: Thu Feb 09, 2023 1:25 pm
Location: NYC USA

Re: cheat lua plugins

Post by BernaLuke »

This is a useful information
bandicoot
Posts: 2
Joined: Sun May 05, 2019 12:40 pm

Re: cheat lua plugins

Post by bandicoot »

hello
Excuse me cause i think a lot of person ask for this but don't find the way to make it possible
Is there a way to apply a cheat when we launch a rom
here's an example for a Lightgun cabinet for disable flash when we shoot
Operation wolf :
<cheat desc="Stop Screen Flashing on Shooting">
<script state="on">
<action>temp0 =maincpu.mb@001131</action>
</script>
<script state="run">
<action>maincpu.mb@001131=02</action>
</script>
<script state="off">
<action>maincpu.mb@001131=temp0 </action>
</script>
</cheat>
thanks
jman
Posts: 1091
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 5 times

cheat finder problem in sms

Post by jman »

In sms, cheat finder doesn't pick up work ram in maincpu.
  1. boot mame with sms (eg mame sms alexkidd)
  2. go to plugin options → cheat finder
  3. check "cpu or ram". You can select ":sms_vdp, videoram" only. Not ":maincpu, program".
jman

my wip cheat database back-up (2024/12/01 ver.)
https://u3.getuploader.com/...../download/47
downloadpass : jman2020
fedekrum
Posts: 4
Joined: Mon Dec 19, 2022 9:50 pm

Re: cheat lua plugins

Post by fedekrum »

I may have found a bug in LUA plugin.

Info at https://www.mamecheat.co.uk/forums/view ... 031#p28031
jman
Posts: 1091
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 5 times

Re: cheat lua plugins

Post by jman »

fedekrum wrote:I may have found a bug in LUA plugin.
Was fixed and no problem in the latest MAME.
jman wrote:In sms, cheat finder doesn't pick up work ram in maincpu.
Problem is at plugins/cheatfind/init.lua - Line 308.

Code: Select all

				for num, entry in pairs(space.map.entries) do
					if entry.write.handlertype == "ram" then
						ram[#ram + 1] = {
							offset = entry.address_start & space.address_mask,
							size = (entry.address_end & space.address_mask) - (entry.address_start & space.address_mask) }
						if space.shift > 0 then
							ram[#ram].size = ram[#ram].size >> space.shift
						elseif space.shift < 0 then
							ram[#ram].size = ram[#ram].size << -space.shift
						end
					end
				end
Handlertype for target entry (0xC000 - 0xFFF7) is not "ram" but "delegate" so that it is not reserved.
If you remove or comment out "entry.write.handlertype == "ram", cheatfind picks up work ram in maincpu and searchable.
But unnecessary entries are reserved at the same time.
jman

my wip cheat database back-up (2024/12/01 ver.)
https://u3.getuploader.com/...../download/47
downloadpass : jman2020
Universal_Gaming
Posts: 0
Joined: Sat Oct 05, 2024 9:50 pm

Re: cheat lua plugins

Post by Universal_Gaming »

Imagehttps://preview.redd.it/cannot-find-set ... 43cea6f284 Is there a way I can have this option using cheats for Mam0270???
Post Reply