Adventure Game Studio

AGS Development => Editor Development => Topic started by: Crimson Wizard on Tue 08/02/2022 10:19:17

Title: [EXPERIMENTAL] Editor with full Unicode support
Post by: Crimson Wizard on Tue 08/02/2022 10:19:17
After adding Unicode support to the engine in 3.6.0, and allowing UTF-8 translation files, I honestly thought to stop there, as it covered some use-cases and we had a lot of other problems to work on.
But now when 3.6.0 is progressing well towards completion, I suddenly decided to look into this again, and found that maybe it's quite doable to support Unicode right in the Editor.
There were number of doubts, but eventually it appeared less scary than anticipated.

Following is an experimental build, made on top of latest 3.6.0. This is only for testing, please don't use for real games yet, because if it contains mistakes it may ruin your game texts.
Download zip: https://www.dropbox.com/s/36iscyq3ydfb70t/AGS-3.6.0.17-Alpha18-unicode.zip?dl=0
Opened issue (if necessary): https://github.com/adventuregamestudio/ags/pull/1542

Find "Game text format" in General Settings (in the topmost section), and switch to UTF-8..
Make sure to import proper unicode fonts and set them anywhere you want them be used (Game.SpeechFont, gui labels, and so on).
Here's a free universal one if you need: https://unifoundry.com/unifont/ but in theory any correct TTF font will work.

(https://i.imgur.com/7lg1zNc.png)

What is supposed to work (if it does not - that's a bug):
* Human texts in game options: object descriptions, etc
* Custom properties' text values;
* Texts in scripts (in double quotes)
* Speech lines in dialog scripts
* Mixing multiple languages, even in the same string.

What will not work (and not supposed to):
* Script names of characters and objects, etc;
* Custom properties' names;
* Anything else in scripts: variables, function names etc.
Title: Re: [EXPERIMENTAL] Editor with full Unicode support
Post by: Crimson Wizard on Sat 19/02/2022 17:51:08
Updated with a new version, this time almost ready to merge in, but still in testing (found non-critical bugs).

https://www.dropbox.com/s/36iscyq3ydfb70t/AGS-3.6.0.17-Alpha18-unicode.zip?dl=0
Title: Re: [EXPERIMENTAL] Editor with full Unicode support
Post by: Crimson Wizard on Thu 03/03/2022 08:44:24
Alright, these changes are now part of 3.6.0:
https://www.adventuregamestudio.co.uk/forums/index.php?topic=58976.0
Title: Re: [EXPERIMENTAL] Editor with full Unicode support
Post by: Dualnames on Fri 29/04/2022 07:54:56
Sorry for the bump, just giving kudos, where kudos is due, so far in 3.6 beta 4 this seems to be working like a charm!
Title: Re: [EXPERIMENTAL] Editor with full Unicode support
Post by: Crimson Wizard on Wed 24/01/2024 05:10:28
Is a part of AGS since 3.6.0.