Re: SOLVED Display spanish languaje alphabet.

Started by JoanCortada, Tue 31/07/2018 04:26:19

Previous topic - Next topic

JoanCortada

hello, I am now dealing with this situation: I want to do a game in spanish and I found out that the game doesn't show some of the stuff, like ¿, ¡, à , ò... even when this can be seen on the "fonts", any one has an idea about how I can manage that situation? I have been sheaching here for similar problems but I found nothing.
Thanks you all.

Click'd

What font are you using and which format is it in?

JoanCortada

I wrote the message from my phone, once I get home I will send captures of the game and all the information

JoanCortada

#3
In this first image you can see the font I am using and there you can see that there are all the symbols of the Spanish language, such as "ñ", or the accents in the vowels: "á".

https://postimg.cc/image/dy2oye8kr/

here in this second image we see the script of one of the rooms and a line of dialogue of the protagonist, here you can see all the symbols

https://postimg.cc/image/fee7g4yij/

and here we see how it appears in the game, the protagonist's text contains errors in the places where "a" accents should appear.

https://postimg.cc/image/xtyodk7i3/









JoanCortada

Sorry but seems I can not up load the images

Snarky

To upload the images you have to actually upload them: send them to an online image storage service. Writing the file path on your computer (even following "http") doesn't work: none of us have access to files on your computer.

For example, you can use https://postimages.org/
Or https://imgbb.com/
Or https://imgur.com/ (though they've hidden away the upload link recently)

JoanCortada



Khris

Fixed:

In this first image you can see the font I am using and there you can see that there are all the symbols of the Spanish language, such as "ñ", or the accents in the vowels: "á".



here in this second image we see the script of one of the rooms and a line of dialogue of the protagonist, here you can see all the symbols



and here we see how it appears in the game, the protagonist's text contains errors in the places where "a" accents should appear.


Crimson Wizard

#9
JoanCortada, on your first screenshot I can see that "Normal" font is selected. Character speech uses "Speech" font. Are you using same font for speech, or different one? Do you change the speech font anywhere in scripts with "Game.SpeechFont = NNN" command?

Still, I have certain suspicions about the displayed font, because it looks like some letters are not displayed correctly on their own. Could you tell if this is a TTF font or WFN font, and where did you get it?

Another thing, font must match the system locale you are using. To know which locale the scripts are saved in: go to your game's folder, open "<YourGameName>.agf" file with a simple text editor (don't change anything there or game will break!), and read the very first line. It should be saying something like:
Quote
<?xml version="1.0" encoding="windows-1252"?>
Could you tell what "encoding" your file has?

JoanCortada

Hi Crimson Wizard,
Thanks for your help

I'm using "Normal" as a "speech" font, for now I am using the same Font for everything, and I am using a TrueType (.ttf) Font and I downloaded from somewhere on internet but I had the same problema before, using the font the game come with.

I go into the "compiled" file and then "Data" and I find the Ana.agf (Ana is the name of the game), I open it with a text editor and the first line is just a random compilations of symbols and chinese characters:

CLIB z 荶熦æµÅ"Ud>Ã¥Æ'â€"?+a糫厱ãÆ'…ら'?捲â,¬??舏狏qm?å¡¡淼棠.é…²éÆ'¨z史爆岍?)Ã¥â,,¢Â­?桎觩?èÅ"©ï¼°?鈦刏cVˇ?氶硓c?訧鼂!沫嚊?U;z彧gg2è«¢H廩?:萾N8@î…«åâ,,¢Â§G糬é‘ž?﹊?å¨Æ'Ã¥â,,¢Â½å•¿T?戸Q??_O??2獢赮Lé­½,éÆ'«OB~mO??q.?詓纘?婉?=K?$縎?艘殭乕乘ç„©t?- 福'b   Ã¥â€ºÂ¾?ç²â€"G? 恆i汯戠顮J5阞æ›â,¬ki侏d\籈?F]
é¶â,¬`g戹隋å¿Æ'a蓵?}P'9B杸æâ€"ª?Sv?襠劽S彘憮çÆ'7
)~l<æ’²?唳蝮6萕靵jc   g?飧i帶(甦*@杚&裱懏?Ã¥Æ'¯ä¿‘x?
Vb勳bFdSW溲掎ç¡â€"?T賤quçâ€"•fv3YS3`﹟sQ]ç…´?å›®Y镾lp?g;Ã¥â€"“I鉧X?èâ€"…?åÅ'廋xoèÅ"’|zB?î”’?迧?縉][屬剂?(螣?g潊îâ€"ÐµèºŠç…¥?éâ,¬â,,¢Ã¥ÂÂ!﹞?u韟@悼伞??醪0_æâ,,¢Â³/?残柲gå‘¥?é©¡îÅ"³?/è’• V\E:kk鉣YHCZé£â€"樾?條<mdT忶H!cæ¼²d y?é²¾?齪睲BéŠÅ'鴝饤顅?芴瓊îÅ"Å'
??叵系wrTé·£'鶴U绢??囑?é˜â€"y頒梡tæÅ"Å'.嬾léâ€"¤??撢鸧ÎÅ"ç³³?袵Lâ,¬??æ©„N┝窢@孞偮Hæ¸â€"誉?
騹杲籒 銸褻oèâ,¬Å"?K
弊jH#îÅ'›çž¸è¨›çµâ,¬L\ 5læžâ,¬餮
?q鶡]%?çÅ"³ç˜­AM]Ké»Å'睦è‘â,,¢|壕é›Æ'槎?îâ,,¢Â¤=
7曎$n?'鑪é¥Æ'æ²¼èâ€"‘F?唻犮?SPRINDEX   VxP[y  z 

Recently I had to reinstal Windows again on my computer an dI did tha ton China, I just changed the language to spanish and I dont have any problema , just Word exel and these programs are in chinese, could that be the problema? I will reintall Windows again in spanish and see what happens.

     

Crimson Wizard

QuoteI go into the "compiled" file and then "Data" and I find the Ana.agf (Ana is the name of the game), I open it with a text editor and the first line is just a random compilations of symbols and chinese characters:

No, that looks like contents of *.ags file (compiled game), I was meaning agf file, which is located in the root project folder, near room files etc. It should have actual text inside.

QuoteRecently I had to reinstal Windows again on my computer an dI did tha ton China, I just changed the language to spanish and I dont have any problema , just Word exel and these programs are in chinese, could that be the problema? I will reintall Windows again in spanish and see what happens.

Yes, in theory that also could be a problem. AGS is a ANSI program, and when compiling the game it converts all game texts according to the current
system locale.

You need to go to the Language settings and make sure that you have "Language for non-Unicode programs" set to the one you are using in game (Spanish).
Here is an example of how to change this option in Windows 10 (other versions of Windows may have slightly different menus):
https://youtu.be/dKVlvxgm7DQ?t=21
(sorry for quality, that's just a random video I quickly found on youtube)

JoanCortada

I found that, I'm checking now the YouTube video.

<?xml version="1.0" encoding="gb2312"?>

Crimson Wizard

Quote from: JoanCortada on Wed 15/08/2018 23:10:13
<?xml version="1.0" encoding="gb2312"?>

Right, I googled and GB-2312 is Chinese encoding: https://en.wikipedia.org/wiki/GB_2312
So it was probably all because you have Chinese as a default language in the system, so all the text you type in AGS is converted using Chinese locale which has different letter numbers, and does not match the regular font with Spanish letters.

JoanCortada

Oh thanks, then, in theory, I just need to install Windows in spanish language.

I will try to do it tomorrow, I will keep you up dated.


Crimson Wizard

Quote from: JoanCortada on Wed 15/08/2018 23:51:58
Oh thanks, then, in theory, I just need to install Windows in spanish language.

I think you could simply install additional language, you may have multiple languages installed in same system, but only one selected as "Language for non-Unicode applications" at a time.

JoanCortada

SOLVED
Thanks, I just needed to adjust the "Language for non-Unicode applications"

thanks a lot.

SMF spam blocked by CleanTalk