READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Does anyone know what these .raw textures are?

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Mikeee
n00b
Posts: 14
Joined: Thu Apr 27, 2017 1:12 am
Has thanked: 1 time
Been thanked: 2 times

Does anyone know what these .raw textures are?

Post by Mikeee » Thu Apr 27, 2017 1:17 am

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.

User avatar
Acewell
VIP member
VIP member
Posts: 1266
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2398 times
Been thanked: 734 times

Re: Does anyone know what these .raw textures are?

Post by Acewell » Thu Apr 27, 2017 3:40 am

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: Select all

get NAME filename
string NAME + "_dec"
get COMPRESSIONTYPE 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
if COMPRESSIONTYPE == 0x7bd
    comtype zlib_noerror
    clog NAME OFFSET ZSIZE ZSIZE
elif COMPRESSIONTYPE == 0x8bd
    comtype zstd
    clog NAME OFFSET ZSIZE SIZE
endif
append
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
Last edited by Acewell on Fri Jun 21, 2019 12:09 am, edited 2 times in total.

Mikeee
n00b
Posts: 14
Joined: Thu Apr 27, 2017 1:12 am
Has thanked: 1 time
Been thanked: 2 times

Re: Does anyone know what these .raw textures are?

Post by Mikeee » Fri Apr 28, 2017 3:11 am

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?

User avatar
Acewell
VIP member
VIP member
Posts: 1266
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2398 times
Been thanked: 734 times

[Android] CATS: Crash Arena Turbo Stars

Post by Acewell » Fri Apr 28, 2017 3:48 am

here is Noesis python script to open the textures decompressed by the bms script :D
tex_CrashArenaTurboStars_raw_dec.zip
supports RGBA8888, BGR565, ABGR4444
You do not have the required permissions to view the files attached to this post.
Last edited by Acewell on Fri Apr 28, 2017 4:28 am, edited 2 times in total.

Mikeee
n00b
Posts: 14
Joined: Thu Apr 27, 2017 1:12 am
Has thanked: 1 time
Been thanked: 2 times

Re: Does anyone know what these .raw textures are?

Post by Mikeee » Fri Apr 28, 2017 4:03 am

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!

User avatar
Acewell
VIP member
VIP member
Posts: 1266
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2398 times
Been thanked: 734 times

Re: Does anyone know what these .raw textures are?

Post by Acewell » Fri Apr 28, 2017 4:09 am

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. (:

Mikeee
n00b
Posts: 14
Joined: Thu Apr 27, 2017 1:12 am
Has thanked: 1 time
Been thanked: 2 times

Re: Does anyone know what these .raw textures are?

Post by Mikeee » Fri Apr 28, 2017 4:15 am

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

User avatar
Acewell
VIP member
VIP member
Posts: 1266
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2398 times
Been thanked: 734 times

Re: Does anyone know what these .raw textures are?

Post by Acewell » Fri Apr 28, 2017 4:27 am

ok i updated the script here :D
viewtopic.php?p=130114#p130114

Mikeee
n00b
Posts: 14
Joined: Thu Apr 27, 2017 1:12 am
Has thanked: 1 time
Been thanked: 2 times

Re: Does anyone know what these .raw textures are?

Post by Mikeee » Fri Apr 28, 2017 4:31 am

AceWell wrote:ok i updated the script here :D
viewtopic.php?p=130114#p130114
Thank you my wizard friend! :]

tontonGrim
ultra-n00b
Posts: 4
Joined: Sun Jun 16, 2019 6:40 pm

Re: Does anyone know what these .raw textures are?

Post by tontonGrim » Sun Jun 16, 2019 7:17 pm

Hello Acewell !,


i'm french, and two years later, i would like too extract sprite from this game :-)

I used your bms script and your neosis script, but i have problems.

in zip joined, you have, yout bms script, your neosis script, a exemple of raw file and the bms result and neosis result.

Can you help me !

Thank you very much
You do not have the required permissions to view the files attached to this post.

User avatar
Acewell
VIP member
VIP member
Posts: 1266
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2398 times
Been thanked: 734 times

Re: Does anyone know what these .raw textures are?

Post by Acewell » Fri Jun 21, 2019 12:01 am

the compression on your new sample is zstd instead of zlib,
i have modified the bms script here to decompress both types now. :D
https://forum.xentax.com/viewtopic.php? ... 06#p130078

tontonGrim
ultra-n00b
Posts: 4
Joined: Sun Jun 16, 2019 6:40 pm

Re: Does anyone know what these .raw textures are?

Post by tontonGrim » Fri Jun 21, 2019 3:46 pm

Hello Acewell!

Thank you for your return, I was looking forward to it! :-)

It works ! thank you very much ! :-)
Little question, in the APK file, there are .pb files and .zst files (see my zip file)

Do you know what these files correspond to? is it animations, prefab or other? can I integrate them into Unity or extract them with another particular tool?

Thank you again for your help ! :-)
You do not have the required permissions to view the files attached to this post.

User avatar
Acewell
VIP member
VIP member
Posts: 1266
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2398 times
Been thanked: 734 times

Re: Does anyone know what these .raw textures are?

Post by Acewell » Tue Jun 25, 2019 8:15 am

tontonGrim wrote:
Fri Jun 21, 2019 3:46 pm
Little question, in the APK file, there are .pb files and .zst files (see my zip file)
Do you know what these files correspond to? is it animations, prefab or other? can I integrate them into Unity or extract them with another particular tool?
i don't see any zst files in the zip, the zps files are
text files and i don't know what the pb files are for, sorry.

Post Reply