# Dungeon Architect

**URL:** <https://forums.unrealengine.com/t/dungeon-architect/28094>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [April 22, 2015, 12:27pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094 "2015-04-22T12:27:43Z")\
**Posts on this page:** 20\
**Page:** 72

<div class="post-metadata">

**Author:** ![Justin.Dooley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/justin.dooley/32/1194553_2.png) [@Justin.Dooley](https://forums.unrealengine.com/u/Justin.Dooley)\
**Post date:** [December 22, 2016, 2:51pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1439 "2016-12-22T14:51:06Z")

</div>

> [@;641378](#):
>
> it’s been that way since the start. The paint tool needs more work. I’ll add a way to paint different types of cells (rooms, corridors etc) in the near future

That’s not going to be in the next few months I wouldn’t think. At least now I know I didn’t break things, I’ll take a look at the code and see if I can create a custom solution for it.

---

<div class="post-metadata">

**Author:** ![rctorres](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rctorres](https://forums.unrealengine.com/u/rctorres)\
**Post date:** [December 22, 2016, 11:51pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1440 "2016-12-22T23:51:47Z")

</div>

Thanks, . Looking forward to it 🙂 In the mean time it’s easy to toggle source control within unreal off/on for testing but we’re looking forward to the new implementation! Keep up the work!

---

<div class="post-metadata">

**Author:** ![DrinkThisPotion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DrinkThisPotion](https://forums.unrealengine.com/u/DrinkThisPotion)\
**Post date:** [December 23, 2016, 5:40pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1441 "2016-12-23T17:40:37Z")

</div>

> [@;603525](#):
>
> Past two days I’ve been experimenting with an alternative to the snap build process where the contents of the intermediate levels are streamed in, then they are moved to the main persistent level and the intermediate level is deleted. (to avoid creation of lots of streamed in levels). However in some cases it crashes the engine due to some tick errors in another thread and we cannot have that.
> 
> The world composition method (with intermediate level files) works fine and I’ll work on finalizing that

Did this ever end up getting built in? I’m doing an optimization pass and the ability to use level streaming would be huge for performance.

---

<div class="post-metadata">

**Author:** ![Pinworm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pinworm](https://forums.unrealengine.com/u/Pinworm)\
**Post date:** [December 26, 2016, 3:50am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1442 "2016-12-26T03:50:37Z")

</div>

Just purchased this pack. Liking it so far, might need help with a few things though that aren’t in the tutorials or have changed (for example some things can’t be broken to get data anymore)

To start, is there an easy way to get the starting position? or the starting room? or something like that? Basically I just want to set up a system that generates a map, then spawns my pawn in the starting location.

Also, using the Query thing always seems to return ints… IE get Random Cell of Type returns in an int… but I can’t find where to use that int to access the actual cell?

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [December 26, 2016, 7:41am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1443 "2016-12-26T07:41:46Z")

</div>

> [@DrinkThisPotion;642062](#):
>
> Did this ever end up getting built in? I’m doing an optimization pass and the ability to use level streaming would be huge for performance.

@DrinkThisPotion It was, but it causes problems with source control (as I have to create too many level assets to stream them in). I’ve scrapped it all and implemented it in blueprints and the early version is looking promising. I’ve learnt a lot about how the engine handles world composition in C++ while implementing it in the past. I’ll add world composition on top of the existing system at a later date

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [December 26, 2016, 8:19am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1444 "2016-12-26T08:19:42Z")

</div>

> [@Pinworm;642697](#):
>
> Just purchased this pack. Liking it so far, might need help with a few things though that aren’t in the tutorials or have changed (for example some things can’t be broken to get data anymore)
> 
> To start, is there an easy way to get the starting position? or the starting room? or something like that? Basically I just want to set up a system that generates a map, then spawns my pawn in the starting location.
> 
> Also, using the Query thing always seems to return ints… IE get Random Cell of Type returns in an int… but I can’t find where to use that int to access the actual cell?

@Pinworm, thank you for the purchase. You can find examples for this in the [Quick Start Guide](http://coderespawn.github.io/dungeon-architect-quick-start-ue4). The [Runtime demo](http://coderespawn.github.io/dungeon-architect-quick-start-ue4/stage/html/quick_start_guide_2.4+.html#build-a-dungeon-runtime) shows you how to place your pawn no a valid dungeon platform after it is built. Check the _[Query System Examples](http://coderespawn.github.io/dungeon-architect-quick-start-ue4/stage/html/quick_start_guide_2.4+.html#query-system-examples)_ to place start /end rooms in your dungeon

---

<div class="post-metadata">

**Author:** ![Pinworm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pinworm](https://forums.unrealengine.com/u/Pinworm)\
**Post date:** [December 26, 2016, 8:55am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1446 "2016-12-26T08:55:18Z")

</div>

I was making a few mistakes, thanks. I think I got much of it sorted now. I’m still having a few issues with runtime building (it’s spawning actors and lights outside the dungeon) but I’ve fixed my other errors so far so I’ll keep messing around

Edit: yeah I’ve fixed it by correcting an earlier error where I was doing things wrong. Content examples sorted me out. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [December 27, 2016, 9:14am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1447 "2016-12-27T09:14:12Z")

</div>

> [@Pinworm;642738](#):
>
> I was making a few mistakes, thanks. I think I got much of it sorted now. I’m still having a few issues with runtime building (it’s spawning actors and lights outside the dungeon) but I’ve fixed my other errors so far so I’ll keep messing around
> 
> Edit: yeah I’ve fixed it by correcting an earlier error where I was doing things wrong. Content examples sorted me out. Thanks 🙂

@Pinworm Glad to hear. If you want to spawn props outside your dungeon, have a look at the HellForge demo where I use a EmptySpace marker emitter to spawn rocks outside the dungeon.

You can use that concept to decorate the surroundings of your dungeons like this (trees, barrels, bushes etc):

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/c/e1ce067fd7bfaf720877ccad27a89dcb8a8351d0.jpeg)

---

<div class="post-metadata">

**Author:** ![Laurentius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Laurentius](https://forums.unrealengine.com/u/Laurentius)\
**Post date:** [December 27, 2016, 6:10pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1448 "2016-12-27T18:10:09Z")

</div>

I’m currently implementing a minimap for my grid builder dungeon (runtime) and I read somewhere (I can’t find it though) that I could use a different dungeon theme for the creation of the minimap (scenecapture2D) and then run the game with another theme(s).  
My dungeon already consists of 3 themes (entrance, exit and normal) and I wonder what a good approach for this would be?

Should I use two separate dungeon actors with normal and minimap themes using the same seed or try my luck with themereplacevolumes in one dungeon actor?

Any suggestions?  
Thanks, Lars

---

<div class="post-metadata">

**Author:** ![dkoding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dkoding](https://forums.unrealengine.com/u/dkoding)\
**Post date:** [December 27, 2016, 6:58pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1449 "2016-12-27T18:58:19Z")

</div>

@ It seems there is a bug with **instanced dungeons** and **clustered theming**. I use the clustered theming to change some materials based on it, and this works as long as the dungeon is not **instanced**. If I switch over to \*\*Instanced \*\*the material is switched out with the base material in my cluster theme.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7e06aa85](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7e06aa85](https://forums.unrealengine.com/u/anonymous_user_7e06aa85)\
**Post date:** [December 28, 2016, 12:31am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1450 "2016-12-28T00:31:57Z")

</div>

@ Just wondering if there is a way to tap into this procedural work programmatically rather than through blueprints? I’ve been using it and it’s been great, but it’d be nice to allow for even more objects through the marker emitters and setting those affinity values to something like a probability distribution. In any case, thanks very much for this and looking forward to what else you might be working on.

---

<div class="post-metadata">

**Author:** ![dkoding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dkoding](https://forums.unrealengine.com/u/dkoding)\
**Post date:** [December 28, 2016, 7:18am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1451 "2016-12-28T07:18:36Z")

</div>

@ Hello again - I am plagued witht this bug when opening my project:

UE4Editor\_DungeonArchitectRuntime!SceneProviderCommand\_CloneActor::ExecuteImpl() [d:\build++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\dungeonarchitect\source\dungeonarchitectruntime\private\core\sceneproviders\sceneprovidercommand.cpp:212]  
UE4Editor\_DungeonArchitectRuntime!FDungeonSceneProvider::RunGameThreadCommands() [d:\build++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\dungeonarchitect\source\dungeonarchitectruntime\private\core\sceneproviders\dungeonsceneprovider.cpp:90]  
UE4Editor\_DungeonArchitectRuntime!FDungeonBuilderTask::RunGameThreadCommands() [d:\build++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\dungeonarchitect\source\dungeonarchitectruntime\private\core\dungeon.cpp:298]  
UE4Editor\_DungeonArchitectRuntime!ADungeon::Tick() [d:\build++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\dungeonarchitect\source\dungeonarchitectruntime\private\core\dungeon.cpp:122]  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_Engine  
UE4Editor\_UnrealEd  
UE4Editor\_UnrealEd  
UE4Editor  
UE4Editor  
UE4Editor  
UE4Editor  
UE4Editor

ntdll

It seems to appear when UE4 crashes for some reason, and when reopening the project after this. When the project is reopened, a lot of the actor nodes in the dungeon theme is missing, and this I guess is what creates the error. I then have to remake my dungeon theme for the n-th time, which becomes annoying fast…

---

<div class="post-metadata">

**Author:** ![DrinkThisPotion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DrinkThisPotion](https://forums.unrealengine.com/u/DrinkThisPotion)\
**Post date:** [December 28, 2016, 5:30pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1452 "2016-12-28T17:30:32Z")

</div>

> [@;642728](#):
>
> @DrinkThisPotion It was, but it causes problems with source control (as I have to create too many level assets to stream them in). I’ve scrapped it all and implemented it in blueprints and the early version is looking promising. I’ve learnt a lot about how the engine handles world composition in C++ while implementing it in the past. I’ll add world composition on top of the existing system at a later date

That would be good, because currently I need to load maps or suffer performance hits. I was thinking once the new snap builder changes are out some level streaming might be possible using runtime generated streaming volumes between snaps?

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [December 29, 2016, 7:27am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1453 "2016-12-29T07:27:03Z")

</div>

> [@Laurentius;643148](#):
>
> I’m currently implementing a minimap for my grid builder dungeon (runtime) and I read somewhere (I can’t find it though) that I could use a different dungeon theme for the creation of the minimap (scenecapture2D) and then run the game with another theme(s).  
> My dungeon already consists of 3 themes (entrance, exit and normal) and I wonder what a good approach for this would be?
> 
> Should I use two separate dungeon actors with normal and minimap themes using the same seed or try my luck with themereplacevolumes in one dungeon actor?
> 
> Any suggestions?  
> Thanks, Lars

@Laurentius, I have a game in Unity that has a minimap using this concept and it works well. I create another minimap dungeon (with the same configuration) somewhere far away. A simpler theme is applied to this minimap dungeon so it looks good at a smaller scale. I capture that in a Render texture and display it on screen (check lower right corner)

watch?v=kB0TxSByIF8

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [December 29, 2016, 8:05am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1454 "2016-12-29T08:05:27Z")

</div>

> [@dkoding;643335](#):
>
> @ Hello again - I am plagued witht this bug when opening my project:
> 
> UE4Editor\_DungeonArchitectRuntime!SceneProviderCommand\_CloneActor::ExecuteImpl() [d:\build++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\dungeonarchitect\source\dungeonarchitectruntime\private\core\sceneproviders\sceneprovidercommand.cpp:212]  
> UE4Editor\_DungeonArchitectRuntime!FDungeonSceneProvider::RunGameThreadCommands() [d:\build++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\dungeonarchitect\source\dungeonarchitectruntime\private\core\sceneproviders\dungeonsceneprovider.cpp:90]  
> UE4Editor\_DungeonArchitectRuntime!FDungeonBuilderTask::RunGameThreadCommands() [d:\build++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\dungeonarchitect\source\dungeonarchitectruntime\private\core\dungeon.cpp:298]  
> UE4Editor\_DungeonArchitectRuntime!ADungeon::Tick() [d:\build++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\dungeonarchitect\source\dungeonarchitectruntime\private\core\dungeon.cpp:122]  
> UE4Editor\_Engine  
> UE4Editor\_Engine  
> UE4Editor\_Engine  
> UE4Editor\_Engine  
> UE4Editor\_Core  
> UE4Editor\_Core  
> UE4Editor\_Core  
> UE4Editor\_Engine  
> UE4Editor\_Engine  
> UE4Editor\_Engine  
> UE4Editor\_Engine  
> UE4Editor\_UnrealEd  
> UE4Editor\_UnrealEd  
> UE4Editor  
> UE4Editor  
> UE4Editor  
> UE4Editor  
> UE4Editor
> 
> ntdll
> 
> It seems to appear when UE4 crashes for some reason, and when reopening the project after this. When the project is reopened, a lot of the actor nodes in the dungeon theme is missing, and this I guess is what creates the error. I then have to remake my dungeon theme for the n-th time, which becomes annoying fast…

@dkoding I’ve added a null check on that function which was probably causing this error. As a workaround for now, when you level loads, select the dungeon and click destroy, then save the level

The actor issue should also be solved. The theme editor now lets each node initialize itself when it loads, and the actor node should initialize properly

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [December 29, 2016, 8:07am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1455 "2016-12-29T08:07:36Z")

</div>

> [@daeilkim;643252](#):
>
> @ Just wondering if there is a way to tap into this procedural work programmatically rather than through blueprints? I’ve been using it and it’s been great, but it’d be nice to allow for even more objects through the marker emitters and setting those affinity values to something like a probability distribution. In any case, thanks very much for this and looking forward to what else you might be working on.

@daeilkim, you can directly access and use the dungeon actor and all the other features from C++. I’ll create a programming guide with examples

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [December 29, 2016, 8:17am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1456 "2016-12-29T08:17:46Z")

</div>

> [@dkoding;643158](#):
>
> @ It seems there is a bug with **instanced dungeons** and **clustered theming**. I use the clustered theming to change some materials based on it, and this works as long as the dungeon is not **instanced**. If I switch over to \*\*Instanced \*\*the material is switched out with the base material in my cluster theme.

@dkoding I just tested with the sample scene and it works fine for me. Make sure your material has “bUsedWithInstancedStaticMeshes” flag set

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [December 29, 2016, 10:24am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1457 "2016-12-29T10:24:42Z")

</div>

Blueprint based snap builder

[![](https://i.imgur.com/SPxLbRq.jpg) ](https://i.imgur.com/SPxLbRq.jpg)

---

<div class="post-metadata">

**Author:** ![Laurentius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Laurentius](https://forums.unrealengine.com/u/Laurentius)\
**Post date:** [December 29, 2016, 3:03pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1458 "2016-12-29T15:03:37Z")

</div>

> [@;643728](#):
>
> @Laurentius, I have a game in Unity that has a minimap using this concept and it works well. I create another minimap dungeon (with the same configuration) somewhere far away. A simpler theme is applied to this minimap dungeon so it looks good at a smaller scale.

Thanks for your suggestion - I did this (SceneCapture2D “somewhere far away”) in order to show equipment on an inventory character, but wondered if there was something special with DA that I could use. I’ll try this approach for the minimap, too.

I just make a snapshot of the level once the dungeon is first rendered - how would I destroy the minimap dungeon after the snapshot (and where?) ?

---

<div class="post-metadata">

**Author:** ![Warcabbit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Warcabbit](https://forums.unrealengine.com/u/Warcabbit)\
**Post date:** [December 30, 2016, 6:37pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1459 "2016-12-30T18:37:28Z")

</div>

> [@;643769](#):
>
> Blueprint based snap builder
> 
> [http://i.imgur.com/SPxLbRq.jpg](http://i.imgur.com/SPxLbRq.jpg)

Wow. Just wow. This is what I want to do, man. This is my everything.

[Previous page](https://forums.unrealengine.com/t/dungeon-architect/28094.md?page=71)

[Next page](https://forums.unrealengine.com/t/dungeon-architect/28094.md?page=73)
