Customized cheat.c

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.
stephh
Posts: 601
Joined: Fri Aug 17, 2001 1:00 am
Location: Paris, France

Post by stephh »

ShimaPong wrote:Re-added "Status (Bit)" and "Slow But Sure" search.
But "Slow" search is merged into new "Status (Change or Not)".
So now "Status" search has 4 items.
  • Same as Previous (old "Energy - Equal")
  • Different from Previous (old "Energy - Not Equal")
  • Same as First (old "Slow - Equal")
  • Different from First (old "Slow - Not Equal")
I think maximum selectable items in one search section are 4 and don't hope to add any more.
First, the "Energy" item shall be after "Timer" item and before "Status" item ...

Then, I would rename "Status (Equal or Not)" item to "Status (Same or Different)" ...

Last thing, the "Bit (Same or Different)" item shall have the same possibilities as the "Status (Same or Different)" item :

. Same as Previous
. Different from Previous
. Same as Start
. Different from Start

Because this is the same thing, but with "Status" you work on bytes and with "Bits" you work on bits ...

BTW, in advanced mode, it allows "Energy/Bit search with first value". Is it need in classic mode ?
I don't think this is needed as I've never used such stuff ... But wait for Pugsy's reply ...


Anyway, great work ! Do you now have one single "Cheat Search" main item instead of "Start a New Cheat Search" and "Continue Search" main items ?

And what about getting rid of the "General Help" item ? It was supposed to be used for help within MAME (a la debugger), but nobody never wanted to code it ...


I hope that the source files will be available soon, so I can apply the changes from 0.109u1 and submit your work to MAME Team for an inclusion in next release ...

Image Steph from The Ultimate Patchers Image
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

Give up....

I wrote up the information about new function and improvement and the reply to Stephh.
But I was filled with resentment against Kriptokapi at the moment of writing.

http://zetubou.mine.nu/timer/file/bomber27782_d5.png
stephh
Posts: 601
Joined: Fri Aug 17, 2001 1:00 am
Location: Paris, France

Post by stephh »

ShimaPong wrote:I wrote up the information about new function and improvement and the reply to Stephh.
But I was filled with resentment against Kriptokapi at the moment of writing.
Feel free not to comment your changes, but please let me download the updated source file(s) ...

Image Steph from The Ultimate Patchers Image
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

Remember whatsnew for 0.108u5.
I unexpected that "Numerous fixes" only and lost details...
Therefore I decide to add whatsnew for my custmization when I upload source file.

And ...
http://zetubou.mine.nu/timer/file/bomber27852_d5.png
But sorry no details because I'm intimidated by Kriptokapi.
User avatar
Gaius_4
Posts: 138
Joined: Sun Oct 26, 2003 2:27 pm

that rascal!

Post by Gaius_4 »

Kriptokapi wins again. :P
As always, your patients is appreciated. :cool:
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

I'm always miserable loser in my life.
Laugh if you must.


http://zetubou.mine.nu/timer/file/bomber27926_d5.png
.... succeeds to compile but it's buggy completely.

And I have found a bug.

In the cheat edit screen, if you delete current entry and it becomes "empty" entry,
MAME will crash when return to previous menu.

I have already known the reason why it happens.
It is very simple and the same reason prevents from saving the activation key in the edit screen.
(Yes, current save activation key is available in enable/disable or add/edit menu only)

But it may be not easy to fix.
Because in the edit screen, the cheat engine can't g
User avatar
Gaius_4
Posts: 138
Joined: Sun Oct 26, 2003 2:27 pm

Post by Gaius_4 »

I'm always miserable loser in my life.
You're misarable? For the past couple of weeks I've been crying every other day over a girl that I miss... and Love! :cry:
Laugh if you must.
Sorry. :oops: But your carrying on over Kriptokapi does seem a bit silly. But still entertaining. (Poor Kriptokapi :lol: ).

The new cheat engine features look great! :)
[Stupid question] Can a 'deactivation key' be assigned to more than one cheat?

If you had several weapon 'ON' switches/Activation Keys set to the Number pad keys (1-9)... Could someone have the '0' key as the deactivation key for certain cheats?[/stupid question]
As always, your patients is appreciated. :cool:
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

Silly ? Hmmm, it is silly for you and many people but it is serious problem for me.
No one will be able to understand my pain and even laugh and feel happy.
But sorry, I will cry out to preserve my "buggy" sanity when Kriptokapi posts a code.
Can a 'deactivation key' be assigned to more than one cheat?
Sounds like it is the same as disabling a cheat with F6 (toggle cheat).
"Deactivation key" affects all current "ON" codes ? or "ON" code by activation key only ?
Or cancels activation key setting itself if the code has it ?
User avatar
Gaius_4
Posts: 138
Joined: Sun Oct 26, 2003 2:27 pm

teh dumb is me

Post by Gaius_4 »

Now that I think about it - I guess I was meaning something that would restore the previous value.

For example (in Gaiares), if you activated the T-Braster by pressing the '5' key, which upgraded from the normal shot, then pressed the '0' key it would revert back to the normal shot. :-?

^That's sort of what I was thinking. You could still have other cheats active...

But I was thinking about changing all the power up weapons back to the normal shot. This wouldn't work (or) would be useless. Since you could just set the normal shot for the '0' key.

:oops:

Nevermind.
As always, your patients is appreciated. :cool:
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

if you activated the T-Braster by pressing the '5' key, which upgraded from the normal shot, then pressed the '0' key it would revert back to the normal shot.
It is "better" way that assign activation key to '0' key as Normal Shot.
Or set "Restore Previous Value" to the code of "T-Braster".
But in the latter way, it will cause gfx buggy becaues weapon code mixs normal type and one shot tyep.
"Restore Previous Value" works soon after you set one shot code and not work if you turn a code OFF.
Because the operation is done in this time.


I feel rich a bit tonight because Kriptokapi has not appeared.
So I explain about my customization.

In my customized cheat engine, new weapon code for g_gaia is the following

Code: Select all

:g_gaia:62000000:000000:00000000:00000000:Select Weapon
:g_gaia:00210000:FFF3DD:00000000:FFFFFFFF:I-Vulcan
:g_gaia:00018000:FFF565:00000000:FFFFFFFF:I-Vulcan (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:I-Vulcan (3/4)
:g_gaia:00018000:FFF5A0:00000000:FFFFFFFF:I-Vulcan (4/4)
:g_gaia:00210000:FFF3DD:0002E3BA:FFFFFFFF:P-Cannon
:g_gaia:00018000:FFF565:00000008:FFFFFFFF:P-Cannon (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:P-Cannon (3/4)
:g_gaia:00018000:FFF5A0:00000001:FFFFFFFF:P-Cannon (4/4)
:g_gaia:00210000:FFF3DD:0002F91A:FFFFFFFF:G-Beam
:g_gaia:00018000:FFF565:00000009:FFFFFFFF:G-Beam (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:G-Beam (3/4)
:g_gaia:00018000:FFF5A0:00000002:FFFFFFFF:G-Beam (4/4)
:g_gaia:00210000:FFF3DD:0002EABA:FFFFFFFF:S-Laser
:g_gaia:00018000:FFF565:0000000A:FFFFFFFF:S-Laser (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:S-Laser (3/4)
:g_gaia:00018000:FFF5A0:00000003:FFFFFFFF:S-Laser (4/4)
:g_gaia:00210000:FFF3DD:0002F25A:FFFFFFFF:T-Missile
:g_gaia:00018000:FFF565:0000000B:FFFFFFFF:T-Missile (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:T-Missile (3/4)
:g_gaia:00018000:FFF5A0:00000004:FFFFFFFF:T-Missile (4/4)
:g_gaia:00210000:FFF3DD:0002E5BA:FFFFFFFF:H-Laser
:g_gaia:00018000:FFF565:0000000C:FFFFFFFF:H-Laser (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:H-Laser (3/4)
:g_gaia:00018000:FFF5A0:00000005:FFFFFFFF:H-Laser (4/4)
:g_gaia:00210000:FFF3DD:0002E8BA:FFFFFFFF:V-Laser
:g_gaia:00018000:FFF565:0000000D:FFFFFFFF:V-Laser (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:V-Laser (3/4)
:g_gaia:00018000:FFF5A0:00000006:FFFFFFFF:V-Laser (4/4)
:g_gaia:00210000:FFF3DD:0002EABA:FFFFFFFF:R-Collidere
:g_gaia:00018000:FFF565:0000000E:FFFFFFFF:R-Collidere (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:R-Collidere (3/4)
:g_gaia:00018000:FFF5A0:00000007:FFFFFFFF:R-Collidere (4/4)
:g_gaia:00210000:FFF3DD:0002F61A:FFFFFFFF:E-Smash
:g_gaia:00018000:FFF565:0000000F:FFFFFFFF:E-Smash (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:E-Smash (3/4)
:g_gaia:00018000:FFF5A0:00000008:FFFFFFFF:E-Smash (4/4)
:g_gaia:00210000:FFF3DD:0002FD9A:FFFFFFFF:F-Formation
:g_gaia:00018000:FFF565:00000010:FFFFFFFF:F-Formation (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:F-Formation (3/4)
:g_gaia:00018000:FFF5A0:00000009:FFFFFFFF:F-Formation (4/4)
:g_gaia:00210000:FFF3DD:0002F59A:FFFFFFFF:T-Vulcan
:g_gaia:00018000:FFF565:00000011:FFFFFFFF:T-Vulcan (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:T-Vulcan (3/4)
:g_gaia:00018000:FFF5A0:0000000A:FFFFFFFF:T-Vulcan (4/4)
:g_gaia:00210000:FFF3DD:0002ED5A:FFFFFFFF:A-Bullet
:g_gaia:00018000:FFF565:00000012:FFFFFFFF:A-Bullet (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:A-Bullet (3/4)
:g_gaia:00018000:FFF5A0:0000000B:FFFFFFFF:A-Bullet (4/4)
:g_gaia:00210000:FFF3DD:0002F61A:FFFFFFFF:T-Braster
:g_gaia:00018000:FFF565:00000013:FFFFFFFF:T-Braster (2/4)
:g_gaia:00018001:FFF59E:00000004:00000004:T-Braster (3/4)
:g_gaia:00018000:FFF5A0:0000000C:FFFFFFFF:T-Braster (4/4)
ON in-game cheat menu, this code is only displayed "Select Weapon xxxxx" (xxxxx = weapon name).
It's very simple display.
Sub-linked code uses new function, "Link Extension". It enables to group a code in label-selection.

Code: Select all

:g_gaia:00210000:FFF3DD:0002F59A:FFFFFFFF:T-Vulcan	// Master code. linked to "Select Weapon" itself.
:g_gaia:00018000:FFF565:00000011:FFFFFFFF:T-Vulcan (2/4)	// Sub-linked code. linked to "T-Vulcan"
:g_gaia:00018001:FFF59E:00000004:00000004:T-Vulcan (3/4)	// Sub-linked code. linked to "T-Vulcan"
:g_gaia:00018000:FFF5A0:0000000A:FFFFFFFF:T-Vulcan (4/4)	// Sub-linked code. linked to "T-Vulcan"
The cheat engine skips sub-linked code.
So if current is "E-Smash" and press right key, next is "F-Formation" instead of "E-Smash (2/2)".

And you can assign "two" activation keys to this code.

Code: Select all

:g_gaia:63004000:000000:00000076:00000000:1st Activation Key for Select Weapon (J1 Button 6)
:g_gaia:63004001:000000:00000070:00000000:2nd Activation Key for Select Weapon (J1 Button 1)
In label-selection, 1st key is "select next code" and 2nd is "select previoius code".
If current is "T-Vulcan" and press 2nd key, next is "F-Formation" (selected previous code).

Also the above key code is output by new function, "Save Activation Key".
In Enable/Disable, Add/Edit menu or code edit screen, pressing Ctrl + Cheat Save outputs all assigned activation key codes if selected code has a key.
stephh
Posts: 601
Joined: Fri Aug 17, 2001 1:00 am
Location: Paris, France

Re: teh dumb is me

Post by stephh »

Gaius_4 wrote:Now that I think about it - I guess I was meaning something that would restore the previous value.

For example (in Gaiares), if you activated the T-Braster by pressing the '5' key, which upgraded from the normal shot, then pressed the '0' key it would revert back to the normal shot. :-?

^That's sort of what I was thinking. You could still have other cheats active...

But I was thinking about changing all the power up weapons back to the normal shot. This wouldn't work (or) would be useless. Since you could just set the normal shot for the '0' key.

:oops:

Nevermind.
There are 2 possibilities :

1) You have 1 permanent or temporary NORMAL cheat for each weapon like in MY cheat database ... There shall always be possible to have the "basic" weapon ... So you can easily assign the '5' key to the ultra-blaster weapon and assign '0' to the "basic" weapon ...

BTW, if you press an activation key on a permanent cheat which is ON, it turns it OFF ...

2) You have permanent or temporary "lists" cheats for the weapons like in Pugsy's cheat database ... In this list, there should be the "basic" weapon ... So you only have to assign your '5' key and press it multiple times to cycle to the ultra-blaster weapon or the "basic" weapon ... But it's true that there's no way to turn the cheat OFF (or to the "basic" weapon) with a single key press (even if I wonder about its interest) ...


Message to ShimaPong : is now your work in sync with MAME 0.109u2, or are you still working on the MAME 0.109 cheat.c file from HazeMD ? Anyway, PLEASE let us download it !

Image Steph from The Ultimate Patchers Image
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

And now...
  • Refined command (option) code and added "show activation key message" option to it.
  • Added special action for an one shot with restore previous value. It is useful if you want to make one shot for ROM code.
  • Texted whatsnew for my customization. It is unfinished right now though.
When is it uploaded ?
...God only knows.
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

  • Finished converting my customization to 0.109u3 (The latest fix for cheat.c is on 0.109u2 though).
    Especially, new SaveCheat() to which new function, "save activation key" has been added seems to work fine.
    And I have improved the modification on 0.109u2 a bit.
  • Finished writing up whatsnew.
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

stephh
Posts: 601
Joined: Fri Aug 17, 2001 1:00 am
Location: Paris, France

Post by stephh »

File not found :( Anyway, when I get them, can your source files be submitted "as is" to MAME Team ?

Image Steph from The Ultimate Patchers Image
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

Retry.
http://zetubou.mine.nu/timer/file/bomber28835_d3.zip
Stephh wrote:can your source files be submitted "as is" to MAME Team ?
Maybe no problem unless the latest version doesn't touch cheat.c.
It is based on 0.109u3 and I have confirmed the success of compiling and working on this version.
(NOTE : the latest update for cheat.c is on 0.109u2)
stephh
Posts: 601
Joined: Fri Aug 17, 2001 1:00 am
Location: Paris, France

Post by stephh »

I've downloaded the zip file, but I now need the password to extract the cheat.c file as well as the whatsnew.txt ...
Stephh wrote:can your source files be submitted "as is" to MAME Team ?
Maybe no problem unless the latest version doesn't touch cheat.c.
It is based on 0.109u3 and I have confirmed the success of compiling and working on this version.
(NOTE : the latest update for cheat.c is on 0.109u2)
OK ... I'll have a look as soon as you give the password, and I'll then submit a diff file to MAME Team with the hope that it isn't too late for inclusion in 0.109u4 ...

Image Steph from The Ultimate Patchers Image
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

Sorry. I sent a pass.
stephh
Posts: 601
Joined: Fri Aug 17, 2001 1:00 am
Location: Paris, France

Post by stephh »

I've now got the file and the password, but too late as MAME 0.109u4 is already out since yesterday :(

But I will submit a diff file and the whatsnew to MAME Team and we'll see what will be included in next release ...

Image Steph from The Ultimate Patchers Image
ShimaPong
Posts: 1063
Joined: Wed May 21, 2003 4:19 pm
Location: Japan

Post by ShimaPong »

I have confirmed that my customized cheat.c succeeds to compile and works on 0.109u4.
Fortunately, 0.109u4 didn't touch cheat.c.

I have tried to clearn up all codes for solomon/solomonj with updated cheat engine.
And I follow through on "small" update for source file.
Post Reply