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

<div class="post-metadata">

**Author:** ![LuaChunk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LuaChunk](https://forums.unrealengine.com/u/LuaChunk)\
**Post date:** [July 31, 2017, 12:12am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1905 "2017-07-31T00:12:05Z")

</div>

Hi,

There’s two if statements inside UGridDungeonBuilder::ConnectRooms like this:

```auto

if (PreviousCell->CellType == FCellType::Room || PreviousCell->CellType == FCellType::Room)

```

Note the two sides of the || are identical. I’ve changed it to this:

```auto

if (CurrentCell->CellType == FCellType::Room || PreviousCell->CellType == FCellType::Room)

```

This fixes rooms sometimes not having doors connected to them from corridors… I think.

Cheers,

.

---

<div class="post-metadata">

**Author:** ![LuaChunk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LuaChunk](https://forums.unrealengine.com/u/LuaChunk)\
**Post date:** [July 31, 2017, 12:18am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1906 "2017-07-31T00:18:25Z")

</div>

I also added:

```auto

FORCEINLINE uint32 GetTypeHash(const FRectangle& rect)
{
	return FCrc::MemCrc_DEPRECATED(&rect, sizeof(FRectangle));
}

```

To MathUtils.h so I can put an FRectangle in a TSet and/or TMap.

Cheers,

.

---

<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:** [July 31, 2017, 11:17am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1907 "2017-07-31T11:17:44Z")

</div>

@ Thanks for the fix. I’ve added it to the code and will 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:** [July 31, 2017, 1:34pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1908 "2017-07-31T13:34:35Z")

</div>

A new version has been uploaded to the website for engine version 4.16 and 4.17. I’ll also submit to Epic shortly

Version 2.7.0

- Marker replacement volumes now run after all the Marker Emitter blueprints have emitted their markers
- Fixed a bug in the grid builder that was causing doors to not create properly in some cases
- Fixed a crash issue with the Actor theme node
- Improved the stair connection model
- Refactored the SceneProvider C++ API to take in a context object
- Fixed a bug with pooling where actors from another dungeon where deleted
- Exposed the snap confiugration to blueprints
- Exposed the grid tool paint data to blueprints
- Added wall separators to floorplan builder
- Added support for engine version 4.17

---

<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:** [July 31, 2017, 5:47pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1909 "2017-07-31T17:47:30Z")

</div>

[MENTION=28980][/MENTION]

Does DA work with World Composition to create truly massive procedurally generated worlds ?

---

<div class="post-metadata">

**Author:** ![Tkat5200](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tkat5200](https://forums.unrealengine.com/u/Tkat5200)\
**Post date:** [August 3, 2017, 5:14am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1910 "2017-08-03T05:14:01Z")

</div>

the Epic Launcher is saying its installed in every version of the engine I have but I cannot get it to run at all…can’t even find it. any suggestions

---

<div class="post-metadata">

**Author:** ![TheCouch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheCouch](https://forums.unrealengine.com/u/TheCouch)\
**Post date:** [August 3, 2017, 1:03pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1911 "2017-08-03T13:03:43Z")

</div>

> [@;743482](#):
>
> @TheCouch That’s expected behaviour. The transform logic’s transform will be relative to the parent. An example would be where you randomly place a painting on the wall in the Z range of 100 to 200 cm high. Later you decide to make the parent wall 3 times larger. We want the offset to also be scaled from 300 to 600 cm to make up for the larger wall

Yes, I would expect _that_ behavior. I _wouldn’t_ expect the scale to be applied to the translation though. The problem with this is that it also repositions the wall. Think of it this way: what’s happening is akin to applying the scale to the rotation. Let’s say I rotate a wall by 90 degrees and then I have a transform logic that scales the wall by .5. Now my wall is only rotated 45 degrees. That would be unexpected behavior. It’s similar to applying the scale to the translation. It might make some sense (maybe) if the pivot point was _always_ in the exact center of the mesh, but I think that’s pretty rare.

---

<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:** [August 3, 2017, 5:06pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1912 "2017-08-03T17:06:13Z")

</div>

> [@Tkat5200;745209](#):
>
> the Epic Launcher is saying its installed in every version of the engine I have but I cannot get it to run at all…can’t even find it. any suggestions

Is it enabled in the list of plugins?

---

<div class="post-metadata">

**Author:** ![Dubh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dubh](https://forums.unrealengine.com/u/Dubh)\
**Post date:** [August 3, 2017, 10:01pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1913 "2017-08-03T22:01:26Z")

</div>

> [@;743859](#):
>
> A new version has been uploaded to the website for engine version 4.16 and 4.17. I’ll also submit to Epic shortly

How long does it take epic to get around to updates?

---

<div class="post-metadata">

**Author:** ![LuaChunk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LuaChunk](https://forums.unrealengine.com/u/LuaChunk)\
**Post date:** [August 4, 2017, 1:26am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1914 "2017-08-04T01:26:15Z")

</div>

> [@;743646](#):
>
> Hi,
> 
> There’s two if statements inside UGridDungeonBuilder::ConnectRooms like this:
> 
> ```auto
> 
> if (PreviousCell->CellType == FCellType::Room || PreviousCell->CellType == FCellType::Room)
> 
> ```
> 
> Note the two sides of the || are identical. I’ve changed it to this:
> 
> ```auto
> 
> if (CurrentCell->CellType == FCellType::Room || PreviousCell->CellType == FCellType::Room)
> 
> ```
> 
> This fixes rooms sometimes not having doors connected to them from corridors… I think.
> 
> Cheers,
> 
> .

Hi,

There’s actually two places this bug exists. In 2.7.0 you fixed line 1325 when sweeping the x axis, but not 1365 when sweeping the y axis.

Regards,

.

---

<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:** [August 8, 2017, 3:51pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1915 "2017-08-08T15:51:40Z")

</div>

> [@anonymous\_user\_87fb381borsep;743992](#):
>
> [MENTION=28980][/MENTION]
> 
> Does DA work with World Composition to create truly massive procedurally generated worlds ?

@ World Composition is not supported. I played around with the engine’s world composition framework while experimenting with the snap builder so it shouldn’t be too difficult to add. I understand it is required for VR and FPS games. I’ll add it in the future

---

<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:** [August 8, 2017, 3:54pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1916 "2017-08-08T15:54:07Z")

</div>

> [@Tkat5200;745209](#):
>
> the Epic Launcher is saying its installed in every version of the engine I have but I cannot get it to run at all…can’t even find it. any suggestions

@Tkat5200 Could you try deleting the plugin from the “Installed plugins” link under the engine version and re-downloading. After you launch, navigate to Edit \> Plugins. In the left pane, choose Procedural category and make sure Dungeon Architect is installed and enabled

---

<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:** [August 8, 2017, 3:55pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1917 "2017-08-08T15:55:14Z")

</div>

> [@anonymous\_user\_9c39f750Couch;745307](#):
>
> Yes, I would expect _that_ behavior. I _wouldn’t_ expect the scale to be applied to the translation though. The problem with this is that it also repositions the wall. Think of it this way: what’s happening is akin to applying the scale to the rotation. Let’s say I rotate a wall by 90 degrees and then I have a transform logic that scales the wall by .5. Now my wall is only rotated 45 degrees. That would be unexpected behavior. It’s similar to applying the scale to the translation. It might make some sense (maybe) if the pivot point was _always_ in the exact center of the mesh, but I think that’s pretty rare.

@TheCouch Ah, I misunderstood your post. Scaling the rotation is clearly wrong. I’ll have a look tomorrow and have it fixed in 2.7.1

---

<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:** [August 8, 2017, 3:57pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1918 "2017-08-08T15:57:20Z")

</div>

> [@Dubh;745523](#):
>
> How long does it take epic to get around to updates?

They are usually pretty fast (~24 hours). I have just submitted 2.7.0 to Epic as Mac QA was pending. I’ve also added 4.17 support which was released yesterday

---

<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:** [August 8, 2017, 3:58pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1919 "2017-08-08T15:58:48Z")

</div>

> [@;745590](#):
>
> Hi,
> 
> There’s actually two places this bug exists. In 2.7.0 you fixed line 1325 when sweeping the x axis, but not 1365 when sweeping the y axis.
> 
> Regards,
> 
> .

@ I’ll fix it in 2.7.1

---

<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:** [August 8, 2017, 4:01pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1920 "2017-08-08T16:01:55Z")

</div>

> [@;747270](#):
>
> @ World Composition is not supported. I played around with the engine’s world composition framework while experimenting with the snap builder so it shouldn’t be too difficult to add. I understand it is required for VR and FPS games. I’ll add it in the future

That would be great! How far off is such future? :o

Btw, World Composition is for massive levels, so it can be used in any sort of game, not just FPS and not just in VR.

---

<div class="post-metadata">

**Author:** ![TheCouch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheCouch](https://forums.unrealengine.com/u/TheCouch)\
**Post date:** [August 9, 2017, 3:00pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1921 "2017-08-09T15:00:00Z")

</div>

> [@;747274](#):
>
> @TheCouch Ah, I misunderstood your post. Scaling the rotation is clearly wrong. I’ll have a look tomorrow and have it fixed in 2.7.1

Note though that the rotation is definitely not being affected, the translation (position) is being affected. My example was meant to illustrate that it’s strange to apply the scale to the translation (at least I think it is).

---

<div class="post-metadata">

**Author:** ![CorvaeOboro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/corvaeoboro/32/470072_2.png) [@CorvaeOboro](https://forums.unrealengine.com/u/CorvaeOboro)\
**Post date:** [August 12, 2017, 10:39pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1922 "2017-08-12T22:39:12Z")

</div>

Greetings ,  
Thanks for such an plugin , has helped out a lot in development.

Lately have been leaning more and more toward using the Snap Builder as the flexibility to be off grid and use custom pieces is super useful .  
I know it is still experimental at this time however wanted to give some suggestions for when you have time to refine.  
Currently in UE4.16 DungeonArchitect 2.6.3

Overall------------------------------------

1. Modules are randomly rotated 180 on Z axis , please allow for modules or the builder to turn this off ( for specific isometric modules we dont want them rotated )
2. Add probability variable to modules ( on the builder )
3. Include something similar to the Cluster Theme Selector volume for Snap to snap to a different specified set of modules ( and option to place a specific transition module at the intersection point ) . Or if the volume is impractical because the generated dungeon might not overlap being able to have a probability variable to switch to different set of modules would also be so if had a A set of modules and a B set the output would be something like AAAAA\<AtoB\>BBBB\<BtoA\>AA
4. Custom Collision option for Snap Check ( when only the path collision matters , and is ok if exterior \ background objects collide )

Connections and Doors -----------------------------------

1. Connections with Door Class , the Door BPs appear to zero out in world space ( however connections are in correct location ) .
2. Doors on Connections , cant set the Connection Door class to None after having assigned it (crashes )
3. Doors on Connections also can randomly make the map unsaveable ( graph linked to external private object Unknown )

---

<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:** [August 13, 2017, 6:05pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1923 "2017-08-13T18:05:50Z")

</div>

> [@CorvaenOboros;749222](#):
>
> Greetings ,  
> Thanks for such an plugin , has helped out a lot in development.
> 
> Lately have been leaning more and more toward using the Snap Builder as the flexibility to be off grid and use custom pieces is super useful .  
> I know it is still experimental at this time however wanted to give some suggestions for when you have time to refine.  
> Currently in UE4.16 DungeonArchitect 2.6.3
> 
> Overall------------------------------------
> 
> 1. Modules are randomly rotated 180 on Z axis , please allow for modules or the builder to turn this off ( for specific isometric modules we dont want them rotated )
> 2. Add probability variable to modules ( on the builder )
> 3. Include something similar to the Cluster Theme Selector volume for Snap to snap to a different specified set of modules ( and option to place a specific transition module at the intersection point ) . Or if the volume is impractical because the generated dungeon might not overlap being able to have a probability variable to switch to different set of modules would also be so if had a A set of modules and a B set the output would be something like AAAAA\<AtoB\>BBBB\<BtoA\>AA
> 
> Connections and Doors -----------------------------------
> 
> 1. Connections with Door Class , the Door BPs appear to zero out in world space ( however connections are in correct location ) .
> 2. Doors on Connections , cant set the Connection Door class to None after having assigned it (crashes )
> 3. Doors on Connections also can randomly make the map unsaveable ( graph linked to external private object Unknown )

I’ve also found that while including any component in a SnapConnection the component always spawns at the origin no matter where the module spawns. I’ve tried replicating the example from DA\_Snap\_GameDemo so that doors/walls can switch depending on the connection type and everything ends up in the middle.

---

<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:** [August 15, 2017, 4:49am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1924 "2017-08-15T04:49:37Z")

</div>

@CorvaenOboros Thank you for the suggestions. I’ll try to get it in the next update  
@rctorres I’ll have a look

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

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