- Home /
 
               Question by 
               FullHeartGames · Nov 21, 2019 at 10:38 PM · 
                inputinputmanagerpreview  
              
 
              Input System preview.3 - Lots of errors
I am trying to use the preview input system and things were going good until I started Input manager for local multiplayer. I am getting many errors but the worst is below. There are some other errors with this and it happen when I am connecting and disconnecting controls. When this happens I am trying to remove the player from the game but this error prevents that from happening.
 IndexOutOfRangeException: Index was outside the bounds of the array.
 UnityEngine.InputSystem.Users.InputUser.AddDeviceToUser (System.Int32 userIndex, UnityEngine.InputSystem.InputDevice device, System.Boolean asLostDevice, System.Boolean dontUpdateControlScheme) (at Library/PackageCache/com.unity.inputsystem@1.0.0-preview.3/InputSystem/Plugins/Users/InputUser.cs:1102)
 UnityEngine.InputSystem.Users.InputUser.OnDeviceChange (UnityEngine.InputSystem.InputDevice device, UnityEngine.InputSystem.InputDeviceChange change) (at Library/PackageCache/com.unity.inputsystem@1.0.0-preview.3/InputSystem/Plugins/Users/InputUser.cs:1509)
 UnityEngine.InputSystem.InputManager.RemoveDevice (UnityEngine.InputSystem.InputDevice device, System.Boolean keepOnListOfAvailableDevices) (at Library/PackageCache/com.unity.inputsystem@1.0.0-preview.3/InputSystem/InputManager.cs:1236)
 UnityEngine.InputSystem.InputManager.OnUpdate (UnityEngine.InputSystem.LowLevel.InputUpdateType updateType, UnityEngine.InputSystem.LowLevel.InputEventBuffer& eventBuffer) (at Library/PackageCache/com.unity.inputsystem@1.0.0-preview.3/InputSystem/InputManager.cs:2613)
 UnityEngine.InputSystem.LowLevel.NativeInputRuntime+<>c__DisplayClass7_0.<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType updateType, UnityEngineInternal.Input.NativeInputEventBuffer* eventBufferPtr) (at Library/PackageCache/com.unity.inputsystem@1.0.0-preview.3/InputSystem/NativeInputRuntime.cs:64)
 UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
 UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr) (at C:/buildslave/unity/build/Modules/Input/Private/Input.cs:120)
More errors

 
                 
                capture.jpg 
                (121.8 kB) 
               
 
              
               Comment
              
 
               
              Also got this messing with it more.
 Should not get here
 UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:b__0(NativeInputUpdateType, NativeInputEventBuffer*)
 UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr) (at C:/buildslave/unity/build/$$anonymous$$odules/Input/Private/Input.cs:120)
Answer by FullHeartGames · Nov 22, 2019 at 04:45 AM
I got rid of a lot of problems doing two things.
- I was deleting the player the input manager created when a player disconnected 
- I did not limit the amount of players on the input manager 
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                