Page 1 of 1

UCC + Pun addon + DIalogue System

Posted: Thu Mar 26, 2020 3:33 pm
by nathanj
Hello Tony,

Hopefully this isn't too big of a question.

I'm expolring setting up a multiplayer system with UCC and their Pun addon. Out of the box if I talk to an NPC I get these errors:

Code: Select all

Error: The object Bennelong must have a NetworkInteractable component.
UnityEngine.Debug:LogError(Object)
Opsive.UltimateCharacterController.Traits.Interactable:Interact(GameObject) (at Assets/Opsive/UltimateCharacterController/Scripts/Traits/Interactable.cs:91)
Opsive.UltimateCharacterController.Character.Abilities.Interact:DoInteract() (at Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Interact.cs:240)
Opsive.UltimateCharacterController.Game.ScheduledEvent:Invoke() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:80)
Opsive.UltimateCharacterController.Game.Scheduler:Invoke(ScheduledEventBase, Int32) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:661)
Opsive.UltimateCharacterController.Game.Scheduler:FixedUpdate() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:329)

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
Opsive.UltimateCharacterController.Traits.Interactable.Interact (UnityEngine.GameObject character) (at Assets/Opsive/UltimateCharacterController/Scripts/Traits/Interactable.cs:94)
Opsive.UltimateCharacterController.Character.Abilities.Interact.DoInteract () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Interact.cs:240)
Opsive.UltimateCharacterController.Game.ScheduledEvent.Invoke () (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:80)
Opsive.UltimateCharacterController.Game.Scheduler.Invoke (Opsive.UltimateCharacterController.Game.ScheduledEventBase scheduledEvent, System.Int32 index) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:661)
Opsive.UltimateCharacterController.Game.Scheduler.FixedUpdate () (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:329)
Have you ever tried setting up DS within this setup? Any suggestions about how to approach this? I'm new to Pun and am trying to get my head around the system.

Any help or pointers is appreciated.

Thanks,
Nathan

Re: UCC + Pun addon + DIalogue System

Posted: Thu Mar 26, 2020 3:57 pm
by Tony Li
Hi Nathan,

No, I haven't tried UCC's PUN addon. It looks like a general UCC / PUN interaction error, not anything specific to the Dialogue System -- at least not at this point. Once you get past this error, it's possible you might find something that needs to be handled on the Dialogue System side.

Try setting up a very simple non-Dialogue System interactable. Make sure you can interact with it. If you can, then compare it to the interactable you set up for dialogue.

Re: UCC + Pun addon + DIalogue System

Posted: Thu Mar 26, 2020 3:59 pm
by nathanj
will do.

Thanks for the quick response!

Nathan

Re: UCC + Pun addon + DIalogue System

Posted: Fri Apr 10, 2020 6:24 am
by nathanj
Forgot to update this thread when I solved the issue.

What happened was when I converted the NPC using Opsive's PUN converter it didn't add a PunInteractableMonitor component which prevented the interactable component from recieving a message.

Adding the PunInteractableMonitor, ontop of the already added PUN components, is all that is needed to make npcs interactable with Pixel Crushers stuff.

Re: UCC + Pun addon + DIalogue System

Posted: Fri Apr 10, 2020 8:18 am
by Tony Li
Thanks for the update!