Hello you guys, hi Chris,
I'm totally puzzled. I was simply working on some dialogie in the actionlist window (including local variables) and out of the sudden when I hit play the screen stays black and when the scene starts the player is displayed way above the starting point. The weirdest thing: this now happens in every scene.
That's the alert:
ArgumentException: JSON must represent an object type.
UnityEngine.JsonUtility.FromJsonInternal (System.String json, System.Object objectToOverwrite, System.Type type) (at :0)
UnityEngine.JsonUtility.FromJson (System.String json, System.Type type) (at :0)
UnityEngine.JsonUtility.FromJson[T] (System.String json) (at :0)
UnityEngine.InputSystem.InputActionRebindingExtensions.LoadBindingOverridesFromJsonInternal (UnityEngine.InputSystem.IInputActionCollection2 actions, System.String json) (at ./Library/PackageCache/com.unity.inputsystem@57d0e36f6123/InputSystem/Actions/InputActionRebindingExtensions.cs:1265)
UnityEngine.InputSystem.InputActionRebindingExtensions.LoadBindingOverridesFromJson (UnityEngine.InputSystem.IInputActionCollection2 actions, System.String json, System.Boolean removeExisting) (at ./Library/PackageCache/com.unity.inputsystem@57d0e36f6123/InputSystem/Actions/InputActionRebindingExtensions.cs:1211)
AC.Templates.InputSystemIntegration.ControlsReader.LoadRebindings () (at Assets/AdventureCreator/Scripts/Templates/InputSystem/Scripts/ControlsReader.cs:347)
AC.Templates.InputSystemIntegration.ControlsReader.OnInitialiseScene () (at Assets/AdventureCreator/Scripts/Templates/InputSystem/Scripts/ControlsReader.cs:326)
AC.EventManager.Call_OnInitialiseScene () (at Assets/AdventureCreator/Scripts/Managers/EventManager.cs:2332)
AC.SaveSystem+d__56.MoveNext () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:822)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <31f3cd5c2a074982a9d5664e7709cac1>:0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
AC.SaveSystem:InitAfterLoad(Int32) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:794)
AC.MultiSceneChecker:RunStartProcess() (at Assets/AdventureCreator/Scripts/Game engine/MultiSceneChecker.cs:138)
AC.MultiSceneChecker:Start() (at Assets/AdventureCreator/Scripts/Game engine/MultiSceneChecker.cs:51)
I noticed that there was a thread about this some time ago, but it doesn't exactly fit this situation. Can anybody help me?
I'm everything but a coder...
My Input Manager version is: 1.18.0. AC is 1.85.5. Unity 6000.3.9f1.
All the best
Ptomaine
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
In a backup / duplicate project, try importing the latest release - it may be that this was an issue fixed in v1.86.
It looks related to the input rebindings feature of the Input System integration template. Does your Event System prefab's Controls Reader reference a defined String variable?
It's "InputRebindings".
No, sadly the update didn't fix it. Anything else I could try?
What's also happening is that the gane doesn't run the onStart AL. My character is supposed to switch idle, walk and talk. But he suddenly doesn't anymore.
If you opt to show realtime values in the Variables Manasger, what value does InputRebindings have? It may have somehow been set to an invalid value.
Try using the Save-game Manager (top of the Settings Manager) to clear your current Profile Data which should reset it, as the Variable should be linked to Options Data.
As the error kicks in upon startup, it may be that it's preventing the rest of AC's startup process from running. We'll need to fix the error message and see what the behaviour is afterwards.
The save game manager did the trick. I just deleted the last profile and everything was back to normal.
Thank you so much, Chris!
Hello again community,
though I thought everything would now be fixed I ran into the same error again. BUT only when I make a new build and run it.
Regarding the issue before I checked if there might be a save game. And it is. But I can't find a way to remove it. I checked with settings, I tried to find it under "user/appdata" but nothing.
Any idea how to fix this?
All the best
Solved it by deleting all local data in LocalLow\Unity\Editor.
No it starts clean.