JK2: Baking cinematic subtitles
The objective of this post is to learn how to make subtitles for the game JK2. There’s some documentation cached out there for JK3 subtitles but not for JK2, the format is different and the path is also different.
The first thing that we need to create is the correct folder structure:
Jedi Outcast reads the levels subtitles by accessing .SP files containing the subtitles, in the following format:
REFERENCE LEVEL_REFERENCE // LEVEL1
DESCRIPTION LEVEL_DESCRIPTION // "LEVEL 1"
COUNT NUMBER_OF_REFERENCES // 1
INDEX 0 //
TEXT_LANGUAGE1 "ENGLISH TEXT SENTENCE "
So what we have is a file that has a COUNT value of N subtitles for each dialog. The INDEX keyword is meant to identify the current place in the subtitles list. The TEXT_LANGUAGE1 is meant to contain the subtitles in ENGLISH and REFERENCE points to the audio to be played during the cutscene.
Then we, can create our level1.SP file and put it under the /strip/ folder. To run the audio file we need to create a basic Icarus script:
sound ( /@CHANNELS/ CHAN_AUTO, "sound/effects/alarm4.mp3" );
//(BHVDREM) wait ( 3000.000 );