Bvural41 1
Bvural41
emirhanHCL 1
emirhanHCL
R 1
Roksam
[DEV]AB 1
[DEV]AB
farkmt2official 1
farkmt2official
Hikaye Ekle

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
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

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