Talk:SHA Format

From ModdingWiki
Jump to navigation Jump to search

Regarding the Special Tiles section, I think Jill uses the same palette for the entire game. I remember Xargon definitely does switch palettes. It would be difficult to tell unless we modded the graphics file into the game. SaxxonPike 04:46, 8 March 2012 (GMT)

Coordinates?

I think I just noticed the unexpected: the wiki says that the header of each shape contains the following three entries: "Width (in pixels), Height (in pixels), Compression type" (which makes sense since it's pretty standard to store information left to right, top to bottom)... Except Jill stores each pixel as (Y, X) (top to bottom AND THEN left to right) instead of (X, Y). I tried to extract anything else but tiles and noticed the pictures were screwed up. Because the header is in fact "Height (in pixels), Width (in pixels), Compression type". I think we never noticed because most of the time, you only want to extract the graphics tiles (and since they are square...); I did it for Jill Goes Underground (Jill Trilogy Episode 2), can anyone confirm?

UPDATE: Scratch that. Width & Height it is (but the picture is still encoded by columns instead of rows -- it's either that or I'm high. There's something confusing here...) --Ilovemyq3map2 (talk) 13:25, 28 February 2014 (GMT)

According to the original game code (around line 104) the X value is stored before the Y value. Around lines 128 and 137 it appears to go left to right, line by line from the top as you would expect. Maybe if you're encountering problems it's due to a decoding issue instead? Feel free to post on the modding forum if you'd like to discuss it. -- Malvineous (talk) 05:06, 6 April 2014 (GMT)