UCC + Pun addon + DIalogue System

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

UCC + Pun addon + DIalogue System

Post 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
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: UCC + Pun addon + DIalogue System

Post 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.
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: UCC + Pun addon + DIalogue System

Post by nathanj »

will do.

Thanks for the quick response!

Nathan
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: UCC + Pun addon + DIalogue System

Post 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.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: UCC + Pun addon + DIalogue System

Post by Tony Li »

Thanks for the update!
Post Reply