UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: Psych on May 09, 2016, 06:27:42 am

Title: Characters from other languages in hintstrings?
Post by: Psych on May 09, 2016, 06:27:42 am
So I am scripting Easter eggs right now and I was going to make use of a translator style device but I have come to find (not a surprise because it would not make sense to already be included) that I cannot put Japanese characters in hint-strings it just returns a "." in game. I have thought about it and I am not sure how this would work. I do not know a lot about fonts so if anyone has any wild ideas I am down to try and make a tutorial on it afterwards. Thanks a head of time!  :D

characters example: 晴耕雨読
Title: Re: Characters from other languages in hintstrings?
Post by: JBird632 on May 09, 2016, 06:36:12 am
You would have to create your own font to do this, which is insanely difficult without an actual tool.
That or just replace some of the unused characters in the existing font image with your symbols (so long as there aren't too many) this is what I did in the Black Ops mod to get the Xbox X symbol in the hintstring.
Title: Re: Characters from other languages in hintstrings?
Post by: Psych on May 09, 2016, 06:52:51 am
You would have to create your own font to do this, which is insanely difficult without an actual tool.
That or just replace some of the unused characters in the existing font image with your symbols (so long as there aren't too many) this is what I did in the Black Ops mod to get the Xbox X symbol in the hintstring.

hmmm interesting. Glad to know it is actually possible but it probably isn't plausible for what I wanted to do as far as replacing existing characters goes. Might have to find a different solution  :( Thanks for the help J
Title: Re: Characters from other languages in hintstrings?
Post by: MakeCents on May 09, 2016, 12:44:44 pm
You could use images instead also, using menu for hinstrings to set the images, with two itemdefs, one for the images and one for the hintstring, using the same clientdvar for both probably, just modified in gsc for which one to show, based on another clientdvar prob. One would be visible when it wasn't translated, and one would be visible when they translated it.
Title: Re: Characters from other languages in hintstrings?
Post by: DidUknowiPwn on May 09, 2016, 02:24:27 pm
Would actually spit out garbage iirc scripts are read as ASCII so it can only read characters that belong to that. Input a character and you'll see what it spits out random garbage instead of a broken character.