DungeonGenerator icon indicating copy to clipboard operation
DungeonGenerator copied to clipboard

If Room Count is Low, Generation Fails

Open Snow-Okami opened this issue 1 year ago • 1 comments

It also seems if I try to change any of the Size, or Room Max Size the generation also fails.

It fails here: ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index System.Collections.Generic.List 1[T].get_Item (System.Int32 index) (at <0de99929796b4095b47389e59e446fbd>:0) Generator3D.CreateHallways () (at Assets/__PROJECT__/Code/ProcGen3D/Code/3D/Generator3D.cs:181)

It seems the delaunay algorithm is failing to find any edges during the triangulate process as delaunay.Edges is 0.

Snow-Okami avatar Jul 09 '23 02:07 Snow-Okami