How do I add chinese locale pak to a project ?

Get help using Construct 2

Post » Sat Jan 14, 2017 12:58 pm

Hi,

I created a game with the nwjs exporter and I have a few chinese players which reported some text problem (The text string has sometimes some unwanted line breaks and the characters at the right end are cropped) which does not appear during my test. I use Windows in english but they have Windows in chinese and I'm guessing that's where the problem comes from. They advised me to add the chinese pak files to the project.

How can I do that and where to get the file ? How to tell nwjs to load the chinese pak file when the player choose the chinese language ?

I tried to search the forum for chinese locale and pak file but no result so far :( I also know nwjs uses chromium so I checked the chromium files and found some reference to zh-cn.pak but I'm not sure it's the good file nor how to load it.

Any help welcome ! Thanks !
B
10
S
2
Posts: 67
Reputation: 690

Post » Thu Jan 19, 2017 1:04 am

Ok so to answer myself. Actually the problem came from the wrapping of the textboxes. Since chinese has no space in it, I had to dynamically change the wrapping of all my text to "character" instead of "word". Construct 2 doesn't have this feature natively but there's a third-party behavior doing it : viewtopic.php?t=74208&start=0
B
10
S
2
Posts: 67
Reputation: 690


Return to How do I....?

Who is online

Users browsing this forum: pegasus6464 and 25 guests