BattletechModders / BattletechModders/LowVisibility
Random error that locks up UI
- Dominant language
- C#
- Stars
- 8
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
16:39:25.236 Object reference not set to an instance of an object
16:39:25.236 at CustomUnits.LowVisibilityAPIHelper.SetArmorDisplayActive (BattleTech.UI.CombatHUDTargetingComputer __instance, System.Boolean active) [0x0002d] in :0
at LowVisibility.Integration.CUHooks.ToggleTargetingComputerArmorDisplay (BattleTech.UI.CombatHUDTargetingComputer __instance, System.Boolean show) [0x00001] in :0
at LowVisibility.Patch.CombatHUDTargetingComputer_RefreshActorInfo.Postfix (BattleTech.UI.CombatHUDTargetingComputer __instance, System.Collections.Generic.List`1[T] ___weaponNames) [0x0041b] in :0
16:39:25.236Failed to RefreshActorInfo!
16:39:25.601 CHTC:RAI ~~~ target:Anti Aircraft Generator_E7845367 is enemy
16:39:25.601 CHTC:RAI ~~~ target:Anti Aircraft Generator_E7845367 is enemy building
16:39:25.601 Failed to RefreshActorInfo!
16:39:25.601 Object reference not set to an instance of an object
16:39:25.601 at CustomUnits.LowVisibilityAPIHelper.SetArmorDisplayActive (BattleTech.UI.CombatHUDTargetingComputer __instance, System.Boolean active) [0x0002d] in :0
at LowVisibility.Integration.CUHooks.ToggleTargetingComputerArmorDisplay (BattleTech.UI.CombatHUDTargetingComputer __instance, System.Boolean show) [0x00001] in :0
at LowVisibility.Patch.CombatHUDTargetingComputer_RefreshActorInfo.Postfix (BattleTech.UI.CombatHUDTargetingComputer __instance, System.Collections.Generic.List`1[T] ___weaponNames) [0x0041b] in :0
16:39:25.601Failed to RefreshActorInfo!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing CustomUnits.LowVisibilityAPIHelper.SetArmorDisplayActive through LowVisibility.Integration.CUHooks.ToggleTargetingComputerArmorDisplay and the CombatHUDTargetingComputer_RefreshActorInfo.Postfix shown in the stack trace. Reproduce the targeting-computer refresh with the Anti Aircraft Generator target; done means the null-reference error no longer occurs and the UI does not lock up.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100