ChrisNZL / Tallowmere2

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

Null ref: T2.Creature.GetAimTarget_Creature #1033

Closed ChrisNZL closed 2 years ago

ChrisNZL commented 2 years ago

Auto report, 0.3.5, feedback ID 20220427-HGVHY

Null ref with new online aim target sync system.

10:38:56, Frame 774760, LOG »  DungeonRoomTransitioner.Update: Revealing room: Tallowmere的城堡 (Room 0)

10:38:57, Frame 774808, EXCEPTION »  NullReferenceException: Object reference not set to an instance of an object
>>>>> CRITICAL ERROR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

T2.Creature.GetAimTarget_Creature (System.Int32 index, System.Boolean targetMustBeInFront, System.Boolean requiresLineOfSight)
T2.Weapon.DoAutoAimHunterMarkStuff ()
T2.Weapon.OnUpdate ()
T2.CreatureBody.Update ()

GameStates: RompingThroughDungeon
OnlineGameInfo: Device is online.
Server: Lightning-Beijing-01
GameID: F8SBC
GameSetupMode: NetworkCoop
Players: 2
DungeonRoomTransitioner.state: RevealingRoom
DungeonRoom.state: Ready
Room: 0 / 46
RoomModifiers: None
YouHaveDiedState: Null
SystemPlayer InputDevice: 键盘
HumanPlayer 1 InputDevice: 键盘
ChrisNZL commented 2 years ago

Should be fixed in 0.3.5a.

Added a couple more null checks.