Asphalt 8 .pig and .tga

Skeletons, animations, shaders, texturing, converting, fixing and anything else related to read game models
Doprond
Posts: 67
Joined: Tue Mar 15, 2016 3:38 pm

Asphalt 8 .pig and .tga

Post by Doprond »

Greetings,can anyone take a look on these models/textures files from the latest version of the mobile game called "Asphalt 8 : Airborne"?
Chipicao's script for 3ds max and standalone program (PIG2FBX) doesn't works.

Textures:
I tried to change .tga extension to .pvr and tried to open it in PvrTexTool.Looks strange.. :
http://i.imgur.com/m8kVnU4.jpg
Also i tried to change extension to .zip ( at least this method worked with Spider-Man Unlimited) but no effect..
Texture samples: https://mega.nz/#!2oBkiAQS!iejpqDH2xl4a ... 7AVw2zXIYM

Models:
Both script for 3ds max and standalone program doesn't works.
Model samples : https://mega.nz/#!G9Q32IrL!Hc-UWnSs82AC ... YVer8jmkqc

I have no idea how to open models/textures so i hope someone can help me.
Thanks in advance!
dionyseuss
Posts: 10
Joined: Sat Nov 05, 2016 6:55 am

Re: Asphalt 8 .pig and .tga

Post by dionyseuss »

-- BUMP--

I'm running into the same issue. Has anyone had a chance to update these tools?

I am having the same issue trying to get the models from newer version of Six Gun.

I tried this with Hex2Obj but didn't have any luck.

BS_salem_witch.zip
BCGhost
Posts: 35
Joined: Fri Dec 15, 2017 1:42 pm

Re: Asphalt 8 .pig and .tga

Post by BCGhost »

The compression had been changed, but I still have no clue about it.
Here the structure of the compressed data in the pig files:

Code: Select all

String   Material name(*.tga)
BYTEs   Null
BYTE   0x02
LONG   Compressed size
LONG   Uncompressed size
BYTEs   Compressed data(Start as 26 B5 2F FD, old version also had fixed header)
LONG   End Flag 0x64 as I called it
BCGhost
Posts: 35
Joined: Fri Dec 15, 2017 1:42 pm

Re: Asphalt 8 .pig and .tga

Post by BCGhost »

And structure of the compressed pvr textures:

Code: Select all

Offset                    Type                      Notes
0x2C                      Long                      Mipmap amount, also entry count
0x30                      Long                      Total header size
0x34                      LongLong                  String
0x3C                      Long                      Total entries size(TES)
0x40                      3x Long                   Entry info   
                                                     struct Entry
                                                     {
                                                         Long   Compressed data start offset
                                                         Long   ZipSize
                                                         Long   UnzipSize
                                                     }
0x40 + TES                Bytes                     Raw data

Raw compressed data also start as 26 B5 2F FD.
BCGhost
Posts: 35
Joined: Fri Dec 15, 2017 1:42 pm

Re: Asphalt 8 .pig and .tga

Post by BCGhost »

Got it! It's actually zstd compressed according to aluigi. Both mesh & texture data can be decompressed correctly as I tested. ;)
BCGhost
Posts: 35
Joined: Fri Dec 15, 2017 1:42 pm

Re: Asphalt 8 .pig and .tga

Post by BCGhost »

Guess I should add a link to the tools here:
http://forum.xentax.com/viewtopic.php?...
Asphalt 9321
Posts: 2
Joined: Sun Mar 27, 2022 4:29 pm

Re: Asphalt 8 .pig and .tga

Post by Asphalt 9321 »

Is there any program to convert any 3d models files to .pig file format?