Sunday, December 29, 2019

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:

/base/strip/

Jedi Outcast reads the levels subtitles by accessing .SP files containing the subtitles, in the following format:

VERSION 1

CONFIG W:\bin\striped.cfg

ID 58

REFERENCE LEVEL_REFERENCE // LEVEL1

DESCRIPTION LEVEL_DESCRIPTION // "LEVEL 1"

COUNT NUMBER_OF_REFERENCES // 1

INDEX 0 //

{

REFERENCE AUDIO_FILENAME

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:

//(BHVDREM) {

sound ( /@CHANNELS/ CHAN_AUTO, "sound/effects/alarm4.mp3" );

//(BHVDREM) wait ( 3000.000 );

//(BHVDREM) }

No comments:

Post a Comment

Zanubis updates with screenshot recording

As always, IOCs and targets at the end. Previous updates of this family at:  https://www.entdark.net/2022/09/zanubis-latam-banking-trojan.ht...