ReactiveDrop / reactivedrop_translations

Translations for Alien Swarm: Reactive Drop (2017), a mod of Valve's Alien Swarm (2010)
Creative Commons Zero v1.0 Universal
19 stars 50 forks source link

[BUG] Chinese character problem, can't show right #222

Closed zhongqingsong closed 2 years ago

zhongqingsong commented 2 years ago

Some Chinese characters cannot be displayed properly in the game. So far I've found two characters: · × The first character is used in the character's name. (like 马丁·路德·金 Martin Luther King) The second character, MM, is often used in games to represent bullets.(7.62×51mm) Of course, At present, the character display is abnormal, so I used another symbol to temporarily replace them.But I think this expression is not correct, and it affects the professionalism of translation. And then, I mention it here. By the way, I test the file with Game at now, this is the test result picture.

  1. The actual display effect of the game, there are abnormal display. Snipaste_2022-08-05_23-43-15 Snipaste_2022-08-05_23-43-33

2.Real game translation text, through the normal software can normally display symbols. Snipaste_2022-08-05_23-46-06 Snipaste_2022-08-05_23-45-39

In this case, do I feel that the font file used by the game lacks corresponding character symbols?

BenLubar commented 2 years ago

Weird, they do work on my computer:

image

I did also notice that my menus seem to be in two different fonts for different letters so maybe it's loading system fonts?

image

zhongqingsong commented 2 years ago

Weird, they do work on my computer:

image

I did also notice that my menus seem to be in two different fonts for different letters so maybe it's loading system fonts?

image

Yes, Not all text display problems, such as dialog display is normal. What is found is that the text displayed on the UI interface is not correct. Like the text of my screenshot, it's the description text of the soldier, the weapon. The problem starts a long time ago, I wanted to mention it originally, but it was mentioned in the game update a few days ago, which fixed the Chinese symbol problem. So, I re-envoys, found that there is still a display problem.

zhongqingsong commented 2 years ago

I looked at the built-in fonts of RD, and the file sizes are relatively small (all hundreds of kilobytes). If it is a standard Chinese font library, the size will generally be a few M. So, I decided that the biggest xarialuni font is the international font library.

So I tried to view the xarialuni.ttf font, and the Windows system reported an error, indicating that the file could not be previewed. It means that this xarialuni font file is actually invalid on Chinese computers? That's why you think "so maybe it's loading system fonts"? Then, I manually found a font file and replaced the xar file, and there was no change after entering the game. Because I don't know the source code, maybe what I've done is useless. Anyway, I hope it can help a little bit to troubleshoot the problem.

BenLubar commented 2 years ago

xarialuni.ttf

I don't recognize that name. arialuni would be MS Arial Unicode, but that isn't shipped with the game (we only have Neo Sans and some icon fonts)

Dumbstep commented 2 years ago

Related to coded conversion

BenLubar commented 2 years ago

image I'm going to have to research how Source Engine loads fallback fonts.