(C++ , Python) Pet Slot Effect System | bykatil199

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 60

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Merhaba Arkadaşlar,
Metin2 Türkiyeye Gelen Güncellemede Pete Sağ Tıkladığınızda Etrafında Slot Effect,
Oluşuyor şuana kadar paylaşılanlarda eklediğinizde belki tıkladığınızda çalışmıyabilir.
çünkü socketlerden dolayı oluşan bir problemdir.
petler socket 1 socket 2 kullandığı için siz socket 2 verdiğiniz zaman petin zamanı ile effect karışıyor ,
böylelikle pet itemi siliniyor.
Bugun bunun fixini ve Videoda yapılışını Anlatacağım ;

Video ;




Python Kodu ;

ben ahmetatalayİnfo diye ekledim siz constinfo ekleyin uiinventory içinde constinfo uyarlı şekilde kod kopyala yapıştır yapın sadece;



Kodlaması Bana Aittir. Alıntı Deildir.


C++ ve Python ile Pet Slot Effect Sistemi Oluşturma Rehberi

Metin2 özel sunucularında oyun deneyimini zenginleştirmek için geliştirilen sistemlerden birisi de pet slot effect sistemidir. Bu sistem sayesinde oyuncuların sahip oldukları petlerin farklı efektler üretmesi sağlanabilir. Bu efektler hem görsel açıdan hem de mekanik olarak oyun içi performansı artırabilir. Bu rehberde, C++ ve Python kullanarak nasıl bir pet slot effect sistemi kurulacağını adım adım inceleyeceğiz.

Sistem Gereksinimleri ve Hazırlık
Öncelikle, bu sistemin çalışması için Metin2 sunucu tarafında bazı değişiklikler yapılması gerekir. Sunucu tarafında game core üzerinde değişiklik yapacağız. Aynı zamanda istemci tarafında da GUI elemanlarının entegrasyonu için Python GUI[/COORD] dosyaları düzenlenecektir. Bu nedenle py root, uiscript, pack gibi dosya yapılarını iyi tanımanız önemlidir.

C++ Tarafında Geliştirme
Sunucu tarafında, pet slot sistemine özel efekt atamaları için öncelikle veritabanında yeni bir tablo oluşturulmalıdır. Bu tabloya her bir pet için özel efekt ID'leri, slot numaraları ve aktif durumları kaydedilebilir. C++ tarafında bu veriler, oyuncu giriş yaptıktan sonra yüklenmeli ve pet eklendiğinde veya değiştirildiğinde güncellenmelidir. Game server programming bilgisi bu noktada kritik öneme sahiptir.

Python Tarafında Arayüz Entegrasyonu
İstemci tarafında, pet slot efektlerini göstermek ve yönetmek için bir arayüz tasarımı yapılmalıdır. Bu tasarım, Python GUI kullanılarak yapılabilir. Oyuncu, petin slotuna tıkladığında mevcut efektler listelenmeli ve seçim yapılabilmelidir. Bu işlem sırasında uiscript dosyalarında gerekli değişiklikler yapılmalıdır. Py root klasöründe bulunan GUI dosyaları bu entegrasyon için temel alınmalıdır.

Efekt Mekaniği ve Aktivasyon
Her slot için bir efekt türü belirlenir. Örneğin, birinci slot can yenileme, ikinci slot攻击力 artışı gibi. Bu efektler, petin aktif olduğu sürece oyuncuya sürekli olarak uygulanmalıdır. Bu süreçte, C++ tarafında efekt kontrol döngüleri ve zamanlayıcılar kullanılabilir. Ayrıca, efektin geçerlilik süresi veya koşulları belirlenerek daha akıllı sistemler geliştirilebilir.

Veri Tabanı ve Sunucu Senkronizasyonu
Oyuncu bilgileri, pet slot efekt verileri veritabanında tutulmalıdır. Bu verilerin güvenli ve hızlı bir şekilde aktarılması için DB core üzerinde optimize edilmiş sorgular kullanılmalıdır. Aynı zamanda, auth ve game[/COORD] sunucuları arasında senkronizasyon sağlanması gerekir. Bu sayede oyuncu sunucular arasında geçiş yaptığında pet efektleri korunur.

Test ve Hata Ayıklama
Geliştirme süreci tamamlandıktan sonra sistem thoroughly test edilmelidir. Özellikle C++ ve Python arasındaki veri aktarımı, efekt uygulama mekanizmaları, arayüz tepkileri gibi alanlar detaylıca incelenmelidir. Geliştirme ortamında martysama gibi kaynaklardan yararlanarak test senaryoları oluşturulabilir.

Sonuç
Pet slot effect sistemi, Metin2 özel sunucularında kullanıcı deneyimini ciddi anlamda artırabilir. Bu sistemin doğru bir şekilde implementasyonu, C++ ve Python bilgisiyle birlikte, veritabanı yönetimi ve sunucu tarafında programlama becerilerini gerektirir. Bu rehber sayesinde, Metin2 geliştiricileri bu sistemi kendi sunucularına entegre edebilir ve oyunculara daha zengin bir deneyim sunabilirler.


Creating Pet Slot Effect System with C++ and Python

To enhance the gaming experience on Metin2 private servers, one of the developed systems is the pet slot effect system. This system allows pets owned by players to generate different effects. These effects can improve in-game performance both visually and mechanically. In this guide, we will examine step-by-step how to set up a pet slot effect system using C++ and Python.

System Requirements and Preparation
Firstly, some modifications must be made on the server-side for this system to work. We will modify the game core on the server-side. Additionally, GUI elements on the client-side will need adjustments through Python GUI files. Therefore, familiarity with file structures like py root, uiscript, pack, etc., is essential.

Development on C++ Side
On the server-side, a new database table should be created to assign special effects for each pet slot. This table can store effect IDs, slot numbers, and active statuses for each pet. In C++, these data should be loaded after the player logs in and updated when a pet is added or changed. Knowledge of game server programming is critical at this point.

GUI Integration on Python Side
On the client-side, an interface design must be created to display and manage pet slot effects. This design can be implemented using Python GUI. When a player clicks on a pet's slot, available effects should be listed and selectable. Necessary changes must be made to uiscript files during this process. GUI files located in the Py root folder should serve as the base for this integration.

Effect Mechanics and Activation
Each slot is assigned a specific effect type. For example, the first slot might grant HP regeneration, while the second increases attack power. These effects should continuously apply to the player as long as the pet is active. During this process, effect control loops and timers can be used on the C++ side. Moreover, setting duration or conditions for effects allows smarter systems to be built.

Database and Server Synchronization
Player information and pet slot effect data should be stored in the database. Optimized queries within the DB core should ensure safe and fast transfer of these data. Additionally, synchronization between auth and game servers must be established. This ensures that pet effects are preserved even when the player switches between servers.

Testing and Debugging
After the development phase is complete, the system must be tested thoroughly. Particularly, data transfers between C++ and Python, effect application mechanisms, and interface responses should be examined in detail. Test scenarios can be developed using sources like martysama in the development environment.

Conclusion
The pet slot effect system can significantly enhance user experience in Metin2 private servers. Proper implementation of this system requires knowledge of C++ and Python, along with database management and server-side programming skills. With this guide, Metin2 developers can integrate this system into their own servers and offer players a richer experience.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt