# 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:** 88

<div class="post-metadata">

**Author:** ![fuerogames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fuerogames](https://forums.unrealengine.com/u/fuerogames)\
**Post date:** [May 28, 2017, 9:03am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1762 "2017-05-28T09:03:18Z")

</div>

> [@DrinkThisPotion;714766](#):
>
> Hi,  
> I think it would be very useful to have a corner marker emitter. There are some edge cases I’m having trouble accounting for using the spatial constraints. What if I want to select all markers except for in room corners, for example? Also if I want to try to find the ‘middle’ of a set of wall markers, which would be very useful for decoration and lighting. Any ideas?
> 
> Maybe there’s some way to do it that I’m missing. 's a couple of illustrations of things I’d like to do. By the way, the room free edge marker you wrote sometimes seemingly spawns in corridors and strange places. As the first thought I had was to try to use that marker.
> 
> Ex1. Select everything but the corners. (wall markers)
> 
> Ex2. Not sure how to describe this, but I’d like to select markers in this configuration as well.

I can handle that.  
For the floor make new tile and place it before the normal floor. make it consume on spawn. make it call a new marker - call it whatever like “FloorCorner”. Add the floor corner to the graph and simply add a normal floor tile there. now… make sure that the floor corner marker is spawned ONLY on spartial constrait for corner spawning shopwed a few posts back! this way you will have consistent floor however you will have a corner marker in every floor corner! 🙂 Now simply use of the “is near marker” functionality to NOT spawn deco near corners 🙂 hope that helps.

I need a little help. Getting into the dungeon architect shows me more and more functionality and new ways to use it every day. I am using multiple marker spawners like in the fire level demo mixed with theme override. However I run into a problem. Not with the plugin but with fixing some functionality.

I spawn instanced dungeon as my dungeon is well… buildings. And in those buildings I have walls floor etc - as instanced meshes. Its very efective and lightweight. However inside those buildings another theme is spawning loot. That can’t be instanced. However it must spawn loot acordingly to the rules regarding constraints, is near etc of the building itself. I dont want to spawn loot mid air or on furniture that doesn’t exist. How to do that? How to make sure I can spawn instanced walls and floors and later on top of those spawn actors?  
Socnd question - Can I make a grid dungeon with all coredoors and rooms forced to be nex tto another? with no closed free space between them? I can easily achieve it with room volumes placed in close aproximation by hand, but cant find a sweetspot for dungeon random creation.

---

<div class="post-metadata">

**Author:** ![BMatej](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BMatej](https://forums.unrealengine.com/u/BMatej)\
**Post date:** [May 29, 2017, 8:32pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1765 "2017-05-29T20:32:37Z")

</div>

stairs acting crazy

hello, how to fix this? getting this issue on almost every seed, am i missing something?

---

<div class="post-metadata">

**Author:** ![Aladin\_Sane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aladin\_Sane](https://forums.unrealengine.com/u/Aladin_Sane)\
**Post date:** [May 29, 2017, 10:18pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1766 "2017-05-29T22:18:10Z")

</div>

ok I give up. How to I access the source code?

---

<div class="post-metadata">

**Author:** ![Aladin\_Sane](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aladin\_Sane](https://forums.unrealengine.com/u/Aladin_Sane)\
**Post date:** [May 29, 2017, 10:25pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1767 "2017-05-29T22:25:03Z")

</div>

Nevermind. I figured it out. Sorry for the noise.

I did not see the marketplace folder…

C:\Program Files\Epic Games\UE\_4.15\Engine\Plugins\Marketplace\DungeonArchitect\Source

---

<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:** [May 29, 2017, 10:43pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1768 "2017-05-29T22:43:11Z")

</div>

> [@fuerogames;715409](#):
>
> @DrintThisPotion - Combine the spartial constrain for floor corner - there is an example a few posts back by that works really well! You can mark all corners and spawn things “near those markers” or spawn void elements near the market making it empty. You can also use the spartial constrain from my answear for pillars corner detection.  
> [MENTION=28980][/MENTION] - How to make a dungeon that is instanced meshes and then spawn powerups that are actors on top of it? not instanced, but use certain rules of the dungeon. I am using the same construction as file land spliting the dungeons. however its still one dungeon on one rule set.  
> Maybe if its 2 dungeons and one is instanced and one is not? but they use the same random? But Im afraid on the performance to spawn every dungeon twice.

Interesting approach. Hadn’t thought about using “near” or “not near” in conjunction with the corner markers to get at the center-most markers.  
By the way, there’s a corner marker emitter example in the example kit which you could use instead of the ground marker trick.

I am going to give what you’re saying a try.

For the corridors, though, there can be a ton of space between the centermost ground / wall markers and the corners.

Anyway I’m going to give it a try and see how it comes out.

Thanks!

---

<div class="post-metadata">

**Author:** ![BMatej](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BMatej](https://forums.unrealengine.com/u/BMatej)\
**Post date:** [May 30, 2017, 7:02am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1769 "2017-05-30T07:02:05Z")

</div>

Stairs are all crazy

does anyone have the same problem, how to fix this? this happens on almost every seed i looked.

---

<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:** [May 30, 2017, 2:45pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1770 "2017-05-30T14:45:15Z")

</div>

> [@EyesAndEars;716424](#):
>
> does anyone have the same problem, how to fix this? this happens on almost every seed i looked.

Adjusting stair correction tolerance helps with this, but unfortunately doesn’t eliminate it completely.

I use stair correction tolerance of 40.0 because if the stairs are ever close together it looks really silly.

I also use allowed stair height of 1.

Are there any other tweaks anyone has found that would eliminate this completely? If we can’t find a way to fix this I’ll have to use allowed stair height 0 :

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f472eca2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f472eca2](https://forums.unrealengine.com/u/anonymous_user_f472eca2)\
**Post date:** [May 31, 2017, 9:24pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1771 "2017-05-31T21:24:35Z")

</div>

@

So far, snap map is giving me the best results for my game-level type. Any we’ll see some theme (or theme-like) integration with snap map? Basically, I’d love to be able to place actors in my snap BPs that serve as markers (like the MySnapConnection ones) that are then replaced / spawn things from the theme editor using the rules system, etc.

---

<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:** [May 31, 2017, 10:08pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1772 "2017-05-31T22:08:44Z")

</div>

> [@fuerogames;715404](#):
>
> I can handle that.  
> For the floor make new tile and place it before the normal floor. make it consume on spawn. make it call a new marker - call it whatever like “FloorCorner”. Add the floor corner to the graph and simply add a normal floor tile there. now… make sure that the floor corner marker is spawned ONLY on spartial constrait for corner spawning shopwed a few posts back! this way you will have consistent floor however you will have a corner marker in every floor corner! 🙂 Now simply use of the “is near marker” functionality to NOT spawn deco near corners 🙂 hope that helps.

Just wanted to say thanks, your suggestion led me on a magical journey of discovery. It still doesn’t cover 100% of cases, but it comes pretty close. Being able to have a marker only generated if an actor or mesh is placed turns out to be very useful.

---

<div class="post-metadata">

**Author:** ![dazuk1978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dazuk1978](https://forums.unrealengine.com/u/dazuk1978)\
**Post date:** [June 1, 2017, 12:50pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1773 "2017-06-01T12:50:47Z")

</div>

@

Hey,  
When I’m using the Spatial Constraints to toggle the Empty/Occupied/Ignore flags, I notice over a short amount of time FPS decreases massively until it’s so bad I have to close UE4. Once reopened it is fine again until I start using the Spatial Constraints again and then the same will happen over time.  
It seems like some kind of memory leak?

I don’t know if it’s specific to my machine or a general issue but I thought I would notify you regardless.

Thanks

---

<div class="post-metadata">

**Author:** ![Felldor\_Grimm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Felldor\_Grimm](https://forums.unrealengine.com/u/Felldor_Grimm)\
**Post date:** [June 2, 2017, 5:46am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1774 "2017-06-02T05:46:57Z")

</div>

Hey man love your plug-in. im thinking of making a top down tactical shooter with melee combat and a build your own class system like in rpgs. does this plug in support 2d and orthographic view, so like police stories or bastion. im horrid at art so i was wondering in doing 2d but the on 2d support is in unity. am i missing something or could you help me.

im kinda new to game development so if it has to be a custom thing could you point me in the right direction?  
thanks a tonne!!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4649cf35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4649cf35](https://forums.unrealengine.com/u/anonymous_user_4649cf35)\
**Post date:** [June 3, 2017, 6:53pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1775 "2017-06-03T18:53:19Z")

</div>

Ah, man! This is so freaking cool. Superbly amazed, haha; can’t wait to see more of this–hopefully I can try it out, soon!

---

<div class="post-metadata">

**Author:** ![Dontcry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dontcry](https://forums.unrealengine.com/u/Dontcry)\
**Post date:** [June 4, 2017, 6:51am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1776 "2017-06-04T06:51:04Z")

</div>

I got some question… DungeonA and B in same Level . Dungeon A has some actor node and build is fine.but When I build Dungeon B , A all actor node disappear …how to fix it…thx…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_599469d0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_599469d0](https://forums.unrealengine.com/u/anonymous_user_599469d0)\
**Post date:** [June 5, 2017, 4:41am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1778 "2017-06-05T04:41:51Z")

</div>

fantastic plugin! ive recently begun using it and im excited to move onto the more intricate parts of it.

however, whenever i try to package my project i get this error

![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/c/dcb6cbeaefefbdb5646ae80adfdb5aeab04ec049.png)

this happens on both dev and shipping build, and this is testing the plugin by itself in a new third person demo project.  
in the editor everything works fine, i have a dungeon and linked theme placed in the level. but whenever i try to play it out of the editor it crashes, and i guess its because of the dungeon theme not having a reference. so i think this has something to do with the dungeon architect files/dlls/cpps being included in my packaged build, but im not sure, anyone have any idea why this would happen and how to fix it?

---

<div class="post-metadata">

**Author:** ![AngeIV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AngeIV](https://forums.unrealengine.com/u/AngeIV)\
**Post date:** [June 5, 2017, 6:40am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1779 "2017-06-05T06:40:25Z")

</div>

I need a little tip . I am using grid for spawning buildings in specific places. I am using a single marker emitter that emitts room centers for grid and palce the building in the center. It gives me pretty nice control over the placement and elevation of the buildings, as well as allow me to mix this way of building placement with grid based buildings that actually are built on theme override. So a mixture of “blueprint” base dbuildings and grid based buildings on a single spawner that can manage several towns with different themes. However I cant somehow manage to rotate those buildings! ☹ I wanted to use marker override for the emitted center marker to a rot90 marker in example, but it just doesn’t override. If I however rotate the mid marker all buildings rotate in that axis and it works. So I need a system to spawn a lot of staff - thru one of 4 spawn rots. one way to do it is make 4 dungeons and rot each 90 degree and spawn specific buildings on specific dungeons but I bet there is an easier way to do it.

---

<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:** [June 5, 2017, 6:52am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1780 "2017-06-05T06:52:36Z")

</div>

Hey everyone, sorry for the lack of response these past few days

> [@anonymous\_user\_66d7b81emar;714315](#):
>
> Hey,
> 
> Sorry if this has been answered before, but I bought DA from the epic marketplace. How do I get my hands on version 2.6.2?

@atarimar 2.6.2 should be available now with 4.16 support

---

<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:** [June 5, 2017, 8:01am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1781 "2017-06-05T08:01:24Z")

</div>

> [@DrinkThisPotion;714766](#):
>
> Hi,  
> I think it would be very useful to have a corner marker emitter. There are some edge cases I’m having trouble accounting for using the spatial constraints. What if I want to select all markers except for in room corners, for example? Also if I want to try to find the ‘middle’ of a set of wall markers, which would be very useful for decoration and lighting. Any ideas?
> 
> Maybe there’s some way to do it that I’m missing. 's a couple of illustrations of things I’d like to do. By the way, the room free edge marker you wrote sometimes seemingly spawns in corridors and strange places. As the first thought I had was to try to use that marker.
> 
> Ex1. Select everything but the corners. (wall markers)
> 
> Ex2. Not sure how to describe this, but I’d like to select markers in this configuration as well.

@DrinkThisPotion I have a solution attached. It uses the IsNearMarker function to query if there is a wall marker next to the relative left / right of the marker position. This is done by first moving the marker transform to the left (relative movement) and check if there is a wall marker using the IsNearMarker function. Repeat using the right. I’ve wrapped this in a function so you can reuse it with different combinations

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/c/2cce8a1e46ce43650079246ad1a8bf72cc85de58.jpeg)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/d/8cd3e9931474e1ee92cb41efd969f0b8c6c0bea0.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/7/7572439d8ff23ca0fdcde4d547fe03e1749b613a.png)

---

<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:** [June 5, 2017, 8:11am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1782 "2017-06-05T08:11:47Z")

</div>

> [@DrinkThisPotion;714783](#):
>
> Hi,  
> I’m finding the Is Near Marker function to be extremely useful.
> 
> Can we also have it return how many of the Nearby Marker there are?
> 
> This would be useful for instances where I need to spawn something that’s not near 2 wall markers, but being near 1 wall marker is OK. (for example).

I’ve added the search count and it should be available in the next build

---

<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:** [June 5, 2017, 8:20am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1783 "2017-06-05T08:20:41Z")

</div>

> [@DrinkThisPotion;714812](#):
>
> ,  
> Couple questions about IsNearbyMarker.
> 
> -Does it take into account the offset of actor it’s attached to? (it doesn’t seem to). I suppose it depends if Marker Transform coming from the select node takes offset into consideration.

Both the input (marker transform) and search works on marker positions and it won’t work with actor locations (chances are they won’t be spawned yet when this executes). So the offset you apply to your actors in the mesh node won’t be taken into account and you should search for their marker positions instead

> [@](#):
>
> -Could there be a problem with small distances not working? Edit: I think small distances are almost certainly not working.

Could you give me an example and I’ll have a closer look?

> [@](#):
>
> -Can it be used with markers emitted by a custom marker emitter? I seem to be getting strange results when I use it with BPM\_RoomCornerEmitter.  
> -For example, I’ll set it to find a RoomCorner marker within 200 units of a Door marker, and it won’t spawn even though it is certainly within 200 units.
> 
> bool UGridDungeonQuery::IsNearMarker(const FTransform& CurrentMarkerTransform, const FString& NearbyMarkerName, float NearbyDistance, UDungeonBuilder\* Builder)  
> {  
> float QueryDistanceSq = NearbyDistance \* NearbyDistance;  
> FVector CurrentLocation = CurrentMarkerTransform.GetLocation();  
> for (const FPropSocket& Socket : Builder-\>PropSockets) {  
> float DistanceSq = (Socket.Transform.GetLocation() - CurrentLocation).SizeSquared();  
> if (DistanceSq \< QueryDistanceSq && Socket.SocketType == NearbyMarkerName) {  
> return true;  
> }  
> }  
> return false;  
> }

It should work with custom marker emitter scripts. ~200 units seem pretty small (half a tile in the default art assets), unless your modular art is also very small. Maybe you meant 2000?

---

<div class="post-metadata">

**Author:** ![angie\_ash](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@angie\_ash](https://forums.unrealengine.com/u/angie_ash)\
**Post date:** [June 5, 2017, 8:21am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1784 "2017-06-05T08:21:30Z")

</div>

Hello super plugin  
By cons I did not used the blueprint by clicking on + selection logics I do not have a window that opens ???  
bug  
I’m under ue4 15.3  
Sorry for the translation I am french

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

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