Problem with language - font

  • #1, z kytattooThursday, 07. July 2016, 11:20 hodinky 8 years ago
    I want to make bilingual game. So i have four fonts - two russian (yellow and white) and two english (yellow and white as well). I have two languages and i know how to make translation. The problem is - how to make characters speak on different languages? I mean - may be i need just two fonts - yellow russian-english (with both alphabets) and white russian-english? But then i have problem creating such a big font image - i tried but characters speak mess roll(

    Bažant

    60 Posts


  • #2, z sebastianThursday, 07. July 2016, 12:24 hodinky 8 years ago
    You can change these via Lua:
    game.GameSpeechLanguage = Languages["languagename"]
    game.GameStandardLanguage = Languages["languagename"]

    Kapitán

    2346 Posts

  • #3, z kytattooThursday, 07. July 2016, 12:37 hodinky 8 years ago
    No i mean how to create png font with two alphabets - russian and english?

    Bažant

    60 Posts

  • #4, z sebastianThursday, 07. July 2016, 13:07 hodinky 8 years ago
    Aaaahhhh.. Just add them to your png and then in visionaire define the charaters which are shown

    Kapitán

    2346 Posts

  • #5, z afrlmeThursday, 07. July 2016, 13:30 hodinky 8 years ago
    Are TTF / OTF fonts not a viable option? I'm not really sure about VS displaying Cyrillic, so I'm just wondering if you already tried using actual font files?

    As for png font maps, they can be a little tricky to get VS to read them correctly; especially if you are using complicated looking letters or font styles. & as Sebastian said, you need to manually type in the letters into the alphabet section in the same order that they are displayed on the png font image, left to right, row by row.

    In regards to actually making a png font template... it's important to use simple font styles otherwise VS will probably have a hard time calculating all the letters. Destroyed / decayed fonts are no good at all. Also you should apply a border to your fonts to make sure all parts of each letter are joined together seamlessly as sometimes VS can mistake " as 2 of these ' ', etc. It's all down to the font you decide to use. Finally at the beginning of each row you need to add one of these _ like so...

    _ a b c d e f g h
    _ i j k l m n o p
    _ ... etc

    The _underscore represents the beginning of a new row.

    Anyway, hope this helps.

    Imperátor

    7285 Posts

  • #6, z kytattooThursday, 07. July 2016, 20:12 hodinky 8 years ago
    Well - I ve been working on my project for 4 months already and somehow i managed to make cyrillic font ))) And i know how to make font work in visionaire player ) thats alright) BUT - the time to introduce alpha version is coming and today i spent all day long trying to make png font map (the fonts are simple - times new roman) containing two alphabets (( - i dont know why this is so complicated )) the png seems to be big enough and characters speak just some mess (see the screenshot)

    http://s02.radikal.ru/i175/1607/79/d3948ae39a6a.png

    As you see here - the font image and letters order are OK, but i think there is some problem with intervals between the letters, may be? May be there is some example for such big font? )

    http://s017.radikal.ru/i415/1607/b9/529590985db4.png

    Bažant

    60 Posts

  • #7, z afrlmeThursday, 07. July 2016, 20:32 hodinky 8 years ago
    Oh I just noticed that you (I mean Russians) seem to use ) as full stop. I was speaking to another Russian earlier on Skype that kept adding it to end of sentences & I wasn't sure why. The correct way to end a sentence in English & most non-Cyrillic languages is with one of these.

    In regards to your font map, what happens when you click the blue A logo? Does it correctly show borders around all the letters?

    Would you be willing to send me your project files or a stripped down version so I can check out what's happening myself?

    Imperátor

    7285 Posts

  • #8, z kytattooThursday, 07. July 2016, 20:41 hodinky 8 years ago
    In Russian language the only correct way to stop sentence is " . " as well. But in internet we often just miss full stop and instead we use emozi - and ")" means "smile" (smile) just without " : " So thats why we type ")" instead of "." Its just the sign of friendly attitude you know.

    Now about fonts - OMG Im so stupid ))) I didnt know about that blue button and that helps! )))) Thanks! I can send you my project for you to check why it always crashes. I would be very thankful to you for it )

    Bažant

    60 Posts

  • #9, z afrlmeThursday, 07. July 2016, 21:55 hodinky 8 years ago
    Sure, send away. No promises that I will be able to figure out what's causing the crashes though.

    Imperátor

    7285 Posts

  • #10, z kytattooFriday, 08. July 2016, 11:39 hodinky 8 years ago
    So, guys, finally i have made it and i think it can help anybody who experiences same problems with fonts... The mistake was that when you change your png font image - you should make NEW FONT in visionaire and upload it. And what i did was - just renew the old one, and all the frames just stayed. Now the problem disappeared! I have made two fonts! Thanks everybody!

    Bažant

    60 Posts

  • #11, z afrlmeFriday, 08. July 2016, 12:29 hodinky 8 years ago
    No worries & glad you managed to figure out solution for your problem. wink

    Imperátor

    7285 Posts