ROM cheats for megadrive in MESS

This forum is for posting cheats for any non-arcade game in M.A.M.E. ( aka the M.E.S.S. games ) including any softwarelist game. Requests will be fulfilled here....but please keep the requests to the requests forum.
etabeta78
CheatFinder Private
Posts: 32
Joined: Tue Dec 05, 2006 9:46 pm
Location: Trondheim, Norway

ROM cheats for megadrive in MESS

Postby etabeta78 » Fri Sep 05, 2014 11:45 am

More than one year ago, rimsky82 reported the impossibility to create ROM cheats in MESS for megadrive since the system is now using slot devices for carts (see also MT bug 05488)

I think I have fixed (in svn revision 31900) the problem, and thus now ROM cheats should be possible again: cart data is now accessible "live" in the region "cartslot:cart:rom" (notice the :cart part, because there is also a "cartslot:rom" when you load from softlist, but that is ignored after loading procedure is over)

Since I would like to port the same changes to NES, SMS, GB, SNES, etc. (so to make possible again ROM cheats in all these), I would appreciate if someone around here could test whether the behavior is now the one you guys expect (rimsky82 seems to be on partial hiatus, and I have no account at gamehacking boards...
I was able to change the number of starting lives for Sonic 2 in MESS by editing the ROM from the debugger, so I guess the new code works at least partially, but I'm not really a cheat expert and your feedbacks could help me a lot :)

User avatar
Pugsy
CheatFinder General
CheatFinder General
Posts: 3166
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Contact:

Re: ROM cheats for megadrive in MESS

Postby Pugsy » Fri Sep 05, 2014 7:42 pm

What's the command to poke the memory in the debugger? It's possible to edit "mdslot:cart:rom" directly in the memory window but that's of little use for cheats unfortunately.

As an example in dinotale for Invincibility we used to type in the debugger main commandline:-

maincpu.mw@004646=6054

The question is what do we replace "maincpu.mw" with so that it pokes mdslot:cart:rom?

mdslot:cart:rom.mw@004646=6054
mdslot:cart:rom.w@004646=6054
mdslot:cart:rom.pw@004646=6054

Are all invalid and
mdslot.mw@004646=6054
kills MESS dead
Pugsy

Servicing your cheating needs since 1985 ;-)

Grab the latest cheat collection:
MAME 0.187 XML cheat collection 7 JULY 2017) from http://www.mamecheat.co.uk or direct from:-
http://www.mediafire.com/file/0dvubha3b ... at0187.zip (ZIP Archive 1826 KB)

etabeta78
CheatFinder Private
Posts: 32
Joined: Tue Dec 05, 2006 9:46 pm
Location: Trondheim, Norway

Re: ROM cheats for megadrive in MESS

Postby etabeta78 » Sat Sep 06, 2014 6:34 am

how was it working before the carts were slotified?
rimsky82 reported that the issue was ROMs not being editable in the memory windows, because they were not available anymore, so I guessed that fixing that it was enough... I now see that it's not, and I fear the thing becomes a lot more problematic.
I will see what can be done with Micko

thanks for the feedback

User avatar
Pugsy
CheatFinder General
CheatFinder General
Posts: 3166
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Contact:

Re: ROM cheats for megadrive in MESS

Postby Pugsy » Sat Sep 06, 2014 10:31 am

I don't know why he asked about that - ROM has never been editable in the memory window like RAM has, the only way to change it was either by typing "maincpu.mw@004646=6054" directly in the debugger commandline or via the commandline wrapped in cheat XML:-

Code: Select all

  <cheat desc="Invincibility"> <comment>You still die if you fall too far though!</comment>
    <script state="on">
      <action>temp0 =maincpu.mw@004646</action>
    </script>
    <script state="run">
      <action>maincpu.mw@004646=6054</action>
    </script>
    <script state="off">
      <action>maincpu.mw@004646=temp0 </action>
    </script>
  </cheat>


Everything else about finding ROM cheats remains fine, it's just that we can see the code from the cart in the maincpu but it just cant be changed.
Pugsy

Servicing your cheating needs since 1985 ;-)

Grab the latest cheat collection:
MAME 0.187 XML cheat collection 7 JULY 2017) from http://www.mamecheat.co.uk or direct from:-
http://www.mediafire.com/file/0dvubha3b ... at0187.zip (ZIP Archive 1826 KB)

etabeta78
CheatFinder Private
Posts: 32
Joined: Tue Dec 05, 2006 9:46 pm
Location: Trondheim, Norway

Re: ROM cheats for megadrive in MESS

Postby etabeta78 » Sat Sep 06, 2014 3:59 pm

well, in MAME you can edit rom regions from the memory window (I have just tried mt_soni2 ;) ) and then the CPU see the new value when that area is accessed.
whether that is useful or not, it's another matter ;)

anyway, Micko has said he will take a look when he can, and I will see if I can help as well...