romegames 1
romegames
Bvural41 1
Bvural41
Best Studio 1
Best Studio
BlackFullMoon 1
BlackFullMoon
NovaLst 1
NovaLst
SLyFeLLowTR 1
SLyFeLLowTR
xranzei 1
xranzei
InfernoShade 1
InfernoShade
shrpnl 1
shrpnl
D 1
delimuratt
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

small inventory fix (ghost gui bug)

  • Konuyu başlatan Konuyu başlatan covfefe
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 6
  • Görüntüleme Görüntüleme 1K
  • Etiketler Etiketler
    python arayüz

covfefe

Level 1
Üye
Katılım
19 Nis 2022
Konular
1
Mesajlar
1
Online süresi
2d 15h
Reaksiyon Skoru
6
Altın Konu
0
TM Yaşı
4 Yıl 1 Ay 22 Gün
Başarım Puanı
22
MmoLira
370
DevLira
3
Ticaret - 0%
0   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!

I noticed a few days ago that the inventory class was not getting freed upon rewarp. Circular dependency was causing the garbage collector to fail.

The fix was fairly simple, so I did it and I'm here to share it with you. I believe this also fixes the bug that's commonly known as "GHOST GUI" that many have reported before.

First, to test if you have this problem:
in uiinventory.py inventorywindow class, go to _del_ function and add this below:

import dbg
dbg. Logbox("Deleted")

then rewarp ingame. if you don't get this message then that means you also have this problem. My "fix" should make this dbg appear. Let's get to the fix.

Open interfacemodule.py, and at the top, add:

from _weakref import proxy
and in

def __MakeWindows(self):
Replace

wndInventory = uiInventory.InventoryWindow()
With

wndInventory=proxy(uiInventory.InventoryWindow())
Open uidragonsoul.py and search for

def SetInventoryWindows(self, wndInventory, wndDragonSoul):
change self.wndInventory to

self.wndInventory = wndInventory
 

En Çok Reaksiyon Alan Mesajlar

Garipmiş teşekkürler
 
Paylasim icin teşekkürler cogu kiside var bu sorun
 
I noticed a few days ago that the inventory class was not getting freed upon rewarp. Circular dependency was causing the garbage collector to fail.

The fix was fairly simple, so I did it and I'm here to share it with you. I believe this also fixes the bug that's commonly known as "GHOST GUI" that many have reported before.

First, to test if you have this problem:
in uiinventory.py inventorywindow class, go to _del_ function and add this below:



then rewarp ingame. if you don't get this message then that means you also have this problem. My "fix" should make this dbg appear. Let's get to the fix.
Paylaşım için teşekkürler.
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst