GlitchCog's Super Mario Kart Palettes
Credits | Mario Circuit | Ghost Valley | Donut Plains | Bowser Castle | Vanilla Lake | Choco Island
Koopa Beach | Rainbow Road | Character Selection Screen | Introductory Scene | Trophy Presentation

This offset information is for the US NTSC version of Super Mario Kart with a 0x200 byte header. The data for the palettes in Super Mario Kart are all compressed, so if you want to seriously edit colors, you're definately going to have to deal with uncompressing them. If you just want to be able to change one or two colors, I suggest using my compressionless color guide where I list all the colors whose code wasn't affected by the compression.

Quick Briefing on SNES Compression
Use a program called Lunar Compress to get this information out of the ROM file. Super Mario Kart uses what Lunar Compress calls "LC_LZ5" compression, which is coded as "4" in its command line syntax.

To decompress and extract decompressed data to file:
Decomp.exe smk.smc palette.bin [hex offset of palette] 4 0

(Some data in this ROM is doubly compressed, so after extracting the first data you must decompress the whole output file to get to the actual data.)

Then just open up palette.bin in a hex editor and start changing stuff around. If your recompressed edited palette is larger than the one you originally decompressed out of the ROM, don't put it back in or you'll overwrite other game data. Instead, make it fit by finding a group of colors in the palette that aren't used in the game and setting them all to black. All those zeros will compress well.

To recompress and insert recompressed data into ROM:
Recomp.exe palette.bin smk.smc [hex offset of palette] 4 0


SNES Format/Hexadecimal Color Calculator


PAL files for the YY-CHR tile editor
Credits (00), Mario Circuit (01), Ghost Valley (02), Donut Plains (03), Bowser Castle (04), Vanilla Lake (05), Choco Island (06), Koopa Beach (07), Rainbow Road (08), Character Select (09), Intro Scene Part A (10a), Intro Scene Part B (10b), Trophy Presentation (11),


Email:
matt@yanos.com