Hacking Others Mega Drive/ Genesis Sprite Editor/ Extractor?

Lehnah

Well-Known Member
OP
Newcomer
Joined
Feb 15, 2017
Messages
46
Trophies
0
Age
39
XP
121
Country
Hello folks,

I've like to extract sprites from a specific Mega Drive/ Genesis game and perhaps even edit them, but I've never done anything like this before. I was wondering if there is a good (and simple) piece of software out there that does this, or if there are any other resources that you might be able to point me to?

Thanks in advance.

P.S. I've already looked online and nowhere I could find has a complete set of already extracted sprites.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,285
Country
United Kingdom
Cartridge based consoles prior to the DS usually operated on an all in one principle, or incbin if your prefer C like terminology.

Hopefully you are also aware of palettes as it pertains to this sort of thing -- most console graphics are not bitmaps that include what colour each pixel is but instead a very boring exercise in paint by numbers with the key being the palette (which you can change to change colours, hence palette swap enemies and https://www.todayifoundout.com/inde...-and-bushes-in-super-mario-bros-are-the-same/ ). Palettes are not always necessary to edit (if you know something is one colour then pick it from elsewhere in the image and use that) but it does help, you can snatch them from memory too and if not there are usually not very far from graphics.

To that end you are left with two main approaches

1) Get a tile editor. I like tiled2002, tileggd and crystaltile2 myself but most things should do the megadrive/genesis graphics formats (the ones there I have as they do GBA formats many others do not do). https://www.romhacking.net/?page=ut...page=20&title=&desc=tile+editor&utilsearch=Go should have a bunch.
Open ROM, set likely settings (custom tiles are kind of thing a here but 8x8 is a good start, SMD or GEN will likely be the abbreviation), press down/page down a lot and scroll through the ROM until you find something interesting.

2) A bit more targetted. Various approaches here
i) Get to point in the game where the graphics are displayed. Grab data from VRAM (or whatever it is called on your system of choice -- the megadrive has some alternative names for some things) and search the ROM for that. Does not work if compressed or altered but alteration is rare and compression... was seen but not as common as the consoles a generation later on up to today.
ii) In the case of the GBA the compression can be keyed in on or watched happen from BIOS calls, for the megadrive/genesis it is likely to be a more custom affair (probably RLE or Huffman but have seen some fancier stuff over the years).
iii) Corruption. Much as it sounds you mess with parts of the ROM and whatever changes in the game is what that area deals with at some level.
iv) Tracing. The big boy method. Get to a point in the game where it is about to load (before a level, before going into a room, before pressing start on the title screen... it really does not matter). Here you use a special type of debugging emulator to set breakpoints. Here is a worked example for an old command line GBA emulator but the principle is the same whether modern PC game or commodore64 https://www.romhacking.net/documents/361/
I don't know what we are suggesting for megadrive debuggers these days and they used to be a bit more primitive than NES, GBA and DS stuff last time I went looking, sometimes you might have to go into tool assisted speedrun circles.
So more difficult but guaranteed to find what you are looking for it is in the game (and probably enough info to find out if something that was cut by developers -- find one boss setup and you can likely find the rest, hidden stuff tends to be next to known stuff, similarly end epic sidequest sword is probably a bit on from starting dagger).
v) Some kind of logging method. https://fceux.com/web/help/CodeDataLogger.html is for the NES but you might get lucky and find an equivalent for the megadrive.

Alternatively if it is just ripping graphics then the same vram and palette viewers you are using to confirm the harder methods will also work with a print screen. Do remember you have cheats at your disposal as well (no need to lose battles, max stats is easy, max money is basic cheat searching https://web.archive.org/web/20080309104350/http://etk.scener.org/?op=tutorial , walk through walls, inventory cheats will get those hidden items/end game items...) to speed this up.
 

tech3475

Well-Known Member
Member
Joined
Jun 12, 2009
Messages
3,651
Trophies
2
XP
6,030
Country
Which game?

In the case of say the Sonic games, most are well documented with disassemblies and tools available.
 

Lehnah

Well-Known Member
OP
Newcomer
Joined
Feb 15, 2017
Messages
46
Trophies
0
Age
39
XP
121
Country
Cartridge based consoles prior to the DS usually operated on an all in one principle, or incbin if your prefer C like terminology.

Hopefully you are also aware of palettes as it pertains to this sort of thing -- most console graphics are not bitmaps that include what colour each pixel is but instead a very boring exercise in paint by numbers with the key being the palette (which you can change to change colours, hence palette swap enemies and https://www.todayifoundout.com/inde...-and-bushes-in-super-mario-bros-are-the-same/ ). Palettes are not always necessary to edit (if you know something is one colour then pick it from elsewhere in the image and use that) but it does help, you can snatch them from memory too and if not there are usually not very far from graphics.

To that end you are left with two main approaches

1) Get a tile editor. I like tiled2002, tileggd and crystaltile2 myself but most things should do the megadrive/genesis graphics formats (the ones there I have as they do GBA formats many others do not do). https://www.romhacking.net/?page=ut...page=20&title=&desc=tile+editor&utilsearch=Go should have a bunch.
Open ROM, set likely settings (custom tiles are kind of thing a here but 8x8 is a good start, SMD or GEN will likely be the abbreviation), press down/page down a lot and scroll through the ROM until you find something interesting.

2) A bit more targetted. Various approaches here
i) Get to point in the game where the graphics are displayed. Grab data from VRAM (or whatever it is called on your system of choice -- the megadrive has some alternative names for some things) and search the ROM for that. Does not work if compressed or altered but alteration is rare and compression... was seen but not as common as the consoles a generation later on up to today.
ii) In the case of the GBA the compression can be keyed in on or watched happen from BIOS calls, for the megadrive/genesis it is likely to be a more custom affair (probably RLE or Huffman but have seen some fancier stuff over the years).
iii) Corruption. Much as it sounds you mess with parts of the ROM and whatever changes in the game is what that area deals with at some level.
iv) Tracing. The big boy method. Get to a point in the game where it is about to load (before a level, before going into a room, before pressing start on the title screen... it really does not matter). Here you use a special type of debugging emulator to set breakpoints. Here is a worked example for an old command line GBA emulator but the principle is the same whether modern PC game or commodore64 https://www.romhacking.net/documents/361/
I don't know what we are suggesting for megadrive debuggers these days and they used to be a bit more primitive than NES, GBA and DS stuff last time I went looking, sometimes you might have to go into tool assisted speedrun circles.
So more difficult but guaranteed to find what you are looking for it is in the game (and probably enough info to find out if something that was cut by developers -- find one boss setup and you can likely find the rest, hidden stuff tends to be next to known stuff, similarly end epic sidequest sword is probably a bit on from starting dagger).
v) Some kind of logging method. https://fceux.com/web/help/CodeDataLogger.html is for the NES but you might get lucky and find an equivalent for the megadrive.

Alternatively if it is just ripping graphics then the same vram and palette viewers you are using to confirm the harder methods will also work with a print screen. Do remember you have cheats at your disposal as well (no need to lose battles, max stats is easy, max money is basic cheat searching https://web.archive.org/web/20080309104350/http://etk.scener.org/?op=tutorial , walk through walls, inventory cheats will get those hidden items/end game items...) to speed this up.
Wow, that's amazing. Thanks for all the info. You've given me a lot to explore.

EDIT: Tried to install tiled2002 and it was telling me a bunch of files were missing, so it wouldn't work. Had a go at a few others but I could not make heads or tales of them. I think this may be a bit beyond me.
 
Last edited by Lehnah,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    The snack that smiles back, Ballsack!
  • Psionic Roshambo @ Psionic Roshambo:
    I remember when the Atari 2600 was new and exciting lol
  • Psionic Roshambo @ Psionic Roshambo:
    It could get banned from PSN but you can change your ID I think?
  • Xdqwerty @ Xdqwerty:
    also gonna install twilight menu in my r4 flashcard
  • Psionic Roshambo @ Psionic Roshambo:
    One thing that just occurred to me.... The sound on the 2600 sucked less back then the harsh sound we hear now is from infinitely better speakers we have now, back when the 2600 was new speakers produced a almost muffled sound, like CRTs made old graphics look slightly better.
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if I could recommend that to some emulation devs that perhaps the sound could use some smoothing out to simulate those old TVs
  • Psionic Roshambo @ Psionic Roshambo:
    I think a few of the early systems could benefit from that, at least up to the 8 bit generation, by the 16 bit generation I think TVs had gotten a lot better in almost every way
  • Xdqwerty @ Xdqwerty:
    i dont have an sd card adapter but I have an usb sd card adapter
  • K3Nv2 @ K3Nv2:
    Old people games
  • Xdqwerty @ Xdqwerty:
    its not the one that comes with the r4
  • Xdqwerty @ Xdqwerty:
    doesnt work (my flashcard is from r4isdhc.com)
  • Xdqwerty @ Xdqwerty:
    might install ysmenu first
  • Psionic Roshambo @ Psionic Roshambo:
    Try Wood firmware
  • Psionic Roshambo @ Psionic Roshambo:
    For your R4
  • Psionic Roshambo @ Psionic Roshambo:
    It's old but it's the best firmware out for DS stuff
  • Xdqwerty @ Xdqwerty:
    it says it only works for the original R4, R4i Gold (r4ids.cn), R4iDSN (r4idsn.com) and Acekard R.P.G.
  • Xdqwerty @ Xdqwerty:
    nvm it does support mine
  • Xdqwerty @ Xdqwerty:
    but why choose it over ysmenu @Psionic Roshambo?
  • Xdqwerty @ Xdqwerty:
    bc im stupid?
  • Xdqwerty @ Xdqwerty:
    yea ik im stupid
  • Xdqwerty @ Xdqwerty:
    good night
  • Psionic Roshambo @ Psionic Roshambo:
    Just give it a try, but honestly if you have a 3DS you can play DS games without a card just off the internal SD card
  • Psionic Roshambo @ Psionic Roshambo:
    Slightly slower loading but a bit more convenient
  • BakerMan @ BakerMan:
    guys, my fuckin headphones have an out of place speaker
    BakerMan @ BakerMan: guys, my fuckin headphones have an out of place speaker