- Katılım
- 6 Mayıs 2022
- Konular
- 48,291
- Mesajlar
- 48,601
- Tepkime puanı
- 75
- M2 Yaşı
- 3 yıl 11 ay 10 gün
- Trophy Puan
- 48
- M2 Yang
- 488,879
Gözüken alanın sıralamasında oluşan düzendir.
1) KARAKTER SKILL BUFFLARI (Savaşçı / Ninja / Sura / Şaman)
2) AUTO POT
3) İKSİRLER
4) KRİTİK – DELİCİ
5) BECERİ KİTAPLARI
6) PREMIUM BUFF
7) ELDE EDİLEN BONUSLAR & NAVİCAT BONUSLARI
8) GENEL ETKİLER / DEBUFFLAR (Sona Alınan Grup) ( Sersem,Slow vb gibi şeyler)
Bu sıraya göre düzenlemiştir. Sıra'ya eklemek çıkarmak yapmak istiyen arkadaşlar
AFFECT_DATA_DICT = { """Kısmına eklediğiniz "Efekt kodlarını""" hangi sırada olmak istiyorsa
ÖRNEK : MALL_DESC_IDX_START+player.POINT_CRITICAL_PCT, ( KRİTİK İSABET)
AFFECT_ORDER KISMININ 4. BLOĞUNUN SATIRINA EKLEMESİ GEREKİYOR.
MALL_DESC_IDX_START+player.POINT_CRITICAL_PCT, ( KRİTİK )
MALL_DESC_IDX_START+player.POINT_PENETRATE_PCT, (DELİCİ)
Sol Efekt Kısmında öncelik her zaman "KRİTİK" bunu siz özelleştirebilirsiniz. sıra mantığıyla ilerler ve eklediğiniz kodu ona göre sıralar.
uiAffectShower Düzeltmesi Paylaşımı
Metin2 Lobby olarak Metin2 özel sunucu geliştirme dünyasında yerinizi almak isteyen geliştiriciler için önemli bir konuya değiniyoruz: uiAffectShower düzenlemesi. Bu sistem, oyuncuların ekranında belirli efektlerin veya durum göstergelerinin görünmesini sağlar. Bu yazıda uiAffectShower dosyasının nasıl düzenleneceği, hangi uiscript yapıları ile entegre edileceği ve bu değişikliğin game tarafına nasıl yansıdığına dair detaylı bilgiler vereceğiz.
uiAffectShower Nedir?
Metin2 özel sunucularda, oyuncuların sağ üst köşede görebildiği bazı görsel efektler, durum etkileri veya geçici buff/debuff bildirimleri uiAffectShower sınıfı tarafından yönetilir. Bu sınıf, Python GUI sistemine dayanır ve py root klasöründe yer alan uiscript dosyaları üzerinden çalışır. Oyun içinde PVP sistemleri, core yapıları veya özel C++ sistemler ile entegre çalışabilen bu yapı, kullanıcı arayüzüne doğrudan etki eder.
Düzenleme Neden Gerekli?[/BR][/BR]Varsayılan uiAffectShower dosyası sınırlı etki gösterimine sahiptir. Özellikle gelişmiş PVP sistemlerinde, özel C++ sistem entegrasyonlarında veya game server tarafında geliştirilen yeni efektlerde bu dosyanın genişletilmesi gerekir. Örneğin, bir db core sistemi ile eşleşen özel bir buff efekti göstermek istiyorsanız, uiAffectShower’da bu efektin tanımını yapmalısınız. Ayrıca Martysama gibi Metin2 development projelerinde de benzer ihtiyaçlar doğar.
uiAffectShower Nasıl Düzenlenir?[/BR][/BR]Öncelikle client src dosyalarınızda yer alan uiscript klasörüne gidin. Orada uiAffectShower.py adlı dosyayı bulun. Bu dosya, Python tabanlı bir arayüz sınıfıdır. Yeni bir efekt tanımlamak için bu dosyada ilgili fonksiyonlara müdahale etmelisiniz. Örneğin:
def AddAffect(self, key, affectName, affectIcon):
if key not in self.affectList:
self.affectList[key] = {'name': affectName, 'icon': affectIcon}
self.Refresh()
Bu fonksiyon, yeni bir etki eklemek için kullanılabilir. affectIcon parametresi, pack dosyasında yer alan ikonla eşleşmelidir. Metin2 Lobby kullanıcıları için örnek uiscript yapıları ve ikon tanımları forumda paylaşılıyor.
Oyun İçeriğiyle Entegrasyon[/BR][/BR]Yeni bir efekt tanımlandığında, bu efektin game server tarafında da aktive edilmesi gerekir. Genellikle C++ src dosyalarında, örneğin char_battle.cpp veya affect.cpp gibi dosyalarda efekt tetiklemeleri yapılır. Tetiklenen efekt, game sunucusundan client tarafına gönderilir ve uiAffectShower tarafından yakalanır. Bu süreçte hem auth hem de game yapılarının senkronize olması önemlidir.
Py GUI ve Uiscript Yapıları[/BR][/BR]Py GUI sistemleri, Metin2 özel sunucularında kullanıcı arayüzü geliştirmek için güçlü bir araçtır. uiAffectShower gibi sistemlerde Py GUI ile daha esnek arayüzler oluşturulabilir. Örneğin, efektlerin konumu, büyüklüğü, animasyonu gibi detaylar uiscript dosyalarında özelleştirilebilir. Bu sayede PVP sistemlerinde daha etkileyici görsel geri bildirimler sağlanabilir.
Sonuç[/BR][/BR]uiAffectShower düzenlemesi, Metin2 özel sunucu geliştiricileri için oldukça önemli bir konudur. Core sistemlerle uyumlu çalışması, uiscript ve py root yapılarına entegre edilmesi, C++ ve Python bilgisi gerektiren bir işlemdir. Metin2 Lobby olarak bizler, bu tür gelişmiş sistemlerin nasıl yapılacağına dair örneklerle destek oluyoruz. Sistemlerinizi geliştirmek ve Metin2 özel sunucu dünyasında öne çıkmak istiyorsanız, bu gibi detaylara dikkat etmelisiniz.
uiAffectShower Modification Sharing
Metin2 Lobby brings you an important topic for developers aiming to establish themselves in the Metin2 private server world: editing the uiAffectShower. This system allows certain effects or status indicators to appear on players' screens. In this article, we'll provide detailed information about how to edit the uiAffectShower file, how it integrates with uiscript structures, and how these changes reflect on the game side.
What is uiAffectShower?[/BR][/BR]In Metin2 private servers, visual effects seen by players in the top right corner—such as status effects or temporary buff/debuff notifications—are managed by the uiAffectShower class. This class operates based on the Python GUI system and works through uiscript files located in the py root folder. It can integrate directly with in-game PVP systems, core structures, or custom C++ systems and impacts the user interface directly.
Why Editing Is Necessary?[/BR][/BR]The default uiAffectShower file has limited effect display capabilities. Especially in advanced PVP systems, custom C++ system integrations, or new effects developed on the game server side, expanding this file becomes necessary. For instance, if you want to display a special buff effect matching a db core system, you need to define that effect in uiAffectShower. Similarly, such needs arise in Metin2 development projects like Martysama.
How to Edit uiAffectShower?[/BR][/BR]First, navigate to your client src files and locate the uiscript folder. Find the file named uiAffectShower.py. This file is a Python-based UI class. To define a new effect, you must modify relevant functions within this file. For example:
def AddAffect(self, key, affectName, affectIcon):
if key not in self.affectList:
self.affectList[key] = {'name': affectName, 'icon': affectIcon}
self.Refresh()
This function can be used to add a new effect. The affectIcon parameter must match the icon in the pack file. Sample uiscript structures and icon definitions for Metin2 Lobby users are shared on the forum.
Integration with Game Content[/BR][/BR]When defining a new effect, it must also be activated on the game server side. Usually, effect triggers are handled in C++ src files, such as char_battle.cpp or affect.cpp. The triggered effect is sent from the game server to the client side and captured by uiAffectShower. During this process, synchronization between both auth and game structures is crucial.
Py GUI and Uiscript Structures[/BR][/BR]Py GUI systems are powerful tools for creating user interfaces in Metin2 private servers. In systems like uiAffectShower, more flexible interfaces can be created using Py GUI. For example, details like position, size, and animation of effects can be customized in uiscript files, allowing for more impressive visual feedback in PVP systems.
Conclusion[/BR][/BR]Editing uiAffectShower is a highly important subject for Metin2 private server developers. Its compatibility with core systems, integration into uiscript and py root structures, and the need for both C++ and Python knowledge make this a complex task. At Metin2 Lobby, we support such advanced systems with examples. If you aim to develop your systems and stand out in the Metin2 private server world, attention to such details is essential.
