sony0108 Posted April 6, 2024 Group: Members Topic Count: 5 Topics Per Day: 0.01 Content Count: 12 Reputation: 0 Joined: 04/07/23 Last Seen: Wednesday at 11:43 PM Share Posted April 6, 2024 ---- Available languages: English (ENG) @langtype failed. Language is now set to English (ENG). Quote Link to comment Share on other sites More sharing options...
0 Racaae Posted April 6, 2024 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 212 Reputation: 94 Joined: 06/02/12 Last Seen: 7 hours ago Share Posted April 6, 2024 (edited) Hi, open this file: /src/common/msg_conf.hpp and find this part: enum lang_types { LANG_RUS = 0x01, LANG_SPN = 0x02, LANG_GRM = 0x04, LANG_CHN = 0x08, LANG_MAL = 0x10, LANG_IDN = 0x20, LANG_FRN = 0x40, LANG_POR = 0x80, LANG_THA = 0x100, LANG_MAX }; #ifndef LANG_ENABLE // Multilanguage System. // Define which languages to enable (bitmask). // 0xFFF will enable all, while 0x000 will enable English only. #define LANG_ENABLE 0x000 Change 0x000 in the last line to the desired bitmask value (sum of numbers of the languages you want to use). Save and then compile your server. Examples: Enable Russian and Spanish (0x01 + 0x02 = 0x03) #define LANG_ENABLE 0x03 Enable German and Chinese (0x04 + 0x08 = 0x12) #define LANG_ENABLE 0x12 Enable Spanish and French and Portuguese (0x02 + 0x40 + 0x80 = 0x122) #define LANG_ENABLE 0x122 EDIT: Do note that @langtype have no effect on client-side text. It's only for server messages. Edited April 6, 2024 by Racaae Addendum Quote Link to comment Share on other sites More sharing options...
0 sony0108 Posted April 7, 2024 Group: Members Topic Count: 5 Topics Per Day: 0.01 Content Count: 12 Reputation: 0 Joined: 04/07/23 Last Seen: Wednesday at 11:43 PM Author Share Posted April 7, 2024 (edited) 7 hours ago, Racaae said: Oi, abra este arquivo: /src/common/msg_conf.hpp e encontre esta parte: enum lang_types { LANG_RUS = 0x01, LANG_SPN = 0x02, LANG_GRM = 0x04, LANG_CHN = 0x08, LANG_MAL = 0x10, LANG_IDN = 0x20, LANG_FRN = 0x40, LANG_POR = 0x80, LANG_THA = 0x100, LANG_MAX }; #ifndef LANG_ENABLE // Multilanguage System. // Define which languages to enable (bitmask). // 0xFFF will enable all, while 0x000 will enable English only. #define LANG_ENABLE 0x000 Altere 0x000 na última linha para o valor de máscara de bits desejado (soma dos números dos idiomas que você deseja usar). Salve e compile seu servidor. Exemplos: Ativar russo e espanhol (0x01 + 0x02 = 0x03) #define LANG_ENABLE 0x03 Habilitar alemão e chinês (0x04 + 0x08 = 0x12) #define LANG_ENABLE 0x12 Habilitar espanhol e francês e português (0x02 + 0x40 + 0x80 = 0x122) #define LANG_ENABLE 0x122 EDIT: Observe que @langtype não têm efeito no texto do lado do cliente. É apenas para mensagens do servidor. Thank you, it worked. One question is there any client-side config about the language? And language for NPCs is there any configuration in src? Edited April 7, 2024 by sony0108 Quote Link to comment Share on other sites More sharing options...
Question
sony0108
---- Available languages: English (ENG) @langtype failed. Language is now set to English (ENG).
Link to comment
Share on other sites
2 answers to this question
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.