Rebuilding the Schema Metafiles

From FleshWorks

Jump to: navigation, search

by rujuro


Important

Backup the original metafiles located in c:\program files\thief3\content\T3\sounds. There is a very good chance many sounds will no longer work with the rebuilt metafiles. The editor only came with a few of the .wav files from the game unpacked. To fully rebuild the metafiles you will need every .wav in the game unpacked in the sounds folders.

Background

The editor release is capable of running sound schemas that are outside the schema metafiles in the game. However, it can not run custom schemas as streaming sounds in the ZoneProperties actor unless they are in the metafile. There may be other reasons to rebuild the metafiles, but this is the main one that I've encountered.

Building the Metafiles

There is a perl script called compileschemas.pl located in the \Thief3\Utility\misc_perl\ directory. In order to run a perl script you must have active perl installed on your machine. If you look online you can download it from a number of places. I obtained it at http://www.cpan.org/ports/index.html.

Once you have that installed, you run the script from the DOS prompt. You can open the command prompt in All Programs>Accessories>Command Prompt. You then navigate to the misc_perl directory using standard DOS navigation.

To build the metafiles you just type: perl compileschemas.pl "c:\program files\thief3\content\T3\sounds" -p. The metafiles will be rebuilt and can be found in the misc_perl directory.


Warning: The metafiles are VERY big, and will be very difficult to distribute.



Back to Advanced Editor Techniques Page

Back to Main Tutorials Page

Personal tools