Merhaba,
Zindan haritanızda hangi müziği çalmak istediğinizi settings.lua olarak belirlediğinizde, her zaman önceki haritanın biriyle değiştirilir. Bu, her zindanın kendine özgü bir harita indeksine sahip olması ve oyunun ayarlardan bulamaması nedeniyle oluyor.
İşte bu haritanın orijinal indeksini almak için basit bir düzeltme, aynı tipte 10000 zindan örneği olmadığı sürece çalışmalıdır, ki bu mevcut Metin2 oyuncu sayısı ile mümkün değil.
Char.cpp içinde şunu ara:
İçinde bul:
Altına ekle:
MaviAyGames | Official Bonus Tablosu Düzeltme
Metin2 Lobby olarak sunucu geliştiricileri için en kaliteli sistem ve modifikasyonları paylaşmaya devam ediyoruz. Bu yazıda, MaviAyGames tarafından geliştirilen Official Bonus Tablosu sisteminin bazı hatalarını düzeltme ve sistemin doğru şekilde entegrasyonunu anlatacağız. Bu rehber özellikle C++ source üzerinde çalışan geliştiriciler için değerli bir kaynak olacaktır.
Bonus Tablosu Nedir?
Official Bonus Tablosu, oyuncuların karakterlerine özel bonuslar kazandırmalarını sağlayan gelişmiş bir sistemdir. Oyuncular belirli ekipmanları giydikçe veya belirli itemleri envanterlerinde taşıdıklarında, sistem bu itemlere ait bonusları aktif ederek karakter istatistiklerini geliştirir. Ancak bazı durumlarda bu tablo eksik veya hatalı tanımlanmış olabilir, bu da beklenmedik davranışlara neden olur.
Hatalar ve Çözümler
1. Bonus ID Hatası: Bazı bonus ID'ler sistemde tanımlı olmayan bonuslara yönlendiriyor olabilir. Bu durumda game/core dosyasında tanımlı olan bonus listesi ile tabloyu karşılaştırarak eksik ya da yanlış ID'leri güncellemek gerekir.
2. Item ID Uyum Sorunu: Bonus tablosunda tanımlanan item ID'lerin sunucudaki gerçek item ID'leriyle uyuşmadığı durumlar olabilir. Bu da bonusların aktif olmamasına sebep olur. item_proto dosyası ile kontrol yapılmalıdır.
3. Client ve Game Sunucusu Uyumsuzluğu: Client tarafında bonuslar görünüyor ancak game sunucusunda aktif olmuyorsa, bu durumda uiscript ve py root dosyalarında yapılan tanımlar ile C++ source arasında bir uyumsuzluk vardır. Bu durumda client-server senkronizasyonu sağlanmalıdır.
Düzeltme Adımları
1. Öncelikle bonus_table.txt dosyasını kontrol edin. Bu dosya genellikle db klasörü altında bulunur.
2. Her bonus tanımı doğru bonus ID ile eşleşmelidir. Aksi takdirde game server bu bonusu tanıyamaz.
3. Gerekirse Python GUI aracılığıyla bonus tablosunu düzenleyip test edebilirsiniz. Py GUI ile kolayca bonus tanımlarını gözden geçirebilir ve eksikleri tamamlayabilirsiniz.
4. Oyuncu login olduğunda bonusların doğru şekilde aktif olması için auth server ile game server senkronizasyonu sağlanmalıdır.
Teknik Bilgi
Bonus sistemleri, Metin2 özel sunucularında C++ source üzerinde geliştirilir. Sistemdeki her bonus, header dosyalarında tanımlanmış sabitlerle eşleştirilir. Bu sabitler hem client hem de server tarafında aynı olmalıdır. Aksi halde bonuslar çalışmayacaktır. Bu nedenle geliştirme yaparken dikkatli olunmalıdır.
Not:[/BR][/BR]Bu işlem sırasında source kodda değişiklik yaparken yedek almayı unutmayın. Kodlarda meydana gelebilecek hatalar sunucunuzu riske atabilir.
Sonuç
MaviAyGames tarafından sunulan Official Bonus Tablosu sistemi, Metin2 özel sunucularında güçlü bir bonus mekanizması sağlar. Ancak doğru çalışması için doğru yapılandırma ve sistem uyumu şarttır. Bu rehber sayesinde karşılaşılan hataları kolayca düzeltebilir, sistem performansını artırabilirsiniz. Daha fazla Metin2 Development kaynağı için Metin2Lobby üzerinden güncel sistemleri takip edebilirsiniz.
MaviAyGames | Official Bonus Table Correction
Metin2 Lobby continues to share the highest quality systems and modifications for server developers. In this article, we will explain how to fix certain errors in the Official Bonus Table system developed by MaviAyGames. This guide will be a valuable resource especially for developers working on C++ source.
What is the Bonus Table?
Official Bonus Table is an advanced system that allows players to gain special bonuses on their characters. As players equip certain items or carry specific items in their inventory, the system activates bonuses associated with those items, enhancing character stats. However, sometimes this table may be defined incorrectly or incompletely, which can lead to unexpected behaviors.
Errors and Solutions
1. Bonus ID Error: Some bonus IDs may point to non-existent bonuses in the system. In such cases, compare the bonus list defined in the game/core file with the table and update any missing or incorrect IDs.
2. Item ID Mismatch Issue: The item IDs defined in the bonus table might not match the actual item IDs on your server. This can prevent the bonuses from being activated. Check against the item_proto file.
3. Client and Game Server Incompatibility: If bonuses appear on the client side but are not active on the game server, then there's a mismatch between the definitions made in uiscript and py root files and the C++ source. In this case, client-server synchronization must be ensured.
Correction Steps
1. First, check the bonus_table.txt file. This file is usually located under the db folder.
2. Each bonus definition should match the correct bonus ID. Otherwise, the game server won't recognize the bonus.
3. If necessary, you can edit the bonus table via Python GUI and test it. You can review and complete missing entries easily using Py GUI.
4. To ensure bonuses activate correctly when the player logs in, synchronization between auth server and game server must be established.
Technical Info
Bonus systems are developed on C++ source in Metin2 private servers. Each bonus in the system is matched with constants defined in header files. These constants must be identical on both client and server sides. Otherwise, the bonuses will not work. Therefore, caution must be exercised during development.
Note:[/BR][/BR]Always take backups before making changes in the source code. Errors in the code could risk your server.
Conclusion
Official Bonus Table provided by MaviAyGames offers a powerful bonus mechanism for Metin2 private servers. However, proper configuration and system compatibility are required for it to function correctly. With this guide, you can easily fix encountered errors and improve system performance. For more Metin2 Development resources, you can follow updated systems on Metin2Lobby.
Zindan haritanızda hangi müziği çalmak istediğinizi settings.lua olarak belirlediğinizde, her zaman önceki haritanın biriyle değiştirilir. Bu, her zindanın kendine özgü bir harita indeksine sahip olması ve oyunun ayarlardan bulamaması nedeniyle oluyor.
İşte bu haritanın orijinal indeksini almak için basit bir düzeltme, aynı tipte 10000 zindan örneği olmadığı sürece çalışmalıdır, ki bu mevcut Metin2 oyuncu sayısı ile mümkün değil.
Char.cpp içinde şunu ara:
Kod:
void CHARACTER::MainCharacterPacket()
İçinde bul:
Kod:
const unsigned mapIndex = GetMapIndex();
Altına ekle:
Kod:
const unsigned mapIndex = GetMapIndex () < 10000 ? GetMapIndex () : GetMapIndex () / 10000 ;
MaviAyGames | Official Bonus Tablosu Düzeltme
Metin2 Lobby olarak sunucu geliştiricileri için en kaliteli sistem ve modifikasyonları paylaşmaya devam ediyoruz. Bu yazıda, MaviAyGames tarafından geliştirilen Official Bonus Tablosu sisteminin bazı hatalarını düzeltme ve sistemin doğru şekilde entegrasyonunu anlatacağız. Bu rehber özellikle C++ source üzerinde çalışan geliştiriciler için değerli bir kaynak olacaktır.
Bonus Tablosu Nedir?
Official Bonus Tablosu, oyuncuların karakterlerine özel bonuslar kazandırmalarını sağlayan gelişmiş bir sistemdir. Oyuncular belirli ekipmanları giydikçe veya belirli itemleri envanterlerinde taşıdıklarında, sistem bu itemlere ait bonusları aktif ederek karakter istatistiklerini geliştirir. Ancak bazı durumlarda bu tablo eksik veya hatalı tanımlanmış olabilir, bu da beklenmedik davranışlara neden olur.
Hatalar ve Çözümler
1. Bonus ID Hatası: Bazı bonus ID'ler sistemde tanımlı olmayan bonuslara yönlendiriyor olabilir. Bu durumda game/core dosyasında tanımlı olan bonus listesi ile tabloyu karşılaştırarak eksik ya da yanlış ID'leri güncellemek gerekir.
2. Item ID Uyum Sorunu: Bonus tablosunda tanımlanan item ID'lerin sunucudaki gerçek item ID'leriyle uyuşmadığı durumlar olabilir. Bu da bonusların aktif olmamasına sebep olur. item_proto dosyası ile kontrol yapılmalıdır.
3. Client ve Game Sunucusu Uyumsuzluğu: Client tarafında bonuslar görünüyor ancak game sunucusunda aktif olmuyorsa, bu durumda uiscript ve py root dosyalarında yapılan tanımlar ile C++ source arasında bir uyumsuzluk vardır. Bu durumda client-server senkronizasyonu sağlanmalıdır.
Düzeltme Adımları
1. Öncelikle bonus_table.txt dosyasını kontrol edin. Bu dosya genellikle db klasörü altında bulunur.
2. Her bonus tanımı doğru bonus ID ile eşleşmelidir. Aksi takdirde game server bu bonusu tanıyamaz.
3. Gerekirse Python GUI aracılığıyla bonus tablosunu düzenleyip test edebilirsiniz. Py GUI ile kolayca bonus tanımlarını gözden geçirebilir ve eksikleri tamamlayabilirsiniz.
4. Oyuncu login olduğunda bonusların doğru şekilde aktif olması için auth server ile game server senkronizasyonu sağlanmalıdır.
Teknik Bilgi
Bonus sistemleri, Metin2 özel sunucularında C++ source üzerinde geliştirilir. Sistemdeki her bonus, header dosyalarında tanımlanmış sabitlerle eşleştirilir. Bu sabitler hem client hem de server tarafında aynı olmalıdır. Aksi halde bonuslar çalışmayacaktır. Bu nedenle geliştirme yaparken dikkatli olunmalıdır.
Not:[/BR][/BR]Bu işlem sırasında source kodda değişiklik yaparken yedek almayı unutmayın. Kodlarda meydana gelebilecek hatalar sunucunuzu riske atabilir.
Sonuç
MaviAyGames tarafından sunulan Official Bonus Tablosu sistemi, Metin2 özel sunucularında güçlü bir bonus mekanizması sağlar. Ancak doğru çalışması için doğru yapılandırma ve sistem uyumu şarttır. Bu rehber sayesinde karşılaşılan hataları kolayca düzeltebilir, sistem performansını artırabilirsiniz. Daha fazla Metin2 Development kaynağı için Metin2Lobby üzerinden güncel sistemleri takip edebilirsiniz.
MaviAyGames | Official Bonus Table Correction
Metin2 Lobby continues to share the highest quality systems and modifications for server developers. In this article, we will explain how to fix certain errors in the Official Bonus Table system developed by MaviAyGames. This guide will be a valuable resource especially for developers working on C++ source.
What is the Bonus Table?
Official Bonus Table is an advanced system that allows players to gain special bonuses on their characters. As players equip certain items or carry specific items in their inventory, the system activates bonuses associated with those items, enhancing character stats. However, sometimes this table may be defined incorrectly or incompletely, which can lead to unexpected behaviors.
Errors and Solutions
1. Bonus ID Error: Some bonus IDs may point to non-existent bonuses in the system. In such cases, compare the bonus list defined in the game/core file with the table and update any missing or incorrect IDs.
2. Item ID Mismatch Issue: The item IDs defined in the bonus table might not match the actual item IDs on your server. This can prevent the bonuses from being activated. Check against the item_proto file.
3. Client and Game Server Incompatibility: If bonuses appear on the client side but are not active on the game server, then there's a mismatch between the definitions made in uiscript and py root files and the C++ source. In this case, client-server synchronization must be ensured.
Correction Steps
1. First, check the bonus_table.txt file. This file is usually located under the db folder.
2. Each bonus definition should match the correct bonus ID. Otherwise, the game server won't recognize the bonus.
3. If necessary, you can edit the bonus table via Python GUI and test it. You can review and complete missing entries easily using Py GUI.
4. To ensure bonuses activate correctly when the player logs in, synchronization between auth server and game server must be established.
Technical Info
Bonus systems are developed on C++ source in Metin2 private servers. Each bonus in the system is matched with constants defined in header files. These constants must be identical on both client and server sides. Otherwise, the bonuses will not work. Therefore, caution must be exercised during development.
Note:[/BR][/BR]Always take backups before making changes in the source code. Errors in the code could risk your server.
Conclusion
Official Bonus Table provided by MaviAyGames offers a powerful bonus mechanism for Metin2 private servers. However, proper configuration and system compatibility are required for it to function correctly. With this guide, you can easily fix encountered errors and improve system performance. For more Metin2 Development resources, you can follow updated systems on Metin2Lobby.
