demonwu.jpgWUunicorn.jpg




Use the program called "GameExtractor" to open up WRATH.PK2:
www.watto.org/extract/download.html‎

File Extensions of files in from the main data archive:
.CFG configuration settings
.DAT
.DDB
.MIB Audio
.MT2
.PAK Contain 3d models
.PIN
.RPE
.SSC
.STR
.TPR
.TXT Text Document
.VAG Audio


This game is published by Lucas Arts.
The character meshes have a vertex count.
The meshes are in .pak files (eg c_idogod.pak)
that can be extracted from the large archive file WRATH.PK2
using the free tool "Game extractor" downloaded from
http://www.watto.org
The format for Character meshes is:
03 01 00 01 00 80 XX 6C
{4ByteFloatVertexes+[00] +CONN+F8 03} But [00]=XX only for the first Vertex
00 00 00 00 00 00 00 00 03 02 00 01 01 80 Value[2*XX] 6D
{16BitTextureMapping+?? ??+??+??+16BitNormalMapping+?? ??}
16 00 00 14 00 00 00 00

Additional larger subdivisions of meshes are possible that
will begin with the following:
01 00 00 60 00 00 00 00 16 00 00 14 04 04 00 01


Where CONN is either 00 or C0, and if it is C0 it signifies
that it is the start of a new tristrip however it is assumed
that every submesh is also the beginning of a new stripe.

The format for Objects such as Axes and Weapons
is as follows:

03 01 00 01 00 80 XX 6C
{4ByteFloatVertexes+[00] +CONN+F8 03} But [00]=XX only for the first Vertex
00 00 00 04 00 00 00 00 03 01 00 01 01 80 Value[XX+PADD] 65
{16BitTextureMapping}
00 00 00 04 00 00 00 00 03 01 00 01 02 80 Value[XX+PADD] 6E
{1ByteNormalMapping+10}
1C 00 00 14 00 00 00 00

Where PADD is zero padding of Value[PADD] times 4bytes of 00
Example if XX=42 and PADD+42=45
Then PADD=3
so there will be 3*4=12 bytes of 00:
00 00 00 00 00 00 00 00 00 00 00 00