[Reven] - Anlık EP Sistemi [C++/PY/LUA]

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
///
Reven - Anlık EP Sistemi (C++/PY/LUA)


Metin2 özel sunucularında gelişmiş bir EP (Experience Points) sistemi kurmak isteyen geliştiriciler için Reven, güçlü ve esnek bir çözümdür. Bu sistem sayesinde oyuncuların deneyim kazanımı gerçek zamanlı olarak takip edilir ve sunucu tarafında detaylı analiz yapılabilir. Bu yazıda, Reven EP sisteminin C++, Python ve LUA bileşenlerini detaylı şekilde ele alacağız.

EP Sistemi Nedir?
Oyun geliştirme süreçlerinde Experience Points (EP), oyuncuların seviye atlaması için gerekli olan temel mekaniktir. Metin2 özel sunucularda bu sistemin doğru ve verimli bir şekilde çalışması, oyuncu memnuniyeti açısından kritik öneme sahiptir. Reven, bu sistemi daha da ileriye taşıyarak, anlık olarak EP verilerini sunucuda saklar ve analiz eder.

Sistem Bileşenleri
C++ tarafında, game_core üzerinde değişiklikler yapılmaktadır. Özellikle char_manager.cpp ve battle.cpp gibi dosyalarda EP kazanım işlemleri tanımlanır. Bu işlemler sırasında Python ile entegre çalışan fonksiyonlar çağrılır. Python tarafında ise py_root altında bulunan modüller ile GUI üzerinden EP verileri takip edilir. LUA dosyalarında ise istemci tarafında EP bilgileri kullanıcıya gösterilir.

Kurulum ve Yapılandırma
Sistemin kurulumu için Metin2 server_src üzerinde değişiklik yapılması gerekir. Auth ve Game sunucuları arasında DB bağlantısı kurulmalıdır. Reven sistemi, core dosyalarında channel bazlı EP verilerini kaydeder. Bu sayede her kanalda farklı EP oranları ayarlanabilir. Martysama tarafından geliştirilen bazı source_edit araçları ile bu işlemler kolaylaştırılabilir.

Python GUI Entegrasyonu
Py GUI arayüzü sayesinde, sunucu yöneticileri anlık olarak EP kazançlarını izleyebilir. PyRoot altında yer alan uiscript dosyaları ile kullanıcı dostu bir panel oluşturulur. Metin2Dev toplulukları bu konuda birçok örnek paylaşmaktadır. Pack dosyaları ile bu sistem kolayca istemciye entegre edilebilir.

Avantajlar ve Kullanım Senaryoları
Reven sayesinde PvP odaklı sunucularda EP kazançları kontrol altına alınabilir. C++ tabanlı hızlı hesaplamalar sayesinde lag oluşumu minimum seviyede tutulur. Geliştiriciler, LUA yardımıyla istemcide özel efektler gösterebilir. DB Core sayesinde tüm veriler güvenli bir şekilde saklanır.

Sonuç
Reven, Metin2 özel sunucularında anlık EP sistemi kurmak isteyen geliştiriciler için güçlü bir alternatiftir. C++, Python ve LUA tabanlı yapısı sayesinde hem performans hem de esneklik sunar. Metin2Lobby olarak bu tür sistemlerin geliştirilmesini destekliyoruz.


Reven - Real-time EP System (C++/PY/LUA)


In Metin2 private servers, Reven offers a powerful and flexible solution for developers looking to implement an advanced EP (Experience Points) system. This system allows real-time tracking of player experience gains and enables detailed analysis on the server-side. In this article, we will explore the C++, Python, and LUA components of the Reven EP system in detail.

What is an EP System?
In game development processes, Experience Points (EP) are the fundamental mechanics required for players to level up. On Metin2 private servers, ensuring this system works correctly and efficiently is critical for player satisfaction. Reven takes this system even further by storing real-time EP data on the server and analyzing it.

System Components
On the C++ side, modifications are made to the game_core. Specifically, files like char_manager.cpp and battle.cpp define EP gain operations. During these operations, functions integrated with Python are called. On the Python side, modules located under py_root allow EP data to be tracked via GUI. On the LUA side, EP information is displayed to the user on the client-side.

Installation and Configuration
To install the system, modifications must be made to the Metin2 server_src. A DB connection must be established between the Auth and Game servers. The Reven system saves EP data per channel within the core files, allowing different EP rates per channel. Some source_edit tools developed by Martysama can ease these processes.

Python GUI Integration
Thanks to the Py GUI interface, server administrators can monitor EP gains in real-time. User-friendly panels are created using uiscript files located under PyRoot. Metin2Dev communities share many examples regarding this topic. With pack files, this system can be easily integrated into the client.

Advantages and Use Cases
Reven allows PvP-oriented servers to control EP gains. Thanks to C++-based fast calculations, lag is kept to a minimum. Developers can display custom effects on the client-side using LUA. All data is securely stored thanks to the DB Core.

Conclusion
Reven is a strong alternative for developers looking to implement a real-time EP system in Metin2 private servers. Its C++, Python, and LUA based structure provides both performance and flexibility. As Metin2Lobby, we support the development of such systems.
 

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

Benzer konular

Geri
Üst Alt