ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sun May 19, 2019 9:15 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: PSP game: XET Format
PostPosted: Wed Apr 24, 2019 6:09 pm 

Joined: Wed Apr 24, 2019 4:27 pm
Posts: 2
Hi!

Need a little help decoding this texture file. Goal is to fix english fonts in an old PSP game.
Byte order is little endian.

HEADER INFOS: 0x00-0x2F
PIXEL DATA: 0x30
COLOR PALETTE
FOOTER INFOS

Image
There is not much in the header, apart from pointers to the end of the file, so let's jump there.
Image
In the line 4440 we can find a pointer to 4430, where (I believe) we can find the dimensions of the image.
Example:
80 00 | 80 00 | 80 00 | 00 00 | 30 00 00 00
80(hex) is 128 in dec, and multiplying it with the next two bytes will be 16384, which is the length of the PIXEL data. (4000 in hex)
I'm not sure why is 80 00 there for 3 times?
The 4 bytes in this line, at 4438 points to the begining of the pixel data (0x30).

The start of the color palette is declared at 4474, 4bytes.
In this case its 30 40 00 00.
By subtracting 30 from 4030 we get 4000(hex) -> 16384 in dec.
So each byte corresponds to one pixel.

The color palette follows a simple red, green, blue and alpha pattern coded on 4bytes.
I've attached a few example files.

I'd be glad if someone could help me crack the remaining stuff.

This is what I can extract right now:
Image


Attachments:
textureSample.zip [75.47 KiB]
Downloaded 7 times
Top
   
 Post subject: Re: PSP game: XET Format
PostPosted: Sun Apr 28, 2019 6:23 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 606
definitely swizzled too, you seem have all info you need to decode it easily with "Console Texture Explorer". :)
what is the game name?

_________________
Quickbms.com link thread
Search bms scripts


Top
   
 Post subject: Re: PSP game: XET Format
PostPosted: Mon Apr 29, 2019 3:52 pm 

Joined: Wed Apr 24, 2019 4:27 pm
Posts: 2
The game is Lord of Apocalypse.

I can't get anything usefull out from the program sadly.
Could you take a look, please?


Top
   
 Post subject: Re: PSP game: XET Format
PostPosted: Thu May 02, 2019 2:08 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 606
yeah here is Noesis python script to open your samples. :D
Attachment:
tex_LordofApocalypse_PSP_xet.zip [700 Bytes]
Downloaded 7 times

_________________
Quickbms.com link thread
Search bms scripts


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

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited