This tutorial does not encourage the emergence of private servers or Chinese games without the permission of ryzom. It is just a way to study and learn the ryzom system!
Ryzom is actually easy to understand, because it supports Unicode encoding and fully considers the localization requirements in resource design.
Now let's briefly explain how to make ryzom content (including the interface, input, and server data) support Chinese.
Ryzom's attempt
Chinese client support
. EXE and related DLL files can be compiled by yourself.
First, open client_default.cfg in notepad and find:
Languagecode = "en"; // english
Changed:
Languagecode = "cn"; // Chinese
In this way, after the client is started, the interface text will be automatically taken from the relevant Chinese configuration file, and the server will be notified to use Chinese content. Of course, if the server does not add a Chinese file, many text in the dialog box and tag will be invalid default text.
So where is the configuration file on the client's Chinese interface? Open the data directory of your client. There is a gamedev. BNP file below, which contains all interface language files. You can use the bnp_make_r.exe tool to unbind the file (after compilation, the tool should be found in the Code \ nel \ tools \ MISC \ bnp_make directory ). A gamedev folder is generated after the folder is unlocked, which contains an en. uxt, copy it to CN. uxt, and then open it in Notepad. The value of each item in it represents the text content of various interfaces. It is exactly what you need to translate. Translate it with confidence, this file is unicode encoded. After translation, use the bnp_make tool to package the gamedev directory. Of course, you can keep the directory gamedev as long as you want, because the client preferentially reads disk files.
Then there is the problem of Chinese fonts. The fonts in the data \ fonts directory do not support Chinese by default (if you type Chinese, it will become ....), I could have set the font in gamedev configuration, but I used a simpler method to directly overwrite ryzom. TTF. For example, the screenshot above uses the font file to replace ryzom. TTF.
I have not tested the Chinese input in the chat box, but according to the group, after all the fonts are configured, the Natural Chinese input will be okay.
In the group
So far, the localization support of the client is complete.
Server Chinese support
If you run the compiled server, find the ryzom \ Server \ data_shard \ language directory. The following is the language file of each content on the server. Translate: translate the relevant content. Note that some Columns cannot be modified, such as the name column, which is queried as a language keyword.
Now, you can freely switch between English and Chinese by modifying the language type in client_default.cfg on the client!
By xpeng