Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: GoodGuy on Fri 27/01/2017 07:41:06

Title: Dialogs don't support russian characters sometimes
Post by: GoodGuy on Fri 27/01/2017 07:41:06
Hi!
I have a problem with the font that supports russian language. I ran the AGS 3.4.0 and chose Default Game. I clicked "Import over this font" and chose this remade font https://yadi.sk/d/wz85nyxQ6ba9E .
I don't understand why it doesn't work. Please help me to fix it.
1 - It works
Code (ags) Select
   Display("Damn, I'm looking good! РÃ'Æ'Ã'Ã'ÐºÐ¸Ð¹ Ã'Ð·Ã'‹Ðº");
Spoiler
(http://i.imgur.com/WFG79QB.png)
[close]
2 - It works and doesn't work simultaneously.
Code (ags) Select
   dDialog0.Start();
Spoiler

Hi, ПÃ'â,¬ÃÂ¸ÃÂ²ÃÂµÃ'‚, ПеÃ'‚Ã'
(http://i.imgur.com/yIxD9Pd.png)
(http://i.imgur.com/CXPuHcm.png)
(http://i.imgur.com/hV9YL3R.png)
[close]
3 - It works and doesn't work simultaneously.
Code (ags) Select
   dDialog0.Start();
Spoiler

Hi, ПÃ'â,¬ÃÂ¸ÃÂ²ÃÂµÃ'‚, ПеÃ'‚Ã'
CHAR1: ПÃ'â,¬ÃÂ¸ÃÂ²ÃÂµÃ'‚, ПеÃ'‚Ã', Petya.
Strange characters is Ã'â,¬Ã'Æ'Ã'Ã'ÐºÐ¸Ðµ Ã'Ð¸Ð¼Ð²Ð¾Ð»Ã'‹
CHAR1: Wow, ваÃ'Æ'.
(http://i.imgur.com/v9N2ZKs.png)
(http://i.imgur.com/3dYzJQj.png)
(http://i.imgur.com/aOCKOLG.png)
[close]
Title: Re: Dialogs don't support russian characters sometimes
Post by: Crimson Wizard on Fri 27/01/2017 08:16:48
It looks like dialog option text has problems with displaying extended characters. Possible causes:
* Editor does not save text properly (BTW, text from the input field may not deal with symbols properly, as text from the script editor)
* Engine does not load/display text properly.

This requires some investigation first.
Title: Re: Dialogs don't support russian characters sometimes
Post by: GoodGuy on Fri 27/01/2017 17:08:38
Quote from: Crimson Wizard on Fri 27/01/2017 08:16:48
It looks like dialog option text has problems with displaying extended characters. Possible causes:
* Editor does not save text properly (BTW, text from the input field may not deal with symbols properly, as text from the script editor)
* Engine does not load/display text properly.

This requires some investigation first.
What I should do to decide this problem? What can I check?
Title: Re: Dialogs don't support russian characters sometimes
Post by: Crimson Wizard on Fri 27/01/2017 18:36:59
This is a bug in AGS Editor and should be investigated by developers.

For now you may use following solution: go to File->Preferences and enable  "Use legacy compiler" option at the bottom of the window. Then, delete "Compiled" folder at your game project, and then rebuild the game. If you do that, then first line will be printed in proper cyrillic letters too.

There seem to be a problem in how the new version (3.4.0) saves game data, I will be looking into fixing that.

EDIT: Here is the fixed version of the Editor: http://teamcity.bigbluecup.org/repository/download/AdventureGameStudio_Release/22277:id/AGS-3.4.0-P1.zip
I am planning to release a patched version officially on nearest weekends.
Title: Re: Dialogs don't support russian characters sometimes
Post by: GoodGuy on Sat 28/01/2017 06:10:02
Thanks. I enabled "Use legacy compiler" and it's alive!
Spoiler

(http://i.imgur.com/esTYh2N.png)
(http://i.imgur.com/Jgn6yqv.png)
[close]