Multilanguage game

  • #1, by ke4Wednesday, 19. November 2014, 15:40 6 years ago
    Hi,

    This is more a thought than problem i would need to handle now.
    I want to have my game in two languages - in czech with voices and in english ( subtitles ) ( czech subtitles too ) and i would like to have an option to hide czech subtitles and have only audio. Can be hidden texts in visionaire?
    But what i'm thinking about is if visionaire does support subtitles in video? Because in this case i would need to 3 versions of each video, audio only, czech subs, enlish subs and the game would have a loot GB in that way. The best would be to choose with which subtitles play the video, but i guess that's not possible.
    Do you have any ideas how to deal with it?

    Key Killer

    810 Posts


  • #2, by SimonSWednesday, 19. November 2014, 16:13 6 years ago
    Hi,
    you mean no text shown at all ? Change the font to an empty font.
    Videos can have multiple subtitle streams, you can change the current language in the field VGameVideoSubtitleLanguage.
    http://wiki.visionaire2d.net/index.php?title=Video_encoding

    Thread Captain

    1369 Posts

  • #3, by ke4Wednesday, 19. November 2014, 16:16 6 years ago
    Yes, show just text in dialog menu and action text.
    Wow, it's simple, thanks a lot! :-)

    Key Killer

    810 Posts

  • #4, by MachtnixWednesday, 19. November 2014, 19:00 6 years ago
    I don't understand.
    I want to use two videos in the intro (because of the demo-game must be in English), now I have two different videos (one in German, one in English - I change the link in the game). How works this subtitle thing - so I need only one movie without fixed subtitles?

    Machtnix

    Thread Captain

    1087 Posts

  • #5, by ke4Wednesday, 19. November 2014, 19:06 6 years ago
    You'll use normal .srt subtitles file, you can add it right into the video file, you can add more then one subtitles.
    You can use MkvToolNix to do that, you'll import video and subtitles there and it'll makes video with subtitles inside for you.

    Then depending on the selected language you'll set what language of subtitles visionaire should show with
    execution a script: VGameVideoSubtitleLanguage.

    Key Killer

    810 Posts

  • #6, by afrlmeWednesday, 19. November 2014, 19:22 6 years ago
    I believe it's also possible to change video audio language track too. I know that .mkv can have multiple tracks & subtitles embedded into them. I'm not sure how though as I'm not well versed on video encoding & it appears we are missing the video tables from both the new & old wiki data structure pages.

    Imperator

    6842 Posts

  • #7, by MachtnixWednesday, 19. November 2014, 19:25 6 years ago
    I have never done this. OK, for dummies:
    1. I make my video in my movie-program without subtitles.
    2. I make a final movie rendering in the requiring format (mkv?).
    3. I make a text-file (maybe from an editor) with ONE language?
    4. The second one.
    5. Than I change / import (whatever) the .txt into .srt?
    6. I install this mkvtoolnix and import the movie first and the .srt-file?
    7. In this tool I can set the duration and the position of the subtitles?
    8. I think, I try it without movie in only two months... ;-) ;-)

    Machtnix

    Thread Captain

    1087 Posts

  • #8, by ke4Wednesday, 19. November 2014, 19:27 6 years ago
    You can have multiple audio too, so maybe it can be changed in visionaire as well.
    But what i'm not sure about, the syntax is just VGameVideoSubtitleLanguage("language") ?

    Key Killer

    810 Posts

  • #9, by ke4Wednesday, 19. November 2014, 19:30 6 years ago
    Yes, you can also use some software for making subtitles where you put your video.
    And you don't need to necessary have mkv file, you can make .MP4, i'm using sony vegas which MKV even doesn't support.

    Key Killer

    810 Posts

  • #10, by MachtnixWednesday, 19. November 2014, 19:34 6 years ago
    The audio switching in Vis is like my way: I have two language files and I use one of them for 1. language and the other for 2. language. But movies could have a size of >20 MB, so thats not good for the memory and the size of the game... But it's the easy way to work.

    Machtnix

    Thread Captain

    1087 Posts

  • #11, by MachtnixWednesday, 19. November 2014, 19:39 6 years ago
    Yes, you can also use some software for making subtitles where you put your video.
    And you don't need to necessary have mkv file, you can make .MP4, i'm using sony vegas which MKV even doesn't support.


    Yeah, but I have the prefered format in the contest discription. My cut program is an older one and doesn't work (well) with mp4 or mkv. Myself I use .mov, .avi, .flv or mostly .mpg; but that's not allowed.

    Thread Captain

    1087 Posts

Write post