Join also our Discord channel! Click here.
TGA map abnormal file
TGA map abnormal file
TGA地图是加密的,就像一个游戏引擎自定义格式。有人能解密它并将其转换成正常的图像格式吗?
http://xxa.wanmei.com/
样本文件:
https://mega.nz/#!K34WnYgB!uqQS7lI2blHB.cltu7XGX08
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.
- 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
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?
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
Hello, yes, so the files are stored in media2.PAk, media3.pak
- 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
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.
I'll try to write a decoder, but do not promise something.
Re: xiao ao jiang hu TGA map abnormal file
Thank you for your help and look forward to your good news.aspadm wrote: ↑Sat Nov 09, 2019 4:35 pmFor 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
Hi friend, what's the latestaspadm wrote: ↑Sat Nov 09, 2019 4:35 pmFor 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.
- 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
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"

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"

- Acewell
- VIP member
- Posts: 1329
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2683 times
- Been thanked: 831 times
Re: xiao ao jiang hu TGA map abnormal file
here is a quick Noesis python script to open your samples until aspadm releases his complete solution.
supports astc 6x6, top level mip only

You do not have the required permissions to view the files attached to this post.
- 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
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.
Re: xiao ao jiang hu TGA map abnormal file
Thank you and acewell for helping me. Solved my big problem!
Re: xiao ao jiang hu TGA map abnormal file
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