XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Wed Jan 23, 2019 1:49 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: *.spr and *.pal
PostPosted: Fri Jan 11, 2019 2:28 am 
Offline
beginner

Joined: Tue Aug 12, 2014 5:49 pm
Posts: 21
Has thanked: 2 times
Have thanks: 4 times

Hi,

Someone can help me in read *.spr files? I added *.pal files too, because I think this files use theses palettes.

Download: https://drive.google.com/file/d/1VYZxz8 ... sp=sharing

I already tried to use TextureFinder.

About HEADER of the *.spr files, I think it's something like:

Header
- sizeX
- sizeY
- totalLength

Cheers!!

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: *.spr and *.pal
PostPosted: Sat Jan 12, 2019 3:20 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1149
Has thanked: 2294 times
Have thanks: 661 times
i took a quick look and i don't know how the pal files relate to the spr files, but
the spr files have what looks to be a 32bit color palette and a 16bit color palette
with the same amount of colors in each already.
i will look into these a bit more later. :D
what is the full game name and platform from which the samples came?

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: *.spr and *.pal
PostPosted: Sat Jan 12, 2019 6:54 pm 
Offline
beginner

Joined: Tue Aug 12, 2014 5:49 pm
Posts: 21
Has thanked: 2 times
Have thanks: 4 times
Acewell wrote:
i took a quick look and i don't know how the pal files relate to the spr files, but
the spr files have what looks to be a 32bit color palette and a 16bit color palette
with the same amount of colors in each already.
i will look into these a bit more later. :D
what is the full game name and platform from which the samples came?


Yo @Acewell,

Name of the game is The Great Merchant (https://www.thegreatmerchant.com/) and Windows. This game uses own graphics engine (DX7), it is very old around the years 2004 ~ 2005.


I got something because I decompiled SPR Viewer (a koren tool used in this game). But my problem now is with *.s32 files, I already saw in another forum *.s32 file is related to TGA (32bit).

SPR Viewer:
https://drive.google.com/file/d/13fPk_w ... sp=sharing

Can you help me with *.s32 files?
Cheers!


Top
 Profile  
 
 Post subject: Re: *.spr and *.pal
PostPosted: Tue Jan 15, 2019 4:33 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1149
Has thanked: 2294 times
Have thanks: 661 times
ah, i should have known these might be sprites from the spr
extension, i tend to not trust extensions any more though. :D
what i thought was a color palette looks like an offset table now. (:

S32 files look the same as the spr to me except they store 32 bit data,
i'm no good with sprite data though so i don't think i can help. :(

fortunately that "SPR Viewer" program is written in .NET so it can be decompiled to source code. :D

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: *.spr and *.pal
PostPosted: Tue Jan 15, 2019 8:03 am 
Offline
veteran

Joined: Sat Oct 21, 2006 12:58 pm
Posts: 126
Has thanked: 5 times
Have thanks: 18 times
Just my few cents having looked a little.

pal files are standard vga 6-bit palette, the spr/s32 files format header is simple, first byte is seemingly format byte to be followed by width and height and the count.
However thats where things get dicey, actual data is compressed in both cases seemingly as math wise it won't match data size, the s32 files seem(?) to be using standard 4 byte RGBA information per pixel as expected but at very least the transparent space is RLEd or otherwise compressed if main data is not. If assume s32 relates to TGA, it could use TGA's scheme of compression packets would be 127 value long at max, whether raw or compressed packet.

EDIT: hmm yeah .spr files do check out, they use simple RLE scheme for compression thanks to checking the art with sprview but s32 files..hmm..ah..I don't think it's necessarily using tga method but it does use RLE seemingly too, just changed from .spr, would need programmer test encoding theorys out for s32.

Start of the spr and s32 files after header uses some kinda offset table or whatever data with lots of zeroes and is not the main interest besides figuring where each frame data starts.

Not sure what you need something this old and low quality game arts for tho.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group