Hello, once upon a time I met a fool who had such a bug in Source that the player was in a different kingdom than he should have been. He didnt have kingdoms 1, 2, 3 but only 0 or 4, which created problems in the game as he didnt have any kingdom. I had never come across such an error in my life, but once I wrote a simple fix for these types of situations, so here you go:
You dont have to have this bug, this fix is for idiots who cant do anything right and take on metin2 and create new bugs
Open:
input_login.cpp
Fix - Check Kingdom Players
Metin2 özel sunucularında PvP sistemlerin geliştirilmesi ve oyun deneyiminin artırılması için birçok geliştirici tarafından özgün modül ve sistemler yazılmaktadır. Bu sistemlerden birisi olan Check Kingdom Players sistemi, oyuncuların kendi krallıklarındaki diğer oyuncular hakkında bilgi edinmelerini sağlar. Ancak bazı durumlarda bu sistem doğru çalışmayabilir ya da istenmeyen davranışlara neden olabilir. Bu yazıda Check Kingdom Players sisteminin düzeltme yöntemlerinden bahsedeceğiz.
Check Kingdom Players Nedir?
Check Kingdom Players sistemi, oyuncuların belirli bir komutla veya arayüz üzerinden kendi krallıklarında bulunan diğer oyuncuları listeleyebildiği bir özelliktir. Bu özellik genellikle C++ tabanlı game server üzerinde çalışır ve db bağlantısı ile oyuncu verilerini çeker. Sistem aynı zamanda Python ile yazılmış GUI tabanlı bir arayüz ile de entegre olabilir. Bu sayede hem geliştiriciler hem de oyuncular için daha kullanıcı dostu bir yapı oluşturulur.
Sorunlar ve Nedenleri
Bu sistem çalışmazsa bazı yaygın sorunlar karşımıza çıkabilir:
- Oyuncu listesi boş döner.
- Sunucu çökmesi veya donma yaşar.
- Hatalı veri gösterimi.
- Yetkilendirme hataları.
Bu tür hatalar genellikle server src dosyalarındaki core fonksiyonlarda meydana gelen eksikliklerden veya auth ve game sunucuları arasındaki bağlantı problemlerinden kaynaklanabilir.
Fix Uygulamaları
1. Database Sorgusu Kontrolü: Check Kingdom Players sisteminin temelinde veritabanı sorguları yatar. Bu sorguların doğru çalışıp çalışmadığını kontrol etmek önemlidir. Özellikle db core dosyalarında tanımlanan sorguların MySQL veya MariaDB ile uyumlu olması gerekir. Eğer sorgularda hata varsa, game server istenen veriyi çekemez ve sistem çalışmaz.
2. Yetkilendirme ve Güvenlik: Sistemdeki her komut ve işlem doğru kimlik doğrulaması ile yapılmalıdır. Auth server ile Game server arasında güvenli bir bağlantı kurulmuş olmalıdır. Aksi takdirde yetkisiz erişimler oluşabilir ve sistem güvenliği tehlikeye girer.
3. Client Side Entegrasyonu: Client src tarafında tanımlanan komut veya butonların doğru şekilde game server ile haberleşmesi sağlanmalıdır. Bu entegrasyon uiscript veya py root dosyaları ile yapılır. Python GUI sistemlerinde PyQt veya benzeri kütüphanelerle oluşturulan arayüzlerle de bu işlem yapılabilir.
Yanlış Uygulamalardan Kaçının[/BR]
Sistemi düzeltirken şu hatalardan kaçınılmalıdır:
- Kaynak kodda rastgele değişiklik yapmak.
- Compile işlemi olmadan değişiklikleri sunucuya aktarmak.
- Martysama veya başka bir kaynaktan alınan modüllerin doğruluğunu kontrol etmeden kullanmak.
Sonuç
Check Kingdom Players sistemi, Metin2 özel sunucularında kullanıcı deneyimini artırmak için oldukça faydalı bir özelliktir. Ancak bu sistemin doğru çalışması için hem client hem de server tarafında dikkatli ayarlamalar yapılması gerekir. Sistemde meydana gelen hatalar zamanında düzeltilirse, oyuncuların krallık üyeleriyle etkileşimini kolaylaştırır ve sunucu sadakati artırılır.
Fix - Check Kingdom Players
In Metin2 private servers, many developers create custom modules and systems to improve PvP systems and enhance the gaming experience. One such system is the Check Kingdom Players feature, which allows players to view other players within their kingdoms. However, sometimes this system may not function properly or cause unexpected behavior. In this article, we will discuss methods for fixing the Check Kingdom Players system.
What Is Check Kingdom Players?
The Check Kingdom Players system allows players to list other players in their kingdom through a specific command or interface. This feature typically runs on C++ based game servers and retrieves player data via a db connection. The system can also integrate with a GUI-based interface written in Python, making it user-friendly for both developers and players.
Issues and Causes
If this system does not work, some common issues may arise:
- Player list returns empty.
- Server crashes or freezes.
- Incorrect data display.
- Authorization errors.
Such errors usually stem from deficiencies in the core functions within the server src files, or connection problems between the auth and game servers.
Fix Applications
1. Database Query Check: At the heart of the Check Kingdom Players system lie database queries. It's important to ensure these queries run correctly. Specifically, queries defined in the db core files must be compatible with MySQL or MariaDB. If there are errors in the queries, the game server cannot retrieve the desired data, causing the system to fail.
2. Authorization and Security: Every command and operation in the system must be authenticated properly. A secure connection must exist between the auth server and game server. Otherwise, unauthorized access may occur, compromising system security.
3. Client Side Integration: Commands or buttons defined in the client src side must communicate properly with the game server. This integration is achieved through uiscript or py root files. Interfaces created using libraries like PyQt in Python GUI systems can also handle this process.
Avoid Common Mistakes
When fixing the system, avoid these common mistakes:
- Making random changes in the source code.
- Deploying changes to the server without performing a compile operation.
- Using modules from Martysama or other sources without verifying their correctness.
Conclusion
The Check Kingdom Players system is a highly beneficial feature for increasing user engagement in Metin2 private servers. However, for this system to function correctly, careful adjustments must be made on both the client and server sides. When errors occurring in the system are corrected in time, it facilitates interaction among kingdom members and increases server loyalty.
You dont have to have this bug, this fix is for idiots who cant do anything right and take on metin2 and create new bugs
Open:
input_login.cpp
Kod:
Find: void CInputLogin::CharacterSelect(LPDESC d, const char * data) { add before: bool FixByMuchomor(LPDESC d) { switch (d->GetEmpire()) { case 1: case 2: case 3: return false; } return true; } Now again go: void CInputLogin::CharacterSelect(LPDESC d, const char * data) Find: player_load_packet.account_id = c_r.id; player_load_packet.player_id = c_r.players[pinfo->index].dwID; player_load_packet.account_index = pinfo->index; add after: if (FixByMuchomor(d)) { sys_err("FixByMuchomor %d\n", c_r.id); d->DelayedDisconnect(0); return; } now every player is verified, if he has other kingdom than 1,2,3 then kick from server
Fix - Check Kingdom Players
Metin2 özel sunucularında PvP sistemlerin geliştirilmesi ve oyun deneyiminin artırılması için birçok geliştirici tarafından özgün modül ve sistemler yazılmaktadır. Bu sistemlerden birisi olan Check Kingdom Players sistemi, oyuncuların kendi krallıklarındaki diğer oyuncular hakkında bilgi edinmelerini sağlar. Ancak bazı durumlarda bu sistem doğru çalışmayabilir ya da istenmeyen davranışlara neden olabilir. Bu yazıda Check Kingdom Players sisteminin düzeltme yöntemlerinden bahsedeceğiz.
Check Kingdom Players Nedir?
Check Kingdom Players sistemi, oyuncuların belirli bir komutla veya arayüz üzerinden kendi krallıklarında bulunan diğer oyuncuları listeleyebildiği bir özelliktir. Bu özellik genellikle C++ tabanlı game server üzerinde çalışır ve db bağlantısı ile oyuncu verilerini çeker. Sistem aynı zamanda Python ile yazılmış GUI tabanlı bir arayüz ile de entegre olabilir. Bu sayede hem geliştiriciler hem de oyuncular için daha kullanıcı dostu bir yapı oluşturulur.
Sorunlar ve Nedenleri
Bu sistem çalışmazsa bazı yaygın sorunlar karşımıza çıkabilir:
- Oyuncu listesi boş döner.
- Sunucu çökmesi veya donma yaşar.
- Hatalı veri gösterimi.
- Yetkilendirme hataları.
Bu tür hatalar genellikle server src dosyalarındaki core fonksiyonlarda meydana gelen eksikliklerden veya auth ve game sunucuları arasındaki bağlantı problemlerinden kaynaklanabilir.
Fix Uygulamaları
1. Database Sorgusu Kontrolü: Check Kingdom Players sisteminin temelinde veritabanı sorguları yatar. Bu sorguların doğru çalışıp çalışmadığını kontrol etmek önemlidir. Özellikle db core dosyalarında tanımlanan sorguların MySQL veya MariaDB ile uyumlu olması gerekir. Eğer sorgularda hata varsa, game server istenen veriyi çekemez ve sistem çalışmaz.
2. Yetkilendirme ve Güvenlik: Sistemdeki her komut ve işlem doğru kimlik doğrulaması ile yapılmalıdır. Auth server ile Game server arasında güvenli bir bağlantı kurulmuş olmalıdır. Aksi takdirde yetkisiz erişimler oluşabilir ve sistem güvenliği tehlikeye girer.
3. Client Side Entegrasyonu: Client src tarafında tanımlanan komut veya butonların doğru şekilde game server ile haberleşmesi sağlanmalıdır. Bu entegrasyon uiscript veya py root dosyaları ile yapılır. Python GUI sistemlerinde PyQt veya benzeri kütüphanelerle oluşturulan arayüzlerle de bu işlem yapılabilir.
Yanlış Uygulamalardan Kaçının[/BR]
Sistemi düzeltirken şu hatalardan kaçınılmalıdır:
- Kaynak kodda rastgele değişiklik yapmak.
- Compile işlemi olmadan değişiklikleri sunucuya aktarmak.
- Martysama veya başka bir kaynaktan alınan modüllerin doğruluğunu kontrol etmeden kullanmak.
Sonuç
Check Kingdom Players sistemi, Metin2 özel sunucularında kullanıcı deneyimini artırmak için oldukça faydalı bir özelliktir. Ancak bu sistemin doğru çalışması için hem client hem de server tarafında dikkatli ayarlamalar yapılması gerekir. Sistemde meydana gelen hatalar zamanında düzeltilirse, oyuncuların krallık üyeleriyle etkileşimini kolaylaştırır ve sunucu sadakati artırılır.
Fix - Check Kingdom Players
In Metin2 private servers, many developers create custom modules and systems to improve PvP systems and enhance the gaming experience. One such system is the Check Kingdom Players feature, which allows players to view other players within their kingdoms. However, sometimes this system may not function properly or cause unexpected behavior. In this article, we will discuss methods for fixing the Check Kingdom Players system.
What Is Check Kingdom Players?
The Check Kingdom Players system allows players to list other players in their kingdom through a specific command or interface. This feature typically runs on C++ based game servers and retrieves player data via a db connection. The system can also integrate with a GUI-based interface written in Python, making it user-friendly for both developers and players.
Issues and Causes
If this system does not work, some common issues may arise:
- Player list returns empty.
- Server crashes or freezes.
- Incorrect data display.
- Authorization errors.
Such errors usually stem from deficiencies in the core functions within the server src files, or connection problems between the auth and game servers.
Fix Applications
1. Database Query Check: At the heart of the Check Kingdom Players system lie database queries. It's important to ensure these queries run correctly. Specifically, queries defined in the db core files must be compatible with MySQL or MariaDB. If there are errors in the queries, the game server cannot retrieve the desired data, causing the system to fail.
2. Authorization and Security: Every command and operation in the system must be authenticated properly. A secure connection must exist between the auth server and game server. Otherwise, unauthorized access may occur, compromising system security.
3. Client Side Integration: Commands or buttons defined in the client src side must communicate properly with the game server. This integration is achieved through uiscript or py root files. Interfaces created using libraries like PyQt in Python GUI systems can also handle this process.
Avoid Common Mistakes
When fixing the system, avoid these common mistakes:
- Making random changes in the source code.
- Deploying changes to the server without performing a compile operation.
- Using modules from Martysama or other sources without verifying their correctness.
Conclusion
The Check Kingdom Players system is a highly beneficial feature for increasing user engagement in Metin2 private servers. However, for this system to function correctly, careful adjustments must be made on both the client and server sides. When errors occurring in the system are corrected in time, it facilitates interaction among kingdom members and increases server loyalty.
