Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Improved cheat system  (Read 991 times)

0 Members and 1 Guest are viewing this topic.

wpcmame

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 278
  • Last login:February 18, 2024, 01:27:00 pm
Improved cheat system
« on: September 24, 2004, 07:31:51 am »
I made a cheat modification for my own cabinet. I submitted it to mame about a year ago but it wasn't accepted (didn't get a reply)

First the problems:
- My 6 year old son likes to play on the cabinet but he need cheats on some games and he is too young to use the menus himself.

- The mame cheat system includes a feature called "pre-loaded cheats". Pre-loaded cheats are activated immediatly when the cheatfile is loaded. Unfortuntly this doesn't work with most games since they will fail the RAM power-on test if cheats are enabled at startup. They also require you to edit the cheatfile manually.

- I got a rather old PC in the cabinet which means that it takes a long time (5-10) seconds to load the "official" cheatfile.

My solution:

I updated the cheat system to not load the cheatfile until it is used. That both improves the startuptime and allows me to specify "pre-loaded cheats" that work with all games. Now my son can just press "activate cheats" key (F6) which will load the cheatfile and activate all pre-loaded cheats.
I also made it possible to mark cheats as "pre-load" from the menus.
 
While I was updating the cheatfile I also made some other small changes:
1. A menuentry show if cheats are currently enabled or disabled
2. If you save a cheat it will be saved in the last cheatfile instead of the first. That way you can keep the "official" cheatfile untouched by just specifying "cheatfile=cheats.dat;mycheats.dat" and all new entries will be in mycheats.dat.

Since the change didn't make it into the official mame I thought I'd put the diff here if somone wants to include it in a custom build.
 

TheGatesofBill

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 581
  • Last login:August 22, 2018, 09:07:04 am
Re:Improved cheat system
« Reply #1 on: September 24, 2004, 11:08:04 pm »
Consider it on my todo list.

Dougmeister

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 333
  • Last login:July 27, 2018, 05:44:52 pm
  • Dig-Doug
Re:Improved cheat system
« Reply #2 on: September 27, 2004, 11:28:42 am »
Nice.  Looking forward to this.