natronium / GatorRando

A(n Archipelago) randomizer for Lil Gator Game
1 stars 0 forks source link

Error occurred during receiving large number of items during goal completion due to PlayerItemManager.Refresh #37

Closed roseasromeo closed 2 months ago

roseasromeo commented 3 months ago

May be due to not a mis-refresh when head is bare?

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: ItemHatBare.OnRemove () (at :0) PlayerItemManager.RefreshVariant (UnityEngine.GameObject& item, System.String& itemID, IItemBehaviour& itemBehaviour, System.String newID, UnityEngine.GameObject newPrefab, UnityEngine.Transform anchor, System.Boolean active, System.Int32 index) (at :0) PlayerItemManager.Refresh () (at :0) ItemManager.EquipItem (ItemObject item, System.Boolean refreshNow) (at :0) ItemManager.EquipItem (ItemObject item) (at :0) ItemManager.GiveItem (ItemObject item, System.Boolean equip) (at :0) GatorRando.ItemUtil.GiveItem (System.String item) (at :0) GatorRando.ArchipelagoManager.ReceiveItem (Data.Items+Entry entry) (at :0) GatorRando.ArchipelagoManager.ProcessItemQueue () (at :0) GatorRando.Plugin.Update () (at :0)

roseasromeo commented 3 months ago

Note that this error does not appear to have caused any knock on effects? It is likely caused by the fix for glider (PlayerItemManager.Refresh()). options to fix include making that fix specific to glider and patching the ItemHatBare function. More testing require to figure out if the error occurs in vanilla?

roseasromeo commented 3 months ago

It does cause ~100 items to not be received.... Western Wide Brim might be the cause