Jump to content


Photo

How do I translate the game into my native language? DP 2.2

dp 2.2 language translate

  • Please log in to reply
9 replies to this topic

#1 DoctorWEB

DoctorWEB
  • Members
  • 6 posts

Posted 05 June 2024 - 07:09 PM

I encountered that when I change the language to my native (Russian) in the .STR files I get hieroglyphics, as if the UTF-8 encoding does not work. If I delete the FONTS folder, all Russian characters become Chinese.
Can you tell me how to make so that the Russian language is correctly perceived by the game? What files need to edit?
I really want to make a full-fledged translation on my favorite game!

Attached Thumbnails

  • 2.jpg
  • 1.jpg
  • 3.jpg


#2 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 603 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 06 June 2024 - 08:21 PM

Hi there,

the English version does not have Cyrillic characters in its font files. This is the charset:

Screenshot (161).png

 

There is even a Russian version of Commandos 2, but I don't know where to find it.

If you want to translate the game yourself, you would have to edit the FNC and FNM files in the FONTS folder.

This will be a challenge, as there is currently only an exporter but no importer for these files.

 



#3 DoctorWEB

DoctorWEB
  • Members
  • 6 posts

Posted 06 June 2024 - 09:32 PM

Всем привет,

английская версия не содержит кириллических символов в файлах шрифтов. Это кодировка:

attachicon.gif Скриншот (161).png

 

Есть даже русская версия Коммандос 2, но я не знаю, где ее найти.

Если вы хотите перевести игру самостоятельно, вам придется отредактировать файлы FNC и FNM в папке FONTS.

Это будет непросто, поскольку в настоящее время для этих файлов существует только экспортер, но нет импортера.

Can you please suggest a program to export FNC and FNM files? And with import I think I can handle it. because other publishers have somehow managed to solve this problem) it is worth digging into their developments).


Edited by DoctorWEB, 06 June 2024 - 09:33 PM.


#4 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 603 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 07 June 2024 - 09:10 PM

Download MultiExtractor from here:

https://retrogamesva.../downloads.html

 

Here's the documentation of the file formats:

https://retrogamesva...ads/FNM_FNC.rar



#5 DoctorWEB

DoctorWEB
  • Members
  • 6 posts

Posted 19 June 2024 - 05:32 AM

Download MultiExtractor from here:

https://retrogamesva.../downloads.html

 

Here's the documentation of the file formats:

https://retrogamesva...ads/FNM_FNC.rar

 

I have created fonts of Russian language but I can not make them work. I understand that somewhere else I need to make edits for proper operation? Can you tell me what I am missing?

 

p.s I found a post from 14 years ago)) help if it's not too much trouble))

https://forums.revor...-help/?p=828404

Attached Thumbnails

  • fonts rus.jpg

Attached Files


Edited by DoctorWEB, 19 June 2024 - 09:56 AM.


#6 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 603 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 20 June 2024 - 10:22 PM

Hi, make sure that you use the correct filenames (key codes).
When I use Cyrillic letters in GLOBAL.STR...

Screenshot (160).png

...the game uses those characters:

Screenshot (159).png

 

I also found a FNC/FNM Repacker, you can give it a try:

Attached File  FNC_FNM_Repacker.zip   6.34KB   22 downloads



#7 DoctorWEB

DoctorWEB
  • Members
  • 6 posts

Posted 25 June 2024 - 05:27 AM

In general, I have a suspicion that the problem in FONT_6.FNM in the original there are 66 elements, in my archive 217 elements))))
if I sift them correctly can you put it together?
Yes and a question in repacker. what program is better to work with files like class ? ( Eclipse IDE for Java Developers,Oracle Java Runtime Environment,dirtyJOE,JD-GUI,DJ Java Decompiler,Jetbrains IntelliJ IDEA) If only I was good at it, but so I'm beating my head against the wall just trying to understand.

Edited by DoctorWEB, 25 June 2024 - 05:27 AM.


#8 DoctorWEB

DoctorWEB
  • Members
  • 6 posts

Posted 29 June 2024 - 05:09 AM

Hi, make sure that you use the correct filenames (key codes).
When I use Cyrillic letters in GLOBAL.STR...

attachicon.gif Screenshot (160).png

...the game uses those characters:

attachicon.gif Screenshot (159).png

 

I also found a FNC/FNM Repacker, you can give it a try:

attachicon.gif FNC_FNM_Repacker.zip

Good afternoon. Can you still tell me how to use class files to compile a font? article or at least something to understand. I noticed that in all fonts of the original ENG version BMP go in this order 176. bmp - 207.bmp (АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ) 161.bmp (Ё=Е) And only in Font8.fnm Offset 177.bmp - 208. bmp (АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ) 162.bmp (Ё=Е). in font6.fnm there are no Russian letters at all (apparently it is not critical judging from your example).
I have now corrected the order of the bmp as it should be I attach the archive. Dear I beg you to compile please. It should work https://disk.yandex..../csnZ3Ccyf1di7Q


#9 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 603 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 29 June 2024 - 06:34 PM

Hi again,

to run the .class files, you need the Java Runtime Environment (JRE).

When it's installed an the path is set, you can open the terminal (cmd.exe) and run the .class file by typing: java fnc1

Then enter the filename and press enter.

 

I've already packed your files, you can donwload your FNM and FNC files here:

Attached File  FONTS ENG by RUS REPACKED.zip   82.12KB   11 downloads

 

I had to change the encoding of GLOBAL.STR in order to see your fonts in the game, like this:

screenshot2.png

 

FYI:

Eclipse and IntelliJ IDEA are used by programmers to write and compile programs.
JD-GUI and DJ Java Decompiler are programs that convert java bytecode (*.class files) back into java source files (*.java)

 

 
 

 

 



#10 DoctorWEB

DoctorWEB
  • Members
  • 6 posts

Posted 02 August 2024 - 08:47 PM

In general, nothing I did not work out normally, although everything is obvious and clear. still in the game itself font is not displayed. in the main menu please work, I even something suggests that it is either the Chinese that added something or I'm so stupid that I do not know what number is correct to assign to each letter of the alphabet. It would be clear on the example with English like A-67, B-68, C-69, I just gave an example for fun.
The only thing I haven't tried is to replace English letters with Russian letters A=F. B=I. C=C and so on, that is, completely eradicate English in the original fonts)))))





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users