Hello AC Community,
I've been experimenting with the Myst-like 2D first person camera available in the downloads section, but I've been unable to run the sample scene. Pressing play in the editor gives me a sort of checker-board view of all the available nodes, and throws this error:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at :0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at :0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at :0)
AC.SpeechManager.SyncLanguageData () (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:3829)
AC.SpeechManager.Upgrade () (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:3977)
AC.RuntimeLanguages.TransferFromManager () (at Assets/AdventureCreator/Scripts/Speech/RuntimeLanguages.cs:671)
AC.RuntimeLanguages.OnInitPersistentEngine () (at Assets/AdventureCreator/Scripts/Speech/RuntimeLanguages.cs:53)
AC.StateHandler.Initialise (System.Boolean rebuildMenus) (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:111)
AC.KickStarter.SetPersistentEngine () (at Assets/AdventureCreator/Scripts/Game engine/KickStarter.cs:182)
AC.KickStarter.Initialise () (at Assets/AdventureCreator/Scripts/Game engine/KickStarter.cs:1138)
AC.MultiSceneChecker.Awake () (at Assets/AdventureCreator/Scripts/Game engine/MultiSceneChecker.cs:43)
Perhaps due to an update in AC?
I'm on AC 1.75.1 and Unity 2021.1.0f1
Any help greatly appreciated!
-M-
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
It may be - does viewing the Speech Manager first fix the issue?
I will investigate this on my end.
Viewing the speech manager gives the error I copy/pasted above, plus three more - these additional three trigger over and over as soon as you look at the speech manager (900+ times as I type this): They are:
NUMBER 1:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <695d1cc93cca45069c528c15c9fdd749>:0)
AC.SpeechManager.SyncLanguageData () (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:3847)
AC.SpeechManager.Upgrade () (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:3977)
AC.SpeechManager.IsTextTypeTranslatable (AC.AC_TextType textType) (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:3935)
AC.SpeechManager.ShowGUI (UnityEngine.Rect position) (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:358)
AC.AdventureCreator.OnGUI () (at Assets/AdventureCreator/Scripts/Managers/Editor/AdventureCreator.cs:266)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <0e11587263324259967daac4d577d226>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <0e11587263324259967daac4d577d226>:0)
UnityEditor.DockArea.OldOnGUI () (at <0e11587263324259967daac4d577d226>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
NUMBER 2:
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
NUMBER 3:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <695d1cc93cca45069c528c15c9fdd749>:0)
AC.SpeechManager.SyncLanguageData () (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:3847)
AC.SpeechManager.Upgrade () (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:3977)
AC.SpeechManager.IsTextTypeTranslatable (AC.AC_TextType textType) (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:3935)
AC.SpeechManager.ShowGUI (UnityEngine.Rect position) (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:358)
AC.AdventureCreator.OnGUI () (at Assets/AdventureCreator/Scripts/Managers/Editor/AdventureCreator.cs:266)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <0e11587263324259967daac4d577d226>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <0e11587263324259967daac4d577d226>:0)
UnityEditor.DockArea.OldOnGUI () (at <0e11587263324259967daac4d577d226>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <77325b850a65433b83103efc76a2d8f2>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <77325b850a65433b83103efc76a2d8f2>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <9ff04fda545c4aacb8dab659ad40b2f4>:0)
Thanks, recreated. This should be addressed in v1.75.2, which is the latest release.
Great, I'll give it a whirl!