Kanji won't display in game - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Games Development (https://www.save-point.org/forum-4.html) +--- Forum: General Support (https://www.save-point.org/forum-18.html) +--- Thread: Kanji won't display in game (/thread-204.html) |
Kanji won't display in game - nuberus - 05-20-2010 I'm trying to make a game to teach Japanese kanji. Basically, if the player chooses the correct kanji from the spell list, it hurts the monster that matches it. The scripting and whatnot all works, and in the game editing it displays the Japanese characters just fine. The problem is when I actually load up RMVX and play the game, the Japanese characters don't display properly, it just shows up as an empty square. I think it's displaying the default character for "unknown" text. Any idea how I can get the game to display Japanese kanji in-game? Kanji won't display in game - Jaberwocky - 05-20-2010 Is the window's font set to one that actually has the Japanese characters in it? Kanji won't display in game - nuberus - 05-21-2010 Jaberwocky Wrote:Is the window's font set to one that actually has the Japanese characters in it? Thanks for pointing that out. Actually, in the editor I can change to Japanese language settings, but when I start the game then Japanese is no longer listed in the Windows language bar. This is starting to look like a Windows problem. Kanji won't display in game - nuberus - 05-21-2010 I found the solution on another website: in short: change the Game.ini from "Library=RGSS202E.dll" to "Library=RGSS202J.dll" (without quotes) in detail: SPECIFICATION FOR ADDING JAPANESE FONTS for Writers, Implementers, and Designers Language and Language Scripting Maintenance * This is for bi-lingual language support for English and Japanese. * The font to allow Japanese font is Veranda, and will be changed automatically when implemented. * Spacing has been edited for Japanese characters support, so the game editor is exactly 7 spaces wider then the real in game text will appear. (IE. Make your text 7 spaces shorter then the estimate) * Game.ini line is change from "Library=RGSS202E.dll" to "Library=RGSS202J.dll" (without quotes) * Japanese Hiragana "~" should be used for more correct display for tildes. * One should have the Japanese UME installed on there computer to type Japanese into the program. Kanji won't display in game - Jaberwocky - 05-21-2010 It's not a Windows problem at all. You don't need to be in Japanese mode or anything. Changing the font in the editor isn't going to do anything either. You just have to change the font for the actual window itself to one that supports Japanese, using something like self.contents.font.name = "Gulim" I am using the english RGSS.dll with no problems displaying Japanese text ingame, so long as I set the font for the window to one that supports it. Changing the .dll version isn't going to do anything to help beyond changing the default font for all windows to one that supports Japanese, which you could do yourself by adding 1 line of code in the 'main' script: Font.default_name = "some font" Kanji won't display in game - nuberus - 05-22-2010 Jaberwocky Wrote:I am using the english RGSS.dll with no problems displaying Japanese text ingame, so long as I set the font for the window to one that supports it. Could you be more specific in how to change the font? I added Font.default_name = "verdana.TTF" to the 'main' script, but all it did is make all the text invisible. I also tried with a few other fonts that are in my windows font folder. Do I need to copy the font to some RMVX folder? Is the code even correct? Kanji won't display in game - Ace - 05-22-2010 Just type in "Verdana" instead of "verdana.tff" (I think first letter = capital letter) Kanji won't display in game - nuberus - 05-23-2010 Thanks, everyone! I got it to work by adding this line to the Main script: Font.default_name = "Gulim" That's all that was needed! Kanji won't display in game - MagitekElite - 05-29-2010 Glad you fixed your problem! I was about to post in here when I saw it was already solved. Good luck with the game (teaching game?)! |