TGA地图是加密的,就像一个游戏引擎自定义格式。有人能解密它并将其转换成正常的图像格式吗?
http://xxa.wanmei.com/
样本文件:
https://mega.nz/#!K34WnYgB!uqQS7lI2blHB.cltu7XGX08
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
TGA map abnormal file
- 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
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?
-
- 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
Hello, yes, so the files are stored in media2.PAk, media3.pak
- 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
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.
-
- 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
Thank you for your help and look forward to your good news.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.
-
- 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
Hi friend, what's the latestaspadm 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.
- 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
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"
-
- 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
here is a quick Noesis python script to open your samples until aspadm releases his complete solution.
supports astc 6x6, top level mip onlyYou do not have the required permissions to view the files attached to this post.
- 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
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.
-
- 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
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