EarthBound/Map Data/Compressed Palette Animation Data: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Create page)
 
 
(2 intermediate revisions by one other user not shown)
Line 15: Line 15:
==Format==
==Format==


See [[EarthBound:ASM:Decompression_Routine#CompressionFormat|Compression Format]].
Each entry is individually compressed. See [[EarthBound:ASM:Decompression_Routine#CompressionFormat|Compression Format]].


==Decompressed Format==
==Decompressed Format==
Each entry contains 1 to 8 full map palettes (number specified by the [[EarthBound:Map_Data:Palette_Animation_Secondary_Pointer/Data_Table#NumberOfPalettes|Palette_Animation_Secondary_Pointer/Data_Table]]). The map palettes are formatted similarly to [[EarthBound:Map_Data:Palettes#Format|non-animated map palettes]].
===Unknown<span class="anchor" id="Transparent0"></span>===
{{table el|len=<tt>2</tt> bytes (<tt>0x2</tt>)|loc=<tt>0x00</tt>|valrange=???}}
The SNES generally ignores the first color in any palette, always treating it as transparent. Unknown if EarthBound is using these bytes to store additional information about the palette because the value is non-zero for some animated palettes.
===Subpalette 0<span class="anchor" id="Subpalette0"></span>===
{{table el|len=<tt>30</tt> bytes (<tt>0x1e</tt>)|loc=<tt>0x02</tt>|valrange=[[Super_Nintendo:Color|color]] values}}
15-color subpalette. Combined with [[#Transparent0|Unknown]] as the first ignored transparent "color" to create a 16-color subpalette.
Colors are each stored as little endian (2 bytes):
gggrrrrr 0bbbbbgg
The subpalette is formatted as 15 colors in a row.
===Unknown===
{{table el|len=<tt>2</tt> bytes (<tt>0x2</tt>)|loc=<tt>0x20</tt>|valrange=???}}
The SNES generally ignores the first color in any palette, always treating it as transparent. Unknown if EarthBound is using these bytes to store additional information about the palette because the value is non-zero for some animated palettes.
===Subpalette 1===
{{table el|len=<tt>30</tt> bytes (<tt>0x1e</tt>)|loc=<tt>0x22</tt>|valrange=[[Super_Nintendo:Color|color]] values}}
15-color subpalette. Same format as [[#Subpalette0|Subpalette 0]].
===Unknown===
{{table el|len=<tt>2</tt> bytes (<tt>0x2</tt>)|loc=<tt>0x40</tt>|valrange=???}}
The SNES generally ignores the first color in any palette, always treating it as transparent. Unknown if EarthBound is using these bytes to store additional information about the palette because the value is non-zero for some animated palettes.
===Subpalette 2===
{{table el|len=<tt>30</tt> bytes (<tt>0x1e</tt>)|loc=<tt>0x42</tt>|valrange=[[Super_Nintendo:Color|color]] values}}
15-color subpalette. Same format as [[#Subpalette0|Subpalette 0]].
===Unknown===
{{table el|len=<tt>2</tt> bytes (<tt>0x2</tt>)|loc=<tt>0x60</tt>|valrange=???}}
The SNES generally ignores the first color in any palette, always treating it as transparent. Unknown if EarthBound is using these bytes to store additional information about the palette because the value is non-zero for some animated palettes.
===Subpalette 3===
{{table el|len=<tt>30</tt> bytes (<tt>0x1e</tt>)|loc=<tt>0x62</tt>|valrange=[[Super_Nintendo:Color|color]] values}}
15-color subpalette. Same format as [[#Subpalette0|Subpalette 0]].
===Unknown===
{{table el|len=<tt>2</tt> bytes (<tt>0x2</tt>)|loc=<tt>0x80</tt>|valrange=???}}
The SNES generally ignores the first color in any palette, always treating it as transparent. Unknown if EarthBound is using these bytes to store additional information about the palette because the value is non-zero for some animated palettes.
===Subpalette 4===
{{table el|len=<tt>30</tt> bytes (<tt>0x1e</tt>)|loc=<tt>0x82</tt>|valrange=[[Super_Nintendo:Color|color]] values}}
15-color subpalette. Same format as [[#Subpalette0|Subpalette 0]].
===Unused===
{{table el|len=<tt>2</tt> bytes (<tt>0x2</tt>)|loc=<tt>0xa0</tt>|valrange=<tt>0x0000-0xffff</tt>}}
Unused zero color that will always be treated as transparent, no matter its value. Always <tt>0x0000</tt> in unmodified EarthBound.
===Subpalette 5===
{{table el|len=<tt>30</tt> bytes (<tt>0x1e</tt>)|loc=<tt>0xa2</tt>|valrange=[[Super_Nintendo:Color|color]] values}}
15-color subpalette. Same format as [[#Subpalette0|Subpalette 0]].


[[Category:EarthBound:Map_Data|Compressed Palette Animation Data]]
[[Category:EarthBound:Map_Data|Compressed Palette Animation Data]]

Latest revision as of 02:41, 24 January 2024

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

Map Data: Compressed Palette Animation Data
Game EarthBound
Start Address 0x1FE81B
End Address 0x1FEE45
# of Entries 8
Entry Length Variable
Total Length 1579 bytes (0x62B)
Back to the ROM map

Data block of compressed map animation palettes. Entries are found via lookups to the Palette Animation Secondary Pointer/Data Table.

Format

Each entry is individually compressed. See Compression Format.

Decompressed Format

Each entry contains 1 to 8 full map palettes (number specified by the Palette_Animation_Secondary_Pointer/Data_Table). The map palettes are formatted similarly to non-animated map palettes.

Unknown

The SNES generally ignores the first color in any palette, always treating it as transparent. Unknown if EarthBound is using these bytes to store additional information about the palette because the value is non-zero for some animated palettes.

Subpalette 0

15-color subpalette. Combined with Unknown as the first ignored transparent "color" to create a 16-color subpalette.

Colors are each stored as little endian (2 bytes):

gggrrrrr 0bbbbbgg

The subpalette is formatted as 15 colors in a row.

Unknown

The SNES generally ignores the first color in any palette, always treating it as transparent. Unknown if EarthBound is using these bytes to store additional information about the palette because the value is non-zero for some animated palettes.

Subpalette 1

15-color subpalette. Same format as Subpalette 0.

Unknown

The SNES generally ignores the first color in any palette, always treating it as transparent. Unknown if EarthBound is using these bytes to store additional information about the palette because the value is non-zero for some animated palettes.

Subpalette 2

15-color subpalette. Same format as Subpalette 0.

Unknown

The SNES generally ignores the first color in any palette, always treating it as transparent. Unknown if EarthBound is using these bytes to store additional information about the palette because the value is non-zero for some animated palettes.

Subpalette 3

15-color subpalette. Same format as Subpalette 0.

Unknown

The SNES generally ignores the first color in any palette, always treating it as transparent. Unknown if EarthBound is using these bytes to store additional information about the palette because the value is non-zero for some animated palettes.

Subpalette 4

15-color subpalette. Same format as Subpalette 0.

Unused

Unused zero color that will always be treated as transparent, no matter its value. Always 0x0000 in unmodified EarthBound.

Subpalette 5

15-color subpalette. Same format as Subpalette 0.