Advanced KCC Addon Errors
Options
Hi,
The Advanced KCC Addon sample works fine but when you build and run a host and then start a client in the Unity editor, it throws out a heap of errors in the console (see below). It seems that when more than one client is connected these errors occur as you only get them once a second client has connected. Starting one host/client does not throw any errors.
It seems to me that there is a check missing somewhere for Input Authority in the example. Is there a solution to fix this?
InvalidOperationException: Fixed input is available only on State & Input authority! Example.PlayerInput.CheckFixedAccess (System.Boolean checkStage) (at Assets/Example/Scripts/Player/PlayerInput.cs:603) Example.PlayerInput.get_FixedInput () (at Assets/Example/Scripts/Player/PlayerInput.cs:20) Example.SimplePlayer.FixedUpdateNetwork () (at Assets/Example/Scripts/Player/SimplePlayer.cs:28) Fusion.SimulationBehaviourUpdater.InvokeFixedUpdateNetwork (Fusion.SimulationStages stage, Fusion.SimulationModes mode) (at Fusion/Fusion.Runtime/Components/SimulationBehaviourUpdater.cs:157) UnityEngine.Debug:LogException(Exception) Fusion.FusionUnityLogger:LogException(String, DefaultContext&, Exception) (at Assets/Photon/Fusion/Scripts/FusionUnityLogger.cs:139) Fusion.Log:Exception(Exception) (at Fusion/Fusion.Common/Log.cs:103) Fusion.SimulationBehaviourUpdater:InvokeFixedUpdateNetwork(SimulationStages, SimulationModes) (at Fusion/Fusion.Runtime/Components/SimulationBehaviourUpdater.cs:169) Fusion.NetworkRunner:Fusion.Simulation.ICallbacks.OnTick() (at Fusion/Fusion.Runtime/Runner/NetworkRunner.SimulationCallbacks.cs:319) Fusion.Simulation:InvokeTick(SimulationStages, Boolean) (at Fusion/Fusion.Runtime/Simulation/Simulation.cs:1278) Fusion.Simulation:StepSimulation(SimulationStages, Boolean, Boolean, Boolean) (at Fusion/Fusion.Runtime/Simulation/Simulation.cs:485) Fusion.Client:RunClientSidePredictionLoop(Int32, SimulationStages) (at Fusion/Fusion.Runtime/Simulation/Simulation.Client.cs:160) Fusion.Client:BeforeSimulation() (at Fusion/Fusion.Runtime/Simulation/Simulation.Client.cs:240) Fusion.Simulation:Update(Double) (at Fusion/Fusion.Runtime/Simulation/Simulation.cs:896) Fusion.NetworkRunner:UpdateInternal(Double) (at Fusion/Fusion.Runtime/Runner/NetworkRunner.cs:1154) Fusion.NetworkRunnerUpdater:InvokeUpdate() (at Fusion/Fusion.Runtime/Runner/NetworkRunnerUpdater.cs:75)
0