-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi! I'm Wesp's Unofficial Patch tester/helper/co-worker and translator (he might told you about me)...
I looked at your addon and found it quite interesting. First of all, it's good that you're trying to make it language-independent, by using an external ini file.
I also have some suggestions for the addon improvement.
-
Currently, your addon supports only the ANSI 1252 (or 1250?) code page, which stands for basic Latin characters and diacritics only. This means that Cyrillic, East Asian, and other letter layouts don't work. I tried your addon with custom Cyrillic fonts (Russian), where additional pages of characters were added, but they didn't work, displaying some garbage instead of letters. Is it possible to add support for custom layouts and forcing ANSI encodings through your ini file? I've attached an archive with custom Cyrillic fonts (custom chars range is 0xC0...0xFF) - maybe this will help you figure it out. The same thing happens for Unicode UTF-16 too (which is used by gameui_english.txt and inside of .lip files) - I couldn't force to display custom letters in the game interfaces.
-
I saw that your WidescreenUI plugin is compiled with Windows XP support. Is it possible to do the same here? It would be great to keep the native historical game compatibility :)
-
You may have noticed that the windows of the main menu interfaces have a larger font size than inside the game (in the upper subtitles, etc.). This is due to an engine bug related to the parsing of the resource/trackerscheme.res file. This file contains groups of font sizes for each resolution, and you can see entries like "Default_1280", "Dlg_Malk_1024", etc. The number at the end goes to the screen pixel width. The font size in the game is selected based on the calculation of the screen height at a ratio of 4:3 (for example, the section "_1024" will be used if the screen height is "768" pixels). BUT in the main menu, fonts are calculated by the screen WIDTH, not by height. Therefore, a bug on not 4:3 screens, which causes the next section to be taken in size. For example, if our monitor resolution is 1366x768, then the menu font sizes will be taken from the "_1280" sections, not "*_768". And because of this, they turn out much larger than in the game. Is it possible to fix it? This bug is especially noticeable if you run the game with a small widescreen resolution (for example, add -sw -w 1280 -h 720 to the launch parameters of the exe file). Some languages have longer words (than English), and this bug have words cutting, as well as cutting fonts themselves in some resolutions. This forces the use of smaller fonts inside the game, which makes them difficult to read at high wide resolutions.