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

<div class="post-metadata">

**Author:** ![LETTICONION](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LETTICONION](https://forums.unrealengine.com/u/LETTICONION)\
**Post date:** [April 3, 2019, 4:39pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2453 "2019-04-03T16:39:06Z")

</div>

HI anyone plz help. !

---

<div class="post-metadata">

**Author:** ![unit23](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unit23/32/1223962_2.png) [@unit23](https://forums.unrealengine.com/u/unit23)\
**Post date:** [April 3, 2019, 6:36pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2454 "2019-04-03T18:36:42Z")

</div>

> [@LETTICONION](#):
>
> HI anyone plz help. !

What version does it read inside the launcher? Click on Installed Plugins…

 ![tip.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/5/253be9336b38a1cc4762a30a851155184629cc53.jpeg)

---

<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:** [April 4, 2019, 5:11am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2455 "2019-04-04T05:11:19Z")

</div>

> [@uced](#):
>
> ,
> 
> Silly me, i’ve got my answer in the quick start guide^^watch?v=Xor9nxeNoO4  
> Then, do you know what i should save/replicate to remember/share the manual layout ?  
> I going to look through your code in search for an array to save, but if you have the answer it’ll spare me some time 🙂
> 
> Thanks

Hey @uced  
I’ve fixed the compile issues on the blueprint and reuploaded them in the quick start guide. You can grab the painted info from the ToolData of the Dungeon

```auto

UGridDungeonToolData* ToolData = Cast<UGridDungeonToolData>(Dungeon->GetToolData());
ToolData->PaintedCells

```

For reference, the function _UGridDungeonBuilder::AddUserDefinedPlatforms_ uses this

---

<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:** [April 4, 2019, 8:35am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2456 "2019-04-04T08:35:05Z")

</div>

> [@Roponator](#):
>
> I have a bug fix/proposal:
> 
> In the theme editor the dungeon is actually not fully rebuild, only markers seem to be re-emitted but in case of more complex custom markers this causes an annoying error since the rebuild in the theme editor does NOT equal the dungeon in the “real world” (scene).
> 
> So it seems that some old data remains which causes the theme editor preview to be wrong/different then when making a full dungeon rebuild by pressing “Build Dungeon” on the Dungeon actor in the world level.
> 
> This is very annoying since you cannot be sure that the new custom Selector you enabled actually worked as intented.
> 
> The hacky solution is to close the theme editor and re-open it.
> 
> Better solution: add this code to the top of the function SDungeonEditorViewport::PerformMeshRebuild:  
> …

@Roponator Thanks for the suggestion. I’ve added a new drop down on the theme editor’s viewport that gives you the option to also rebuild the dungeon layout like you mentioned above

https://i.imgur.com/f3GEhuW.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:** [April 4, 2019, 8:36am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2457 "2019-04-04T08:36:26Z")

</div>

> [@Tazzarian](#):
>
> Having a problem when trying to package any project with DA i get this  
> Module.DungeonArchitectRuntime.cpp.obj : error LNK2001: unresolved external symbol \__libm\_sse2\_sincosf_  
> any ideas whats going on?

This is a C++ compiler issue that others also got. Please reinstall your VisualC++ to solve this (Click the repair option from Visual studio setup)

---

<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:** [April 4, 2019, 8:43am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2458 "2019-04-04T08:43:34Z")

</div>

> [@uced](#):
>
> Dear,
> 
> I managed to paint cells from my code.
> 
> From this:
> 
> ![ManualDungeonTestCode.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/1/d11b89c9156668b087119c0a9c347a13ef5e1756.jpeg)
> 
> I got this:
> 
> ![ManualDungeonTest.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/0/20eb1924682c7f027eec93d1716583f93834e817.jpeg)
> 
> Which is great.  
> The rest is just a matter of using arrays, looping, making a UI and so on.
> 
> By the way, there is a small bug in the GameState BP of the DA starter pack, surely due to using old code. The AddPaintedCell and RemovePaintedCell don’t take a location as an input, instead they take a CellData which has to be built from the location like this:
> 
> ![CorrectionGS.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/c/2c21a68ea3b67f816bc5cde4f88d095135c4c6ae.jpeg)
> 
> So after fixing this i just had to find the static AddPaintCell and everything was all right, i’m going to have to save and replicate the PaintedCells array.
> 
> Now i have a last question.  
> The UGridDungeonToolData also contains 2 others arrays that are used in the Editor Paint Mode: Rectangles and Borders.  
> But i don’t see any way to use them in the UGridDungeonModelHelper.  
> Did you put any AddPaintedRectangle, RemovePaintedRectangle, AddPaintedBorder and RemovePaintedBorder functions somewhere else, or do i have to write my own functions and loop over the rectangles/borders to call the AddPaintedCell/RemovePaintedCell for each cell in the rectangle/border ?
> 
> Thanks and regards

@uced I didn’t end up using them, instead the tool rasterizes the rectangles and borders down to individual cells in code (loops and adds NxM unique individual cells to the PaintedCells array)

You can have a look at the tools on how they do this:

```auto

DungeonArchitectEditor\Private\Builders\Grid\EditorMode\Tools\GridDungeonEdToolRectangle.cpp [FGridDungeonEdToolRectangle::BuildDungeon]
DungeonArchitectEditor\Private\Builders\Grid\EditorMode\Tools\GridDungeonEdToolBorder.cpp [FGridDungeonEdToolBorder::BuildDungeon]

```

---

<div class="post-metadata">

**Author:** ![LETTICONION](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LETTICONION](https://forums.unrealengine.com/u/LETTICONION)\
**Post date:** [April 4, 2019, 9:40am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2459 "2019-04-04T09:40:53Z")

</div>

> [@unit23](#):
>
> What version does it read inside the launcher? Click on Installed Plugins…
> 
> ![tip.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/5/253be9336b38a1cc4762a30a851155184629cc53.jpeg)

Firstly; hi i am very thankful to you that you are helping me.  
Secondly; the launcher is not detecting the plugin.  
and is output from rebuild (VS)–  
[LOG.txt](https://forums.unrealengine.com/uploads/short-url/rA1qUsOAsxrD47pMQxjekapidIC.txt) (51.4 KB)

---

<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:** [April 4, 2019, 10:21am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2460 "2019-04-04T10:21:31Z")

</div>

> [@uced](#):
>
> Hi,
> 
> I got everything working fine, UI, replication, saving and all and i’m very happy with it 🙂 For the moment i only use the PaintedCells array, Rectangles and Borders are not necessary at the moment.
> 
> I still have one problem though. Marker Emitters don’t seem to work identically on painted cells and on “regular cells” (generated randomly).
> 
> , on the left is a room generated randomly and on the right a manually painted room.
> 
> ![PbCornerCenterEmitters.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/2/62c3b516f5bcfb07236019608160be33746bd065.jpeg)
> 
> Both use the same CornerEmitter and RoomCenterEmitter, but as you can see, on the left the objects are correctly grounded while on the right the objects are levitating.
> 
> The table at the center is exactly 1/2 GridCellSize above the ground, and the objects are corners are 1 GriCellSize above the ground.
> 
> It might be a problem in my code, i’ll continue to search/test, but apart from that my painted cells are perfectly placed horizontally and vertically.  
> If you have any idea…
> 
> Thanks !

@uced Glad to hear that. It’s always nice to see the stuff you create.

I’ve fixed the issue with the incorrect markers from painted cells.

```auto

void UGridDungeonBuilder::AddUserDefinedPlatform(const FRectangle& Bounds, const FCellType& CellType)
{
    //....
    cell.CellType = CellType;
    cell.Bounds = Bounds;
    cell.Bounds.Size.Z = 0; // <<<<< NEW
    //....

```

The issue with the colored tiles not showing up in the editor when switching to paint mode is also fixed. This was done by disabling this in the rendering material (DungeonArchitect Content \> Materials \> M\_DungeonEdModeOverlay \> Render After DOF = false)

https://i.imgur.com/OoSQKIq.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:** [April 4, 2019, 10:26am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2461 "2019-04-04T10:26:18Z")

</div>

> [@LETTICONION](#):
>
> Hi [USER=“28980”][/USER] I downloaded dungeon architect plugin for UE4 (4.18). I installed it manually into it then it get compiled, rebuilt and worked absolutely fine. Now I updated my unreal engine to 4.21.2 now i cannot use it. It shows compilation or rebuilt errors. About 41 errors and 8 warnings. Please help me. Or please any one other coder junkie that can resolve my problem. I will be thankful to him.  
> is log file-- [Log.txt](https://forums.unrealengine.com/uploads/short-url/5r6OMScMN3lo0lvCBL6ATJSSPFy.txt) (71.8 KB)

From your previous post, it looks like you’ve already installed DA for 4.21 from the launcher. Please do the following steps:

- Make sure your previous version you manually added to your project is removed. Go to your projects folder and remove the GAME\_PROJECT/Plugins/\*\*DungeonArchitect \*\*folder if it exists
- Launch the Unreal Editor and navigate to Edit \> Plugins and enable Dungeon Architect. Restart the editor when prompted to and try again

---

<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:** [April 4, 2019, 10:27am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2462 "2019-04-04T10:27:20Z")

</div>

I’ve added support for engine 4.22 and will submit a new update soon

---

<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:** [April 4, 2019, 11:20am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2463 "2019-04-04T11:20:21Z")

</div>

watch?v=HwkAuuCnFYk

Since the last update, Dungeon Architect supports third party extensions, i.e. support any type of asset that the engine supports (e.g. Paper2D, Apex Destruction etc) without knowing anything about it (i.e. without explicitly linking to it)

I went ahead an removed the explicit dependency on DA with Apex destruction so Apex gets added only if you use it and will not cause bloat. This means your previously created Destructible Nodes will not work (as they have been removed). You will have to drag drop your destructible assets on to the theme editor again so the new generic system picks it up and initialize a Actor node instead

I’ve added this demo in the [quick start guide](http://coderespawn.github.io/dungeon-architect-quick-start-ue4/stage/html/quick_start_guide_2.12+.html#destructible-demo)

---

<div class="post-metadata">

**Author:** ![YOHAMI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YOHAMI](https://forums.unrealengine.com/u/YOHAMI)\
**Post date:** [April 4, 2019, 1:56pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2464 "2019-04-04T13:56:47Z")

</div>

Hi, is it possible to use Dungeon Architect in runtime? I want to enable players to make their own cities in-game.

---

<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:** [April 4, 2019, 2:13pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2465 "2019-04-04T14:13:09Z")

</div>

> [@YOHAMI](#):
>
> Hi, is it possible to use Dungeon Architect in runtime? I want to enable players to make their own cities in-game.

Short version - YES. Quite easy. 😉

---

<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:** [April 4, 2019, 2:58pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2466 "2019-04-04T14:58:31Z")

</div>

I’ve submitted a new version (2.12.0) to the marketplace for review. It has also been uploaded on the website if you want to grab it now

**Version 2.12.0**

- New: Added 4.22 Engine support
- New: Removed Apex Destructible plugin dependency from Dungeon Architect and the custom Destructible mesh node support. However, destructible meshes are still supported. (Drag drop your destructible meshes on the theme editor)
- New: Added weights to theme override volumes so if they overlap, the volume with the larger weight gets its theme applied
- New: Theme editor has an option to force rebuild the preview viewport’s dungeon layout, which will be a little slow but more accurate, in case of custom marker emitter blueprint usage
- Fix: Paint mode now properly shows the colored layout, which was not being shown in some cases
- Fix: CityBuilder adds large city blocks (greater than 3x3) correctly
- Fix: Marker emitters on custom placed platforms (using platform volumes or painted cells) were having their Z registered incorrectly making objects float on air
- Fix: Improved the debug draw’s performance in the theme editor’s viewport window

---

<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:** [April 4, 2019, 3:03pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2467 "2019-04-04T15:03:09Z")

</div>

> [@](#):
>
> @uced Glad to hear that. It’s always nice to see the stuff you create.

Hey,

Thanks a ton for all the fixes, you’re incredible !

If it’s not too impolite to make a bit of self promotion, you might enjoy all the new stuff i’m doing with DA in real time in my game:

watch?v=Frhl494EkfU

If anyone is wondering, it’s actually quite easy to do, and everything is replicated and saved. I mainly ported to c++ the logic of the DA starter kit demo.

Again, thanks for all the amazing work you put in DA !

Best 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:** [April 4, 2019, 4:35pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2468 "2019-04-04T16:35:01Z")

</div>

> [@uced](#):
>
> Hey,
> 
> Thanks a ton for all the fixes, you’re incredible !
> 
> If it’s not too impolite to make a bit of self promotion, you might enjoy all the new stuff i’m doing with DA in real time in my game:
> 
> watch?v=Frhl494EkfU
> 
> If anyone is wondering, it’s actually quite easy to do, and everything is replicated and saved. I mainly ported to c++ the logic of the DA starter kit demo.
> 
> Again, thanks for all the amazing work you put in DA !
> 
> Best regards

Yag looks amazing! I love what you did at 9:26 Thanks for sharing 🙂

---

<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:** [April 4, 2019, 5:03pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2469 "2019-04-04T17:03:00Z")

</div>

> [@](#):
>
> Yag looks amazing! I love what you did at 9:26 Thanks for sharing 🙂

Thanks a lot, i’m super glad you like it 🙂

And yes, this final dungeon is really a beauty with its huge mountain stairs: the whole dungeon took me about 20 minutes to make, it was a quick test, but it turned out looking great and finally ended in the video^^.  
Manually adding great altitude differences improves the depth and mood of some dungeons.

Again, thanks a lot for your work, Yag looks that good only thanks to DA.

Cheers

---

<div class="post-metadata">

**Author:** ![Subsense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Subsense](https://forums.unrealengine.com/u/Subsense)\
**Post date:** [April 5, 2019, 11:43am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2470 "2019-04-05T11:43:16Z")

</div>

Hi!

First let me thank you for creating Dungeon Architect and Prefabricator! These tools together have huge potential. I bought DA after I’ve realized that I could use the flow system to generate levels. I wanted to achieve this myself to be able to have more control of the random nature of the game flow, and there you go… It is for me to use. Thank you very much!

As I dove into DA flow system I found myself struggling to come up with a solution for 2 problems and I am pretty sure you can point me in the right direction.

1. I could not find a solution for saving the state of the enemies (position, behavior) spawned by streamed in blueprints. After the actual level they are in is unloading they are falling. I was going to save their state on level unloading and then restore it after the level they are in is loading back in, but I am having difficulties to find a way to determine which level the actual enemies are in. Also I don’t know how to fire event that would store the enemies state on level unload.

2. Is there any way to tell the flow manager to change level variables on load. What I would like to achieve is to be able to say for example the third “hub level” streamed in should have 3x more enemies or change prefabricator setting to controll the theme of that particular level. This way I could reuse the same level and still add some variety to the dungeon or manage difficulty,theme or even fire an event.

Thanks for the hard work you put into these projects.

Attila

---

<div class="post-metadata">

**Author:** ![MarkcusD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarkcusD](https://forums.unrealengine.com/u/MarkcusD)\
**Post date:** [April 5, 2019, 4:17pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2471 "2019-04-05T16:17:45Z")

</div>

> [@](#):
>
> I’ve submitted a new version (2.12.0) to the marketplace for review. It has also been uploaded on the website if you want to grab it now
> 
> **Version 2.12.0**
> 
> - New: Added 4.22 Engine support
> - New: Removed Apex Destructible plugin dependency from Dungeon Architect and the custom Destructible mesh node support. However, destructible meshes are still supported. (Drag drop your destructible meshes on the theme editor)
> - New: Added weights to theme override volumes so if they overlap, the volume with the larger weight gets its theme applied
> - New: Theme editor has an option to force rebuild the preview viewport’s dungeon layout, which will be a little slow but more accurate, in case of custom marker emitter blueprint usage
> - Fix: Paint mode now properly shows the colored layout, which was not being shown in some cases
> - Fix: CityBuilder adds large city blocks (greater than 3x3) correctly
> - Fix: Marker emitters on custom placed platforms (using platform volumes or painted cells) were having their Z registered incorrectly making objects float on air
> - Fix: Improved the debug draw’s performance in the theme editor’s viewport window

Was just about to ask about 4.22. Thanks!

---

<div class="post-metadata">

**Author:** ![GusGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GusGame](https://forums.unrealengine.com/u/GusGame)\
**Post date:** [April 5, 2019, 7:08pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/2472 "2019-04-05T19:08:35Z")

</div>

Hello,  
I have a problem with collisions in theme. I am using same meshes at dungeon theme (which set on realtime in gameplay) and regular handmaded level but sometimes in dungeon, some blueprint actors ignore all collisions with spesific (Ive no idea) areas. Do you have any idea about these? please I need to fix asap. Is there anyone to help us, we are really stucked guys.

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

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