[ Frozen ] İtem Altına Sınırsız Yazısı Sistemi

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
root/uitooltip.py​


Kod:
self.__AppendAbilityPotionInformation()

arat



Not : 27989,76006,70038,70057 item kodlarını düzenleyebilir veya daha fazla item ekliyebilirsiniz.
Not2 : Notepad++'da Kodlamayı Türkçe Yapın. "ı" harfinde ??? hatası alırsınız.

İyi Forumlar.
Frozen Item Sistemine Sınırsız Yazısı Ekleme Rehberi

Metin2 özel sunucularında gelişmiş item sistemleri, oyuncuların deneyimini ciddi anlamda artırabilir. Bu yazıda, Frozen isimli item sistemine özel olarak geliştirilmiş bir Sınırsız Yazısı entegrasyonundan bahsedeceğiz. Bu sayede oyuncular, belirli itemlerin üzerine sınırsız metin yazabilir ve kendi stilini yansıtabilir.

Sınırsız Yazısı Nedir?
Sınırsız Yazısı, Metin2 özel sunucularında popüler olan bir sistemdir. Oyuncular, bir item satın alarak bu item üzerine diledikleri metni yazabilir. Bu metin, itemin görünümünde sabit olarak kalır ve diğer oyuncular tarafından da görülebilir. Frozen item sistemleriyle entegre edildiğinde, daha estetik ve kullanıcı dostu bir arayüz sağlanır.

C++ Kaynak Kod Seviyesinde Entegrasyon
Bu sistemin temelinde, game server üzerinde çalışan bir C++ modifikasyonu yatar. Item verisi saklanırken, ilave bir string alanı eklenerek sınırsız yazısı bilgisi tutulur. Martysama gibi geliştirici araçları yardımıyla bu sistem kolayca entegre edilebilir. Py Root üzerinden UIScript ile kullanıcı arayüzüne entegre edilir ve Python GUI sistemleriyle birlikte çalışır.

Geliştirme Adımları[/COLUMN]
1. Client tarafında UIScript dosyasına sınırsız yazısı penceresi eklenir.
2. Game server tarafında item sınıfına yeni bir string değişkeni eklenir.
3. Auth server ile senkronize bir şekilde veri tabanına yazısı bilgisi kaydedilir.
4. DB Core ile bu veri güvenli bir şekilde okunur ve yazılır.

Oyun İçinde Kullanım
Oyuncu, bir iteme sağ tıklayıp 'Yazıyı Değiştir' seçeneğini seçerek sınırsız yazısı ekleyebilir. Bu metin, itemin isminin altında ya da yanında görüntülenebilir. PVP sunucularında bu özellikle önemli olup, oyuncular silah ya da zırhlarına özel sloganlar, isimler ya da tehdit mesajları yazabilirler.

Python GUI ve PyUI ile Arayüz Geliştirme
PyUI kullanarak kullanıcı dostu bir arayüz oluşturulabilir. Python GUI sistemleri ile bu pencere, Metin2 клиентine entegre edilir. UIScript ile bu pencerenin tasarımı yapılandırılır. Oyuncu yazdığı metni onayladığında, bu bilgi sunucuya gönderilir ve veritabanına yazılır.

Veri Tabanı ve Güvenlik
Yazılan metinler, DB üzerinde güvenli bir şekilde tutulmalıdır. SQL injeksiyonlarına karşı korumalar sağlanmalı ve yazının uzunluğu sınırlanmalıdır. Ancak bu sistemde sınırsız yazı demek, belirli bir karakter limitiyle değil, uygun veri yapısıyla sağlanır. Core seviyesinde güvenlik önlemleri alınarak, sistem daha stabil çalışır.

Sonuç
Frozen item sistemine sınırsız yazısı entegre etmek, Metin2 özel sunucularında kullanıcı deneyimini ciddi anlamda artırır. C++ ile backend tarafında yapılan değişikliklerle birlikte, Python ve PyUI yardımıyla frontend tarafı da geliştirilebilir. Bu sistem, Metin2 Lobby gibi platformlarda sunucu sahipleri tarafından tercih edilmektedir.


Adding Unlimited Writing Feature to Frozen Item System

Advanced item systems in Metin2 private servers can significantly enhance the player experience. In this article, we will discuss an integration developed specifically for the Frozen item system that allows Unlimited Writing. This way, players can write unlimited text on certain items and reflect their own style.

What is Unlimited Writing?
Unlimited Writing is a popular system in Metin2 private servers. Players can purchase an item and write any desired text on it. This text remains visible on the item's appearance and can be seen by other players. When integrated with Frozen item systems, it provides a more aesthetic and user-friendly interface.

Integration at C++ Source Code Level
At its core, this system relies on a C++ modification running on the game server. An additional string field is added to store the writing information when item data is saved. With tools like Martysama, this system can be easily integrated. It is integrated into the user interface via UIScript and works together with Python GUI systems.

Development Steps
1. Add an unlimited writing window to the UIScript file on the client side.
2. Add a new string variable to the item class on the game server side.
3. Save the writing data in the database synchronized with the auth server.
4. Read and write this data securely with DB Core.

Usage in Game
The player can add unlimited writing by right-clicking an item and selecting 'Change Writing'. This text can be displayed below or next to the item's name. On PVP servers, this is especially important, allowing players to write custom slogans, names, or threat messages on weapons or armor.

Developing Interface with Python GUI and PyUI
A user-friendly interface can be created using PyUI. The interface is integrated into the Metin2 client with Python GUI systems. The design of this window is configured with UIScript. When the player confirms the written text, this information is sent to the server and saved in the database.

Database and Security
The written texts must be securely stored in the DB. Protection against SQL injection should be provided, and the length of the writing should be limited. However, in this system, unlimited writing means achieving this through appropriate data structure rather than a specific character limit. By taking security measures at the core level, the system operates more stably.

Conclusion
Integrating unlimited writing into the Frozen item system significantly enhances the user experience in Metin2 private servers. Alongside modifications made on the backend with C++, the frontend can also be developed using Python and PyUI. This system is preferred by server owners on platforms like Metin2 Lobby.
 

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

Benzer konular

Geri
Üst Alt