Privateer File Formats: Difference between revisions

The Terran Knowledge Bank
Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
TRE File
 
== TRE File ==
----
----


Line 5: Line 6:
After the header come the file entries. The first field in each file entry is one byte long, the meaning of it is currently unknown, possibly a .tre or file version indicator. Following the first byte are 65 bytes making up the filename as the game reads it. Privateer's internal file structure demands that every file name starts with ..\.. next are 4 bytes marking the offset where the file occurs, and four bytes indicating the size of the file.
After the header come the file entries. The first field in each file entry is one byte long, the meaning of it is currently unknown, possibly a .tre or file version indicator. Following the first byte are 65 bytes making up the filename as the game reads it. Privateer's internal file structure demands that every file name starts with ..\.. next are 4 bytes marking the offset where the file occurs, and four bytes indicating the size of the file.


Speech Files
== Speech Files ==
----
----


Speech in Privateer is broken into two sections, there are the radio communications handled ingame, and there are the Cutscene/Campaign/Base speech files.
Speech in Privateer is broken into two sections, there are the radio communications handled ingame, and there are the Cutscene/Campaign/Base speech files.


Inflight Speech
=== Inflight Speech ===
Inflight speech is stored in SPEECH.PAK in the root of the PRIV.TRE file.
Inflight speech is stored in SPEECH.PAK in the root of the PRIV.TRE file.


Base/Campaign Speech
=== Base/Campaign Speech ===
Speech which occurs on bases and in the cutscenes and campaign sections of the game are stored as two files. Each section of spoken audio is stored as an LZW compressed VOC file with an extension of .VPK, along with a text file with extension .PFC The PFC file contains variable names which map to the pilot and star system names in the game. The files are stored in PRIV.TRE under DATA/CONV. They can be extracted using treman, but require an lzw decompressor to decode.
Speech which occurs on bases and in the cutscenes and campaign sections of the game are stored as two files. Each section of spoken audio is stored as an LZW compressed VOC file with an extension of .VPK, along with a text file with extension .PFC The PFC file contains variable names which map to the pilot and star system names in the game. The files are stored in PRIV.TRE under DATA/CONV. They can be extracted using treman, but require an lzw decompressor to decode.


Graphics
== Graphics ==

Revision as of 06:14, 20 August 2017

TRE File


The Privateer TRE format contains an eight byte header, the first four bytes contains the number of files in the .TRE file and the second four bytes contains a pointer to where the data begins (the size of the header). After the header come the file entries. The first field in each file entry is one byte long, the meaning of it is currently unknown, possibly a .tre or file version indicator. Following the first byte are 65 bytes making up the filename as the game reads it. Privateer's internal file structure demands that every file name starts with ..\.. next are 4 bytes marking the offset where the file occurs, and four bytes indicating the size of the file.

Speech Files


Speech in Privateer is broken into two sections, there are the radio communications handled ingame, and there are the Cutscene/Campaign/Base speech files.

Inflight Speech

Inflight speech is stored in SPEECH.PAK in the root of the PRIV.TRE file.

Base/Campaign Speech

Speech which occurs on bases and in the cutscenes and campaign sections of the game are stored as two files. Each section of spoken audio is stored as an LZW compressed VOC file with an extension of .VPK, along with a text file with extension .PFC The PFC file contains variable names which map to the pilot and star system names in the game. The files are stored in PRIV.TRE under DATA/CONV. They can be extracted using treman, but require an lzw decompressor to decode.

Graphics