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

<div class="post-metadata">

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

</div>

The level of awesomeness is off the charts in this one.

Cheers on amazing work dude!

---

<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 7, 2016, 3:49pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1340 "2016-12-07T15:49:53Z")

</div>

> [@Shobhitthackar;633877](#):
>
> The level of awesomeness is off the charts in this one.
> 
> Cheers on amazing work dude!

Thank you @Shobhitthackar 🙂

---

<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 7, 2016, 3:54pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1341 "2016-12-07T15:54:47Z")

</div>

> [@dkoding;631536](#):
>
> Hi @ - regarding my previous post (constraints broken when spawning actor BP’s with multiple meshes connected with constraints) - I have done some more digging and I think I have found the reason for the problem.
> 
> When I set scaling on the actor in the Theme - only the **first** mesh under the scene root is scaled. **The rest of the meshes remain the same size** , and as a result (I’m guessing) - origins of the objects change individually, and when the difference in origin is bigger than the constraints limits - the constraint **breaks**.
> 
> Also - as only the first mesh is scaled it has all manner of other strange effects.
> 
> It looks fine in the preview, it works fine if i use the ‘Build Dungeon’ button - it is only the ‘Runtime Builder’ that exhibits this problem - which is unfortunate as that is the one I use.
> 
> Regards  
> DKoding

@dkoding, I’ve tested the physics constraints on runtime spawned actors and it seem to works fine with 2.3.1. Could you check again and send me the actor file if it doesn’t work correctly?

watch?v=4oOossqWNqo

I see the scaling issue in runtime actors. I’ll investigate why

---

<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 7, 2016, 3:56pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1342 "2016-12-07T15:56:06Z")

</div>

> [@;633854](#):
>
> JC this was fixed in 2.3.1. I believe that version was not uploaded to the website. I’ll upload it tomorrow

[MENTION=59677]J.C. Smith[/MENTION] 2.3.1 is available on the website

---

<div class="post-metadata">

**Author:** ![J.C.Smith](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@J.C.Smith](https://forums.unrealengine.com/u/J.C.Smith)\
**Post date:** [December 7, 2016, 4:48pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1343 "2016-12-07T16:48:42Z")

</div>

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 7, 2016, 4:54pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1344 "2016-12-07T16:54:06Z")

</div>

> [@Ratamorph;631615](#):
>
> ![DA_FencePostInsideRoom_Marked.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/9/99dccbec333e8320358f48ae28d2371353bbb7e0.png)  
> ![DA_NotACorner_Marked.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/6/b69958a5bebab303d4b39631d6bc5063b31bf93d.png)
> 
> Any ideas on how to fix it, other than using marker replacement volumes to manually remove them on a case by case basis?

@Ratamorph I’ve tested this in a theme file. I’ll think of a workaround

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_40d5608f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_40d5608f](https://forums.unrealengine.com/u/anonymous_user_40d5608f)\
**Post date:** [December 7, 2016, 8:39pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1345 "2016-12-07T20:39:05Z")

</div>

,

I filled out your form multiple times and provided you the info separately. I still do not have access through the marketplace for DA. I purchased through your website.

Would you please see if you can resolve that issue? I emailed you a couple of times but I have yet to see this corrected.

Thank you kindly.

---

<div class="post-metadata">

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

</div>

Hi,

I found some issues with spawning of actors when using streaming levels.

In my setup i have the Dungeon actor in a level that is loaded using the LoadStreamLevel function. After loading i setup the Dungeon’s parameters (theme, config, etc) and call BuildDungeon. All actors that spawn however are created in the persistent level instead of the level the Dungeon is in. When unloading the level all of the actors that were created during the build process are not removed.

I have a temporary fix to this by modifying your spawning code to override the level. Before each call to SpawnActor i do this:

```auto

	FActorSpawnParameters SpawnParams;
	SpawnParams.OverrideLevel = Dungeon ? Dungeon->GetLevel() : NULL;

```

There are several calls to SpawnActor across 3 files:  
InstancedDungeonSceneProvider.cpp  
SceneProviderCommand.cpp  
SceneProviderCommand.h

It would be great if you could verify and apply these changes to your code.

Thanks,  
hamouras

---

<div class="post-metadata">

**Author:** ![graysan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@graysan](https://forums.unrealengine.com/u/graysan)\
**Post date:** [December 8, 2016, 2:27am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1347 "2016-12-08T02:27:47Z")

</div>

Is there a way to destroy rooms or change the cell size after a runtime dungeon has been built? I’m using the Isaac builder (Stylized layout) with the furthest room spawn/boss emitters but they’re often emitted in single cell rooms even though the room width/length is greater than 1. Ideally, there would be a min room size option. Changing the min brush size helps but spoils the corridors if they’re 3 cells wide etc.

---

<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 8, 2016, 9:14am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1348 "2016-12-08T09:14:27Z")

</div>

@ I received a mail from Epic yesterday that all the pending requests were processed. I’ve checked and your name was also in the list. Could you try logging out of your launcher and back in? If you still don’t see it, please let me know

---

<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 8, 2016, 9:15am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1349 "2016-12-08T09:15:40Z")

</div>

@hamouras, Thank you for the fix. I’ll add that in the next update

---

<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 8, 2016, 9:40am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1350 "2016-12-08T09:40:34Z")

</div>

> [@graysan;634741](#):
>
> Is there a way to destroy rooms or change the cell size after a runtime dungeon has been built? I’m using the Isaac builder (Stylized layout) with the furthest room spawn/boss emitters but they’re often emitted in single cell rooms even though the room width/length is greater than 1. Ideally, there would be a min room size option. Changing the min brush size helps but spoils the corridors if they’re 3 cells wide etc.

The stylized builder changes the rectangular room into different shapes (called room layout, which is a bunch of on/off points in the XY grid of the room rectangle). I’ll add the ability to modify the layout of each room from blueprints (so you don’t have a single cell room for your desired rooms)

---

<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 8, 2016, 9:44am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1351 "2016-12-08T09:44:45Z")

</div>

Updated the interface of of the dungeon event listener to let you modify the markers right after they are emitted into the scene (but before the theming is applied to it, and before anything is spawned into the scene)

This gives you low level flexibility on the overall dungeon layout. You can use to apply some filter on your dungeon like add curvature on your dungeon, or snap all the dungeon objects on a landscape

's an example. I iterate through all the markers in the scene, take their XY and map them in a cylindrical coordinate (you can adjust the radius from the details panel)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/0/f90303287d4672682d4a3df62aa31aa398c19cb1.jpeg)

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

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/4/3048e0bc3ac90b77af3f278144464edfb2880b4e.png)

---

<div class="post-metadata">

**Author:** ![graysan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@graysan](https://forums.unrealengine.com/u/graysan)\
**Post date:** [December 8, 2016, 10:02am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1352 "2016-12-08T10:02:39Z")

</div>

Wow. Great support. Looking forward to the next update!

---

<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 8, 2016, 10:55am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1353 "2016-12-08T10:55:21Z")

</div>

I’ve added a helper function in the Isaac model to clear styling from certain rooms

[![](https://i.imgur.com/FeqPrp0.png) ](https://i.imgur.com/FeqPrp0.png)

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

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

---

<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 8, 2016, 1:06pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1354 "2016-12-08T13:06:13Z")

</div>

I’m very interested in getting this, but I have a question first

Is there a way to change the theme on a per-room basis (for random generation, so without doing it myself)? Like say I want to make a “prison room” that spawns in prison cells, or a “book room” that spawns bookshelves

After watching your videos I think there are two ways I can do this - a custom market/emitter (with affinity controlling the to spawn a room type) and then if it spawns that custom marker, use the custom logic to spawn similar objects in that room. But I’m not sure if this will work how I’m thinking (IE can a custom marker control the entire room?)

Another idea I had was spawning theme volumes that match the room size, and using that to change the walls and appearances and such.

Is there an easy way to do what I’m talking about, controlling specific rooms?

Also, is there a way for the logic to access data about the current room? As in, say I only want to spawn 1 Large Chest in a room. Is there a way to “only spawn this once in this room”?

---

<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 8, 2016, 1:38pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1355 "2016-12-08T13:38:00Z")

</div>

> [@Pinworm;634910](#):
>
> I’m very interested in getting this, but I have a question first
> 
> Is there a way to change the theme on a per-room basis (for random generation, so without doing it myself)? Like say I want to make a “prison room” that spawns in prison cells, or a “book room” that spawns bookshelves
> 
> After watching your videos I think there are two ways I can do this - a custom market/emitter (with affinity controlling the to spawn a room type) and then if it spawns that custom marker, use the custom logic to spawn similar objects in that room. But I’m not sure if this will work how I’m thinking (IE can a custom marker control the entire room?)
> 
> Another idea I had was spawning theme volumes that match the room size, and using that to change the walls and appearances and such.
> 
> Is there an easy way to do what I’m talking about, controlling specific rooms?
> 
> Also, is there a way for the logic to access data about the current room? As in, say I only want to spawn 1 Large Chest in a room. Is there a way to “only spawn this once in this room”?

@Pinworm Your second approach can work where you wrap theme override volumes around your rooms (e.g. prison theme, garrison theme etc). After the dungeon layout is build, a set of preconfigured theme override volumes (e.g. prison theme volume) are wrapped around the rooms using a blueprint. is an example:

watch?v=7KKlBJnCDt8

This [post](https://forums.unrealengine.com/showthread.php?67599-Dungeon-Architect&p=613856&viewfull=1#post613856) has more info along with a sample blueprint

You can access the dungeon model from blueprint and get the room information. There is also a query system to help you. If you need help with anything specific, feel free to post in the forums

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_40d5608f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_40d5608f](https://forums.unrealengine.com/u/anonymous_user_40d5608f)\
**Post date:** [December 8, 2016, 2:53pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1356 "2016-12-08T14:53:30Z")

</div>

It’s good now,

Thank you so much. The plugin is amazing. I would love to implement some of the city builder functionality I see you using in unity. Is that going to be part of the UE4 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:** [December 8, 2016, 4:02pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1357 "2016-12-08T16:02:35Z")

</div>

Sure, it’s a planned feature.

---

<div class="post-metadata">

**Author:** ![jwatson\_0051](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jwatson\_0051](https://forums.unrealengine.com/u/jwatson_0051)\
**Post date:** [December 8, 2016, 4:13pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1358 "2016-12-08T16:13:48Z")

</div>

,  
giving this a bump. Do you have any suggestions for the questions below?

> [@jwatson\_0051;630964](#):
>
> Okay thanks for clearing that up. I have tried the platform volumes to work around this and have had some issues maybe you have some suggestions.
> 
> 1. My goal is to have full control (nothing procedural) creating rooms and platforms. The best way to do this from what I understand is through the paint tool and platform volumes, correct? On the platform volumes I’m using “room” as the cell type (I’ve experimented with the others this seems to work best). Corridors are being generated automatically between the platform volumes, how can I keep this from happening so that I can maintain full control?
> 
> 2. When I do paint a corridor up to a platform volume it does not create a door, am I doing something wrong?
> 
> 3. I’m also trying to find a way to have a path cross underneath another one, do you have any example of this I could reference?

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

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