Boss charge missing collider exception
LukeStampfli opened this issue · 3 comments
LukeStampfli commented
Describe the bug
When Boss charges getting missing collider exception
To Reproduce
Steps to reproduce the behavior:
- Start game as host.
- Move/teleport to boss.
- Wait until boss executes charge attack.
- Exception gets thrown each frame during charge attack
MissingComponentException: There is no 'Collider' attached to the "ImpBoss" game object, but a script is trying to access it.
You probably need to add a Collider to the game object "ImpBoss". Or your script needs to check if the component is attached before using it.
UnityEngine.Collider.get_bounds () (at <19391519260842408ff993819e8afdf3>:0)
BossRoom.ActionUtils.DetectNearbyEntities (System.Boolean wantPcs, System.Boolean wantNpcs, UnityEngine.Collider attacker, System.Single range, UnityEngine.RaycastHit[]& results) (at Assets/BossRoom/Scripts/Shared/Game/Action/ActionUtils.cs:60)
BossRoom.Server.TrampleAction.SimulateCollisionWithNearbyFoes () (at Assets/BossRoom/Scripts/Server/Game/Action/TrampleAction.cs:197)
BossRoom.Server.TrampleAction.Update () (at Assets/BossRoom/Scripts/Server/Game/Action/TrampleAction.cs:92)
BossRoom.Server.ActionPlayer.UpdateAction (BossRoom.Server.Action action) (at Assets/BossRoom/Scripts/Server/Game/Action/ActionPlayer.cs:315)
BossRoom.Server.ActionPlayer.Update () (at Assets/BossRoom/Scripts/Server/Game/Action/ActionPlayer.cs:290)
BossRoom.Server.ServerCharacter.Update () (at Assets/BossRoom/Scripts/Server/Game/Character/ServerCharacter.cs:249)
Environment (please complete the following information):
- OS: Windows 10
- Unity Version: 2020.3.12f1
- BossRoom Version: currently on sam/update-to-latest-NGO branch #55a7c9a838c0b4aca5de50f4739e6c0fbc724c33
Additional context
Add any other context about the problem here.
SamuelBellomo commented
@fernando-cortez could this be linked to your latest refactor?
fernando-cortez commented
@fernando-cortez could this be linked to your latest refactor?
Most definitely. A fix has been pushed for review.
LukeStampfli commented
This seems to fixed, closing