Beltzer on 11/10/2019 at 17:07
As the topic says. Is it possible with a script to add subtitles in a video cut-scene?
Tannar on 11/10/2019 at 19:39
Yes. New Dark has built in subtitles. Look in your root folder for the subfolder called "doc". In there you will see two files "subtitles.txt" and "subtitles-sample.sub". Read those to get the basics. You can apply subtitles to movies and adjust the timing as needed.
It's explained fairly well in the docs, but one thing I had trouble understanding at first is how they are triggered, but it turns out to be very simple. They are automatically triggered when the associated sound/movie file is played. You don't need a conversation to trigger them, and the timing is all done within your own custom subtitles.sub file that you will create as you go along. It's easiest just to copy the examples given in "subtitles-sample.sub" and fill in your own lines.
Another option is to use Telliamed's Onscreen Text script. Russ has a great tutorial for that (
https://www.ttlg.com/forums/showthread.php?t=143434) here.
Beltzer on 11/10/2019 at 19:55
Thanks for the answer. The first suggestion, do that work with more languages? I will look it up.
*EDIT*
OK, looked in the subtitles-sample.sub file, that was much text. It looks really advanced. Maybe it's looks harder than it is.
Tannar on 11/10/2019 at 21:09
Yes, it looks harder than it really is. Just read it through once and then maybe try using the "subtitles-sample.sub" and substituting your own text for one of them.
And yes, you can have any language you want. Just make a subfolder called "subtitles" and in that subfolder have a folder for each language. For example,
\Subtitles
[INDENT]\English[/INDENT]
[INDENT][INDENT]mysubtitles.sub (written in English)[/INDENT][/INDENT]
[INDENT]\French[/INDENT]
[INDENT][INDENT]mysubtitles.sub (written in French)[/INDENT][/INDENT]
[INDENT]\German[/INDENT]
[INDENT][INDENT]mysubtitles.sub (written in German)[/INDENT][/INDENT]
... etc.
Beltzer on 12/10/2019 at 05:31
I looked in a FM and figured it out :)
Beltzer on 12/10/2019 at 15:32
Thanks. All help is appreciated :)
zappenduster on 16/10/2019 at 05:06
Quote Posted by Tannar
you can have any language you want. Just make a subfolder called "subtitles" and in that subfolder have a folder for each language. For example,
\Subtitles
[INDENT]\English[/INDENT]
[INDENT][INDENT]mysubtitles.sub (written in English)[/INDENT][/INDENT]
[INDENT]\French[/INDENT]
[INDENT][INDENT]mysubtitles.sub (written in French)[/INDENT][/INDENT]
[INDENT]\German[/INDENT]
[INDENT][INDENT]mysubtitles.sub (written in German)[/INDENT][/INDENT]
... etc.
As is generally known books, objectives and other STR files with special characters must be DOS-encoded.
How about those SUB files? :confused:
ZylonBane on 16/10/2019 at 18:13
Quote Posted by zappenduster
As is generally known books, objectives and other STR files with special characters must be DOS-encoded.
Specifically, Dark strings use CP 850.
(
https://en.wikipedia.org/wiki/Code_page_850)
zappenduster on 18/10/2019 at 08:13
OK thanks ... but how about those SUB files?