Howdy,
Have upgraded my project to Unity 2020.3.11f1 so I can upgrade to UCC Latest version.
Most things are working, but attempting to fire weapons I get two errors I believe are related as they occur upon firing.
It seems like the Pun Object Pooling is perhaps not working correctly somehow?
The projectiles do not fire correctly - what seems to occur based on what I've observed:
A 'single' shot results in error#1 below
An 'automatic' fire shot fires the entire clip despite releasing 'fire1' input, and results in both error#1 and error#2
------ERROR#1
NotImplementedException: The method or operation is not implemented.
Opsive.UltimateCharacterController.AddOns.Multiplayer.PhotonPun.Game.PunObjectPool.NetworkSpawnInternal (UnityEngine.GameObject original, UnityEngine.GameObject instanceObject, System.Boolean sceneObject) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Add-Ons/Multiplayer/PhotonPUN/Scripts/Game/PunObjectPool.cs:125)
Opsive.UltimateCharacterController.Networking.Game.NetworkObjectPool.NetworkSpawn (UnityEngine.GameObject original, UnityEngine.GameObject instanceObject, System.Boolean sceneObject) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Networking/NetworkObjectPool.cs:53)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.ProjectileFire (System.Single strength) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:842)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.Fire (System.Single strength) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:774)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.UseItem () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:694)
Opsive.UltimateCharacterController.Character.Abilities.Items.Use.LateUpdate () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Items/Use.cs:638)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateActiveAbilities (Opsive.UltimateCharacterController.Character.Abilities.Ability[] abilities, System.Int32& abilityCount) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1042)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateUltimateLocomotion () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1028)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.UpdatePositionAndRotation () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:843)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.UpdatePositionAndRotation (System.Boolean fromAnimatorMove) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:517)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.OnAnimatorMove () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:1453)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.OnAnimatorMove () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1772)
------ ERROR#2
ArgumentException: An item with the same key has already been added. Key: MyVulcanProjectile(Clone) (UnityEngine.GameObject)
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Opsive.UltimateCharacterController.AddOns.Multiplayer.PhotonPun.Game.PunObjectPool.NetworkSpawnInternal (UnityEngine.GameObject original, UnityEngine.GameObject instanceObject, System.Boolean sceneObject) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Add-Ons/Multiplayer/PhotonPUN/Scripts/Game/PunObjectPool.cs:119)
Opsive.UltimateCharacterController.Networking.Game.NetworkObjectPool.NetworkSpawn (UnityEngine.GameObject original, UnityEngine.GameObject instanceObject, System.Boolean sceneObject) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Networking/NetworkObjectPool.cs:53)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.ProjectileFire (System.Single strength) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:842)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.Fire (System.Single strength) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:774)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.UseItem () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:694)
Opsive.UltimateCharacterController.Character.Abilities.Items.Use.LateUpdate () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Items/Use.cs:638)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateActiveAbilities (Opsive.UltimateCharacterController.Character.Abilities.Ability[] abilities, System.Int32& abilityCount) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1042)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateUltimateLocomotion () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1028)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.UpdatePositionAndRotation () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:843)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.UpdatePositionAndRotation (System.Boolean fromAnimatorMove) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:517)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.OnAnimatorMove () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:1453)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.OnAnimatorMove () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1772)
Have upgraded my project to Unity 2020.3.11f1 so I can upgrade to UCC Latest version.
Most things are working, but attempting to fire weapons I get two errors I believe are related as they occur upon firing.
It seems like the Pun Object Pooling is perhaps not working correctly somehow?
The projectiles do not fire correctly - what seems to occur based on what I've observed:
A 'single' shot results in error#1 below
An 'automatic' fire shot fires the entire clip despite releasing 'fire1' input, and results in both error#1 and error#2
------ERROR#1
NotImplementedException: The method or operation is not implemented.
Opsive.UltimateCharacterController.AddOns.Multiplayer.PhotonPun.Game.PunObjectPool.NetworkSpawnInternal (UnityEngine.GameObject original, UnityEngine.GameObject instanceObject, System.Boolean sceneObject) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Add-Ons/Multiplayer/PhotonPUN/Scripts/Game/PunObjectPool.cs:125)
Opsive.UltimateCharacterController.Networking.Game.NetworkObjectPool.NetworkSpawn (UnityEngine.GameObject original, UnityEngine.GameObject instanceObject, System.Boolean sceneObject) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Networking/NetworkObjectPool.cs:53)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.ProjectileFire (System.Single strength) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:842)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.Fire (System.Single strength) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:774)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.UseItem () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:694)
Opsive.UltimateCharacterController.Character.Abilities.Items.Use.LateUpdate () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Items/Use.cs:638)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateActiveAbilities (Opsive.UltimateCharacterController.Character.Abilities.Ability[] abilities, System.Int32& abilityCount) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1042)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateUltimateLocomotion () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1028)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.UpdatePositionAndRotation () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:843)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.UpdatePositionAndRotation (System.Boolean fromAnimatorMove) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:517)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.OnAnimatorMove () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:1453)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.OnAnimatorMove () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1772)
------ ERROR#2
ArgumentException: An item with the same key has already been added. Key: MyVulcanProjectile(Clone) (UnityEngine.GameObject)
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Opsive.UltimateCharacterController.AddOns.Multiplayer.PhotonPun.Game.PunObjectPool.NetworkSpawnInternal (UnityEngine.GameObject original, UnityEngine.GameObject instanceObject, System.Boolean sceneObject) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Add-Ons/Multiplayer/PhotonPUN/Scripts/Game/PunObjectPool.cs:119)
Opsive.UltimateCharacterController.Networking.Game.NetworkObjectPool.NetworkSpawn (UnityEngine.GameObject original, UnityEngine.GameObject instanceObject, System.Boolean sceneObject) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Networking/NetworkObjectPool.cs:53)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.ProjectileFire (System.Single strength) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:842)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.Fire (System.Single strength) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:774)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.UseItem () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableWeapon.cs:694)
Opsive.UltimateCharacterController.Character.Abilities.Items.Use.LateUpdate () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Items/Use.cs:638)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateActiveAbilities (Opsive.UltimateCharacterController.Character.Abilities.Ability[] abilities, System.Int32& abilityCount) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1042)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateUltimateLocomotion () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1028)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.UpdatePositionAndRotation () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:843)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.UpdatePositionAndRotation (System.Boolean fromAnimatorMove) (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:517)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.OnAnimatorMove () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:1453)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.OnAnimatorMove () (at B:/== Unity Projects ==/dp44 11jun try 2020/Protocol 44 URP Copy 2/Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1772)