Street Wars gfx

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Rheini
Moderator
Posts: 653
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 40 times
Contact:

Street Wars gfx

Post by Rheini » Sat Jul 07, 2007 10:41 pm

EDIT:
I've found the files which must contain the graphics data.
http://uploaded.to/?id=0oaqob

Any help appreciated. :)

Edit:
Here's my current 010 Editor template. It works for BUTTONS.SPR but I still don't know in which order the colors in the palettes are stored and in which order they are indexed in the data field.

The sprites are stored upside down. Some SPRs contain their own palette at the end of the file. Those who don't use the palettes in the game's PALETTES folder. Those files are available here: http://uploaded.to/?id=gw4oz6

Additionally they seem to use some unknown compression in the other ones cause the data block is smaller than width*height there.

Code: Select all

local int i;

struct Header {
	uint	NumSprites;
	uint	offsets[NumSprites];
	uint	PaletteOffset;
} header;

struct Sprite {
	ushort	uk1;
	ushort	uk2;
	ushort	width;
	ushort	height;
	ubyte	data[width*height]; // works only for buttons.spr, others seem to use unknown compression
};

for(i=0; i<header.NumSprites; i++)
{
	if (header.offsets[i] != 0)
	{
		FSeek(header.offsets[i]);
		Sprite sprites;
	}
}

if (header.PaletteOffset != 0)
{
//	FSeek(header.PaletteOffset);
	struct RGB {
		ubyte r;
		ubyte g;
		ubyte b;
	} palette[256];
}
You do not have the required permissions to view the files attached to this post.

Rheini
Moderator
Posts: 653
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 40 times
Contact:

Re: Street Wars gfx

Post by Rheini » Thu Mar 11, 2010 4:08 pm

Hmm still don't know how the palette is indexed and what compression is used.
Don't know any reason why it shouldn't be indexed normally :?
You do not have the required permissions to view the files attached to this post.

Post Reply