The Script Tool Chain

The Tools

These tools are all written from scratch by myself after analysing the various file formats.
All use .NET 4 so you need to have that installed first.
There is no code or data taken from any of the various releases.

The tool chain needed to get new script content into the game is as follows:

1) unbatch the .bat files into .bin files using SucUnBatch.exe.
2) decompile the .bin files into .hfc source files using SucDecompiler.exe.
3) Modify the script files.
4) Use SucCompiler.exe to compile the changed .hfc files into .bin files.
5) batch the changed .bin files into .bat files again use SucBatch.exe.

IMPORTANT - Note that 2 is not fully working atm but you can mostly get round this by using the source files from the xbox version of the game and SucDbgSplitter.exe. Unfortunately a few of the sources on the disc do not completely match the sources used to compile the PC versions .bin files.
More details later.

Recommended method

Copy all the tools into the C:\Program Files\Bethesda Softworks\Call Of Cthulhu DCoTE\Scripts\ directory.

Copy the *.dbg files from the xbox disc into the C:\Program Files\Bethesda Softworks\Call Of Cthulhu DCoTE\Scripts\ directory as well.

Open a command prompt in C:\Program Files\Bethesda Softworks\Call Of Cthulhu DCoTE\Scripts\.

To unbatch the .bat files from the command prompt run:
SucUnBatch.exe . bin
This will give you a new directory named bin with a scripts and gamescripts directory under that.

If you now run the following:
SucBatch.exe bin .
This will rebatch all the .bin files into new .bat files and backup the originals to .bat.orig.
If you do a binary compare of the new .bat files to the .bat.orig you will see they are identical.

To get the source files with comments out next you want to run the following:
SucDbgSplitter.exe . src
This will give you an src folder with a scripts and gamescripts folder under that.

Make a change to your .hfs file under src and then compile it to .bin like this:
SucCompiler.exe src bin src\scripts\general\generalprelevelsetup.hfs

Then rebuild the batch files like this:

SucBatch.exe bin .

No comments:

Post a Comment