Any chance with non-ASCII mod content [translations]?

Discuss and distribute tools and methods for modding. Moderator - Grognak
atermird
Posts: 2
Joined: Sat Jan 05, 2013 5:35 pm

Any chance with non-ASCII mod content [translations]?

Postby atermird » Tue Feb 12, 2013 8:33 am

I'm looking into translating game into Russian.

Two issues here:

1. Fonts. Looks like game uses TTF fonts without international
characters. Nasty, but solvable: new fonts can be included in MOD file
along with text.

2. Character encoding. events.xml header states it's encoded using
"utf-8". I tried to create sample mod with UTF-8-encoded Russian bits in it (
with fonts that include those characters, and with default ones), and it's not handled
properly: attached image should read "И ещё маленечко...", but instead
it looks like multibyte Cyrillic characters were treated as 8-bit
latin-1 characters (making string twice as long). Common error, but
fixing this without developer help is almost impossible...
KuroSaru
Posts: 21
Joined: Sun Jan 06, 2013 2:36 pm

Re: Any chance with non-ASCII mod content [translations]?

Postby KuroSaru » Tue Feb 12, 2013 8:51 pm

Although it states it uses UTF-8, between the xml file and the API call used to draw the text the UTF-8 is converted to ANSI, as you've stated without help from Devs current version of FTL wont work/support UTF-8 text.

Additionally its not possible to patch the ftl.exe either, it would require the devs to do something. sorry cant be of help here.
[Tool] FTL-Dat ~ Win/OSX/Nix Supported.
Current WIP: FTL Engine - JAVA Implementation | FTL-Dat
shark
Posts: 173
Joined: Thu Nov 08, 2012 10:11 am

Re: Any chance with non-ASCII mod content [translations]?

Postby shark » Thu Feb 14, 2013 12:27 pm

there's no way to print cyrillics in the game. Шарк didn't work for me either.
Roses are #FF0000
Violets are #0000FF
All of our mods
are belong to you.