Unexplored

Unexplored

View Stats:
Demonmiker Jul 26, 2021 @ 12:16pm
Font Modding
Is there is some way to add foreigh letters in fonts for translation
< >
Showing 1-10 of 10 comments
Demonmiker Jul 26, 2021 @ 1:35pm 
xnbData: target: "w" compressed: true hiDef: true readerData: - type: "Microsoft.Xna.Framework.Content.Texture2DReader, Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" version: 0 numSharedResources: 0 content: #!Texture2D format: 0 extractedImages: - path: ""
I tried extract font but yaml doesn't have information about glyph position and size.
If you have experience in FNA/XNA modding or some ideas please comment. I'll appreciate any help.
It's been a year and I still can't do it.
Demonmiker Aug 1, 2022 @ 2:24am 
Maybe I have some low level version where I implemented russian language in the game.
But big chance I lost it
*Not all materials in the game can be modified
elias.heyndrickx  [developer] Aug 1, 2022 @ 7:00am 
Originally posted by Demonmiker:
Maybe I have some low level version where I implemented russian language in the game.
But big chance I lost it
*Not all materials in the game can be modified
It might be intresting to do so, I found some files that allow localisation. The problem is that the game does not support that many characters in it's font.
Demonmiker Aug 16, 2022 @ 1:00pm 
I have some success on translation.
In short
- I changed 4 font files in game and added russian symbols (with some xna tools from terraria modding)
- I changed some xml files with text to russian
- Then I had ConvertorProgram that makes from russian jibberish (Changed Encoding to custom)
And game will have english and russian symbols
My Discord Кондратьев Михаил#5388
If someone interested in font modding and translation we can connect and finish project.
Demonmiker Aug 16, 2022 @ 1:50pm 
I found my very crude font files:
Some russian letters reuse english because of letter count restriction.
And I have example of this working in the game

Image of font [cdn.discordapp.com]

Image of main menu [cdn.discordapp.com]
Last edited by Demonmiker; Aug 17, 2022 @ 11:52am
elias.heyndrickx  [developer] Aug 18, 2022 @ 2:31pm 
Originally posted by Demonmiker:
I found my very crude font files:
Some russian letters reuse english because of letter count restriction.
And I have example of this working in the game

Image of font [cdn.discordapp.com]

Image of main menu [cdn.discordapp.com]
Nice to see you found the font file Demonmiker, the text files located in "C:\Program Files (x86)\Steam\steamapps\common\Unexplored\Assets\Language" contain the actual text used in the game. When the game is loaded a piece of code loads the files in there and uses it to set descriptions.

The phont files of the game are located in: "C:\Program Files (x86)\Steam\steamapps\common\Unexplored\Assets\Sprites\Fonts" as you may already know.

The way the game knows which letter to draw is as follows: it reads an english string and substracts 32 from it. So the game starts counting from 32. This corresponds to ascii values, where character 32 is a space, 33 is !, 34 is ", ... You can find these tables online.

I'm not sure how well russian translates to english. I suppose it does not very well. However because the text is not at all related to what is displayed (the Phont files is just 1 letter translates to 1 image) you could replace a, b, c, ... by the russian alpabet.

After that you adjust the Language files to what you wish to write in some english variant of the russian word.

For example:

English word: unexplored
Russian word: неисследованный
Language file: ofjssmfepcaooCk
Displayed in unexplored: неисследованный

Translation table:

a => a
b => б
c => в
d => г
e => д
f => е
g => ё
h => ж
i => з
j => и
k => й
l => к
m => л
n => м
o => н
p => о
q => п
r => р
s => с
t => т
u => у
v => ф
w => х
x => ц
y => ч
z => ш
A => щ
B => ъ
C => ы
D => ь
E => э
F => ю
G => я

H => A
I => Б
J => ...

I understand it's not practical to do this translation technique by hand, if you're still intrested in translating the gamefiles into russian I can make you a little program which will translate it to the "weird language file" english. You can email me at: elias.heyndrickx@gmail.com. I'll send you a small and compact windows program to do the translation for you. It's not much work to make.

One final point of note:
Not all text is located in these files (sadly). It's something I would like have a look at but I am currently focusing on other things. But quite a bit of it is.
elias.heyndrickx  [developer] Aug 18, 2022 @ 3:00pm 
Originally posted by Demonmiker:
I have some success on translation.
In short
- I changed 4 font files in game and added russian symbols (with some xna tools from terraria modding)
- I changed some xml files with text to russian
- Then I had ConvertorProgram that makes from russian jibberish (Changed Encoding to custom)
And game will have english and russian symbols
My Discord Кондратьев Михаил#5388
If someone interested in font modding and translation we can connect and finish project.
This is what the font file looks like for example: https://steamcommunity.com/sharedfiles/filedetails/?id=2850876791
Demonmiker Aug 20, 2022 @ 4:34am 
Translation Map
We can't cover english symbols with another language because all text that can't be translated will be gibberish
In my font I found some similar symbols from english and reuse them
like y -> у and more crude example like r -> г
I already have demo program that can convert pure russian to right encoding for my font, but thank you for offer

In code text
Yes as you said some text can't be translated.
Maybe if we have enough attention developers will make small update that transfers more text in resources.
Last edited by Demonmiker; Aug 20, 2022 @ 4:34am
elias.heyndrickx  [developer] Aug 20, 2022 @ 7:50pm 
Originally posted by Demonmiker:
Translation Map
We can't cover english symbols with another language because all text that can't be translated will be gibberish
In my font I found some similar symbols from english and reuse them
like y -> у and more crude example like r -> г
I already have demo program that can convert pure russian to right encoding for my font, but thank you for offer

In code text
Yes as you said some text can't be translated.
Maybe if we have enough attention developers will make small update that transfers more text in resources.
Well yes the english in the translations will be gibberish but now what is displayed inside the game. There is currently only one developer for the game and that's me. It's a bit in maintenance mode atm so how much I get done depends on how much time I have.

Happy to hear you found a way to translate things already. I might make a better supported version for translation.

The problem is I'd like to fix other game breaking bugs first:
- Dissapearing items (fixed but not published)
- Items getting stuck in walls (fixed but not published), I recently noticed stuff can also get stuck in locked doors. So I will probably have to implement yet another patch for that aswell.
- Corrupt save files, very annoying. Might be related to books?
- Big lagg spikes, still not sure what causes this. I'm sure it's something stupid.

And a bunch of other fun things I'd like to do. But those big glaring issues come first.
Last edited by elias.heyndrickx; Aug 20, 2022 @ 7:51pm
< >
Showing 1-10 of 10 comments
Per page: 1530 50