Page 1 of 1

Is it possible to show Chinese characters in FOGE?

Posted: Thu Jul 18, 2019 3:25 pm
by againster
Most of Ageod\Slithrine\Matrix games haven't official Chinese version(or even folk Chinese tranlation) and couldn't show Chinese characters(I think this may be related to the game engine), This may be the biggest problem for Chinese players to understand these brilliant games. As you can see, there have already some Chinese review of FOGE in steam,and some discussion in Chinese wargame forum.

So is there any chance to enable show Chinese Chinese characters in FOGE ? It will have great useful to Eastern Asia wargame fans!

Re: Is it possible to show Chinese in FOGE?

Posted: Thu Jul 18, 2019 3:27 pm
by zakblood
welcome to the forum

Re: Is it possible to show Chinese in FOGE?

Posted: Thu Jul 18, 2019 5:21 pm
by againster
zakblood wrote: Thu Jul 18, 2019 3:27 pm welcome to the forum
Thanks! :D

Re: Is it possible to show Chinese characters in FOGE?

Posted: Thu Jul 18, 2019 9:22 pm
by AndrewGardner
The game engine used by Empires can display simplified Chinese characters. There are a several steps you would need to take to see them in the game, to load an appropriate font and define a new language for the game.

In the Core folder of the game install:
- Add your font in TTF format
- Add the EXTENDED.DAT file found here: https://www.dropbox.com/s/rx9h6j59cr5xz ... D.zip?dl=0
- Open LANG.TXT and add a line for the new language for the game to use, for example [CHI]

In the System folder of the game install, make a copy of the FONT.TXT file and name it FONT_CHI.TXT. In this copy:
- Add a line at the top "EXTENDED".
- For every font in the file, change the name line to refer to your font. So, if you added Core\myfont.TTF above, your font_chi.txt should start:

Code: Select all

EXTENDED

[DefaultFont]
height 12
name myfont

[TinyFont]
height 8
name myfont
...
In the Data\Text folder of the game install, you will find most of the text for the game. For each Text#.txt file in the folder that you wish to translate, copy the Text#.txt to Text#_CHI.txt. Then open the new file in a text editor and replace the English quoted text with your translations. There is additional text in the Text1.txt file of each scenario in Scenarios.

Also, in Text2.txt, add IDS_LANG_CHI,"Chinese", which will be shown in the language menu in English initially when switching languages.

There are also two textures used for the language:
Data\UI\Textures\langicon_chi.tga - the flag shown in the language menu
Data\UI\Textures\lang_chi.tga - the button shown on the main menu (one quarter of the image is used for each button state)

Then, when you start the game, you should be able to go to the language menu, select your new entry, and the game will display your translations. The main menu text is found in Text2.txt, if you want to quickly verify that characters are displaying correctly.

Re: Is it possible to show Chinese characters in FOGE?

Posted: Sat Jul 20, 2019 6:50 am
by againster
AndrewGardner wrote: Thu Jul 18, 2019 9:22 pm The game engine used by Empires can display simplified Chinese characters. There are a several steps you would need to take to see them in the game, to load an appropriate font and define a new language for the game.

In the Core folder of the game install:
- Add your font in TTF format
- Add the EXTENDED.DAT file found here: https://www.dropbox.com/s/rx9h6j59cr5xz ... D.zip?dl=0
- Open LANG.TXT and add a line for the new language for the game to use, for example [CHI]

In the System folder of the game install, make a copy of the FONT.TXT file and name it FONT_CHI.TXT. In this copy:
- Add a line at the top "EXTENDED".
- For every font in the file, change the name line to refer to your font. So, if you added Core\myfont.TTF above, your font_chi.txt should start:

Code: Select all

EXTENDED

[DefaultFont]
height 12
name myfont

[TinyFont]
height 8
name myfont
...
In the Data\Text folder of the game install, you will find most of the text for the game. For each Text#.txt file in the folder that you wish to translate, copy the Text#.txt to Text#_CHI.txt. Then open the new file in a text editor and replace the English quoted text with your translations. There is additional text in the Text1.txt file of each scenario in Scenarios.

Also, in Text2.txt, add IDS_LANG_CHI,"Chinese", which will be shown in the language menu in English initially when switching languages.

There are also two textures used for the language:
Data\UI\Textures\langicon_chi.tga - the flag shown in the language menu
Data\UI\Textures\lang_chi.tga - the button shown on the main menu (one quarter of the image is used for each button state)

Then, when you start the game, you should be able to go to the language menu, select your new entry, and the game will display your translations. The main menu text is found in Text2.txt, if you want to quickly verify that characters are displaying correctly.
Thank you very much!
I'll try it soon.

Re: Is it possible to show Chinese characters in FOGE?

Posted: Tue Jul 23, 2019 6:57 pm
by againster
Thanks to AndrewGardner! It really works! :D :D :D
Empires_STEAM 2019-07-21 16-44-38-72.jpg
Empires_STEAM 2019-07-21 16-44-38-72.jpg (323.42 KiB) Viewed 1543 times
Also, try to create a new map for FOGE, maybe there will be a mod set in East Asia soon……
Empires_STEAM 2019-07-24 01-30-20-04.jpg
Empires_STEAM 2019-07-24 01-30-20-04.jpg (254.07 KiB) Viewed 1543 times

Re: Is it possible to show Chinese characters in FOGE?

Posted: Wed Jul 24, 2019 3:01 am
by melm
It's impressive! Your next step is working on the unit models? :lol:

Re: Is it possible to show Chinese characters in FOGE?

Posted: Thu Jul 25, 2019 11:28 pm
by uneducated
When creating the game and using a character set, I think it is better to use UTF than ISO, from the perspective of broader character/language support.

https://stackoverflow.com/questions/704 ... iso-8859-1
AndrewGardner wrote: Thu Jul 18, 2019 9:22 pm The game engine used by Empires can display simplified Chinese characters. There are a several steps you would need to take to see them in the game, to load an appropriate font and define a new language for the game.

In the Core folder of the game install:
- Add your font in TTF format
- Add the EXTENDED.DAT file found here: https://www.dropbox.com/s/rx9h6j59cr5xz ... D.zip?dl=0
- Open LANG.TXT and add a line for the new language for the game to use, for example [CHI]

In the System folder of the game install, make a copy of the FONT.TXT file and name it FONT_CHI.TXT. In this copy:
- Add a line at the top "EXTENDED".
- For every font in the file, change the name line to refer to your font. So, if you added Core\myfont.TTF above, your font_chi.txt should start:

Code: Select all

EXTENDED

[DefaultFont]
height 12
name myfont

[TinyFont]
height 8
name myfont
...
In the Data\Text folder of the game install, you will find most of the text for the game. For each Text#.txt file in the folder that you wish to translate, copy the Text#.txt to Text#_CHI.txt. Then open the new file in a text editor and replace the English quoted text with your translations. There is additional text in the Text1.txt file of each scenario in Scenarios.

Also, in Text2.txt, add IDS_LANG_CHI,"Chinese", which will be shown in the language menu in English initially when switching languages.

There are also two textures used for the language:
Data\UI\Textures\langicon_chi.tga - the flag shown in the language menu
Data\UI\Textures\lang_chi.tga - the button shown on the main menu (one quarter of the image is used for each button state)

Then, when you start the game, you should be able to go to the language menu, select your new entry, and the game will display your translations. The main menu text is found in Text2.txt, if you want to quickly verify that characters are displaying correctly.