Page 1 of 1

Bug Report: Alternate Character Support

Posted: Tue Oct 01, 2019 8:38 am
by mroyer
There appears to be an issue with alternate characters in the game engine.

In the country list below, notice the greek letters in the names (e.g., the α in α Centauri for COUNTRY_ID_4).
I have also used the greek letters fairly extensively in scripting and for on-map text.

In general, they appear to be working well and their recent inclusion in a game engine update is very welcome. Thanks for that!!

Pop-ups, on-map place-names, war map display and so on, show the greek letters properly (see various screen-shots below).

However, they are not being presented properly in the purchase window, the diplomacy window and the terrain indicator display (see various screen-shots below), and perhaps elsewhere I haven't noticed yet.




#COUNTRY_ID_0= Neutral
#COUNTRY_ID_1= Terra
#COUNTRY_ID_2= Mars
#COUNTRY_ID_3= Venus
#COUNTRY_ID_4= α Centauri
#COUNTRY_ID_5= τ Ceti
#COUNTRY_ID_6= δ Pavonis
#COUNTRY_ID_7= β Hydri
#COUNTRY_ID_8= η Cassiopeiae
#COUNTRY_ID_9= AC-24°2833-183
#COUNTRY_ID_10= AC+79°3888
#COUNTRY_ID_11= Groombridge 1618
#COUNTRY_ID_12= α Centauri b
#COUNTRY_ID_13= α Centauri c
#COUNTRY_ID_14= α Centauri d
#COUNTRY_ID_15= BD-15°6290
#COUNTRY_ID_16= CD-39°14192
#COUNTRY_ID_17= BD+68°946
#COUNTRY_ID_18= Bernard
#COUNTRY_ID_19= Bessel
#COUNTRY_ID_20= β Hydri b
#COUNTRY_ID_21= β Hydri c
#COUNTRY_ID_22= Ceres
#COUNTRY_ID_23= CC 658
#COUNTRY_ID_24= CP-46°8664
#COUNTRY_ID_25= ε Indi
#COUNTRY_ID_26= η Cassiopeiae b
#COUNTRY_ID_27= EZ Aquarii
#COUNTRY_ID_28= EV Lacertae
#COUNTRY_ID_29= Lalande 21185
#COUNTRY_ID_30= Ganymede
#COUNTRY_ID_31= Groombridge 34
#COUNTRY_ID_32= Innes
#COUNTRY_ID_33= Kruger 60
#COUNTRY_ID_34= Lacaille 9352
#COUNTRY_ID_35= Luna
#COUNTRY_ID_36= Luyten
#COUNTRY_ID_37= Luyten 68-28
#COUNTRY_ID_38= Luyten 97-12
#COUNTRY_ID_39= Luyten 354-89
#COUNTRY_ID_40= Luyten 725-32
#COUNTRY_ID_41= ρ Eridani
#COUNTRY_ID_42= Ross 128
#COUNTRY_ID_43= Ross 248
#COUNTRY_ID_44= σ Draconis
#COUNTRY_ID_45= Struve 2398
#COUNTRY_ID_46= τ Ceti b
#COUNTRY_ID_47= τ Ceti c
#COUNTRY_ID_48= τ Ceti d
#COUNTRY_ID_49= Titan
#COUNTRY_ID_50= Gliese 65
#COUNTRY_ID_51= V1581 Cygni
#COUNTRY_ID_52= Wolf 359
#COUNTRY_ID_53= Sapien brotherhood
#COUNTRY_ID_54= Astra-49
#COUNTRY_ID_55= Pan-Galactic Navy



Works:

Image

RE: Bug Report: Alternate Character Support

Posted: Tue Oct 01, 2019 8:40 am
by mroyer
Works

Image

RE: Bug Report: Alternate Character Support

Posted: Tue Oct 01, 2019 8:40 am
by mroyer
Works



Image

RE: Bug Report: Alternate Character Support

Posted: Tue Oct 01, 2019 8:41 am
by mroyer
Doesn't work



Image

RE: Bug Report: Alternate Character Support

Posted: Tue Oct 01, 2019 8:42 am
by mroyer
Doesn't work



Image

RE: Bug Report: Alternate Character Support

Posted: Tue Oct 01, 2019 8:42 am
by mroyer
Doesn't work



Image

RE: Bug Report: Alternate Character Support

Posted: Tue Oct 01, 2019 8:51 pm
by BiteNibbleChomp
Is that second post supposed to say "Dniled losses" on the button to show them? Because if not, that's another issue.

- BNC

RE: Bug Report: Alternate Character Support

Posted: Tue Oct 01, 2019 9:20 pm
by mroyer
ORIGINAL: BiteNibbleChomp

Is that second post supposed to say "Dniled losses" on the button to show them? Because if not, that's another issue.

- BNC


oooh.... good catch - but no, we can't blame that one on the game engine.

I think that's probably the leftover result of an unwise global search-and-replace I did of eta to η (greek letter) in the localization text file (i.e., Detailed becomes Dηiled). Thanks for letting me know - I will fix.

-Mark R.

RE: Bug Report: Alternate Character Support

Posted: Fri Oct 04, 2019 10:45 am
by Hubert Cater
Hi Mark,

I believe the issue here is that some fonts used in game simply do not support some of these special characters while others do, and the other issue which I can confirm from some of my own experiments in the past is that some italic versions of the fonts definitely do not support the special characters.

I'll look into a way to allow modders to specify full character support in their mods so that in game italics will be skipped and only those fonts that support all characters will be used as well.

This is something we'll need for potentially down the road so it would be good to have either way.

Hubert

RE: Bug Report: Alternate Character Support

Posted: Fri Oct 04, 2019 1:28 pm
by mroyer
Okay, thanks Hubert.

Do you recommend I

(a) leave all my scripts with the greek characters (e.g., α Centauri) because it will likely be fixed in an update or two or three...

- OR -

(b) revert back to no special characters (e.g., Alpha Centauri) since it won't likely be fixed for a very long time.


Thanks for any thoughts,
-Mark R.