SylmarDev / SpireItems

Risk of Rain 2 Mod
0 stars 0 forks source link

Can't buy items after friend dies #4

Closed Waffles5536 closed 2 years ago

Waffles5536 commented 2 years ago

Items no longer drop from chests (or other sources) after a player death. This error occurs in version 0.4.2. This is the error that pops up in the console:

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: SylmarDev.SpireItems.DreamCatcher.CreatePickupDroplet_BasicPickupDropTable (On.RoR2.PickupDropletController+orig_CreatePickupDroplet_PickupIndex_Vector3_Vector3 orig, RoR2.PickupIndex pickupIndex, UnityEngine.Vector3 position, UnityEngine.Vector3 velocity) (at <6e779dd3a3174830a388fc218cee4320>:IL_0091) DMD<>?-440049664.Hook?-2002887680 (RoR2.PickupIndex , UnityEngine.Vector3 , UnityEngine.Vector3 ) (at :IL_0014) InsiderItems.EmployeeBadge.EmployeeBadgeFunction (On.RoR2.ChestBehavior+orig_ItemDrop orig, RoR2.ChestBehavior self) (at :IL_01AF) DMD<>?-440049664.Hook?-605645824 (RoR2.ChestBehavior ) (at <40b0de95f1154693a438d1f097c53eb1>:IL_0014) DMD<>?-440049664.Trampoline?-803517440 (RoR2.ChestBehavior ) (at <87a889ac10a842b3ae0d3b9b0c2302c8>:IL_0020) SylmarDev.SpireItems.DreamCatcher.ChestBehavior_ItemDrop (On.RoR2.ChestBehavior+orig_ItemDrop orig, RoR2.ChestBehavior self) (at <6e779dd3a3174830a388fc218cee4320>:IL_002E) DMD<>?-440049664.Hook?-670578816 (RoR2.ChestBehavior ) (at :IL_0014) RoR2.AnimationEvents.ItemDrop () (at <2b2f3d5000df48ae8f94a9b49e82d786>:IL_0032)

SylmarDev commented 2 years ago

Thank you, I should have this fixed in the 0.5.0 release. It's some code in the dream catcher implementation. It's hard for me to test because its a bug in multiplayer. I'm still working on a few things for it (config) but once I get that done I'll let you know here and close this issue.