梨子的艺仁 Posted January 18, 2019 Report Share Posted January 18, 2019 (edited) Why my 0 A.D. the GUI's character string is error encode? The annex file is main menu picture. Please help me. Thanks a lot! ---------------------------- My 0 A.D. was built by clang and os is Mac OS 10.13.6. I followed the link: https://trac.wildfiregames.com/wiki/Installing_East_Asian_Locales Now the 0 A.D. game that was installed by this website's dmg file has been Chinese Mod. But when I put the zh-lang.zip that was same with the dmg game used to the mods/zh/ directory and the 0 A.D. was executed by the cmd: binaries/system/pyrogenesis -mod=public -mod=zh-lang It showed that. And I saved the configuration and launched the game. But it was still error encode. My test was that: $ binaries/system/test Running cxxtest tests (317 tests).................................................................................................................................................................................... In TestCStr::test_parse: /Users/user/Documents/project/0ad/source/ps/tests/test_CStr.h:136: Error: Expected (str3.ToFloat() == 3.0f), found (0.0000 != 3.0000) /Users/user/Documents/project/0ad/source/ps/tests/test_CStr.h:137: Error: Expected (str3.ToDouble() == 3.0), found (0.0000 != 3.0000) ..... In TestCppformat::test_basic: /Users/user/Documents/project/0ad/source/ps/tests/test_cppformat.h:36: Error: Expected (fmt::sprintf("%f", 0.5f) == "0.500000"), found ("0,500000" != 0.500000) /Users/user/Documents/project/0ad/source/ps/tests/test_cppformat.h:37: Error: Expected (fmt::sprintf("%.1f", 0.1111f) == "0.1"), found ("0,1" != 0.1) .................................................................................................................................. Failed 2 and Skipped 0 of 317 tests Success rate: 99% How to solve this problem? Please help me. Thanks a lot ! Edited January 20, 2019 by 梨子的艺仁 Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 18, 2019 Report Share Posted January 18, 2019 You need to download a mod to get Asian fonts They are too big to be bundled with the game. Sorry for the inconvenience. Quote Link to comment Share on other sites More sharing options...
sarcoma Posted January 18, 2019 Report Share Posted January 18, 2019 Why doesn't the game just use the fonts installed in the system? Why can't one type Arabic like scripts in lobby? Hebrew already supported. Quote Link to comment Share on other sites More sharing options...
coworotel Posted January 18, 2019 Report Share Posted January 18, 2019 (edited) 1 hour ago, sarcoma said: Why doesn't the game just use the fonts installed in the system? Probably because different systems come with different fonts installed (and the users can change them), so the game packs the fonts to look the same in all systems (I guess). Edited January 18, 2019 by coworotel Quote Link to comment Share on other sites More sharing options...
Guest Posted January 18, 2019 Report Share Posted January 18, 2019 I suppose it was just for the simplicity. Sometime back, it was proposed to use Freetype which was deemed unnecessary by the then devs. I dont recall all of the reasons, but pretty sure the C++ vs Python argument was given. You could find the exact thread by surfing through RedFox’s content. Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 18, 2019 Report Share Posted January 18, 2019 I'm working on a solution on my GitHub to generate fonts at runtime. I need to do some performance testing. We can't use fonts on the system because we can't assume they will be there. In the future once I'm done with my experiment. I could use some help as well for now It only supports 255 chars instead of all. 1 Quote Link to comment Share on other sites More sharing options...
Feldfeld Posted January 23, 2019 Report Share Posted January 23, 2019 First post has been edited, needs a bump Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 23, 2019 Report Share Posted January 23, 2019 You need to use mod io to download the files the files you downloaded are for a previous version Quote Link to comment Share on other sites More sharing options...
Imarok Posted January 23, 2019 Report Share Posted January 23, 2019 On 1/18/2019 at 6:23 AM, 梨子的艺仁 said: https://trac.wildfiregames.com/wiki/Installing_East_Asian_Locales Someone should probably update that to use modio. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.