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: Any use for hex editing with Mame or other emulators?  (Read 2280 times)

0 Members and 1 Guest are viewing this topic.

tommy

  • Guest
  • Trade Count: (0)
Any use for hex editing with Mame or other emulators?
« on: December 26, 2007, 12:57:32 am »
I was experimenting with my Half-Life 2 server dll files and found I could change quite a few things if you know what to look for and I was able to customize my server more than I ever thought without writing a plugin for it.

Is there any use for this in Mame and Emulators? I would imagine I couldn't do anything very drastic to these files but it may still be able to change a few things.

lanman31337

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 606
  • Last login:January 10, 2024, 10:36:50 am
  • set to ludacris speed!
Re: Any use for hex editing with Mame or other emulators?
« Reply #1 on: December 27, 2007, 01:11:58 pm »
I think that's how the cheat system works in it, but i'm not 100 percent sure.

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:July 03, 2025, 11:58:07 pm
  • There's my post
    • RayB.com
Re: Any use for hex editing with Mame or other emulators?
« Reply #2 on: December 27, 2007, 01:41:16 pm »
You should be able to edit things like # of lives, and text, but you have to know where to look. And if the ROM's programming contains checksum checks, then chances are any mod won't run.
NO MORE!!

ChadTower

  • Chief Kicker - Nobody's perfect, including me. Fantastic body.
  • Trade Count: (+12)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38212
  • Last login:June 22, 2025, 04:57:38 pm
Re: Any use for hex editing with Mame or other emulators?
« Reply #3 on: December 27, 2007, 01:43:35 pm »
...unless you run a checksum on the newly modded image and then insert that checksum into the verification using the same hex editing method.

That's a lot of effort for minimal results.  You'd probably be better off trying to disassemble the code and doing it that way if you can find the right disassembler and compiler.

Cakemeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1002
  • Last login:May 31, 2024, 06:23:16 pm
  • I'm a llama!
Re: Any use for hex editing with Mame or other emulators?
« Reply #4 on: December 27, 2007, 04:06:48 pm »
I was experimenting with my Half-Life 2 server dll files and found I could change quite a few things if you know what to look for and I was able to customize my server more than I ever thought without writing a plugin for it.

Is there any use for this in Mame and Emulators? I would imagine I couldn't do anything very drastic to these files but it may still be able to change a few things.

I would say there is zero use for that kind of thing for Mame because you have the source code. For closed-source emulators, maybe there might be some use for hex editing but it would easier to modify Mame to do what you want.
Old, but not obsolete.

ChadTower

  • Chief Kicker - Nobody's perfect, including me. Fantastic body.
  • Trade Count: (+12)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38212
  • Last login:June 22, 2025, 04:57:38 pm
Re: Any use for hex editing with Mame or other emulators?
« Reply #5 on: December 27, 2007, 04:08:41 pm »

I assume he's talking about altering ROM images and not MAME itself, mostly because you're right, the source is available and so a hex editor is irrelevant.

That may be a bad assumption on my part.

Cakemeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1002
  • Last login:May 31, 2024, 06:23:16 pm
  • I'm a llama!
Re: Any use for hex editing with Mame or other emulators?
« Reply #6 on: December 27, 2007, 04:47:45 pm »
The cheat system in Mame works by monitoring memory locations known to be home to key game information, such as the number of lives left or whatever.

If you want to modify the actual game to display "Tommy XYZ" instead of "Game Over", rather than modifying the emulator, that is doable with a hex editor subject to the checksum restrictions Ray mentioned.

More complicated still is the new Donkey Kong code which implements new levels using the existing sprites.

I personally would like to extend Galaga to include "tripleship" support and a screen saver. That would be a fun project, and it would be super cool to load those roms into my Galaga machine at home.
Old, but not obsolete.

Jdurg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1127
  • Last login:October 04, 2020, 09:26:27 pm
  • A young guy feeling older than sin......
Re: Any use for hex editing with Mame or other emulators?
« Reply #7 on: December 27, 2007, 07:17:30 pm »
Also, if your ROMs have some type of encryption/compression in there, which most ROMs typically do, it's not an easy "read this and change that" type of change.
Donkey Kong High Scores:
1): 49,500
2): 35,600
3): 30,100
4): 29,400
5): 28,200