game_text Text Question

Yuumi-Peusah

L1: Registered
Jul 7, 2016
4
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?
 

Yuumi-Peusah

L1: Registered
Jul 7, 2016
4
1
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.

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?
 

Yuumi-Peusah

L1: Registered
Jul 7, 2016
4
1
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
Big up to you! Thx <3 Even I should try compiling some plugin though...