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

<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:** [September 21, 2016, 6:59am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/977 "2016-09-21T06:59:18Z")

</div>

> [@James Barnette;597625](#):
>
> Ok I wanted to share some of my thoughts on the usability as it relates to the snap builder in DA That I emailed to. Again this relates to the snap builder as that is what my project is using I dont have really much experience or know if any of what I’m laying out applies to the other builder types.
> 
> Firstly it is a HUGE workflow hindrance to have to manually set the acceptable connector list on every the door asset every time I place it. When it is in the content browser I can go set all of the meshes/BP it will load and everything. I should be able to set the modules that it can connect to as all other settings . This way I can make a snapDoor for rooms and a snapDoor for corridors and then all I have to do is drag them in. Right now I have to remember to go add a module name in the and hope there isn’t a type-o which is bound to happen when manually doing something hundreds of times. No to mention you could also expose integrate the snap info into this and expose it as well.
> 
> This way you can just make up your door types in the content browser and drag and place them where they need to be and not have to worry if you set everything right in every level and if something is wrong there is one place to look to fix it. This would VASTLY simplify things.
> 
> If you insist on keeping the snap info node separate can you make it where it can be added to the content browser at least and I can set the info in there and so that if I make them and save the setting there I simply have a RoomSnapInfo and a CorridorSnapInfo that I only have to make once and then drag into all of the rooms.
> 
> Right now there is so much manual stuff that unnecessarily needs to be repeated in invites error and trouble.

[MENTION=3956]James Barnette[/MENTION] Thank you for the feedback. The AllowedModuleType constraint cannot be set on the global asset level, as they have to be set in the module level for more control. This is because you will use the same door asset in both the room and the corridor (with different attachment rules), hence it has to be set on an instance of the door actor, as opposed to the door asset itself

You are right that it does require manual work and I’ll minimise it. I’ll move the AllowedModuleTypes property to an asset called SnapDoorAttachmentRule. Then you assign this reference of this rule to the doors. This way you set the rules only once on the asset and easily change it in the future if needed

---

<div class="post-metadata">

**Author:** ![calmasacow](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/calmasacow/32/577257_2.png) [@calmasacow](https://forums.unrealengine.com/u/calmasacow)\
**Post date:** [September 21, 2016, 7:11am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/978 "2016-09-21T07:11:41Z")

</div>

> [@;597928](#):
>
> [MENTION=3956]James Barnette[/MENTION] Thank you for the feedback. The AllowedModuleType constraint cannot be set on the global asset level, as they have to be set in the module level for more control. This is because you will use the same door asset in both the room and the corridor (with different attachment rules), hence it has to be set on an instance of the door actor, as opposed to the door asset itself
> 
> You are right that it does require manual work and I’ll minimise it. I’ll move the AllowedModuleTypes property to an asset called SnapDoorAttachmentRule. Then you assign this reference of this rule to the doors. This way you set the rules only once on the asset and easily change it in the future if needed

You dont have to use the same door asset. I have always made 2 and it has worked. one for corridors and one for 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:** [September 21, 2016, 7:15am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/979 "2016-09-21T07:15:03Z")

</div>

> [@James Barnette;597932](#):
>
> You dont have to use the same door asset. I have always made 2 and it has worked. one for corridors and one for rooms.

Those two doors will not attach. The point of using door assets is to make seamless attachment across different shaped endpoints (e.g. a rectangular shaped door should not attach to a curved tunnel)

---

<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:** [September 21, 2016, 7:35am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/980 "2016-09-21T07:35:39Z")

</div>

> [@;597935](#):
>
> Those two doors will not attach. The point of using door assets is to make seamless attachment across different shaped endpoints (e.g. a rectangular shaped door should not attach to a curved tunnel)

Hmm just tested and it attaches when it shouldn’t

---

<div class="post-metadata">

**Author:** ![n00854180t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n00854180t](https://forums.unrealengine.com/u/n00854180t)\
**Post date:** [September 21, 2016, 4:53pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/981 "2016-09-21T16:53:58Z")

</div>

> [@;597944](#):
>
> Hmm just tested and it attaches when it shouldn’t

That feel when what _should not be_ **is**.

😛

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [September 21, 2016, 5:32pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/982 "2016-09-21T17:32:40Z")

</div>

Btw, does DA use HISMCs or ISMCs only ?

---

<div class="post-metadata">

**Author:** ![calmasacow](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/calmasacow/32/577257_2.png) [@calmasacow](https://forums.unrealengine.com/u/calmasacow)\
**Post date:** [September 22, 2016, 8:42pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/983 "2016-09-22T20:42:56Z")

</div>

> [@;598207](#):
>
> Btw, does DA use HISMCs or ISMCs only ?

in English please? lol

---

<div class="post-metadata">

**Author:** ![calmasacow](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/calmasacow/32/577257_2.png) [@calmasacow](https://forums.unrealengine.com/u/calmasacow)\
**Post date:** [September 22, 2016, 8:47pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/984 "2016-09-22T20:47:43Z")

</div>

Can we get a full list of engine features that wont work with the snap builder. as best I can tell The Anything using the painting systems doesn’t work. I’m not sure what the reason is for this but using the vegetation pain for scattering object on a surface doesn’t work as well as it seems that Vertex painting for blending textures on an object also gets lost when building the dungeon.

So it would be nice to know the full list of things that are not going to work so that we dont waste time doing only to have them thrown out when he dungeon builds.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [September 22, 2016, 9:08pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/985 "2016-09-22T21:08:53Z")

</div>

> [@James Barnette;598853](#):
>
> Can we get a full list of engine features that wont work with the snap builder. as best I can tell The Anything using the painting systems doesn’t work. I’m not sure what the reason is for this but using the vegetation pain for scattering object on a surface doesn’t work as well as it seems that Vertex painting for blending textures on an object also gets lost when building the dungeon.

Ouch, that’s not good ☹ I hope it gets fixed in the upcoming updates as I think those are quite essential features.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [September 22, 2016, 9:20pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/986 "2016-09-22T21:20:43Z")

</div>

What kind of lighting setup do you use with DA for run-time generation ? (full real-time lighting)

Concerted about real-time GI, whether it’s true real-time GI or fake real-time GI. If there is no real-time GI, and it’s fully run-time dungeon/level, the game will look like Doom 3, wouldn’t it ?

---

<div class="post-metadata">

**Author:** ![calmasacow](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/calmasacow/32/577257_2.png) [@calmasacow](https://forums.unrealengine.com/u/calmasacow)\
**Post date:** [September 22, 2016, 9:32pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/987 "2016-09-22T21:32:25Z")

</div>

> [@;598874](#):
>
> What kind of lighting setup do you use with DA for run-time generation ? (full real-time lighting)
> 
> Concerted about real-time GI, whether it’s true real-time GI or fake real-time GI. If there is no real-time GI, and it’s fully run-time dungeon/level, the game will look like Doom 3, wouldn’t it ?

Well To My knowledge you can use baked lighting to to the fact that the geometry is being moved. I can only guess that this is also what is affecting the Vertex painting on geometry as well as the foliage painting. Which I have to see these results are strange as I know that if I use the paint tool and scatter some rocks and ruble on the ground then I move that plain in the editor when I release the object all of the object that were painted to it snap to the new position. So I think that there is a possibility for getting this to work.

As for the Vertex painting for blending of materials. I’m really not sure why this isn’t working. I cant think of any reason why this shouldn’t still work.

---

<div class="post-metadata">

**Author:** ![calmasacow](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/calmasacow/32/577257_2.png) [@calmasacow](https://forums.unrealengine.com/u/calmasacow)\
**Post date:** [September 22, 2016, 9:34pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/988 "2016-09-22T21:34:38Z")

</div>

To all users of the Snap builder version 2.1.8-2.1.10 are any of you experiencing and inability to save you level after you have built the dungeon. even if you hit the destroy dungeon button you are unable to save and getting an error that says that you can save because items in you graph are in other levels. Which of course after destroying the dungeon they should not be.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [September 22, 2016, 9:39pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/989 "2016-09-22T21:39:22Z")

</div>

> [@James Barnette;598878](#):
>
> Well To My knowledge **you can** use baked lighting to to the fact that the geometry is being moved

Did you mean to write **can not**?

If I bake lighting, then move geometry, I will get lighting needs to be build warning in red letters when running the game and the geometry will be black.

---

<div class="post-metadata">

**Author:** ![calmasacow](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/calmasacow/32/577257_2.png) [@calmasacow](https://forums.unrealengine.com/u/calmasacow)\
**Post date:** [September 22, 2016, 11:00pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/990 "2016-09-22T23:00:04Z")

</div>

> [@;598883](#):
>
> Did you mean to write **can not**?
> 
> If I bake lighting, then move geometry, I will get lighting needs to be build warning in red letters when running the game and the geometry will be black.

Yeah sorry meant CAN’T use baked lighting.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [September 23, 2016, 4:01am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/991 "2016-09-23T04:01:56Z")

</div>

> [@James Barnette;598851](#):
>
> in English please? lol

( **H** ierarchical) **I** nstanced **S** tatic **M** esh **C** omponent **s**

---

<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:** [September 23, 2016, 12:26pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/992 "2016-09-23T12:26:03Z")

</div>

> [@James Barnette;598853](#):
>
> Can we get a full list of engine features that wont work with the snap builder. as best I can tell The Anything using the painting systems doesn’t work. I’m not sure what the reason is for this but using the vegetation pain for scattering object on a surface doesn’t work as well as it seems that Vertex painting for blending textures on an object also gets lost when building the dungeon.
> 
> So it would be nice to know the full list of things that are not going to work so that we dont waste time doing only to have them thrown out when he dungeon builds.

James, Foliage support is in the todo list. The snap builder is still a wip and I’ll create a roadmap for it soon.

As for the save issue, I worked on the test level you sent yesterday and sorted most of the issue but I need to properly do this by using world composition. For some reason, the UWorld::Spawn function still references the child actors in the external module map, and doesn’t allow saving.

Edit: Foliage, vertex paint, baked light and other engine features should work when I stream the level in using world composition, rather than cloning and spawning it myself (which doesn’t seem to clone it properly)

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [September 23, 2016, 1:35pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/993 "2016-09-23T13:35:03Z")

</div>

> [@;599087](#):
>
> Edit: Foliage, vertex paint, baked light and other engine features should work when I stream the level in using world composition, rather than cloning and spawning it myself (which doesn’t seem to clone it properly)

Could you please make a short video explaining how to set it all up to work properly ? 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:** [September 23, 2016, 1:39pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/994 "2016-09-23T13:39:24Z")

</div>

@ I’m not at my office today. I’ll have one by tomorrow

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [September 23, 2016, 1:54pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/995 "2016-09-23T13:54:35Z")

</div>

> [@;599113](#):
>
> @ I’m not at my office today. I’ll have one by tomorrow

No rush, thanks :o

Btw, have you tried using LPV (Light Propagation Volumes) with DA ?

---

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [September 23, 2016, 9:47pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/996 "2016-09-23T21:47:17Z")

</div>

Hello,

I can now spawn, modify and delete DA dungeons at will in my game during runtime (and it’s super fun^^).

However, when trying my game in client-server configuration it seems that things work only on the server.

I tried the very code you gave in a server function and the dungeon is spawned only on the server, it doesn’t appear on the clients.  
I tried to have it replicate with Dungeon-\>SetReplicates(true) but with no success.

I’m afraid the replication has to be set on every UInstancedStaticMeshComponents (at least it’s what i do on my self made dungeons).

So is there a way to access all the instanced meshes in a ADungeon so i can make them replicate ?

If possible, i would also like to set them other properties like being clickable, etc.  
As an example, is how i treat my own UInstancedStaticMeshComponent (this is from the constructor of my own dungeon class):

```auto

Mesh0Component = ObjectInitializer.CreateDefaultSubobject<UInstancedStaticMeshComponent>(this, TEXT("mesh 0 component"));
Mesh0Component->AttachToComponent(RootComponent, FAttachmentTransformRules::KeepRelativeTransform);
Mesh0Component->SetNetAddressable();
Mesh0Component->SetIsReplicated(true);
Mesh0Component->SetCollisionEnabled(ECollisionEnabled::QueryAndPhysics);
Mesh0Component->SetCollisionResponseToAllChannels(ECollisionResponse::ECR_Block);
Mesh0Component->SetCollisionObjectType(ECollisionChannel::ECC_WorldDynamic);
Mesh0Component->OnClicked.AddDynamic(this, &AYagActor::YagActorClicked);
Mesh0Component->OnReleased.AddDynamic(this, &AYagActor::YagActorReleased);

```

My intellisense doesn’t want to work with the DA plugin so i am kind of blind and it’s quite a pain to parse every DA header file when looking for something.

Is there a way to do similar things on the DA dungeons meshes ?

If not, is there some simpler way to replicate the dungeons ?

Thanks !

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

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