Actions

SCHG

Difference between revisions of "SCHG:Sonic the Hedgehog 3 & Knuckles/Art Editing"

From Sonic Retro

Line 43: Line 43:
 
{{sectstub}}
 
{{sectstub}}
 
===Zone Independent===
 
===Zone Independent===
 +
 +
===Special Stage===
 
{| class="prettytable"
 
{| class="prettytable"
 
!Offset!!Description!!# of blocks
 
!Offset!!Description!!# of blocks
 
|-  
 
|-  
 
| $AD430
 
| $AD430
| Unknown Black Circle
+
| Character's shadow
 
| 16
 
| 16
 +
|-
 +
| $AD472
 +
| Get Blue Spheres text
 +
| 386
 +
|-
 +
| $AD7BC
 +
| Special Stage HUD
 +
| 18
 
|}
 
|}
  
===Special Stage===
+
===Continue Screen===
 
{| class="prettytable"
 
{| class="prettytable"
 
!Offset!!Description!!# of blocks
 
!Offset!!Description!!# of blocks
 
|-  
 
|-  
| $AD7BC
+
| $5CD66
| Special Stage HUD
+
| Character sprites
| 18
+
| 32
 +
|-
 +
| $5D3C6
 +
| Continue icons
 +
| 962
 
|}
 
|}
  

Revision as of 00:27, 16 July 2011

SCHG: Sonic the Hedgehog 3 & Knuckles
Main Article
Art Editing
Editing Art
Uncompressed Art
Nemesis Format Art
Kosinski Format Art
Palette Editing
Palette Locations
Pattern Load Requests
Object Editing
Editing Objects
Object Pointers
Object Pointer List #1
Object Pointer List #2
Objects not in either list
Sprite Mappings
Dynamic PLCs
Level Editing
Editing Levels
Object Placement
Ring Placement
Level Layout
16x16 Block Mappings
128x128 Block Mappings
Music Editing
Editing Music
Pointer Format
Header Format
DAC Samples
Universal Voice Bank
Music Pointers (Sonic & Knuckles)
Music Pointers (Sonic 3)
RAM Editing
Editing RAM
Main System Memory Locations
Object Status Table Format
Sonic & Knuckles Collection
Sonic & Knuckles Collection
Music and sound effects

There are several different tools that can be used to edit art. SonED2 is probably the best tool to use for editing level art, and can also be used on palettes. HivePal is also a great tool for editing palettes. SonMapEd is useful for editing both art and mappings - it can extract data from either a ROM or use split binary files, and has internal compression/decompression support.

Uncompressed Art Locations

Offset Description # of blocks
Zone Independent
$100000 Sonic ?
$1200E0 Knuckles ?
$140060 Sonic's extra tiles used in S&K zones ?
$143D00 Tails's extra tiles used in S&K zones ?
$3200E0 Tails ?
$336620 Tails's tails ?
$345010 Sonic snowboarding ?

Nemesis Compressed Art Locations

Sonicretro-round.svg This short section needs expansion. You can help Sonic Retro by adding to it.

Zone Independent

Special Stage

Offset Description # of blocks
$AD430 Character's shadow 16
$AD472 Get Blue Spheres text 386
$AD7BC Special Stage HUD 18

Continue Screen

Offset Description # of blocks
$5CD66 Character sprites 32
$5D3C6 Continue icons 962

Kosinski Compressed Art Locations

Palette Editing

Usually, it's not really necessary to edit a palette in hex. Palette editors give you instant feedback for each RGB value, and the palette can be easily saved as a separate binary and reimported into the ROM. However, it is sometimes desirable or necessary to do it in hex, and it can't hurt to know how it's done.

For palette locations, see SCHG:Sonic 3 & Knuckles/Art Editing/Palette Locations. For information about the palette format, see Megadrive palette.

Pattern Load Requests

PLRs tell the game engine where to get Nemesis-compressed art data and where to put it. The format is rather simple: each PLR starts off with a one-word header, which is the number of entries to load - 1. The actual entries follow this header - each entry is one longword, which is the location in ROM of the compressed art, followed by one word, which is the location in VRAM to decompress to.

The RAM queue is $60 bytes long, meaning it has space for 16 PLRs. However, a coding error in the clearing routine means that storing a PLR in the last slot screws everything up, so effectively only 15 requests can be stored at one time. Note that the routines that load PLRs into the queue do not do any bounds checking, and it is quite easy to create a buffer overrun condition. Further, both lists seem to be moved into the queue at the same time, so even if neither one is longer than 15 requests, they can still overrun the queue and destroy the variables that are stored just beyond it. Make sure that the primary and secondary PLR lists are no more than 15 requests long.


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