Wing Commander Projects - Information Area



With this page, i aim to create an area with resources to be used by fans who are interested in editing Wing Commander games. However, if this objective is to succeed, i'll need everyone's contribution. If you're interested in editing Wing Commander games in any way and want to make your work available for other people (which can be very useful for the Wing Commander Editing community as a whole, which i'm intested to see expanding as much as possible), send them to me (mbrito@student.dei.uc.pt) and i'll put them here. You will be credited for your work, of course.





- Thanks to everyone who contributed -






- Wing Commander 1 -

WC1 ship file format - A file describing how the ship's images are encoded (wc2, Academy and P1 ships and even some Armada images are encoded this way). Inlcudes C code of a WC1 ship image reader. You can download several image viewers based on this info from the Files Page.
Mario "HCl" Brito (original doc)
Maciek "Matrix" Korzeniowski - Aug 23rd 1999 (updated doc)


Wing Commander Bitmap Navigator - A generic bitmap viewer.
Maciek "Matrix" Korzeniowski - Aug 23rd 1999





- Wing Commander 2 / Wing Commander Academy -

WC2/Academy speech file format - A file describing how the speech is encoded. It holds enough info for a VOC to Academy speech converter. You can download a converter based on this info from the Files Page.
Mario "HCl" Brito





- Wing Commander 3 -

XTRE Format - This information file will explain the XTRE format, which is the TRE format WC3 and WC4 use.
Mario "HCl" Brito - Aug 15th 1999


XTRE File Extractor - Source Code Will extract files from WC3 and WC4 TRE files. Credits for the 2 uncompressing algorithms go to Origin, since they were taken from WC3.EXE. The file compile.bat assumes you're compiling with DJGPP.
Mario "HCl" Brito - Aug 15th 1999


Movie decoder - Source Code - These routines allow decoding the VGA chunks of WC3 FMV files. The code was recreated after studying WC3.EXE
Mario "HCl" Brito - Aug 13th 2002





- Wing Commander 4 -

FMV Audio decoder - Source Code - These routines allow decoding the audio frames of WC4 FMV files. The code was recreated after studying WC4.EXE
Mario "HCl" Brito





- Privateer 1 -

Privateer 1 - TRE Format - This information file will explain the format of the TRE files Privateer uses. This is the same format WC Armada and Strike Commander use.
Mario "HCl" Brito - Aug 15th 1999





- Wing Commander Armada -

Nothing so far, although some Privateer 1 stuff can (probably) be re-used in Armada.






- Privateer 2 -

Privateer 2 - IFF Extractor This small C program will extract IFF files from BIGF IFF Archives (which are TRE files in every way). The BIGF format can be understood by looking at the source code and comments, so i probably won't write a text about it.
Mario "HCl" Brito - Aug 21st 1999


Privateer 2 - zlib unpacker The P2 BIGF Archives use zlib to uncompress chunks (it's quite interesting that they choose to compress particular chunks instead of the whole IFF). Click on the link to get the libraries, which can be used freely according to the authors. I'd still recommend you to read the Copyright notice tho. My small C program simply detect the "Def!" string on the IFF and uncompress the chunk accordingly using zlib (after the "Def!" string you'll find the uncompressed length and the compressed length, each of them is a type long).
Mario "HCl" Brito - Aug 21st 1999


Privateer 2 - Video Decompressor - These routines decode the video data present on the TGV files used by the game. The code was reconstructed after studying the game executable.
Mario "HCl" Brito - Oct 25th 2004


Privateer 2 - Audio Decompressor - This routine decodes the audio data present on the TGV files used by the game. The code was reconstructed after studying the game executable.
Mario "HCl" Brito - Oct 25th 2004





- Wing Commander Prophecy / Secret Ops -

Info on WCP/SO file formats Info on weapons, guns and ships.
Thomas Bruckner - Aug 22th 1999

Wing Commander Prophecy - 3D file format - This txt file describes the WCP/SO mesh format. However, there are a few unknown variables there... should anyone want to figure them out, let me know
Mario "HCl" Brito - 12 Nov 1998


Wing Commander Prophecy - CRC generator - This function (which is more important than you may think at first) calculates the CRC of the variables and functions used inside missions. My mission compilers were prepared to calculate the CRC of "qwerty" when it finds a @qwerty@. Important detail: functions get their least significative byte replaced by the value of the size of their arguments.
Example: the CRC of the new WC:SO function SF_CAM_TrackPivot is 0x97f07f0c. It takes 7 parameters (x1,y1,z1,x2,y2,z2,time), so the final byte would be replaced by 7*4 = 28 = 0x1c.
So, the function SF_CAM_TrackPivot v8 v9 10 v11 v12 v13 v14 would be compiled to 0x97f07f1c 0x00000008 0x00000009 0x0000000a 0x0000000b 0x0000000c 0x0000000d 0x0000000e
This C code was created after studying a routine of PROPHECY.EXE
Mario "HCl" Brito - 13 Nov 1998


WCSO-RIP File Extractor - Source Code - The source code of the WCP file extractor, for the most curious people. Credits for the uncompressing algorithm goes to Origin, since it was taken from PROPHECY.EXE. The file compile.bat assumes you're compiling with DJGPP.
Mario "HCl" Brito - May 23th 1999


Wing Commander Prophecy - TRE Format - This information file will explain the format of the TRE files Prophecy uses. Secret Ops uses the same format, as it's basically Prophecy with a few modifications.
Mario "HCl" Brito - Aug 15th 1999


Wing Commander Secret Ops - Mission Objectives Info - Some quick notes on how to edit WCSO mission objectives.
Mario "HCl" Brito - Aug 21th 1999


Wing Commander Secret Ops - Block Info - Block files hold info on how to play strings on WCSO cut-scenes. These blocks are invoked by SF_PrintText.
Thomas Bruckner - Aug 22th 1999


Wing Commander Secret Ops - RLE format information - The RLE format is used to store every kind of images in WCP/WCSO. This small text file will explain how these files are coded, which will allow you to make compressors and uncompressors for this format.
Mario "HCl" Brito - Apr 4th 2001


Movie decoder - Source Code - These routines allow decoding the video present on FMV and comm files. The code was recreated after studying PROPHECY.EXE (download also these tables)
Mario "HCl" Brito - Aug 23rd 2004








DISCLAIMER(s):


The uncompression routines were taken from the games' EXEs with the sole purpose of allowing us to study Origin-made files (missions, ships, etc) which were compressed (editing WC3, WC4, Prophecy and WCSO would be impossible without doing this). These routines were created by, and are Copyright of Origin Systems Inc.

Here you will *NOT* find any info on how to bypass Origin copy-protections nor where to find pirated Origin software. If you're looking for that, go away, you're looking on the wrong place.

Many thanks to go Origin Systems Inc, for creating the Wing Commander games! :)