Jump to content
The Dark Mod Forums

2.10 Subtitles


boissiere

Recommended Posts

I had subtitles correctly set up for a mission (at least I think), but they don't show up in-game. Would be nice to some info in console.

The use case is The hare in the snare mission intro. I followed the info from the wiki page, but the subtitles don't show up in mission intro.

I also encountered previously with the mission intro from mission Written in stone that although there was something wrong with the srt file, the subtitles didn't show up without error.

There are a lot of things that could be wrong, so currently I have only trial and error in such situations.

Edited by datiswous
Link to comment
Share on other sites

  • 4 months later...
7 hours ago, datiswous said:

@stgatilovdo you have a testcase where using fromVideo in a subs file actually works? I tried this with mission The Hare in the Snare and couldn't get the subtitle to show. Then I extracted the audio from the video and used that in the subs file and it worked.

I'm pretty sure I tested this case.

Note that subtitles display only if there is appropriate GUI.
If you have your own overlay or own GUI file, then you might be missing proper #include of subtitles.

Link to comment
Share on other sites

15 hours ago, stgatilov said:

Note that subtitles display only if there is an appropriate GUI.

I don't think it's using it's own gui for the intro video and it works fine if an audio file is used instead of the audio from the video. I don't think there's another mission that uses fromVideo and has subtitles included. I don't actually know any other mission that uses fromVideo.

So I was wondering what you tested it on.

Edited by datiswous
Link to comment
Share on other sites

As a test I used this guide to make changes to mission Written in Stone so it uses the audio from the video file instead of the seperate audio file. (+ change to fm_root.subs)

Before the change, the subtitles show up. When I do the edit, I still hear the audio, but the subtitles are gone.

Either I'm doing something wrong, or this feature is currently broken.

Edited by datiswous
Link to comment
Share on other sites

Ok I got it working. The reason is that it's explained wrong in the wiki. The wiki example says this:

subtitles fm_briefing {
    verbosity story
    srt "fromVideo video/briefing/briefing.mp4" "video/briefing/briefing.srt"
}

and

Quote

One complicated case is when you have an FFmpeg-based video with embedded sound. In this case write path to the video file, prepended with fromVideo keyword and space, just like you do in the sound shader. See fm_briefing in the example above.

But it should actually state the video briefing material, instead of briefing video file.

 

Correct? It must be, because now it works correctly, also in The hare in the snare.

 

Edited by datiswous
  • Like 1
Link to comment
Share on other sites

40 minutes ago, datiswous said:

Ok I got it working. The reason is that it's explained wrong in the wiki. The wiki example says this:

subtitles fm_briefing {
    verbosity story
    srt "fromVideo video/briefing/briefing.mp4" "video/briefing/briefing.srt"
}

and

But it should actually state the video briefing material, instead of briefing video file.

 

Correct? It must be, because now it works correctly, also in The hare in the snare.

 

I'm a little surprised that a direct file reference doesn't work but OTOH many Doom 3 conventions prefer def inheritance over direct file references. For example, particle textures.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

21 hours ago, stgatilov said:

Note that subtitles display only if there is appropriate GUI.
If you have your own overlay or own GUI file, then you might be missing proper #include of subtitles.

The debrief has it's own gui.  Can the subtitles be included for that gui?

For example by adding this?

	//stgatilov #2454: display subtitles
	#define SUBTITLES_NAMEPREFIX BriefingVideo
	#include "guis/tdm_subtitles_common.gui"

Actually, maybe I should first test if the subtitles don't show up.. Is there a way to cheat a mission ending, so I don't have to play the whole mission?

Edited by datiswous
Link to comment
Share on other sites

2 hours ago, datiswous said:

Ok I got it working. The reason is that it's explained wrong in the wiki.
But it should actually state the video briefing material, instead of briefing video file.

Correct? It must be, because now it works correctly, also in The hare in the snare.

Yes, exactly.

There is single code piece which handles "fromVideo", and it accepts material name, as FFmpeg video wiki says.
And the virtual sound sample is named like "fromVideo {mymaterialname}", by this name you assign subtitles to it.

1 hour ago, datiswous said:

The debrief has it's own gui.  Can the subtitles be included for that gui?

For example by adding this?

	//stgatilov #2454: display subtitles
	#define SUBTITLES_NAMEPREFIX BriefingVideo
	#include "guis/tdm_subtitles_common.gui"

Yes, but you need to change the SUBTITLE_NAMEPREFIX to something unique, or you'll get a ton of warnings about name collisions.

24 minutes ago, datiswous said:

Thanks. But the end briefing doesn't show with that cheat, probably because it uses an internal end mission gui that is part of the mission. I wonder if tdm_end_mission does not also skip regular debriefings.

I think standard debriefing video should not be skipped.
As for debriefing, we don't have anything like that yet in core.

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

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 6 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...