game_text Text Question

Discussion in 'Mapping Questions & Discussion' started by [KOR] HeadphoneSiki, May 6, 2017.

  1. [KOR] HeadphoneSiki

    [KOR] HeadphoneSiki L1: Registered

    Messages:
    4
    Positive Ratings:
    1
    So, I thought that I could put the Korean text on game_text after I watched a video. But I tried it, then it came out garbled. I realized at some point that TF2 encodes game_text as UTF-8, and the map encode mode was ANSI. But I tried putting an ANSI garble (UTF-8 Korean text converted to ANSI mode) and compiled it, and it showed the sentence partially. Well, Can you guys help me how Korean game_text works out, please?
     
  2. ics

    aa ics http://ics-base.net

    Messages:
    654
    Positive Ratings:
    410
    Use english, because the way valve uses them is not something we can do.
     
  3. [KOR] HeadphoneSiki

    [KOR] HeadphoneSiki L1: Registered

    Messages:
    4
    Positive Ratings:
    1
    • Agree Agree x 1
  4. 404UserNotFound

    404UserNotFound No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    225
    Positive Ratings:
    55
    Are you talking about the text that appears randomly near the chatbox and is different colored? If so, that'd be a SourceMod plugin. Something like this ShowSyncHudText example plugin is a good starting point. Obviously it's gonna require a massive overhaul and a lot of work to accomplish what I see in the video. But that colorful text is definitely ShowSyncHudText.

    You can look into setting up a translations file for it ("<pluginname>.phrases.txt") as SourceMod supports Korean for translations, hence the "ko" folder inside "addons/sourcemod/translations" if I remember correctly. The translations file should be fine to put in UTF-8 format allowing the game to read it properly without borking out.

    That's the lovely part of SourceMod, the translations. Provided you're using translations it should display the proper localized language for each client as it checks the client's game language and uses that value to determine what language to display. So you could do korean, english, etc. if you really wanted to.
     
    • Like Like x 1
  5. [KOR] HeadphoneSiki

    [KOR] HeadphoneSiki L1: Registered

    Messages:
    4
    Positive Ratings:
    1
    Ooh, yes finally a good way! Thanks, but I don't know much at those sourcemod plugins, so how do I work with the map in order to make this possible?
     
  6. 404UserNotFound

    404UserNotFound No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    225
    Positive Ratings:
    55
    Well, there's actually premade plugins to do things similar to that. Just look for any "Advertisements" or "Adverts" plugins. I'll find a few for you right now.

    - Advertisements by DJ Tsunami
    - ServerAdvertisement3 (Multi-lang) by ESK0

    I don't think those two examples support the ShowSyncHudText method, but if you would like further help in figuring out a SourceMod method, you could always sign up over at the AlliedModders forums and make a thread in this SourceMod scripting subforum. IIRC, I believe we already have some Korean members....I mean, SourceMod has Korean translations so you'd assume that we have Korean members :p
     
  7. [KOR] HeadphoneSiki

    [KOR] HeadphoneSiki L1: Registered

    Messages:
    4
    Positive Ratings:
    1
    Big up to you! Thx <3 Even I should try compiling some plugin though...