Difference between revisions of "User:Buddha^/GSoC2007-ProjectDiary"

Jump to navigation Jump to search
Added info on done work on 2007-07-30.
(Added info on done work on 2007-07-28 and 2007-07-29.)
(Added info on done work on 2007-07-30.)
Line 873: Line 873:
* Header offset 51
* Header offset 51
** Unknown function, uses values 0, 1, 2, 7
** Unknown function, uses values 0, 1, 2, 7
== 2007-07-30 (Monday) - Locating Apple IIGS instruments and Atari ST and Apple IIGS palettes ==
Played with [http://hte.sourceforge.net/ HT Editor] to find out where the instrument
data is in different Apple IIGS AGI games. Found out the offsets into the games' executables
but haven't yet compared the instrument data between games to see how much of it is shared data.
Also looked into the SIERRASTANDARD-file that comes with Apple IIGS AGI games.
It's a 65536 bytes long file containing raw unsigned 8-bit mono PCM-audio data.
Its identical between all the Apple IIGS AGI games I've tested, excluding Space
Quest I (It has a couple of different sounds).
As I was going through the Apple IIGS AGI executables in search for the instrument data
I also though why not look for the palette data as well. Tried out a couple of possibilities
and finally found the palette with the search key (0xBB, 0x0B). As I had looked up from
Wikipedia that Apple IIGS used a 4096 (12-bit) palette it helped to narrow down the
search possibilities. Bytes 0xBB, 0x0B define an AGI palette color 7, which is gray.
So I looked through all the Apple IIGS game data I had for different palettes and compared
them.
According to the data I have compared there are two different Apple IIGS AGI palettes.
The first one is older and is only used in Space Quest I (AGI version 1.002) and it
is identical to the oldest generation [[User:Buddha%5E/GSoC2007-ProjectDiary#The_three_generations_of_Amiga_AGI_palettes | Amiga AGI palette]].
All other games (AGI versions 1.003 - 3.003) use a slightly different palette that's otherwise
identical to the first one but has a different color 13. Older palette uses an orange 0xF70
(12-bit RGB) there but all others use a light purple 0xD9F.
Just for the kicks I also looked through Atari ST AGI executables for palette data.
Wikipedia helped here again as it told me that the original Atari ST had a 64-color
palette. So after some searching I found the palette data. Extracted palettes from
all the Atari ST AGI executables I had access to and compared the data. I only
found a single identical palette shared between all of the Atari ST AGI games.
Here it is:
<pre>
/**
* Atari ST AGI palette.
* Used by all of the tested Atari ST AGI games.
* 16 RGB colors. 3 bits per color component.
*/
static const byte atariStAgiPalette[16 * 3] = {
0x0, 0x0, 0x0,
0x0, 0x0, 0x7,
0x0, 0x4, 0x0,
0x0, 0x5, 0x4,
0x5, 0x0, 0x0,
0x5, 0x3, 0x6,
0x4, 0x3, 0x0,
0x5, 0x5, 0x5,
0x3, 0x3, 0x2,
0x0, 0x5, 0x7,
0x0, 0x6, 0x0,
0x0, 0x7, 0x6,
0x7, 0x2, 0x3,
0x7, 0x4, 0x7,
0x7, 0x7, 0x4,
0x7, 0x7, 0x7
};
</pre>
417

edits

Navigation menu