1 (edited by Rastar 2017-04-24 17:45:35)

Topic: IndexOutOfRangeException on generating textures

Just bought RWT and used it for the first time, so maybe it's me...

Created my first (rather large) terrain. Terrain generation works fine, but generating the textures throws

IndexOutOfRangeException: Array index is out of range.
InfinityCode.RealWorldTerrain.Generators.RealWorldTerrainTextureGenerator.GenerateTexture (InfinityCode.RealWorldTerrain.RealWorldTerrainItem item) (at Assets/Infinity Code/Real World Terrain/Scripts/Editor/Generators/RealWorldTerrainTextureGenerator.cs:163)
InfinityCode.RealWorldTerrain.Windows.RealWorldTerrainWindow.GenerateTextures (Int32 index) (at Assets/Infinity Code/Real World Terrain/Scripts/Editor/Windows/RealWorldTerrainWindow.cs:666)
InfinityCode.RealWorldTerrain.Windows.RealWorldTerrainWindow.Update () (at Assets/Infinity Code/Real World Terrain/Scripts/Editor/Windows/RealWorldTerrainWindow.cs:1033)
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)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
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:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:262)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)
UnityEditor.HostView.SendUpdate () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:330)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs:249)

Re: IndexOutOfRangeException on generating textures

Hello.

I just checked the texture generation, and it works well.
Please send a screenshot of your settings.
Perhaps the problem occurs only with some specific settings.

Kind Regards,
Infinity Code Team

Re: IndexOutOfRangeException on generating textures

Sure:

Post's attachments

Attachment icon Screenshot (3).png 82.75 kb, 20 downloads since 2017-04-24 

Re: IndexOutOfRangeException on generating textures

Thanks for the screenshot.
We found and fixed the problem.
The new version is already available through the built-in update system.

Kind Regards,
Infinity Code Team

Re: IndexOutOfRangeException on generating textures

Working fine now, thanks!