Hello.
For one of my projects, when I click on Speech on the AC Game Editor tab, the tab goes blank and I get the error below repeatedly. I'm unable to do anything else and need to close down Unity and relaunch in order to get it to stop. I have no idea what it means or how to fix it, so any help will be greatly appreciated.
Thanks in advance
ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[System.String].get_Item (Int32 index) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:633)
AC.SpeechManager.LanguagesGUI () (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:621)
AC.SpeechManager.ShowGUI () (at Assets/AdventureCreator/Scripts/Managers/SpeechManager.cs:331)
AC.AdventureCreator.OnGUI () (at Assets/AdventureCreator/Scripts/Managers/Editor/AdventureCreator.cs:240)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Comments
Try re-downloading and importing AC from the Asset Store. Perhaps some of the files weren't imported.
Hello everyone,
I am popping out here following the topic, instead of opening a new one, because I believe is the same kind of thing of this topic, maybe.
(I don't think is connected to the other issue of the inventory I had earlier so I posted it here, I hope is ok.)
I am having this message in red on the build screen at the beginning of the game:
"ArgumentOutOfRangeException: Must be non-negative and less than the size of the collection Parameter name: index"
While I am trying to fix it on my own, since I have no idea what it is about I wonder if I could have any hint of what it is about in my case.
My AC version on the current project is the 1.81.4
Thanks in advance,
Best
Flavio
Apologies for the trouble.
I'll need the error message in full in order to address it, however. If you open up the Console window and select the message, it should have code references underneath.
It was my fault!
The problem arise when I removed Graphic Options from the menu list, I checked the log and I have seen that was pointing to GraphicOptions. I turned off the "ApplyGraphicOptions" and the error is gone.
Sorry for the inconvenience!