- 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
Herkese Merhaba
Profil Görüntüleme Sistemini Eklemek İstedim ve Baktım Piyasadaki Çöplükleri Beğenmedim Kendim Yazdım.
KANIT:
Yedek Link:
Kostüm Penceresi İçin
Profil Görüntüleme Sistemini Eklemek İstedim ve Baktım Piyasadaki Çöplükleri Beğenmedim Kendim Yazdım.
KANIT:
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Yedek Link:
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Kostüm Penceresi İçin
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Metin2 Özel Sunucularında Profil Görüntüleme Sistemi Oluşturmak
C++ ve Python Kombinasyonu ile Gelişmiş Profil Görüntüleme
Metin2 özel sunucuları geliştiren geliştiriciler için kullanıcıların profil bilgilerini görüntülemesi, hem oyuncular arasında etkileşimi artırmak hem de sunucu yöneticileri için istatistiksel analiz yapabilmek açısından oldukça önemlidir. Bu yazıda, C++ ve Python dilleri kullanılarak nasıl bir Profil Görüntüleme Sistemi geliştirilebileceğini adım adım ele alacağız.
Sistem Mimarisine Genel Bakış
Profil görüntüleme sistemi genellikle client-side (Py GUI) ve server-side (Game/Auth Server - C++) olarak iki ana bileşenden oluşur. Client tarafında bir arayüz (uiscript) ile kullanıcı profili gösterilirken, server tarafında ise bu bilgiler veritabanından (db core) alınarak istemciye gönderilir.
Client Tarafında Py GUI ile Arayüz Geliştirme
Python tarafında Py GUI kullanarak kullanıcı dostu bir profil penceresi tasarlanabilir. Bu pencere, oyuncunun adı, seviyesi, guild bilgisi, PvP kazanımları gibi önemli bilgileri içerir. uiscript dosyasında, pack edilerek istemciye entegre edilir. Örnek olarak, bir buton ile diğer oyuncuların profilini açabilmek için bir komut sistemi tanımlanabilir:
/profil [kullanici_adi]
Server Tarafında C++ ile Veri Çekme
Sunucu tarafında, game server src üzerinde bir komut tanımlanarak, gelen kullanıcı adı üzerinden veritabanından bilgiler çekilir. Bu işlem sırasında db core kullanılır. C++ kodları ile kullanıcıya ait level, EXP, oynadığı süre, PvP galibiyet sayısı gibi veriler sorgulanır ve istemciye JSON benzeri bir yapıda gönderilir. Bu yapı, Python tarafında parse edilerek ekrana basılır.
Veri Güvenliği ve Yetkilendirme[/BR]
Oyuncuların kişisel bilgileri başka oyuncular tarafından görüntülenebilir durumdaysa, bu bilgilerin yetkilendirme kontrollerinden geçirilmesi gerekir. Örneğin, bir oyuncunun guild bilgisi sadece aynı guild üyesi olanlar tarafından görülebilir. Bu kontrol C++ tarafında auth server ile sağlanabilir. Martysama gibi geliştirilmiş sistemlerde bu tür kontroller kolayca entegre edilebilir.
Profil Görüntüleme Sisteminin Entegrasyonu[/BR]
Bu sistem, Metin2Dev ve benzeri gelişmiş core sistemlerle uyumlu çalışacak şekilde planlanmalıdır. Channel bazlı sunucularda farklı kanallardaki oyuncuların profilleri görüntülenmek istendiğinde, sunucu içi iletişim protokolleri aktif edilir. Bu sayede birden fazla channel üzerinde profil verileri dinamik olarak alınabilir.
Geliştirme Sürecinde Dikkat Edilmesi Gerekenler[/BR]
Bu sistem geliştirilirken, source edit sırasında mevcut yapıyı bozmamak önemlidir. Ayrıca, metin2 server src üzerinde yapılan değişikliklerin test aşamasında hata vermeyecek şekilde derlenmesi gerekir. Compile işlemi sonrasında sistemin stabil çalışması sağlanmalıdır.
Sonuç[/BR]
Profil görüntüleme sistemi, Metin2 özel sunucularında kullanıcı deneyimini ciddi anlamda artırır. C++ ve Python dillerinin güçlü yönlerinden faydalanarak, kullanıcı dostu ve güvenli bir sistem oluşturulabilir. Bu sistem, hem geliştiriciler hem de oyuncular için değerli bir araç haline gelebilir.
Creating a Profile Viewing System for Metin2 Private Servers
Advanced Profile Viewing with C++ and Python Combination[/BR]
For developers creating Metin2 private servers, allowing users to view profile information enhances player interaction and enables statistical analysis for server administrators. In this article, we will detail how to develop a Profile Viewing System using C++ and Python.
Overview of the System Architecture[/BR]
The profile viewing system generally consists of two main components: client-side (Py GUI) and server-side (Game/Auth Server - C++). The client displays user profiles through a UI (uiscript), while the server retrieves these details from the database (db core) and sends them to the client.
Developing the UI with Py GUI on the Client Side[/BR]
Using Py GUI in Python, a user-friendly profile window can be designed. This window can display key information such as the player's name, level, guild details, and PvP achievements. The uiscript file is packed and integrated into the client. For instance, a command system like the following can be defined to open other players' profiles:
/profile [username]
Retrieving Data with C++ on the Server Side[/BR]
On the server side, a command is defined within the game server src to fetch data from the database based on the given username. During this process, db core is used. With C++ code, data such as the user's level, EXP, playtime, and PvP win count are queried and sent to the client in a JSON-like structure. This structure is parsed in Python and displayed on screen.
Data Security and Authorization[/BR]
If players' personal information is visible to others, authorization checks must be performed. For example, a player's guild information might only be visible to members of the same guild. This control can be implemented on the C++ side via the auth server. Such controls can be easily integrated into enhanced systems like Martysama.
Integration of the Profile Viewing System[/BR]
This system should be planned to work seamlessly with advanced core systems like Metin2Dev. In server setups with multiple channels, inter-server communication protocols can be activated so that profile data can be fetched dynamically across different channels.
Considerations During Development[/BR]
While developing this system, care must be taken not to break existing structures during source edit. Additionally, changes made to the metin2 server src must compile without errors during testing. Stability should be ensured after the compile process.
Conclusion[/BR]
A profile viewing system significantly enhances the user experience in Metin2 private servers. By leveraging the strengths of both C++ and Python, a user-friendly and secure system can be built. This system can become a valuable tool for both developers and players.
