Important information: this site is currently scheduled to go offline indefinitely by end of the year.

TGA map abnormal file

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

TGA map abnormal file

Post by douchi »

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
advanced
Posts: 52
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 34 times

Re: xiao ao jiang hu TGA map abnormal file

Post 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?
douchi
beginner
Posts: 21
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times
Been thanked: 1 time

Re: xiao ao jiang hu TGA map abnormal file

Post 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
User avatar
aspadm
advanced
Posts: 52
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 34 times

Re: xiao ao jiang hu TGA map abnormal file

Post 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.
douchi
beginner
Posts: 21
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times
Been thanked: 1 time

Re: xiao ao jiang hu TGA map abnormal file

Post 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.
douchi
beginner
Posts: 21
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times
Been thanked: 1 time

Re: xiao ao jiang hu TGA map abnormal file

Post 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
User avatar
aspadm
advanced
Posts: 52
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 34 times

Re: xiao ao jiang hu TGA map abnormal file

Post 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
douchi
beginner
Posts: 21
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times
Been thanked: 1 time

Re: xiao ao jiang hu TGA map abnormal file

Post by douchi »

Hi, you're fantastic. Look forward to it!
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: xiao ao jiang hu TGA map abnormal file

Post 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
You do not have the required permissions to view the files attached to this post.
douchi
beginner
Posts: 21
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times
Been thanked: 1 time

Re: xiao ao jiang hu TGA map abnormal file

Post by douchi »

Thank you. It's amazing.
User avatar
aspadm
advanced
Posts: 52
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 34 times

Re: xiao ao jiang hu TGA map abnormal file

Post 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.
You do not have the required permissions to view the files attached to this post.
douchi
beginner
Posts: 21
Joined: Sun Sep 29, 2019 3:24 pm
Has thanked: 12 times
Been thanked: 1 time

Re: xiao ao jiang hu TGA map abnormal file

Post by douchi »

Thank you and acewell for helping me. Solved my big problem!
lkw019
veteran
Posts: 96
Joined: Mon Jul 18, 2011 2:22 pm
Has thanked: 14 times
Been thanked: 1 time

Re: xiao ao jiang hu TGA map abnormal file

Post 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
Post Reply