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.
Beğenip yorum atmayı unutmayın.
Metin2 Lobby'de Yeni PM Emoji Sistemi: C++ ve Python Entegrasyonu
Metin2 özel sunucularında kullanıcı deneyimini artırmak adına özel mesaj (PM) sisteminde yeni bir emoji entegrasyonu geliştirdik. Bu sistem sayesinde oyuncular özel mesajlaşmalarında artık daha fazla ifade gücü kazanacak. Geliştirme sürecinde C++ ve Python teknolojileri bir araya getirilerek hem sunucu tarafında hem de istemci tarafında güçlü bir yapı oluşturuldu.
Sistem Mimarisi
Bu yeni sistemde C++ tarafında game server üzerinde özel mesajları işleyen fonksiyonlara emoji desteği eklendi. Python tarafında ise GUI üzerinden gelen emojiler kodlanmış olarak gönderilip sunucuda çözümleniyor. Emoji paketi olarak custom pack sistemi kullanıldı. Bu sayede hem client src hem de server src üzerinde minimal değişikliklerle sistemin entegrasyonu sağlandı.
Neden Emoji Desteği?
Oyun içi özel mesajlaşma sisteminde duygusal ifadelerin eksik kalması uzun süredir tartışılan bir konuydu. Artık oyuncular özel mesajlarında
Kurulum ve Entegrasyon
Sistemin kurulumu oldukça basit. Game server üzerinde packet yapısında küçük değişiklikler yapıldı. Python root klasöründe yer alan uiscript dosyasına yeni bir parse fonksiyonu eklendi. Bu sayede mesaj kutusuna girilen emoji kodları doğru şekilde sunucuya iletiliyor. Martysama tarafından geliştirilen source edit araçları bu işlemi kolaylaştırdı.
Teknik Detaylar
Sunucu tarafında C++ ile yazılmış olan chat handler fonksiyonuna eklenen emoji parser sayesinde gelen mesajlar kontrol ediliyor. Eğer mesajda belirli bir emoji kod tespit edilirse, bu mesaj client tarafında özel bir render fonksiyonu ile görsel olarak ekrana basılıyor. Bu işlem sırasında DB bağlantısı da kullanılarak farklı karakterler için özelleştirilmiş emoji setleri tanımlanabiliyor.
Sonuç
Yeni PM Emoji sistemi, Metin2 özel sunucularında kullanıcı deneyimini ciddi anlamda artıracak nitelikte. C++ ve Python tabanlı bu sistem, Metin2 development camiası için örnek teşkil edecek. Metin2 Lobby olarak bu tür yenilikleri siz oyuncular için sürekli geliştirmeye devam edeceğiz.
New PM Emoji System on Metin2 Lobby: C++ and Python Integration
To enhance user experience on Metin2 private servers, we have developed a new emoji integration for the private message (PM) system. With this system, players will gain more expressive power in their private messages. The development process combined both C++ and Python technologies to create a robust structure on both the server-side and client-side.
System Architecture
In this new system, emoji support has been added to functions processing private messages on the game server side using C++. On the Python side, emojis sent through the GUI are transmitted to the server in encoded form and decoded accordingly. A custom pack system was used for the emoji package, allowing integration with minimal changes to both client src and server src.
Why Emoji Support?
The lack of emotional expression in in-game private messaging has long been a debated issue. Now, players can use real emojis instead of plain text expressions like
Installation and Integration
Installation of the system is quite simple. Minor modifications were made to the packet structure on the game server. A new parse function was added to the uiscript file located in the Python root folder, ensuring that emoji codes entered into the message box are correctly transmitted to the server. Martysama's source edit tools made this process easier.
Technical Details
On the server-side, the emoji parser added to the C++-based chat handler checks incoming messages. If a specific emoji code is detected, the message is rendered visually on the client-side using a special render function. During this process, DB connections allow custom emoji sets to be defined per character.
Conclusion
The new PM Emoji system significantly enhances user experience in Metin2 private servers. This C++ and Python-based system serves as a reference for the Metin2 development community. At Metin2 Lobby, we will continue developing such innovations for you, the players.
