Görüyorsunuz Anlatmaya Gerek Yok Herşey Burada 
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Metin2 Lobby'da Geliştirilen Gift System: C++, Python ve SQL Entegrasyonu
Metin2 özel sunucularında kullanıcı deneyimini artırmak ve oyuncuların aktif kalmasını sağlamak adına sunulan hediyeler oldukça önemli bir rol oynar. Bu bağlamda geliştirilen Gift System, hem sunucu yöneticileri hem de oyuncular için kritik bir özelliktir. Bu yazıda, C++, Python ve SQL tabanlı olarak geliştirilmiş olan bu sistemi detaylı olarak ele alacağız.
Sistem Mimarisi
Gift System, üç ana bileşenden oluşur: Sunucu tarafında çalışan C++ modül, arayüz ve otomasyon için kullanılan Python betikleri ve veri saklama ve sorgulama işlemleri için MySQL veritabanı. Bu yapı sayesinde hem güvenli hem de esnek bir hediye yönetim sistemi oluşturulmuştur.
C++ Bileşeni
Metin2 Server SRC üzerinde çalışan bu modül, oyuncuların hediye alma isteklerini karşılar. Hediye talepleri doğrulandığında, sunucu tarafından veritabanına yazılır. Ayrıca, sistemdeki hediye limitleri, zamanlayıcılar ve kullanıcı izin kontrolleri C++ seviyesinde kontrol edilir. Bu sayede hile yapma riski en aza indirilir.
Python GUI ve Betikleri
Py GUI ile yöneticiler, kolay bir arayüz üzerinden hediye listeleri oluşturabilir, kullanıcıya özel hediyeler atayabilir veya toplu gönderim yapabilir. Python betikleri, UIScript ile entegre çalışarak sunucu tarafındaki verileri okur ve eylemleri başlatır. Bu sayede manuel işlemler azaltılmış olur.
SQL Veritabanı Yapısı
Hediyelerle ilgili tüm veriler DB Core üzerinde tutulur. Ana tablolar arasında 'gifts', 'users', 'claims' ve 'items' yer alır. Her hediye, benzersiz bir ID ile tanımlanır ve kullanıcının kimliği, hediye zamanı, durumu gibi bilgiler içerir. Bu sayede hem raporlama hem de analiz işlemleri daha verimli yapılır.
Otomatikleştirme ve Güvenlik
Sistem, belirli zaman aralıklarında hediyeleri kontrol eder ve kullanılmayanları veya süresi dolmuş olanları otomatik olarak temizler. Ayrıca, her hediye işlemi loglanır. Bu sayede olası hile girişimleri takip edilebilir. Core[/COORD] seviyesinde güvenlik filtreleri sayesinde yetkisiz erişimler engellenir.
Kullanım Senaryosu
Bir oyuncu, sistemde belirlenen görevleri tamamladığında veya bir kampanyaya katıldığında, ona özel bir hediye kodu gönderilir. Oyuncu, bu kodu girdiğinde game server tarafından doğrulanır ve hediye envanterine eklenir. Bu süreçte auth ve game sunucuları senkronize çalışır.
Sonuç
Metin2 Lobby olarak sunduğumuz Gift System, hem gelişmiş programlama dilleri hem de güvenli veritabanı mimarisi sayesinde özel sunucular için ideal bir çözüm sunar. Sistemin source edit ve compile desteği sayesinde, geliştiriciler kendi sunucularına özel entegrasyonlar gerçekleştirebilir.
Gift System on Metin2 Lobby: C++, Python and SQL Integration
In Metin2 private servers, gifts play an important role in enhancing player experience and keeping them engaged. In this context, the developed Gift System is a critical feature for both server administrators and players. This article will examine in detail the system built upon C++, Python and SQL.
System Architecture
The Gift System consists of three main components: The C++ module running on the server side, Python scripts for UI and automation, and the MySQL database for data storage and queries. This structure provides a secure and flexible gift management system.
C++ Component
Running on Metin2 Server SRC, this module handles player requests for gifts. Once validated, gift requests are written to the database by the server. Additionally, gift limits, timers, and user permission checks are controlled at the C++ level, minimizing cheating risks.
Python GUI and Scripts
With Py GUI, administrators can create gift lists, assign custom gifts to users, or perform bulk gift distributions via an easy-to-use interface. These Python scripts interact with UIScript to read server-side data and trigger actions, reducing manual workloads.
SQL Database Structure
All gift-related data is stored within the DB Core. Main tables include 'gifts', 'users', 'claims', and 'items'. Each gift has a unique ID and includes information such as user identity, gift time, and status. This enables efficient reporting and analysis operations.
Automation and Security
The system periodically checks gifts and automatically removes unused or expired ones. Every gift action is logged, allowing tracking of potential cheating attempts. Security filters at the Core level prevent unauthorized access.
Usage Scenario
When a player completes a task or participates in a campaign, they receive a unique gift code. Upon entering the code, it is validated by the game server and added to their inventory. During this process, the auth and game servers operate in sync.
Conclusion
The Gift System offered by Metin2 Lobby provides an ideal solution for private servers thanks to its advanced programming languages and secure database architecture. With its support for source edit and compile, developers can implement custom integrations into their own servers.
