How to edit subtitles -1 reply

Please wait...

Ty294

Imperial Mercanary

50 XP

29th October 2008

0 Uploads

191 Posts

0 Threads

#1 9 years ago

Hey, I want to make a mod and in it I want to change the subtitles and maybe shut off some of the voice ques. I'm guessing it's in the script files. Can someone link me to a good scripting tutorial?




N-7

... and a nice big Cip-Quad

50 XP

21st September 2007

0 Uploads

579 Posts

0 Threads

#2 9 years ago

You won't need a scripting tutorial for this. Just look into the script source files shipped with the SDK (start with the cinematics). The voices are triggered by lines like this sound ( /*@CHANNELS*/ CHAN_VOICE, "sound/chars/jan/01jao001.wav" ); (I guess you can just search for CHAN_VOICE to find the relevant lines).

The subtitles are stored in the strip folder of assets2.pk3 or assets1.pk3 (depending on whether your game is patched or not). They are referred to via the name of the corresponding voice file (so for above example you would find the corresponding subtitle in strip/kejim_post.sp under "REFERENCE 01JAO001").

But I guess for your purpose it would make more sense to go the other way round: try to find the line you have in mind in one of the .sp files to determine the name of the voice file, than do a full text search on the script sources for that name.




Ty294

Imperial Mercanary

50 XP

29th October 2008

0 Uploads

191 Posts

0 Threads

#3 9 years ago

Ok, I found the subtitles, but I don't know how to open the script files. And I also don't know what files shipped with the SDK you're talking about.




N-7

... and a nice big Cip-Quad

50 XP

21st September 2007

0 Uploads

579 Posts

0 Threads

#4 9 years ago

Sorry, my bad. The scripts sources are actually contained in this package (in Tools/SPscripts.zip):[INDENT]JK2 Editing Tools (2.0) [/INDENT]You cannot edit the .ibi files, if that's what you meant. Instead, you'll have to edit the source files and then compile your version with IBIze.exe (contained in the package), which will then create an .ibi file to override the original. The source files can either be edited with a text editor or with BehavEd.exe (contained in the package) for what it's worth.

And since you've asked for a tutorial and NAB hasn't replied himself, yet (guess he's the modest type):[INDENT]Basic Scripting - NAB622's Website [/INDENT]It's for JA, but most of it if not all would apply to JO as well, and it covers BehavEd.

Other than that, "ICARUS Manual.doc" (contained in the package) will also shed some light on the matter.




Ty294

Imperial Mercanary

50 XP

29th October 2008

0 Uploads

191 Posts

0 Threads

#5 9 years ago

Thx!