The current URL is datacrystal.tcrf.net.
EarthBound/Map Data/Compressed Palette Animation Data: Difference between revisions
(→Format) |
(→Decompressed Format: Document format) |
||
Line 18: | Line 18: | ||
==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]] |
Revision as of 15:49, 17 July 2023
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
- Length: 2 bytes (0x2)
- Offset within entry: 0x00
- Range of values: ???
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
- Length: 30 bytes (0x1e)
- Offset within entry: 0x02
- Range of values: color values
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
- Length: 2 bytes (0x2)
- Offset within entry: 0x20
- Range of values: ???
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
- Length: 30 bytes (0x1e)
- Offset within entry: 0x22
- Range of values: color values
15-color subpalette. Same format as Subpalette 0.
Unknown
- Length: 2 bytes (0x2)
- Offset within entry: 0x40
- Range of values: ???
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
- Length: 30 bytes (0x1e)
- Offset within entry: 0x42
- Range of values: color values
15-color subpalette. Same format as Subpalette 0.
Unknown
- Length: 2 bytes (0x2)
- Offset within entry: 0x60
- Range of values: ???
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
- Length: 30 bytes (0x1e)
- Offset within entry: 0x62
- Range of values: color values
15-color subpalette. Same format as Subpalette 0.
Unknown
- Length: 2 bytes (0x2)
- Offset within entry: 0x80
- Range of values: ???
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
- Length: 30 bytes (0x1e)
- Offset within entry: 0x82
- Range of values: color values
15-color subpalette. Same format as Subpalette 0.
Unused
- Length: 2 bytes (0x2)
- Offset within entry: 0xa0
- Range of values: 0x0000-0xffff
Unused zero color that will always be treated as transparent, no matter its value. Always 0x0000 in unmodified EarthBound.
Subpalette 5
- Length: 30 bytes (0x1e)
- Offset within entry: 0xa2
- Range of values: color values
15-color subpalette. Same format as Subpalette 0.