İkarus offline shop tıklama sorunu çözümü!

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Sorunun sebebi kullanılan imagebox ui sinin OnMouseLeftButtonUp olmasından kaynaklanıyor.

Halbu ki hali hazırda imagebox classının window clasından aldığı OnMouseLeftButtonUp fonksiyonu bulunuyor.

imagebox in içinde ki OnMouseLeftButtonUp fonksiyonu windows clasında ki OnMouseLeftButtonUp override ediyor.

Bu yüzden de tıklanmıyo :)

Çözümü basit;

Ui.py içinde ki imagebox ı değiştir.
Kod:
class ImageBox(Window):     def __init__(self, layer = "UI"):         Window.__init__(self, layer)         self.eventDict={}     def __del__(self):         Window.__del__(self)     def RegisterWindow(self, layer):         self.hWnd = wndMgr.RegisterImageBox(self, layer)     def LoadImage(self, imageName):         self.name=imageName         wndMgr.LoadImage(self.hWnd, imageName)         if len(self.eventDict)!=0:             print "LOAD IMAGE", self, self.eventDict     def SetAlpha(self, alpha):         wndMgr.SetDiffuseColor(self.hWnd, 1.0, 1.0, 1.0, alpha)     def GetWidth(self):         return wndMgr.GetWidth(self.hWnd)     def GetHeight(self):         return wndMgr.GetHeight(self.hWnd)     def OnMouseOverIn(self):         try:             self.eventDict["MOUSE_OVER_IN"]()         except KeyError:             pass     def OnMouseOverOut(self):         try:             self.eventDict["MOUSE_OVER_OUT"]()         except KeyError:             pass     def SAFE_SetStringEvent(self, event, func):         self.eventDict[event]=__mem_func__(func)

Bu imagebox değişimi nedense mailbox sistemi eklerken olmuş. Halbuki mailboxta böyle bir kullanım yok. Olsa bile zaten hali hazırda window clasından imagebox miras alıyor.

The end.
İkarus Offline Shop Tıklama Sorunu Çözümü

Metin2 özel sunucularında yaygın olarak karşılaşılan problemlerden birisi olan İkarus offline shop tıklama sorununa dair detaylı çözüm adımlarını bu makalede bulacaksınız.

İkarus Offline Shop Nedir?

İkarus offline shop, Metin2 özel sunucu geliştirme sürecinde oyuncuların aktif olmayan esnada da eşya alıp satabilmesini sağlayan gelişmiş bir sistemdir. Bu sistem sayesinde oyuncular kendi mağazalarını kurabilir ve karakterleri kapalıyken bile işlem yapabilirler. Ancak bu sistemin doğru çalışması için bazı yapılandırmaların ve ayarların uygun yapılması gerekir.

Tıklama Sorunu Nedir?

Bazı durumlarda oyuncular offline shop listesinden bir eşyayı tıklamaya çalıştığında tıklama gerçekleşmez veya yanıt gelmez. Bu durum genellikle client tarafında UI Script veya py dosyalarındaki eksikliklerden kaynaklanır.

Sorunun Kaynağı

Bu tür tıklama sorunları genellikle şu sebeplerle oluşur:
- UI script dosyasında ilgili fonksiyon eksikliği
- Py dosyalarında tıklama eventi tanımlanmamış
- Client ile server arasında paket iletişim hatası
- Eşya ID veya veri uyumsuzluğu

Detaylı Çözüm Adımları

1. Py Root ve UI Script Dosyalarını Kontrol Edin
İlk olarak client tarafında kullanılan py root klasöründe bulunan offline shop ile ilgili py dosyalarının güncel olduğundan emin olun. Özellikle 'mouseClick' eventlerinin doğru şekilde tanımlandığından emin olun.

2. Uiscript Dosyasında Tıklama Tanımı
Uiscript dosyasında offline shop penceresi açıldığında eşyalara tıklama işlemi için gerekli event tanımlaması yapılmalıdır. Bu tanımlama eksikse tıklama işlevi çalışmaz.

3. Server Tarafında Paket İşleme

Game server tarafında, tıklanan eşya ile ilgili olarak gelen paketin doğru şekilde işlenmesi gerekir. Bu paketin işlenmemesi durumunda tıklama işlemi cevap vermez.

Ekstra İpuçları

Eğer sorun çözülmediyse, client ve server loglarını kontrol ederek daha fazla bilgiye ulaşabilirsiniz. Loglar üzerinden hangi noktada hata oluştuğunu belirlemek mümkündür. Ayrıca, offline shop sistemi genellikle Martysama veya benzeri kaynaklardan alınan sistemlerle entegre çalıştığı için, bu sistemlerin uyumlu olup olmadığını da kontrol etmelisiniz.

Sonuç

İkarus offline shop tıklama sorunu, genellikle küçük yapılandırma eksikliklerinden kaynaklanır. Doğru py ve uiscript düzenlemeleriyle bu sorun kolayca çözülebilir.

Daha fazla Metin2 özel sunucu geliştirme rehberi için Metin2 Lobby sitesini takip edin.


Solution for Ikarus Offline Shop Click Issue

In this article, you will find detailed steps to resolve the common problem known as the Ikarus offline shop click issue encountered in Metin2 private servers.

What is Ikarus Offline Shop?

Ikarus offline shop is an advanced system that allows players in Metin2 private servers to buy and sell items even when they are not online. This system enables players to create their own shops and conduct transactions while their character is offline. However, proper configuration and settings must be applied for this system to function correctly.

What is the Click Issue?

In some cases, when players attempt to click on an item from the offline shop list, no response occurs or the click does not register. This usually stems from missing elements in UI Scripts or py files on the client side.

Root Cause of the Problem

These types of clicking issues generally occur due to the following reasons:
- Missing functions in UI script files
- Undefined click events in py files
- Packet communication errors between client and server
- Item ID or data mismatch

Detailed Solution Steps

1. Check Py Root and UI Script Files
Firstly, ensure that the py files related to the offline shop located in the py root folder of your client are up-to-date. Specifically, verify that 'mouseClick' events are properly defined.

2. Define Click Event in Uiscript File
When the offline shop window opens in the uiscript file, the required event definition for clicking on items must be implemented. If this definition is missing, the click action will not work.

3. Process Packets on the Server Side

On the game server side, the packet received upon clicking an item must be processed correctly. Failure to process this packet results in no response to the click operation.

Additional Tips

If the issue persists, examine client and server logs to gather more information. It's possible to determine at which point the error occurs by reviewing the logs. Furthermore, since offline shop systems often integrate with systems like Martysama, ensure compatibility between these systems.

Conclusion

The Ikarus offline shop click issue typically stems from minor configuration mistakes. With correct py and uiscript modifications, this issue can be easily resolved.

For more guides on Metin2 private server development, visit Metin2 Lobby.
 

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

Benzer konular

Geri
Üst Alt