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,404
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,704
Trophies
2
XP
6,125
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
  • K3Nv2 @ K3Nv2:
    Just a flappity denture would probably be 5k
  • mthrnite @ mthrnite:
    sold
  • K3Nv2 @ K3Nv2:
    I got some faith implants are going to justbe included with a crown cost
  • K3Nv2 @ K3Nv2:
    Procedures bullshit wait 4 months for graft to heal wait another four months the post to heal then get crown
  • SylverReZ @ SylverReZ:
    Only 1 tempycoin.
    +1
  • K3Nv2 @ K3Nv2:
    Got kfc for dinner fucking dinner box is a joke
  • BigOnYa @ BigOnYa:
    Just go gummy, ancientboi would like you better that way anyways, and you save money on toothbrushes/toothpaste
  • cearp @ cearp:
    @Sicklyboy I agree, but also it's about self control and realistic thinking. We wouldn't feed a dog soda, so why feed it to ourselves? Eating unhealthy food because it's cheap is one thing, but I'm sure you know people who drink soda routinely when they should be drinking water which is free.
    I get it can feel mean to say "no treat sweet beverage for you anymore" but for many people it's just in their way of life.
  • K3Nv2 @ K3Nv2:
    I drink soda twice out of the week
  • K3Nv2 @ K3Nv2:
    Plus decay can start as young as 15 tons of factors
  • cearp @ cearp:
    Even sugar free isn't good, as the acid is bad enough.
  • cearp @ cearp:
    oh earlier than 15 Ken, babies, children can get decay
  • K3Nv2 @ K3Nv2:
    So dentists give. Us these caps that'll last a few years to fight thrm
  • K3Nv2 @ K3Nv2:
    Yeah but babies get a new set
  • K3Nv2 @ K3Nv2:
    Screw godfor not giving us a new adult set after we mess up
    +2
  • cearp @ cearp:
    "You listening up there big guy?"
  • BigOnYa @ BigOnYa:
    Just smoke meth, all your dental problems will go away.
    +2
  • K3Nv2 @ K3Nv2:
    Even steven
  • cearp @ cearp:
    I wonder why edibles haven't caught on for meth
  • K3Nv2 @ K3Nv2:
    Locked down from government to dispensary
  • BigOnYa @ BigOnYa:
    In India it has, can't remember what its called yuka I think, they have a crisis like we have with fentanal
  • K3Nv2 @ K3Nv2:
    That's why we need regulation :teach:
  • SylverReZ @ SylverReZ:
    @BigOnYa, Speak to Psi, he'll offer you some in Tempycoin. :tpi:
    +1
  • OGSniper @ OGSniper:
    Day after day, we drink beer, Night after night my heartbeat shows the fear
  • K3Nv2 @ K3Nv2:
    Beer can be bad for your teeth
    K3Nv2 @ K3Nv2: Beer can be bad for your teeth