skinwalker
Member
Hi,
I've noticed that I get this exception sometimes (using UIS + UCC for my rifle), because of likely a corrupted save file, but still I'd rather fix it. So what happens is when I load my character I call this
This is the full error and as it says m_ItemParameterExists is actually NULL (its not initialized in its Awake function).
I renamed my save file then gave it back the original name and now the error seems to be gone, but I've seen it reported multiple times during the months. The ChildAnimatorMonitor we are referting to is of my Rifle spawned by UIS.
I've noticed that I get this exception sometimes (using UIS + UCC for my rifle), because of likely a corrupted save file, but still I'd rather fix it. So what happens is when I load my character I call this
I'm pretty sure this code is causing it because when I delayed it with 2 seconds the error was gone. I tried to setPositionAndRotation without using the snapAnimator and stopAbilities function but the error was still there. It points to the game object with the name "Game" that holds the managers.private void LoadDefaultCheckpoint(Transform theDefaultCheckpointTransform)
{
SetPositionAndRotation(theDefaultCheckpointTransform);
}
public void SetPositionAndRotation(Transform tr)
{
_ucc.SetPositionAndRotation(tr.position, tr.rotation, _snapAnimator, _stopAllAbilities);
}
This is the full error and as it says m_ItemParameterExists is actually NULL (its not initialized in its Awake function).
NullReferenceException: Object reference not set to an instance of an objectOpsive.UltimateCharacterController.Character.ChildAnimatorMonitor.SetItemIDParameter (System.Int32 slotID, System.Int32 value) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/ChildAnimatorMonitor.cs:492)Opsive.UltimateCharacterController.Items.CharacterItem.SetItemIDParameter (System.Int32 slotID, System.Int32 value) (at Assets/Opsive/UltimateCharacterController/Scripts/Items/CharacterItem.cs:1108)Opsive.UltimateCharacterController.Character.AnimatorMonitor.SetItemIDParameter (System.Int32 slotID, System.Int32 value) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/AnimatorMonitor.cs:933)Opsive.UltimateCharacterController.Character.AnimatorMonitor.UpdateItemIDParameters () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/AnimatorMonitor.cs:1231)Opsive.UltimateCharacterController.Character.AnimatorMonitor.UpdateAnimatorParameters () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/AnimatorMonitor.cs:439)Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.UpdateCharacter () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:595)Opsive.UltimateCharacterController.Character.CharacterLocomotion.Move (System.Single horizontalMovement, System.Single forwardMovement, System.Single deltaYawRotation) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:565)Opsive.UltimateCharacterController.SimulationManager+SmoothedCharacter.Move (System.Boolean preMove) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/SimulationManager.cs:169)Opsive.UltimateCharacterController.SimulationManager.MoveCharacters (System.Boolean preMove, System.Single interpAmount) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/SimulationManager.cs:723)Opsive.UltimateCharacterController.SimulationManager.FixedUpdate () (at Assets/Opsive/UltimateCharacterController/Scripts/Game/SimulationManager.cs:671)
I renamed my save file then gave it back the original name and now the error seems to be gone, but I've seen it reported multiple times during the months. The ChildAnimatorMonitor we are referting to is of my Rifle spawned by UIS.