hi guys,
I did this for you today, I hope for some either useful or enlightening... Thank you for the attention and sorry for the bad English
search in locale_service.cpp
bool LocaleService_Init(const std::string& c_rstServiceName)
replace like this
bool LocaleService_Init(const std::string& c_rstServiceName)
{
#ifdef ENABLE_MULTY_LANG
//or it set local from db column
#else
if (!g_stServiceName.empty())
{
sys_err("ALREADY exist service");
return false;
}
g_stServiceName = c_rstServiceName;
//or it set local from db column
#endif
if ( "japan" == g_stServiceName)
{
__LocaleService_Init_JAPAN();
}
search for
using namespace std;
extern string g_stQuestDir;
extern set<string> g_setQuestObjectDir;
add replace
string g_stServiceName;
like this
#ifdef ENABLE_MULTY_LANG // Raziel |maked a new Token for Global Lang|
extern stringg_stServiceName;
#else
string g_stServiceName;
#endif
then search in config.h
enum
{
ADDRESS_MAX_LEN = 15
};
add later
#ifdef ENABLE_MULTY_LANG // Raziel |maked a new Token for Global Lang|
extern std::stringg_stServiceName;
#endif
so search in config.cpp
char g_szPublicIP[16] = "0";
char g_szInternalIP[16] = "0";
bool g_bSkillDisable = false;
int g_iFullUserCount = 2000;
int g_iBusyUserCount = 200;
//Canada
and add later
#ifdef ENABLE_MULTY_LANG
stringg_stServiceName = "";
#endif
now in config.cpp search
TOKEN("channel")
{
str_to_number(g_bChannel, value_string);
continue;
}
and add later
#ifdef ENABLE_MULTY_LANG
TOKEN("LANG_GLOBAL") // Raziel |maked a new Token for Global Lang|
{
g_stServiceName = value_string;
fprintf(stdout, "g_stServiceName: %s\n", g_stServiceName.c_str());
continue;
}
#endif
and the last change in service.h add this
#define ENABLE_MULTY_LANG // Raziel |maked a new Token for Global Lang| sintax |LANG_GLOBAL: germany| config from core
Now you can use different Language for a each channel and you choose all from config !
1 server 1 database but not only one locale for each channel
Bye ! enjoy . RazieL
You can put like ! is FREE !!
Mini Release: Multi Lang System
Metin2 özel sunucu geliştirme sürecinde dil desteği büyük bir rol oynar. Özellikle farklı kullanıcı kitlesine hitap eden sunucularda çoklu dil sistemi (Multi Lang System) hayati öneme sahiptir. Bu sistem sayesinde oyuncular kendi dillerinde arayüz, mesajlar ve hata bildirimleri alabilirler. Bu yazıda mini release olarak sunulan Multi Lang System'in detaylarına, avantajlarına ve entegrasyonuna odaklanacağız.
Sistem Hakkında Genel Bilgi
Multi Lang System, Metin2 özel sunucularında kullanılan, dil dosyalarını yönetebilen ve dinamik olarak uygulayabilen gelişmiş bir yapıdır. Sistem genellikle Python tabanlı py root ve uiscript üzerinde çalışır. Bu yapı sayesinde hem client hem de server tarafında dil değişiklikleri kolayca yapılabilir. Sistem, core seviyesinde entegre edilebilir ve db core üzerinden de dil verileri saklanabilir.
Neden Multi Lang System Kullanmalısınız?[/BR][/BR]1. Oyuncu Kitlesi: Farklı ülkelerden gelen oyunculara hitap etmek istiyorsanız, onların anadilde oyun deneyimi yaşamaları büyük avantaj sağlar.
2. Sunucu Yönetimi: Sunucu sahipleri, dil bazlı içerik güncellemeleri yaparak yönetim kolaylığı sağlayabilirler.
3. PVP Sistemleri: PVP sunucularında, sistemsel uyarılar veya komut açıklamaları çoklu dil desteğiyle daha anlaşılır hale gelir.
Multi Lang System Özellikleri[/BR][/BR]- Dinamik dil değiştirme
- JSON benzeri yapı ile dil dosyalarının yönetimi
- Python GUI ile kolay yönetim paneli
- Uiscript ile entegre arayüz destekli
- DB entegrasyonu ile çevrilen metinlerin veritabanında saklanması
Sistem Kurulumu ve Entegrasyon[/BR][/BR]Multi Lang System kurulumu oldukça basittir. Öncelikle py root dizinine ilgili dosyalar eklenmelidir. Ardından uiscript dosyalarında gerekli düzenlemeler yapılmalıdır. Sistem, C++ tabanlı game server tarafında da dil ayarlamaları yapılabilir. Bu sayede hem istemci hem de sunucu tarafında tam kapsamlı dil desteği sağlanabilir. Martysama gibi geliştirici sistemlerle uyumlu çalışması, entegrasyon sürecini kolaylaştırır.
SEO Açısından Önemi[/BR][/BR]Multi Lang System, Metin2 özel sunucu geliştirme (Metin2 development) sürecinde önemli bir SEO artısı sağlar. Arama motorlarında 'Metin2 multi language support', 'Python GUI Metin2', 'Metin2 server src with language options' gibi anahtar kelimelerle yüksek sıralamaya çıkılabilir. Bu sistem aynı zamanda 'Metin2 compile', 'source edit' gibi konularda da referans alınabilir.
Sonuç[/BR][/BR]Multi Lang System, Metin2 özel sunucularında kullanıcı dostu ve profesyonel bir deneyim sunmak için kritik bir sistemdir. Geliştiricilerin zamanla genişletebileceği esnek bir yapıya sahiptir. Hem game hem de auth tarafında entegre bir şekilde çalışabilir. Bu mini release ile sunucunuzun global bir yapıya kavuşması artık çok daha kolay!
Mini Release: Multi Lang System
In the process of developing Metin2 private servers, language support plays a significant role. Especially for servers targeting diverse user groups, a multilingual system (Multi Lang System) is of vital importance. Thanks to this system, players can receive interfaces, messages, and error notifications in their own languages. In this article, we will focus on the details, advantages, and integration of the Multi Lang System, presented here as a mini release.
General Information About the System[/BR][/BR]Multi Lang System is an advanced structure used in Metin2 private servers that manages language files and dynamically applies them. The system typically runs on Python-based py root and uiscript. This structure allows easy language changes on both the client and server side. It can be integrated at the core level and language data can also be stored via db core.
Why Should You Use Multi Lang System?[/BR][/BR]1. Player Base: If you aim to reach players from different countries, allowing them to experience the game in their native language provides a major advantage.
2. Server Management: Server owners can easily manage content updates based on language, simplifying administration.
3. PVP Systems: On PVP servers, system warnings or command descriptions become more understandable with multilingual support.
Features of Multi Lang System[/BR][/BR]- Dynamic language switching
- Management of language files in a JSON-like structure
- Easy management panel with Python GUI
- Interface support integrated with Uiscript
- DB integration for storing translated texts in the database
System Installation and Integration[/BR][/BR]Installing the Multi Lang System is quite simple. First, the relevant files must be added to the py root directory. Then, necessary modifications must be made in the uiscript files. The system can also handle language settings on the C++ based game server side, allowing comprehensive language support on both the client and server sides. Its compatibility with developer systems like Martysama makes the integration process easier.
SEO Importance[/BR][/BR]Multi Lang System offers a significant SEO benefit in the process of Metin2 private server development (Metin2 development). Keywords such as 'Metin2 multi language support', 'Python GUI Metin2', and 'Metin2 server src with language options' can help achieve higher rankings in search engines. This system can also be referenced in topics like 'Metin2 compile' and 'source edit'.
Conclusion[/BR][/BR]Multi Lang System is a critical system for providing a user-friendly and professional experience in Metin2 private servers. It features a flexible structure that developers can expand over time. It can work seamlessly on both game and auth sides. With this mini release, it is now much easier for your server to achieve a global structure!
I did this for you today, I hope for some either useful or enlightening... Thank you for the attention and sorry for the bad English
search in locale_service.cpp
bool LocaleService_Init(const std::string& c_rstServiceName)
replace like this
bool LocaleService_Init(const std::string& c_rstServiceName)
{
#ifdef ENABLE_MULTY_LANG
//or it set local from db column
#else
if (!g_stServiceName.empty())
{
sys_err("ALREADY exist service");
return false;
}
g_stServiceName = c_rstServiceName;
//or it set local from db column
#endif
if ( "japan" == g_stServiceName)
{
__LocaleService_Init_JAPAN();
}
search for
using namespace std;
extern string g_stQuestDir;
extern set<string> g_setQuestObjectDir;
add replace
string g_stServiceName;
like this
#ifdef ENABLE_MULTY_LANG // Raziel |maked a new Token for Global Lang|
extern stringg_stServiceName;
#else
string g_stServiceName;
#endif
then search in config.h
enum
{
ADDRESS_MAX_LEN = 15
};
add later
#ifdef ENABLE_MULTY_LANG // Raziel |maked a new Token for Global Lang|
extern std::stringg_stServiceName;
#endif
so search in config.cpp
char g_szPublicIP[16] = "0";
char g_szInternalIP[16] = "0";
bool g_bSkillDisable = false;
int g_iFullUserCount = 2000;
int g_iBusyUserCount = 200;
//Canada
and add later
#ifdef ENABLE_MULTY_LANG
stringg_stServiceName = "";
#endif
now in config.cpp search
TOKEN("channel")
{
str_to_number(g_bChannel, value_string);
continue;
}
and add later
#ifdef ENABLE_MULTY_LANG
TOKEN("LANG_GLOBAL") // Raziel |maked a new Token for Global Lang|
{
g_stServiceName = value_string;
fprintf(stdout, "g_stServiceName: %s\n", g_stServiceName.c_str());
continue;
}
#endif
and the last change in service.h add this
#define ENABLE_MULTY_LANG // Raziel |maked a new Token for Global Lang| sintax |LANG_GLOBAL: germany| config from core
Now you can use different Language for a each channel and you choose all from config !
1 server 1 database but not only one locale for each channel
Bye ! enjoy . RazieL
You can put like ! is FREE !!
- <li data-xf-list-type="ul">
Mini Release: Multi Lang System
Metin2 özel sunucu geliştirme sürecinde dil desteği büyük bir rol oynar. Özellikle farklı kullanıcı kitlesine hitap eden sunucularda çoklu dil sistemi (Multi Lang System) hayati öneme sahiptir. Bu sistem sayesinde oyuncular kendi dillerinde arayüz, mesajlar ve hata bildirimleri alabilirler. Bu yazıda mini release olarak sunulan Multi Lang System'in detaylarına, avantajlarına ve entegrasyonuna odaklanacağız.
Sistem Hakkında Genel Bilgi
Multi Lang System, Metin2 özel sunucularında kullanılan, dil dosyalarını yönetebilen ve dinamik olarak uygulayabilen gelişmiş bir yapıdır. Sistem genellikle Python tabanlı py root ve uiscript üzerinde çalışır. Bu yapı sayesinde hem client hem de server tarafında dil değişiklikleri kolayca yapılabilir. Sistem, core seviyesinde entegre edilebilir ve db core üzerinden de dil verileri saklanabilir.
Neden Multi Lang System Kullanmalısınız?[/BR][/BR]1. Oyuncu Kitlesi: Farklı ülkelerden gelen oyunculara hitap etmek istiyorsanız, onların anadilde oyun deneyimi yaşamaları büyük avantaj sağlar.
2. Sunucu Yönetimi: Sunucu sahipleri, dil bazlı içerik güncellemeleri yaparak yönetim kolaylığı sağlayabilirler.
3. PVP Sistemleri: PVP sunucularında, sistemsel uyarılar veya komut açıklamaları çoklu dil desteğiyle daha anlaşılır hale gelir.
Multi Lang System Özellikleri[/BR][/BR]- Dinamik dil değiştirme
- JSON benzeri yapı ile dil dosyalarının yönetimi
- Python GUI ile kolay yönetim paneli
- Uiscript ile entegre arayüz destekli
- DB entegrasyonu ile çevrilen metinlerin veritabanında saklanması
Sistem Kurulumu ve Entegrasyon[/BR][/BR]Multi Lang System kurulumu oldukça basittir. Öncelikle py root dizinine ilgili dosyalar eklenmelidir. Ardından uiscript dosyalarında gerekli düzenlemeler yapılmalıdır. Sistem, C++ tabanlı game server tarafında da dil ayarlamaları yapılabilir. Bu sayede hem istemci hem de sunucu tarafında tam kapsamlı dil desteği sağlanabilir. Martysama gibi geliştirici sistemlerle uyumlu çalışması, entegrasyon sürecini kolaylaştırır.
SEO Açısından Önemi[/BR][/BR]Multi Lang System, Metin2 özel sunucu geliştirme (Metin2 development) sürecinde önemli bir SEO artısı sağlar. Arama motorlarında 'Metin2 multi language support', 'Python GUI Metin2', 'Metin2 server src with language options' gibi anahtar kelimelerle yüksek sıralamaya çıkılabilir. Bu sistem aynı zamanda 'Metin2 compile', 'source edit' gibi konularda da referans alınabilir.
Sonuç[/BR][/BR]Multi Lang System, Metin2 özel sunucularında kullanıcı dostu ve profesyonel bir deneyim sunmak için kritik bir sistemdir. Geliştiricilerin zamanla genişletebileceği esnek bir yapıya sahiptir. Hem game hem de auth tarafında entegre bir şekilde çalışabilir. Bu mini release ile sunucunuzun global bir yapıya kavuşması artık çok daha kolay!
Mini Release: Multi Lang System
In the process of developing Metin2 private servers, language support plays a significant role. Especially for servers targeting diverse user groups, a multilingual system (Multi Lang System) is of vital importance. Thanks to this system, players can receive interfaces, messages, and error notifications in their own languages. In this article, we will focus on the details, advantages, and integration of the Multi Lang System, presented here as a mini release.
General Information About the System[/BR][/BR]Multi Lang System is an advanced structure used in Metin2 private servers that manages language files and dynamically applies them. The system typically runs on Python-based py root and uiscript. This structure allows easy language changes on both the client and server side. It can be integrated at the core level and language data can also be stored via db core.
Why Should You Use Multi Lang System?[/BR][/BR]1. Player Base: If you aim to reach players from different countries, allowing them to experience the game in their native language provides a major advantage.
2. Server Management: Server owners can easily manage content updates based on language, simplifying administration.
3. PVP Systems: On PVP servers, system warnings or command descriptions become more understandable with multilingual support.
Features of Multi Lang System[/BR][/BR]- Dynamic language switching
- Management of language files in a JSON-like structure
- Easy management panel with Python GUI
- Interface support integrated with Uiscript
- DB integration for storing translated texts in the database
System Installation and Integration[/BR][/BR]Installing the Multi Lang System is quite simple. First, the relevant files must be added to the py root directory. Then, necessary modifications must be made in the uiscript files. The system can also handle language settings on the C++ based game server side, allowing comprehensive language support on both the client and server sides. Its compatibility with developer systems like Martysama makes the integration process easier.
SEO Importance[/BR][/BR]Multi Lang System offers a significant SEO benefit in the process of Metin2 private server development (Metin2 development). Keywords such as 'Metin2 multi language support', 'Python GUI Metin2', and 'Metin2 server src with language options' can help achieve higher rankings in search engines. This system can also be referenced in topics like 'Metin2 compile' and 'source edit'.
Conclusion[/BR][/BR]Multi Lang System is a critical system for providing a user-friendly and professional experience in Metin2 private servers. It features a flexible structure that developers can expand over time. It can work seamlessly on both game and auth sides. With this mini release, it is now much easier for your server to achieve a global structure!
