THPS2DC/2X *.BON Texture Documentation

Discussion about Pre-THUG1 things can go here, such as modding, etc
User avatar
ZurePitchmen83
VIP
Posts: 124
Joined: Sun Jul 01, 2012 4:15 pm
Location: USA
Contact:

THPS2DC/2X *.BON Texture Documentation

Postby ZurePitchmen83 » Sat Oct 06, 2012 2:21 pm

I figured out the *.BON format used in THPS2DC/THPS2X, it contains both Model and Texture Info inside the same file, THPS2DC BONs use PVR textures (BON1), and THPS2X BONs use DDS Textures, and it also has some minor changes (BON2), these are used for Character/Vehicle Models, Below is a code of the documentation

Code: Select all

BON1/BON2 Texture Documentation

Header:
[4 Bytes] - BON Header (426F6E00 in THPS2x)

Texture Header:
[4 Bytes] - Model Type? (04000000 on Character Models or 03000000 on Vehicle Models)
[2-4 Bytes] - Amount of textures?
[2 Bytes] - Amount of letters in the basic texture name
[Varies] - Basic texture name
[4 Bytes] - Identifier? (Always 7F7F7FFF)
[9 Bytes] - Unknown {Always 0000803ECDCC4C3D01)
[2 Bytes] - Amount of letters in the full texture name
[Varies] - Full Texture Name
[7 Bytes] - Unknown

-Texture-
[128 Bytes] - DDS Texture Header (32 Byte PVR Header in THPS2DC)
[Varies] = Actual Texture (Format varies between PVR and DDS per platform)


I Have no idea about model format which is after the textures of the BON but it's most likely compressed MODEL format from the looks of it

The way to get textures from them is by Hex-editing, i was able to copy the texture, then save it as PVR/DDS, I figured using THPS2DC Textures for my THPS3 GFX Mod would be the greatest option

Although i wasn't able to debug with the BONs due to the fact no working XBOX emulators out and i can't seem to get THPS2DC to run from a file directory rather than an ISO

EDIT (08-13-2014):Added extra details on the format

GHFear
Posts: 1
Joined: Sun Dec 02, 2018 2:18 am

Re: THPS2DC/2X *.BON Texture Documentation

Postby GHFear » Sun Dec 02, 2018 2:29 am

This is continued research on the BON files.

Code: Select all

BON1/BON2 Texture Documentation

Header:
[4 Bytes] - BON Header (426F6E00 in THPS2x)

Texture Header:
[4 Bytes] - Model Type? (04000000 on Character Models or 03000000 on Vehicle Models)
[2-4 Bytes] - Amount of textures?
[2 Bytes] - Amount of letters in the basic texture name
[Varies] - Basic texture name
[4 Bytes] - Identifier? (Always 7F7F7FFF)
[9 Bytes] - Unknown {Always 0000803ECDCC4C3D01)
[2 Bytes] - Amount of letters in the full texture name
[Varies] - Full Texture Name
[1 Byte] - Unknown, (Always 01)
[2 Bytes] - Unknown, (but varies between 00 00, 00 01, 01 00 and 01 01)
[2 Bytes] - Filesize ( but byteswapped / Big Endian, so 38 AB is actually AB 38 in Little Endian)
[2 Bytes] - Seems to just be an end of header divider.

-Texture-
[128 Bytes] - DDS Texture Header (32 Byte PVR Header in THPS2DC)
[Varies] = Actual Texture (Format varies between PVR and DDS per platform)


Return to “Legacy THPS”

Who is online

Users browsing this forum: No registered users and 4 guests