Join also our Discord channel! Click here.

TGA map abnormal file

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
douchi
n00b
Posts: 19
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times

TGA map abnormal file

Post by douchi » Sat Nov 09, 2019 10:16 am

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

https://mega.nz/#!K34WnYgB!uqQS7lI2blHB.cltu7XGX08
Last edited by douchi on Fri May 08, 2020 1:15 pm, edited 1 time in total.

User avatar
aspadm
beginner
Posts: 36
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 24 times

Re: xiao ao jiang hu TGA map abnormal file

Post by aspadm » 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?

douchi
n00b
Posts: 19
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times

Re: xiao ao jiang hu TGA map abnormal file

Post by douchi » Sat Nov 09, 2019 4:07 pm

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

User avatar
aspadm
beginner
Posts: 36
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 24 times

Re: xiao ao jiang hu TGA map abnormal file

Post by aspadm » 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.

douchi
n00b
Posts: 19
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times

Re: xiao ao jiang hu TGA map abnormal file

Post by douchi » Sat Nov 09, 2019 4:43 pm

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.

douchi
n00b
Posts: 19
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times

Re: xiao ao jiang hu TGA map abnormal file

Post by douchi » Mon Nov 11, 2019 5:18 pm

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

User avatar
aspadm
beginner
Posts: 36
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 24 times

Re: xiao ao jiang hu TGA map abnormal file

Post by aspadm » Tue Nov 12, 2019 12:25 am

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

douchi
n00b
Posts: 19
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times

Re: xiao ao jiang hu TGA map abnormal file

Post by douchi » Tue Nov 12, 2019 2:27 am

Hi, you're fantastic. Look forward to it!

User avatar
Acewell
VIP member
VIP member
Posts: 1317
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2658 times
Been thanked: 816 times

Re: xiao ao jiang hu TGA map abnormal file

Post by Acewell » 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
You do not have the required permissions to view the files attached to this post.

douchi
n00b
Posts: 19
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times

Re: xiao ao jiang hu TGA map abnormal file

Post by douchi » Wed Nov 13, 2019 8:02 am

Thank you. It's amazing.

User avatar
aspadm
beginner
Posts: 36
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 24 times

Re: xiao ao jiang hu TGA map abnormal file

Post by aspadm » Thu Nov 14, 2019 2:36 pm

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.
You do not have the required permissions to view the files attached to this post.

douchi
n00b
Posts: 19
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times

Re: xiao ao jiang hu TGA map abnormal file

Post by douchi » Fri Nov 15, 2019 2:57 am

Thank you and acewell for helping me. Solved my big problem!

User avatar
lkw019
veteran
Posts: 81
Joined: Mon Jul 18, 2011 2:22 pm
Has thanked: 12 times

Re: xiao ao jiang hu TGA map abnormal file

Post by lkw019 » Tue Sep 01, 2020 6:02 pm

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

Post Reply