Sağ Üstte Map Kenarında Harita İsmi

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Bir konu daha var ama o sorunlu bu sorun suz. fixli
224528_63d6f4feb242ac08d166462c7ab6fced.jpg

Sağ Üstte Map Kenarında Harita İsmi
Metin2 özel sunucularında kullanıcı deneyimini artırmak için birçok küçük ama etkili değişiklik yapılabilir. Bu değişikliklerden birisi, oyuncuların bulunduğu haritanın ismini sağ üst köşede göstermektir. Bu özellik, özellikle PvP sistemlerinde aktif olarak harita geçişleri yapan oyuncular için oldukça faydalıdır. Bu yazıda, sağ üstte map kenarında harita isminin nasıl ekleneceğini detaylıca inceleyeceğiz.

Harita İsmi Gösterimi Nedir?
Harita ismi gösterimi, oyuncunun hangi haritada olduğunu anlık olarak gösterecek bir arayüz elemanıdır. Bu bilgi genellikle sağ üst köşeye yerleştirilir çünkü burası hem dikkat çeker hem de oyun içi diğer UI elementleriyle karışmaz. Bu sistem, Metin2 özel sunucu geliştiricileri tarafından sıklıkla tercih edilir çünkü kullanıcı dostu bir yapıya sahiptir.

C++ Kaynak Koduyla Uygulama
Metin2 sunucu tarafında bu işlem için genellikle game core üzerinde değişiklik yapılması gerekir. Harita ismini alabilmek için mevcut map manager sistemine erişmek gerekir. Bu işlem sırasında db core üzerinden harita adı bilgileri alınabilir. Sunucu tarafında bu bilgi client'a gönderilir ve ardından istemci tarafında bu veri doğru konuma yerleştirilir.

Python Tarafında UIScript Kullanımı
Client tarafında bu işlem için uiscript veya py root dosyalarında değişiklik yapılır. Oyuncunun ekranında sağ üst köşede görünecek olan harita ismini göstermek için bir label nesnesi oluşturulur. Bu nesnenin konumu, boyutu ve stilleri ayarlanır. Gerekirse bu nesne dinamik olarak güncellenir ve her harita değişiminde doğru isim gösterilir.

Harita Geçişlerinde Otomatik Güncelleme
Harita geçişlerinde bu ismin otomatik olarak güncellenmesi için client src üzerinde uygun event'ler kullanılır. Örneğin, bir oyuncu başka bir haritaya geçtiğinde, sunucudan gelen harita adı bilgisi ile UI'daki label güncellenir. Bu işlem genellikle martysama gibi gelişmiş sistemlerle daha kolay entegre edilebilir.

Neden Bu Özellik Kullanılmalı?
Oyuncuların harita bilgisine kolayca ulaşabilmesi, PvP sistemlerinde stratejik avantaj sağlar. Ayrıca, harita ismini sürekli takip edebilmek, özel görevlerde veya grup aktivitelerinde zaman kazandırır. Bu tür küçük geliştirmeler, Metin2 özel sunucularının rekabet avantajı sağlamasında büyük rol oynar.


Map Name on the Top Right Edge of the Map
In Metin2 private servers, many small but effective changes can be made to enhance user experience. One of these modifications is displaying the name of the current map at the top right corner. This feature is especially useful for players who actively switch maps during PvP events. In this article, we will examine in detail how to add the map name on the edge of the map at the top right corner.

What is Map Name Display?
Map name display is a UI element that shows the player's current map in real-time. Usually placed in the top-right corner of the screen, this location ensures visibility without interfering with other in-game UI elements. This system is frequently preferred by Metin2 private server developers due to its user-friendly nature.

Implementation with C++ Source Code
On the server-side of Metin2, modifications are typically required within the game core. To retrieve the map name, access to the existing map manager system is necessary. During this process, map name information can be retrieved via the db core. The server then sends this information to the client, which displays the data in the appropriate location on the client side.

Using UI Script in Python
On the client side, modifications are made in uiscript or py root files. A label object is created to show the map name at the top-right corner of the player's screen. The position, size, and styling of this object are configured accordingly. If needed, the object updates dynamically to reflect the correct map name upon each transition.

Automatic Update During Map Changes
To ensure the map name updates automatically during transitions, appropriate events are used in the client src. For instance, whenever a player enters a new map, the map name received from the server updates the label in the UI. This process can be more easily integrated using advanced systems like martysama.

Why Should You Use This Feature?
Allowing players easy access to map information provides strategic advantages in PvP scenarios. Additionally, tracking the current map name saves time during quests or group activities. Such minor improvements play a significant role in giving Metin2 private servers a competitive edge.
 

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

Benzer konular

Geri
Üst Alt