Jump to content
The Dark Mod Forums

[Implemented in 2.10] subtitles


ndk

Recommended Posts

  • 3 weeks later...

Here we go :). Ok, let's talk about the closed caption (CC) support in TDM. Like I said on TTLG, I think it would be nice to incorporate this feature into TDM. My reason is very simple: many non-English speaking people can't understand English speech, so the CC feature in TDM would help them to understand it, and I'm quite sure that this feature would expand TDM's audience all over the world.

 

My colleague from DarkFate.ru, ndk, has made an alpha-version of the CC support in TDM 1.02. If you are agree with me about the CC support for TDM, please test ndk's work and tell us here what do you think about it.

Link to comment
Share on other sites

I hate that utterly misnamed Easy-Share. Any enterprise that deliberately bases its service around being as difficult and unhelpful as possible to try to force you to take its paid for service I would avoid if possible.

 

I managed to get the download after a few minutes wasted and mirrored it to

 

http://www.fidcal.com/TEMP/tdm_subtitles_0002.zip

  • Like 1
Link to comment
Share on other sites

So, what do you think, guys, about the implementation of this feature?

 

Haven't looked at it, what exactly does it do? I read there is no source code, so what about documentation or at least a nice little 2 liner description?

  • Like 1

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Is the ability to turn it on & off in the "Video" page of the Settings Menu?

 

I'm thinking about an FM with voice acting. I gather the mapper puts the text in the xml file with tags according to its soundshader name? What if it's a very long speech in one sound-file? Is there a way to break up the subtitles to go in tandem with the speech (like 3 frames for one speech switching at the proper time); so you don't have a long paragraph taking up half the screen?

 

If/when this system gets the green light, we'll need a wiki tutorial on how to implement it. (This is also a good way to get translations of voice acting into the game.)

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

Just a technical comment: I am sure we don't just want to insert a 220Kbyte patch to add yetr-another-xml-parser just to parse subtitles. (I am atm unsure if we already have an XML parser, I think we do. But even if we don't, a simpler format might be in order.)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

 

Is the ability to turn it on & off in the "Video" page of the Settings Menu?
not yet, but in progress

 

 

 

I'm thinking about an FM with voice acting.  I gather the mapper puts the text in the xml file with tags according to its soundshader name?  What if it's a very long speech in one sound-file?

 

exactly

 

Is there a way to break up the subtitles to go in tandem with the speech (like 3 frames for one speech switching at the proper time); so you don't have a long paragraph taking up half the screen?

 

i see two way:

1) use specialized subtitles format like:

 

http://en.wikipedia....wiki/Timed_Text

 

 

http://en.wikipedia.org/wiki/SubViewer

 

http://en.wikipedia.org/wiki/SubRip

 

2) extend existing format with new tags/attributes

 

 

 

existing solution have some restriction:

 

1) sound shader can contain more that one sound.

 

2) impossible to share common subtitles (to prevent copypasted text).

 

 

Link to comment
Share on other sites

Just a technical comment: I am sure we don't just want to insert a 220Kbyte patch to add yetr-another-xml-parser just to parse subtitles. (I am atm unsure if we already have an XML parser, I think we do. But even if we don't, a simpler format might be in order.)

 

but xml is universal format and 110kb of rapidxml is documentation :)

 

 

Link to comment
Share on other sites

Hey ndk,

 

I think I was the one that told you to go run off and make this - I just wanted to say it's great to see something came of it, subs are an area I think are quite important.

Good to see the russian community taking an interest too, some great talent over there :)

 

As for the whole xml thing, I think a simpler format would be 'better', I havent looked/tested remotely like that but wouldn't it be possible to just use utf8 text files and store the sub in the shader itself as a comment or similar? I'm assuming doom3 hates parsing utf8 or something?

Link to comment
Share on other sites

can someone explain me how to understand what the sound is played? shader may contain more than one sound and engine select sound for playing randomly.

 

This is inside the closed parts of the engine AFAIK and we don't know which sound will be played.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

As for the whole xml thing, I think a simpler format would be 'better', I havent looked/tested remotely like that but wouldn't it be possible to just use utf8 text files and store the sub in the shader itself as a comment or similar? I'm assuming doom3 hates parsing utf8 or something?

 

I am not sure that even parsing UTF-8 alone is sufficient, because AFAIK, D3 doesn't even have the ability to output UTF-8. It still thinks in 7 bit characters (well, 8 bit but many fonts don't even have the high-bit ISO 8859-1 characters).

 

As for the format, what is wrong with the standard D3 format:

 

english.txt:

 

"ai_level_5_alert" "The AI just snorted and made a crude remark relating to your mother to you."

 

german.txt

 

"ai_level_5_alert" "Der Wachmann lacht Dich aus und beleidigt deine Mutter."

 

It already works, it needs no new code, it can't contain new bugs, it's optimized etc etc. Humans already understand the old format, easy to edit, easy to read.

 

Why re-invent the wheel when we already have a working one? (UTF-8 might be an issue, but sooner or later the D3 parser will need to know about UTF-8 anyway, for the translated XDATA alone. Plus the whole UTF-8 output issue...)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

As for me, as a translator from English to Russian, the simpler format of CC, the better. But, of course, I do understand that the main goal is a simplicity for the FM-makers.

About the absence of Cyrillic symbols in Doom 3 fonts: I hope we (the Russian-speaking community) will solve this problem sooner or later.

Edited by MoroseTroll
Link to comment
Share on other sites

Hey everyone, I know someone who has been helping me with my fm, and so far he has a rough dialogue interface going. If you frobb a living npc, It plays a sound while there is text on screen and when it's finished it brings on the next audio clip and the next bit of text. When you want to choose what to say, you use the mouse wheel to select something, then click to say it, which can either trigger an event or more options/npc dialogue. You can run away during the conversation at a moments notice.

 

He's done a good job on it, although he's a bit busy. If anyone wants to adopt it and finish off the code, contact me and I'll see if he'll part with it.

 

Btw, the reason I haven't mentioned his name is I think he wants to remain anonymous until the fm is released... :)

18588.png
Link to comment
Share on other sites

It already works, it needs no new code, it can't contain new bugs, it's optimized etc etc. Humans already understand the old format, easy to edit, easy to read.

 

Yeah this is what I meant, if we can do it using this in-shader def it'll be simple and wide-spread within a short period of time.

 

Why re-invent the wheel when we already have a working one? (UTF-8 might be an issue, but sooner or later the D3 parser will need to know about UTF-8 anyway, for the translated XDATA alone. Plus the whole UTF-8 output issue...)

 

The reason I was going for utf8 is mostly just an assumption that Cyrillic is better supported in it, I dont know if this is strictly true, but from what I've worked on previously it's always been seen as the best solution when supporting the Russian community. German and such are not a problem either way, but on the same hand I think that most German gamers have a pretty damn good command of English and this would be of a far lesser benefit in comparison.

 

But if we can do Cyrillic and output it, whatever's easiest and lightest will be the best.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 1 reply
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...