Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

EarthBound/Map Data/Palettes: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Recreate page and start documenting format.)
 
(→‎Format: Further document the format)
Line 15: Line 15:
==Format<span class="anchor" id="Format"></span>==
==Format<span class="anchor" id="Format"></span>==


Each entry represents palette data for use by EarthBound map graphics. Each entry is itself comprised of 6 subpalettes, each comprised of 16 colors.
Each entry represents palette data for use by EarthBound map graphics. Each entry is itself comprised of 6 subpalettes, each comprised of 16 [[Super_Nintendo:Color|colors]].


''Terminology Note: What the EarthBound modding community generally refers to as a "subpalette" is itself generally referred to in general SNES development as a "palette", and therefore what is generally referred to in EarthBound modding as a "palette" (at least in the context of map changes) would in general SNES development be a group of palettes.''
''Terminology Note: What the EarthBound modding community generally refers to as a "subpalette" is itself referred to in the SNES development guide as a "palette", and therefore the grouping of 6 of those, which is generally referred to in EarthBound modding as a "palette" (at least in the context of map changes), would in general SNES development be a group of palettes.''
 
Colors are stored as little endian (2 bytes):
gggrrrrr 0bbbbbgg
 
Each subpalette is stored as 16 colors in a row (32 bytes). The first color in each subpalette is always treated as transparent. ''Is that first color always stored as <tt>0x00</tt>, or does EarthBound sometimes use it for flags?''
 
Finally, each palette is stored as 6 subpalettes in a row (192 bytes).


[[Category:EarthBound:Map_Data|Palettes]]
[[Category:EarthBound:Map_Data|Palettes]]
{{stub}}
{{stub}}

Revision as of 02:08, 23 June 2023

This is a sub-page of EarthBound/Map Data.

Map Palettes
Game EarthBound
Start Address 0x1A7EA7
End Address 0x1AFCA6
# of Entries 168
Entry Length 192 bytes (0xC0)
Total Length 32256 bytes (0x7E00)
Back to the ROM map

Data block of the palette data used for game maps.

Format

Each entry represents palette data for use by EarthBound map graphics. Each entry is itself comprised of 6 subpalettes, each comprised of 16 colors.

Terminology Note: What the EarthBound modding community generally refers to as a "subpalette" is itself referred to in the SNES development guide as a "palette", and therefore the grouping of 6 of those, which is generally referred to in EarthBound modding as a "palette" (at least in the context of map changes), would in general SNES development be a group of palettes.

Colors are stored as little endian (2 bytes):

gggrrrrr 0bbbbbgg

Each subpalette is stored as 16 colors in a row (32 bytes). The first color in each subpalette is always treated as transparent. Is that first color always stored as 0x00, or does EarthBound sometimes use it for flags?

Finally, each palette is stored as 6 subpalettes in a row (192 bytes).

So very stubbly.
This page is rather stubbly and could use some expansion.
Are you a bad enough dude to rescue this article?