Dialogs don't support russian characters sometimes

Started by GoodGuy, Fri 27/01/2017 07:41:06

Previous topic - Next topic

GoodGuy

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
   Display("Damn, I'm looking good! РÃ'Æ'Ã'Ã'ÐºÐ¸Ð¹ Ã'Ð·Ã'‹Ðº"); 

Spoiler
[close]
2 - It works and doesn't work simultaneously.
Code: ags
   dDialog0.Start(); 

Spoiler

Hi, ПÃ'â,¬ÃÂ¸ÃÂ²ÃÂµÃ'‚, ПеÃ'‚Ã'



[close]
3 - It works and doesn't work simultaneously.
Code: ags
   dDialog0.Start(); 

Spoiler

Hi, ПÃ'â,¬ÃÂ¸ÃÂ²ÃÂµÃ'‚, ПеÃ'‚Ã'
CHAR1: ПÃ'â,¬ÃÂ¸ÃÂ²ÃÂµÃ'‚, ПеÃ'‚Ã', Petya.
Strange characters is Ã'â,¬Ã'Æ'Ã'Ã'ÐºÐ¸Ðµ Ã'Ð¸Ð¼Ð²Ð¾Ð»Ã'‹
CHAR1: Wow, ваÃ'Æ'.



[close]

Crimson Wizard

#1
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.

GoodGuy

#2
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?

Crimson Wizard

#3
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.

GoodGuy

Thanks. I enabled "Use legacy compiler" and it's alive!
Spoiler



[close]

SMF spam blocked by CleanTalk