Page 1 of 1

TGA map abnormal file

Posted: Sat Nov 09, 2019 10:16 am
by douchi
TGA地图是加密的,就像一个游戏引擎自定义格式。有人能解密它并将其转换成正常的图像格式吗?
http://xxa.wanmei.com/
样本文件:

https://mega.nz/#!K34WnYgB!uqQS7lI2blHB.cltu7XGX08

Re: xiao ao jiang hu TGA map abnormal file

Posted: Sat Nov 09, 2019 3:37 pm
by aspadm
Hi!

Did I understand correctly that the APK file of the game is called com.pwrd.xxajh.huawei and weighs about 2GB?
If so, this TGA is stored in .pak files inside "assets" folder, right?

Re: xiao ao jiang hu TGA map abnormal file

Posted: Sat Nov 09, 2019 4:07 pm
by douchi
aspadm wrote: Sat Nov 09, 2019 3:37 pm Hi!

Did I understand correctly that the APK file of the game is called com.pwrd.xxajh.huawei and weighs about 2GB?
If so, this TGA is stored in .pak files inside "assets" folder, right?
Hello, yes, so the files are stored in media2.PAk, media3.pak

Re: xiao ao jiang hu TGA map abnormal file

Posted: Sat Nov 09, 2019 4:35 pm
by aspadm
For me it looks like this is the in-game texture format, just named ERA, but with TGA extension. At least, game library have some functions like "Texture::_parser_era" (in one row with "Texture::_parser_pvr" and "Texture::_parser_dds").

I'll try to write a decoder, but do not promise something.

Re: xiao ao jiang hu TGA map abnormal file

Posted: Sat Nov 09, 2019 4:43 pm
by douchi
aspadm wrote: Sat Nov 09, 2019 4:35 pm For me it looks like this is the in-game texture format, just named ERA, but with TGA extension. At least, game library have some functions like "Texture::_parser_era" (in one row with "Texture::_parser_pvr" and "Texture::_parser_dds").

I'll try to write a decoder, but do not promise something.
Thank you for your help and look forward to your good news.

Re: xiao ao jiang hu TGA map abnormal file

Posted: Mon Nov 11, 2019 5:18 pm
by douchi
aspadm wrote: Sat Nov 09, 2019 4:35 pm For me it looks like this is the in-game texture format, just named ERA, but with TGA extension. At least, game library have some functions like "Texture::_parser_era" (in one row with "Texture::_parser_pvr" and "Texture::_parser_dds").

I'll try to write a decoder, but do not promise something.
Hi friend, what's the latest

Re: xiao ao jiang hu TGA map abnormal file

Posted: Tue Nov 12, 2019 12:25 am
by aspadm
Hi!

After some research, I detected, that this is ASTC texture compression with custom header.
I'll polish the script and post it some hours later.
Main reason is that there are can be cubemap textures, so I want to support it.

Example of "c_257_cj_he.tga"
Image

Re: xiao ao jiang hu TGA map abnormal file

Posted: Tue Nov 12, 2019 2:27 am
by douchi
Hi, you're fantastic. Look forward to it!

Re: xiao ao jiang hu TGA map abnormal file

Posted: Wed Nov 13, 2019 3:13 am
by Acewell
here is a quick Noesis python script to open your samples until aspadm releases his complete solution. :D
tex_XiaoAoJiangHu_Android_tga.zip
supports astc 6x6, top level mip only

Re: xiao ao jiang hu TGA map abnormal file

Posted: Wed Nov 13, 2019 8:02 am
by douchi
Thank you. It's amazing.

Re: xiao ao jiang hu TGA map abnormal file

Posted: Thu Nov 14, 2019 2:36 pm
by aspadm
Sorry for make you waiting so long. This is the corrected version of Noesis python script, that supports texture with several layers (e.g. cubemaps) and with differrent block sizes.

Re: xiao ao jiang hu TGA map abnormal file

Posted: Fri Nov 15, 2019 2:57 am
by douchi
Thank you and acewell for helping me. Solved my big problem!

Re: xiao ao jiang hu TGA map abnormal file

Posted: Tue Sep 01, 2020 6:02 pm
by lkw019
Acewell wrote: Wed Nov 13, 2019 3:13 am here is a quick Noesis python script to open your samples until aspadm releases his complete solution. :D
tex_XiaoAoJiangHu_Android_tga.zip
supports astc 6x6, top level mip only
Hi, there, Acewell. Could you take a look at this for me? This is an Android exported PNG map, but it doesn't display properly. It's probably encrypted. SAMPLE FILE: https://mega.nz/file/72iwtcrl#g9orr1k68 ... as5yetqhyu