Actions

SCHG

Chaotix

From Sonic Retro

Revision as of 06:55, 29 May 2006 by Scarred Sun (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the Knuckles' Chaotix portion of the Sonic Community Hacking Guide.

About this Guide

I'm Lostgame, and I'm obsessed with Chaotix. It simply has to be the greatest Sonic-related game I've ever played. And it's not just the amazing 32-bit graphics, with real rotation and scaling, it's the original gameplay, the amazing music, and the general fun involved. So strap yourself in, and get ready for the most fun you've ever had hacking a Sonic game.

MD Palettes

One thing that shocked me, when I was looking through the ROM for palettes was that the standard levels actually only use the Genesis colors, as beautiful as they are! Well, so, as you most likely already know, if you're here, the format for most Genesis palettes is:

0B-GR

The first character, I dunno what it's for. If you put something there it's either ignored, or causes an error, depends on the game, and the level, whatever. The second, third and fourth characters are the Blue, Green and Red values, accordingly.

Here is a list of the palettes that I know of in Chaotix that use the Genesis palette format:

Palette Offset Description
2b3CF0,40 Amazing Arena - Morning / Day
2b3D70,40 Amazing Arena - Sunset / Night
2b3EF0,40 Techno Tower - Morning
2b4070,40 Techno Tower - Day
2b41F0,40 Techno Tower - Sunset
2b42F0,40 Techno Tower - Night
2b4470,40 Marina Madness - Morning
2b44F0,40 Marina Madness - Day
2b4570,40 Marina Madness - Sunset
2b45F0,40 Marina Madness - Night
2b4670,40 Introduction - Morning
2b46F0,40 Introduction - Day
2b4770,40 Introduction - Sunset
2b47F0,40 Introduction - Night
0066c8,24 Credits - Flames
006e18,40 Sound Test - Foreground
006E98,10 Sound Test - Amy

MARS Palettes

Now, you may say "Oh, great! Now I can change the palettes in the levels, but what I really wanted to do was change Mighty's palette to look like Sonic!

Alright. You can do that, but this is the tricky part. As you can imagine, the 32x uses it's own palette format that has been dubbed/officially called(?) the MARS format. Why? Simply because MARS was a prototype name for the 32x. Or the Super 32x in Japan. Anywho, this format is different and very confusing. Let's take a look.

XB+(brightness G, max blue value is C)GR
//I only made that mark on the first line to help you
//understand it better. It still applies to the other
//two characters.


Wow. Another 2-byte format. Well, what do the characters represent? Let's see. For the Blue value, the character to edit is the second one, but the first character controls the brightness, for a nicer effect. The brightness of the blue can be a max of 7, and, of course, a min of 0. But if it's 0, you get no blue. The maximum blue value is C, or it starts affecting the green. The green is the same, but instead of the first character affecting the brightness, the second one does. So, a value from C-F refers to the brightness of the green. The limit of the green value is E. Leaving Red as our last color, with a max value of F, and you can change the green to F if you like.

Voila. Now for the offsets.

Palette Offset Description
0022921A Mighty The Armadillo
0022923E Knuckles The Echidna
0022927E Vector The Crocodile
0022925C Charmy The Bee
002292A0 Heavy The Robot
002292BE Bomb The Robot
002292DC Espio The Chameleon
0000E7C4 Espio's Rotating Pallete

Say you want to conver your favorite colors from photoshop to MARS to make Mighty juuuuust the right shade of blue. Take a RGB color. Now you need to find the red(r) green(g) and blue(b) values for this color. In paint you can select the color and chose Colors>Edit Colors>>Define Custom Colors. In Photoshop, you can double-click the color chosen on the bottom of the tool bar. In any case, find the specifics of your choice color. It's got three values, r, g, and b.

(note: all math is in decimal. =/)

[(r + 1) / 8.25] rounded to the nearest integer = R. [(g + 1) / 8.25] rounded to the nearest integer = G. [(b + 1) / 8.25] rounded to the nearest integer = B.

R = x G * 2 = y B * 4 = z

x = X y * 16 = Y z * 256= Z

Z + Y + Z = N

convert N to HEX.

If your result does not have four digits (ex. 1F, 893, A, 0), tack 0s on to the beggining. (ex. 001F, 0893, 000A, 0000).

There you have your 32-bit (MARS) color. (Thanks Kojichao and EricJS. Big helps.)

But what if you want to edit, say, an enemies pallete? That's MARS but not documented (yet, hopefully). Well, now you can convert their colors (bebug>32X VDP) and find them in the ROM. once you know where it is, you can change it.

Great tools for aiding in this are Icy Guy's GBA color picker (assure byteswap is disabled) which can be obtained from Zophar's Domain, and Heran Bago's RGB2GBA32XCC (shameless plug).

Crackers Palettes

Well, thanks to ICEknight, we now know that there are Sonic Crackers palettes in Chaotix.

$005750 in Chaotix ROM == $008D08 in Crackers ROM

Sonic Community Hacking Guide
General
SonED2 Manual | Subroutine Equivalency List
Game-Specific
Sonic the Hedgehog (16-bit) | Sonic the Hedgehog (8-bit) | Sonic CD (prototype 510) | Sonic CD | Sonic CD (PC) | Sonic CD (2011) | Sonic 2 (Simon Wai prototype) | Sonic 2 (16-bit) | Sonic 2 (Master System) | Sonic 3 | Sonic 3 & Knuckles | Chaotix | Sonic Jam | Sonic Jam 6 | Sonic Adventure | Sonic Adventure DX: Director's Cut | Sonic Adventure DX: PC | Sonic Adventure (2010) | Sonic Adventure 2 | Sonic Adventure 2: Battle | Sonic Adventure 2 (PC) | Sonic Heroes | Sonic Riders | Sonic the Hedgehog (2006) | Sonic & Sega All-Stars Racing | Sonic Unleashed (Xbox 360/PS3) | Sonic Colours | Sonic Generations | Sonic Forces
Technical information
Sonic Eraser | Sonic 2 (Nick Arcade prototype) | Sonic CD (prototype; 1992-12-04) | Dr. Robotnik's Mean Bean Machine | Sonic Triple Trouble | Tails Adventures | Sonic Crackers | Sonic 3D: Flickies' Island | Sonic & Knuckles Collection | Sonic R | Sonic Shuffle | Sonic Advance | Sonic Advance 3 | Sonic Battle | Shadow the Hedgehog | Sonic Rush | Sonic Classic Collection | Sonic Free Riders | Sonic Lost World
Legacy Guides
The Nemesis Hacking Guides The Esrael Hacking Guides
ROM: Sonic 1 | Sonic 2 | Sonic 2 Beta | Sonic 3

Savestate: Sonic 1 | Sonic 2 Beta/Final | Sonic 3

Sonic 1 (English / Portuguese) | Sonic 2 Beta (English / Portuguese) | Sonic 2 and Knuckles (English / Portuguese)
Move to Sega Retro
Number Systems (or scrap) | Assembly Hacking Guide | 68000 Instruction Set | 68000 ASM-to-Hex Code Reference | SMPS Music Hacking Guide | Mega Drive technical information