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.
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
Paylaşım için teşekkürler.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.
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 14
- Görüntüleme
- 2K
- Cevaplar
- 4
- Görüntüleme
- 440
- Cevaplar
- 6
- Görüntüleme
- 746