Subtitles are not showing

  • #10, by ke4Wednesday, 06. April 2016, 12:15 8 years ago
    If anyone would have the same problem, in my case it is using the font with ID 0 even if i change it. So i changed the ID 0 font into the video subtitles font and for character i used different font.

    Key Killer

    810 Posts


  • #11, by sebastianWednesday, 06. April 2016, 15:12 8 years ago
    Are the subtitles compatible?
    (Advanced Substation Alpha)

    Thread Captain

    2346 Posts

  • #12, by ke4Wednesday, 06. April 2016, 15:40 8 years ago
    I'm using .srt format, i can try .ASS format, but all my fonts are basicaly just an arial.ttf so there shouldn't be problem with changing that. All i really wanted is to have a bigger text-size in videos than in the game.

    Key Killer

    810 Posts

  • #13, by sebastianWednesday, 06. April 2016, 18:04 8 years ago
    The wiki says that asa should be used for subtitles... So i guess that could be the problem smile

    Thread Captain

    2346 Posts

  • #14, by Simon_ASAWednesday, 06. April 2016, 22:10 8 years ago
    I've tried this and few more ways to write the syntax, but nothing.


    For me it works, I could use a different font in the video.
    This is the code I used:

    game:setValue(VGameVideoSubtitleFont, getObject("Fonts[Myfont]"))
    


    Where Myfont is the name of my font...
    It is a font created inside VS (with a font image), but I didn't check the TrueType Font option.

    I use SRT subtitles too. SSA and SUB didn't work well for me.

    Great Poster

    321 Posts

  • #15, by ke4Wednesday, 06. April 2016, 23:02 8 years ago
    I tried your code and it doesn't do anything for me ( i tried image font either ). I guess there's something in my project that is causing it, but i really have no idea what grin

    Key Killer

    810 Posts

  • #16, by Simon_ASAThursday, 07. April 2016, 21:55 8 years ago
    Maybe you can try the action part "Change font of a character", set on the "current character"?
    If you set a specific font manually before playing your video, it should be used for the subtitle logically? In then end you just change again to your default game font.

    Great Poster

    321 Posts

  • #17, by afrlmeThursday, 07. April 2016, 22:41 8 years ago
    Maybe you can try the action part "Change font of a character", set on the "current character"?
    If you set a specific font manually before playing your video, it should be used for the subtitle logically? In then end you just change again to your default game font.


    haha. There's always a work-around. @ Ke4: did it work?

    Imperator

    7278 Posts

  • #18, by ke4Friday, 08. April 2016, 13:51 8 years ago
    No..
    Okay, so i created a new empty project to test it. And there it ignores the Lua code too, but it shows the font i select for action text, which is not working in my game project. SimonS said it uses the action text if the subtitle font is not defined.

    Btw i found a workaround i just switched my fonts to get the result i need. ( As it uses font with ID 0 )

    @Simon_ASA: Do you have build 1185?

    Key Killer

    810 Posts

  • #19, by jmbmSaturday, 27. August 2016, 15:59 8 years ago
    Because i couldn't find anything but the small hint, that subtitle are supported, i'm digging this old threat. It feels like the manual and documentation is really out of date, incomplete and unclear.

    I made an Intro-Video, made subtitles with "Subtitle Edit", set them to "english" and saved them as *.ass. The recommended format. After that i used MKVToolKitNix to compile everything into a *.mkv. I added the subtitles as an external file and also put them into the container (i tried every variation with and without the subtitles in the mkv, etc)

    The subtitles show up in my videoplayer, but not in the visionaire player.
    Because i'm new to vis i just explain what i did: i made a new script-file and added this line:
    game:setValue(VGameVideoSubtitleLanguage, "eng")

    After that, i removed the checkmark from "definition script".
    Then i added "At begin start following action" and added an action to call the script with the line above.
    I also tried to call the script when clicking a button and then starting the video.

    But yeah, nothing worked. No Subtitles and nothing in the log window. Any ideas what i could have made wrong?


    Edit: Uff, ok, forget everything. The wiki says ssa, not ass. So i used ssa now, recompiled the mkv and now it works. grin

    Newbie

    27 Posts

  • #20, by ke4Saturday, 27. August 2016, 17:06 8 years ago
    Does selecting a font for subtitles work for you?

    game:setValue(VGameVideoSubtitleFont, getObject("Fonts[fontname]"))
    

    Key Killer

    810 Posts