
0
Naprawione
Occasional missing floor section
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) {
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)
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)
Customer support service by UserEcho
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.