[Py]Yeni Sohbet Ekranı

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Selamun Aleyküm,
Yeni Sohbet Ekranı,

Anlatım'ı PASTE2'DEN ALMAK İÇİN :

Metin2 Lobby olarak sunucu geliştiricileri için sürekli yenilikler sunuyoruz. Bu yazıda, Metin2 özel sunucularında oyun içi deneyimi zenginleştirecek Yeni Sohbet Ekranı sistemi üzerinde duracağız. Bu sistem; C++ tabanlı sunucu tarafında ve Python GUI (py root) üzerinde çalışan, kullanıcı dostu bir arayüz sunar.

Neden Yeni Sohbet Sistemi?
Metin2 özel sunucularında sohbet sistemi, oyuncuların iletişim kurmasının yanı sıra sistemsel bildirimlerin, PvP kazanımlarının, eşya düşüşlerinin ve daha fazlasının aktarıldığı merkezi bir alandır. Ancak standart sohbet ekranı zamanla eski kalabilir, daha modern ve özelleştirilebilir bir yapıya ihtiyaç duyulabilir. Bu nedenle, Python GUI ile geliştirilen yeni sohbet ekranı, hem görsel hem de fonksiyonel açıdan gelişmiş bir yapı sunar.

Özellikler
Renkli mesaj sınıflandırmaları (system, info, warning, error)
Oyuncuya özel özel mesaj kutucukları
PvP bildirimleri için özel stiller
Eşya düşüşlerinde animasyonlu popup sistem entegrasyonu
Sunucu tarafında C++ ile loglama desteği
UİScript ve PyRoot üzerinde kolay entegrasyon
DB Core ile entegre çalışabilen loglama

Kurulum ve Entegrasyon
Yeni Sohbet Ekranı, Martysama veya diğer C++ sunucu kaynak kodları üzerine entegre edilebilir. Kurulum sırasında py_root klasörüne özel UI dosyaları eklenmeli ve uiscript ile bağlantı sağlanmalıdır. Sunucu tarafında chat_handler.cpp gibi dosyalarda değişiklikler yapılmalıdır. Bu sayede sistemsel mesajlar doğrudan yeni ekrana yönlendirilir.

Python GUI Mimarisi
Sistemde kullanılan Python GUI, uiscript dosyaları üzerinden yönetilir. Bu sayede her sunucu sahibi kendi stilini, renklerini ve layoutlarını özelleştirebilir. PyRoot klasöründe yer alan chat.py dosyası, oyun içi mesaj akışını kontrol eder. Burada filtreleme, yönlendirme ve stillendirme işlemleri yapılır.

PvP ve Game Core Entegrasyonu
Oyuncuların PvP kazanımları, öldürdükleri rakipler veya eşya düşürmeleri gibi olaylar yeni sohbet ekranında öne çıkarılır. Bu sayede oyun içi etkileşim artar ve kullanıcı deneyimi daha keyifli hale gelir. Ayrıca DB Core ile entegre çalışarak tüm eylemler veritabanında loglanabilir.

Sonuç
Yeni Sohbet Ekranı sistemi, Metin2 özel sunucularında kullanıcı deneyimini ciddi anlamda artırır. Modern arayüzü, güçlü backend yapısı ve kolay özelleştirilebilir yapısı ile sunucu geliştiricileri için değerli bir araçtır. Metin2Lobby olarak bu tür sistemleri paylaşmaya devam edeceğiz.


Metin2 Lobby constantly brings innovations for server developers. In this article, we will focus on the New Chat Screen system, which enriches the in-game experience on Metin2 private servers. This system runs on both the C++ based server-side and the Python GUI (py root), offering a user-friendly interface.

Why a New Chat System?
The chat system in Metin2 private servers serves as a central area where players communicate and where system notifications, PvP achievements, item drops, and more are displayed. However, the default chat screen may become outdated over time, requiring a more modern and customizable structure. Therefore, the new chat screen developed with Python GUI offers an advanced visual and functional framework.

Features
Color-coded message categories (system, info, warning, error)
Custom message boxes for individual players
Special styles for PvP notifications
Animated popup system integration for item drops
Server-side logging support via C++
Easy integration with UİScript and PyRoot
Logging capabilities integrated with DB Core

Installation and Integration
The New Chat Screen can be integrated into C++ server sources like Martysama or other similar ones. During installation, custom UI files must be added to the py_root folder and connected via uiscript. Modifications should be made in files such as chat_handler.cpp on the server side so that system messages are directly routed to the new screen.

Python GUI Architecture
The Python GUI used in the system is managed through uiscript files. This allows each server owner to customize their own styles, colors, and layouts. The chat.py file located in the PyRoot folder controls the in-game message flow. Filtering, routing, and styling operations are handled here.

PvP and Game Core Integration
Events such as player PvP achievements, kills, or item drops are highlighted in the new chat screen. This increases in-game interaction and makes the user experience more enjoyable. Additionally, all actions can be logged in the database through DB Core integration.

Conclusion
The New Chat Screen system significantly enhances the user experience on Metin2 private servers. With its modern interface, robust backend architecture, and easily customizable design, it serves as a valuable tool for server developers. At Metin2Lobby, we will continue sharing such systems.
 

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

Benzer konular

Geri
Üst Alt