0
Fixed

Occasional missing floor section

hoodoo 9 jaar geleden bijgewerkt door Daedalus 9 jaar geleden 5
I often see one floor tile missing in my dungeon, sometimes in a room and sometimes in a corridor.  I have not been able to figure out why or how to fix it.  Any ideas?

I'm using the fantasy dungeon example and I do get several warnings like the following.  I am generating the dungeon at runtime using C# script:

m_dungeonInstance = (GameObject) Instantiate(m_dungeonPrefab, transform.position, transform.rotation);
if (m_dungeonInstance != null) {
m_genBehavior = m_dungeonInstance.GetComponent<GeneratorBehaviour>();
m_genBehavior.Generate();
}

Console:

Map is too small. Decreasing max room height to 5
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:LogWarning(Object)
RoomGenerator:CheckDimensions(VirtualMap) (at Assets/Daedalus_Core/Scripts/Generation/RoomGenerator.cs:24)
RoomGenerator:CreateRooms(VirtualMap) (at Assets/Daedalus_Core/Scripts/Generation/RoomGenerator.cs:43)
VirtualMap:CreateRooms() (at Assets/Daedalus_Core/Scripts/Generation/VirtualMap.cs:173)
VirtualMapGenerator:Generate(Int32, Int32, Boolean, Int32, VirtualMap) (at Assets/Daedalus_Core/Scripts/Generation/VirtualMapGenerator.cs:41)
GeneratorBehaviour:Generate() (at Assets/Daedalus_Core/Scripts/Generation/GeneratorBehaviour.cs:124)
FireItUp:Start() (at Assets/Scripts/FireItUp.cs:22)


(Filename: Assets/Daedalus_Core/Scripts/Generation/RoomGenerator.cs Line: 24)


Map is too small. Decreasing max room width to 3
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:LogWarning(Object)
RoomGenerator:CheckDimensions(VirtualMap) (at Assets/Daedalus_Core/Scripts/Generation/RoomGenerator.cs:28)
RoomGenerator:CreateRooms(VirtualMap) (at Assets/Daedalus_Core/Scripts/Generation/RoomGenerator.cs:43)
VirtualMap:CreateRooms() (at Assets/Daedalus_Core/Scripts/Generation/VirtualMap.cs:173)
VirtualMapGenerator:Generate(Int32, Int32, Boolean, Int32, VirtualMap) (at Assets/Daedalus_Core/Scripts/Generation/VirtualMapGenerator.cs:41)
GeneratorBehaviour:Generate() (at Assets/Daedalus_Core/Scripts/Generation/GeneratorBehaviour.cs:124)
FireItUp:Start() (at Assets/Scripts/FireItUp.cs:22)
Under review
Looks like the map is too small (as stated in the debug message); try with a slightly larger map size or decrease the number of rooms.
Thank you!  I made the map larger and now it's working.  I've been changing all the various settings and not sure exactly how to best set each option as sometimes I end up with a dungeon where I can't seem to find a way to the next story up (I'm using a 5 story dungeon).  At the moment I seem to have hit upon a good combination of settings and everything is working now.  Any hints on how to correctly adjust the settings or best practices?
Well, that particular error was telling you that there was not enough space to create your map the way you wanted; you could have made the map larger (Map Width / Map Length), or maybe reducing the number of rooms and/or the size of the rooms themselves would help. The missing floor indicates that the generation process was stopped abruptly by an error.

There are no really "best practices" or particular settings, it really depends on the type of dungeon you're after; for starters, you may want to give a look at the different example scenes (and maps) included with the package, just to get the grasps
of the generation parameters.
Hello, this issue is totally resolved now for me, so it can be marked as resolved or closed. Thank you!