1 vote Vote

Forest Generator Doesn't Work

Unity 2019.3.2f1, MapMagic 2.0B6

After adding a Forest generator to the graph and connecting it to any sort of output generates following errors and the generation fails:

Thread failed: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Plugins.PositionMatrix.SetPosition (UnityEngine.Vector3 worldPos) [0x0004b] in C:\Dev\games\MM2\Assets\3rdParty\MapMagic\Tools\Runtime\Matrix\PositionMatrix.cs:46
at Plugins.PositionMatrix.AddTransitionsList (Plugins.TransitionsList trns, System.Single customHeight) [0x00005] in C:\Dev\games\MM2\Assets\3rdParty\MapMagic\Tools\Runtime\Matrix\PositionMatrix.cs:250
at MapMagic.Nodes.ObjectsGenerators.Forest200.Forest (Plugins.TransitionsList seedlings, Plugins.TransitionsList otherTrees, Plugins.Matrices.MatrixWorld soil, UnityEngine.Vector3 worldPos, UnityEngine.Vector3 worldSize, Plugins.Noise random, MapMagic.Products.StopToken stop) [0x00058] in C:\Dev\games\MM2\Assets\3rdParty\MapMagic\Runtime\Generators\Objects\ObjectsGenerators.cs:976
at MapMagic.Nodes.ObjectsGenerators.Forest200.Generate (MapMagic.Products.TileData data, MapMagic.Products.StopToken stop) [0x00078] in C:\Dev\games\MM2\Assets\3rdParty\MapMagic\Runtime\Generators\Objects\ObjectsGenerators.cs:957
at MapMagic.Nodes.Graph.GenerateRecursive (MapMagic.Nodes.Generator gen, MapMagic.Products.TileData data, MapMagic.Products.StopToken stop) [0x001a1] in C:\Dev\games\MM2\Assets\3rdParty\MapMagic\Runtime\Generators\Graph.cs:659
at MapMagic.Nodes.Graph.GenerateRecursive (MapMagic.Nodes.Generator gen, MapMagic.Products.TileData data, MapMagic.Products.StopToken stop) [0x00055] in C:\Dev\games\MM2\Assets\3rdParty\MapMagic\Runtime\Generators\Graph.cs:631
at MapMagic.Nodes.Graph.Generate (MapMagic.Products.TileData data, MapMagic.Products.StopToken stop) [0x00041] in C:\Dev\games\MM2\Assets\3rdParty\MapMagic\Runtime\Generators\Graph.cs:613
at MapMagic.Terrains.TerrainTile.Generate (MapMagic.Nodes.Graph graph, MapMagic.Terrains.TerrainTile tile, MapMagic.Terrains.TerrainTile+DetailLevel det, MapMagic.Products.StopToken stop) [0x00052] in C:\Dev\games\MM2\Assets\3rdParty\MapMagic\Runtime\Terrains\TerrainTile.cs:660
at MapMagic.Terrains.TerrainTile+c__DisplayClass38_1.b__0 () [0x00000] in C:\Dev\games\MM2\Assets\3rdParty\MapMagic\Runtime\Terrains\TerrainTile.cs:613
at Plugins.Tasks.ThreadManager.TaskThreadAction (Plugins.Tasks.ThreadManager+Task task) [0x00002] in C:\Dev\games\MM2\Assets\3rdParty\MapM

Pavel Hodoval , 25.02.2020, 01:33
Idea status: completed

Comments

Leave a comment