XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu May 25, 2017 7:30 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Does anyone know what these .raw textures are?
PostPosted: Thu Apr 27, 2017 1:17 am 
Offline
ultra-n00b

Joined: Thu Apr 27, 2017 1:12 am
Posts: 5
Has thanked: 0 time
Have thanks: 1 time














You can make the ads go away by registering

https://mega.nz/#!bxMiVRCA!bpq0pMSYQ44w ... 9vFY8cJsPk

Photoshop has trouble opening them, and the ones that do open are just a black and white noise pattern.

These are from an android game.


Top
 Profile  
 
 Post subject: Re: Does anyone know what these .raw textures are?
PostPosted: Thu Apr 27, 2017 3:40 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 769
Has thanked: 1692 times
Have thanks: 380 times
what is the game name?

15 byte little-endian header followed by zlib compressed texture data

header
2 bytes - unk (always 0x7bd)
2 bytes - width
2 bytes - height
1 byte - format
4 bytes - uncompressed size of texture data
4 bytes - compressed size of texture data

this bms script will decompress all but one of your *.raw samples :D
Code:
comtype zlib_noerror
get SIZE asize
get NAME filename
string NAME + "_dec"
get UNK short
get WIDTH short
get HEIGHT short
get FORMAT byte
get SIZE long
get ZSIZE long
savepos OFFSET
set MEMORY_FILE binary "\x00\x00\x00\x00\x00\x00\x00\x00\x00"
putVarChr MEMORY_FILE 0x0 WIDTH short
putVarChr MEMORY_FILE 0x2 HEIGHT short
putVarChr MEMORY_FILE 0x4 FORMAT byte
putVarChr MEMORY_FILE 0x5 SIZE long
log NAME 0 9 MEMORY_FILE
append
clog NAME OFFSET ZSIZE ZSIZE

the script also places a temporary 9 byte header in each file
2 bytes - width
2 bytes - height
1 byte - format
4 bytes - data size

to decompress "champ_result_640_960.raw" and "champ_result_640_960.raw1" you have to
append the data of *.raw1 to the *.raw file, then you can run the result through the bms script. (:

there is still the issue of figuring out the various formats, but at least this is a start :D

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Does anyone know what these .raw textures are?
PostPosted: Fri Apr 28, 2017 3:11 am 
Offline
ultra-n00b

Joined: Thu Apr 27, 2017 1:12 am
Posts: 5
Has thanked: 0 time
Have thanks: 1 time
These are for https://www.catsthegame.com/

I saw another topic of the zeptolab .raw files you posted in and I got them open with offzip and trial and error of guessing the width and height of the image and opening them as .raw with photoshop! Is there an easier way to open them without having to input the width and height manually?


Top
 Profile  
 
 Post subject: [Android] CATS: Crash Arena Turbo Stars
PostPosted: Fri Apr 28, 2017 3:48 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 769
Has thanked: 1692 times
Have thanks: 380 times
here is Noesis python script to open the textures decompressed by the bms script :D

supports RGBA8888, BGR565, ABGR4444


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Last edited by AceWell on Fri Apr 28, 2017 4:28 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Does anyone know what these .raw textures are?
PostPosted: Fri Apr 28, 2017 4:03 am 
Offline
ultra-n00b

Joined: Thu Apr 27, 2017 1:12 am
Posts: 5
Has thanked: 0 time
Have thanks: 1 time
This is some wizardry! I can only assume though the stickers are weird colors due to them doing something with the colors in-game?
http://i.imgur.com/92NntxJ.png

And anyways, thank you so much!


Top
 Profile  
 
 Post subject: Re: Does anyone know what these .raw textures are?
PostPosted: Fri Apr 28, 2017 4:09 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 769
Has thanked: 1692 times
Have thanks: 380 times
Mikeee wrote:
This is some wizardry! I can only assume though the stickers are weird colors due to them doing something with the colors in-game?
http://i.imgur.com/92NntxJ.png

what color are they in the game? do you have a reference photo for comparison?
i might need to switch the color channels around in the script. (:

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Does anyone know what these .raw textures are?
PostPosted: Fri Apr 28, 2017 4:15 am 
Offline
ultra-n00b

Joined: Thu Apr 27, 2017 1:12 am
Posts: 5
Has thanked: 0 time
Have thanks: 1 time
AceWell wrote:
what color are they in the game? do you have a reference photo for comparison?
i might need to switch the color channels around in the script. (:


http://i.imgur.com/2jrLlxl.jpg


Top
 Profile  
 
 Post subject: Re: Does anyone know what these .raw textures are?
PostPosted: Fri Apr 28, 2017 4:27 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 769
Has thanked: 1692 times
Have thanks: 380 times
ok i updated the script here :D
viewtopic.php?p=130114#p130114

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Does anyone know what these .raw textures are?
PostPosted: Fri Apr 28, 2017 4:31 am 
Offline
ultra-n00b

Joined: Thu Apr 27, 2017 1:12 am
Posts: 5
Has thanked: 0 time
Have thanks: 1 time
AceWell wrote:
ok i updated the script here :D
viewtopic.php?p=130114#p130114


Thank you my wizard friend! :]


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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