ChrisNZL / Tallowmere2

Changelog, issue tracker, and development knowledge for Tallowmere 2.
https://tallowmere2.com
13 stars 0 forks source link

Null ref: T2.MeleeWeapon.___OnBecameEquipped #977

Closed ChrisNZL closed 2 years ago

ChrisNZL commented 2 years ago

Auto report, 0.2.10a, feedback ID 20211118-K4RPK

1:58:03, Frame 128873, LOG »  NetworkMessage_DungeonRoomTransitionHelper: Received message.
Desire: 4 » BeginLoadingRoom

1:58:04, Frame 128886, EXCEPTION »  NullReferenceException: Object reference not set to an instance of an object
>>>>> CRITICAL ERROR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

T2.MeleeWeapon.___OnBecameEquipped ()
T2.Weapon._OnBecameEquipped ()
T2.InventoryItem.OnBecameEquipped ()
T2.Creature.HoldInstantiatedWeapon (T2.Weapon weapon)
T2.Creature.InstantiateAndHoldInventoryItemFromItemStruct (T2.InventoryItemStruct itemStruct)
T2.Creature._EquipWeaponsAndItems (T2.CreatureStruct creatureStruct, T2.MethodCaller methodCaller)
T2.Creature.InstantiateCreature (T2.CreatureStruct creatureStruct, T2.SeedFactory seedFactory, System.Boolean allowAI)
T2.DungeonRoom.Update ()

GameStates: RompingThroughDungeon, TransitioningToDungeonRoom
OnlineGameInfo: Device is online.
Server: Lightning-Beijing-01
GameID: NSJHX
GameSetupMode: NetworkCoop
Players: 2
DungeonRoomTransitionerState: WaitingForRoomToLoad
Room: 159 / 158
RoomModifiers: RandomBodies (大乱斗), BulletHell (子弹炼狱), ElementalStaffsOnly (咒术派对), DoubleTrouble (双倍麻烦), MoreGoldOnDeath (财富)
YouHaveDiedState: Null
SystemPlayer InputDevice: 键盘
HumanPlayer 1 InputDevice: 键盘
ChrisNZL commented 2 years ago

Should be fixed in 0.3.1a. Added null checks within MeleeWeapon.___OnBecameEquipped.