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

<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 25, 2016, 7:48am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1017 "2016-09-25T07:48:43Z")

</div>

> [@MSTF;599657](#):
>
> Hi (Merhaba) ,
> 
> I’m just not sure but please look at [https://forums.unrealengine.com/showthread.php?2712-Streaming-levels-with-an-offset&p=18007&viewfull=1#post18007](https://forums.unrealengine.com/showthread.php?2712-Streaming-levels-with-an-offset&p=18007&viewfull=1#post18007) Probably this is what you want (Spawn same sub-level more than once.)

Thank you @MSTF. That is very useful. This works during runtime, however the editor gives errors since we change the package names as a workaround in that thread. So I’ve made two implementations, one for the editor and another for the runtime. If it is a runtime only build (e.g. standalone game) it would use the implementation mentioned in the thread. If we are in the editor, I use the editor services to clone the level files and map them to the world composition so we don’t get any warnings in the editor

This way it solves the problem in both editor and non-editor builds

's the code, if anyone is interested on getting something like this done

**Non-Editor Builds (e.g. standalone)**

```auto

ULevel* FDungeonNonEditorFallbackService::CreateStreamingLevelInstance(UWorld* InWorld, const FTransform& Transform, const TAssetPtr<UWorld>& WorldAsset, UClass* LevelStreamingClass) {
	ULevel* NewLevel = NULL;
	if (LevelStreamingClass == NULL) {
		return NULL;
	}

	ULevelStreaming* StreamingLevel = NewObject<ULevelStreaming>(InWorld, LevelStreamingClass, NAME_None, RF_NoFlags, NULL);

	FString PackageName = WorldAsset.GetLongPackageName();
	FString UniquePackageName = PackageName + "_" + FGuid::NewGuid().ToString();
	StreamingLevel->SetWorldAssetByPackageName(FName(*UniquePackageName));

	StreamingLevel->LevelTransform = Transform;
	StreamingLevel->PackageNameToLoad = FName(*PackageName);
	StreamingLevel->bShouldBeLoaded = true;
	StreamingLevel->bShouldBeVisible = true;
	StreamingLevel->bShouldBlockOnLoad = false;
	StreamingLevel->LevelColor = FLinearColor::MakeRandomColor();

	// Add the new level to world.
	InWorld->StreamingLevels.Add(StreamingLevel);

	// Refresh just the newly created level.
	TArray<ULevelStreaming*> LevelsForRefresh;
	LevelsForRefresh.Add(StreamingLevel);
	InWorld->RefreshStreamingLevels(LevelsForRefresh);
	InWorld->MarkPackageDirty();

	NewLevel = StreamingLevel->GetLoadedLevel();
	if (NewLevel != nullptr)
	{
		//EditorLevelUtils::SetLevelVisibility(NewLevel, true, true);

		// Levels migrated from other projects may fail to load their world settings
		// If so we create a new AWorldSettings actor .
		if (NewLevel->GetWorldSettings(false) == nullptr)
		{
			UWorld* SubLevelWorld = CastChecked<UWorld>(NewLevel->GetOuter());

			FActorSpawnParameters SpawnInfo;
			SpawnInfo.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
			SpawnInfo.Name = GEngine->WorldSettingsClass->GetFName();
			AWorldSettings* NewWorldSettings = SubLevelWorld->SpawnActor<AWorldSettings>(GEngine->WorldSettingsClass, SpawnInfo);

			NewLevel->SetWorldSettings(NewWorldSettings);
		}
	}

	return NewLevel;
}

```

**Editor Builds**

```auto

	template<typename T>
	static T* CloneAsset(const FString& TemplatePath, const FString& TargetName, const FString& TargetDirectory) {
		T* Template = LoadObject<T>(NULL, *TemplatePath, NULL, LOAD_None, NULL);
		IAssetTools& AssetTools = FModuleManager::GetModuleChecked<FAssetToolsModule>("AssetTools").Get();
		UObject* AssetObject = AssetTools.DuplicateAsset(TargetName, TargetDirectory, Template);
		T* Asset = Cast<T>(AssetObject);
		if (!Asset) {
			UE_LOG(LogEditorService, Warning, TEXT("Failed to clone asset at location %s/%s"), *TargetDirectory, *TargetName);
		}
		return Asset;
	}

ULevel* FDungeonEditorService::CreateStreamingLevelInstance(UWorld* InWorld, const FTransform& Transform, const TAssetPtr<UWorld>& WorldAsset, UClass* LevelStreamingClass)
{
	ULevel* NewLevel = nullptr;
	if (LevelStreamingClass == NULL) {
		return NULL;
	}

	ULevelStreaming* StreamingLevel = NewObject<ULevelStreaming>(InWorld, LevelStreamingClass, NAME_None, RF_NoFlags, NULL);

	// Clone the streaming world
	if (!InWorld || !InWorld->GetOutermost()) {
		UE_LOG(LogEditorService, Error, TEXT("Cannot create streaming level. World context state is invalid"));
		return nullptr;
	}

	FString ClonedAssetName = WorldAsset->GetName() + "_" + FGuid::NewGuid().ToString();
	FString ClonedAssetPath = InWorld->GetOutermost()->GetName() + "_SnapStreamingInstances";
	UWorld* ClonedWorld = CloneAsset<UWorld>(WorldAsset.GetLongPackageName(), ClonedAssetName, ClonedAssetPath);
	if (!ClonedWorld) {
		UE_LOG(LogEditorService, Error, TEXT("Failed to clone snap module"));
		return nullptr;
	}
	FStringAssetReference ClonedWorldAssetRef(ClonedWorld);
	FString ClonedWorldPath = ClonedWorldAssetRef.ToString();
	StreamingLevel->SetWorldAssetByPackageName(FName(*ClonedWorldPath));

	StreamingLevel->LevelTransform = Transform;
	StreamingLevel->bShouldBeLoaded = true;
	StreamingLevel->bShouldBeVisible = true;
	StreamingLevel->bShouldBlockOnLoad = false;
	StreamingLevel->LevelColor = FLinearColor::MakeRandomColor();

	// Add the new level to world.
	InWorld->StreamingLevels.Add(StreamingLevel);

	// Refresh just the newly created level.
	TArray<ULevelStreaming*> LevelsForRefresh;
	LevelsForRefresh.Add(StreamingLevel);
	InWorld->RefreshStreamingLevels(LevelsForRefresh);
	InWorld->MarkPackageDirty();

	NewLevel = StreamingLevel->GetLoadedLevel();
	if (NewLevel != nullptr)
	{
		//EditorLevelUtils::SetLevelVisibility(NewLevel, true, true);

		// Levels migrated from other projects may fail to load their world settings
		// If so we create a new AWorldSettings actor .
		if (NewLevel->GetWorldSettings(false) == nullptr)
		{
			UWorld* SubLevelWorld = CastChecked<UWorld>(NewLevel->GetOuter());

			FActorSpawnParameters SpawnInfo;
			SpawnInfo.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
			SpawnInfo.Name = GEngine->WorldSettingsClass->GetFName();
			AWorldSettings* NewWorldSettings = SubLevelWorld->SpawnActor<AWorldSettings>(GEngine->WorldSettingsClass, SpawnInfo);

			NewLevel->SetWorldSettings(NewWorldSettings);
		}
	}

	return NewLevel;
}

```

---

<div class="post-metadata">

**Author:** ![Bioblaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bioblaze](https://forums.unrealengine.com/u/Bioblaze)\
**Post date:** [September 25, 2016, 10:10am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1018 "2016-09-25T10:10:17Z")

</div>

> [@;592920](#):
>
> I’ve rewritten the data structure so you should have access to the graph data structure (to query other modules attached to a door)

Can you throw me a Example, I think i`m Doing something wrong @.@ Everything I`ve Tried, that should work for allocation of information/Actors/Meshes in the Route arent working -\_-

---

<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 25, 2016, 6:32pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1019 "2016-09-25T18:32:54Z")

</div>

> [@;599782](#):
>
> Thank you @MSTF. That is very useful. This works during runtime, however the editor gives errors since we change the package names as a workaround in that thread. So I’ve made two implementations, one for the editor and another for the runtime. If it is a runtime only build (e.g. standalone game) it would use the implementation mentioned in the thread. If we are in the editor, I use the editor services to clone the level files and map them to the world composition so we don’t get any warnings in the editor
> 
> This way it solves the problem in both editor and non-editor builds
> 
> 's the code, if anyone is interested on getting something like this done

So I think you are saying this fixes the bug of having things get hung up and not allowing save. So in this dual case thing does that mean things like vegetation are only going to work in the editor? Also Where do things stand on Baked lighting and Vertex Painting blended materials? Will there be a binary build of this available on the site 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:** [September 25, 2016, 6:38pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1020 "2016-09-25T18:38:08Z")

</div>

Everything works, foliage, lights vertex paint etc. I’ll have an update In 1 or 2 days. It also fixes the save bug

---

<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 25, 2016, 8:19pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1021 "2016-09-25T20:19:11Z")

</div>

![964c993f76d5cb62c01cdc6ef18906eb3b8f78fd.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

Thank you soooo much!

---

<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 25, 2016, 9:25pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1022 "2016-09-25T21:25:12Z")

</div>

Hi,

Sorry for the very long post, i hope it can be a starting point for anyone interested in using DA with c++ 🙂

My code seems to be working so is how it looks like:  
watch?v=MffP7li8hMM

And 's how it’s done.

First i had to tell my project there is a new plugin in town:

```auto

Build.cs:
PublicDependencyModuleNames.AddRange(new string] { "DungeonArchitectRuntime" });
PublicIncludePaths.AddRange(new string] { "DungeonArchitectRuntime/Public", "DungeonArchitectRuntime/Classes" });

```

Then i created a class inheriting from ADungeon in which i included all the DA headers i needed.  
I also created a structure containing all the variables i want to expose, because a structure is easily replicated and saved/reloaded.

```auto

DADungeon.h:
#include "DungeonThemeAsset.h"
#include "Builders/Grid/GridDungeonBuilder.h"
#include "Builders/Grid/GridDungeonConfig.h"
#include "Builders/FloorPlan/FloorPlanBuilder.h"
#include "Builders/FloorPlan/FloorPlanConfig.h"
#include "Core/Utils/DungeonModelHelper.h"

// Actor gameplay properties
USTRUCT()
struct FDAFdD{};

class YAG_API ADADungeon : public ADungeon
{
	...]
	UPROPERTY(ReplicatedUsing = OnRep_FdD)
		FDAFdD FdD;
	UFUNCTION()
		void OnRep_FdD();
	...]
};

```

I had to set its root component to movable to be able to teleport the dungeons in game:

```auto

ADungeon.cpp:
ADADungeon::ADADungeon(const FObjectInitializer& ObjectInitializer)
	: Super(ObjectInitializer)
{
	...]
	GetRootComponent()->SetMobility(EComponentMobility::Movable);
	...]
}

```

Don’t forget to replicate the structure:

```auto

void ADADungeon::GetLifetimeReplicatedProps(TArray< FLifetimeProperty > & OutLifetimeProps) const
{
	Super::GetLifetimeReplicatedProps(OutLifetimeProps);
	DOREPLIFETIME(ADADungeon, FdD);
	...]
}

```

The core of the class is the RebuildDungeon method in which i use the code provided by.  
I put it entirely :

```auto

void ADADungeon::RebuildDungeon()
{
	// Grab a reference to the theme asset and register it with the dungeon actor
	FString StrDATheme = "/Game/DLCDaDungeons/Themes/" + FdD.DAThemeName / FdD.DAThemeName;
	UDungeonThemeAsset* DATheme = Cast<UDungeonThemeAsset>(StaticLoadObject(UDungeonThemeAsset::StaticClass(), nullptr, *StrDATheme));
	if (!DATheme) return;

	// set the new theme
	Themes.Empty();
	Themes.Add(DATheme);

	// Set the builder type
	if (FdD.DADungeonTypeEnum == DADungeonEnum::DADUNGEON_GRID)
	{
		BuilderClass = UGridDungeonBuilder::StaticClass();
		CreateBuilderInstance();

		// Set the dungeon configuration
		UGridDungeonConfig* GridConfig = Cast<UGridDungeonConfig>(GetConfig());
		if (GridConfig) {
			GridConfig->Seed = FdD.Seed;
			GridConfig->Instanced = true;
			GridConfig->NumCells = FdD.NumCells;
			GridConfig->MinCellSize = FdD.MinCellSize;
			GridConfig->MaxCellSize = FdD.MaxCellSize;
			GridConfig->SpanningTreeLoopProbability = FdD.SpanningTreeLoopProbability;
			GridConfig->HeightVariationProbability = FdD.HeightVariationProbability;
			GridConfig->MaxAllowedStairHeight = FdD.MaxAllowedStairHeight;
		}
	}

	if (FdD.DADungeonTypeEnum == DADungeonEnum::DADUNGEON_FLOOR)
	{
		BuilderClass = UFloorPlanBuilder::StaticClass();
		CreateBuilderInstance();

		// Set the dungeon configuration
		UFloorPlanConfig* PlanConfig = Cast<UFloorPlanConfig>(GetConfig());
		if (PlanConfig) {
			PlanConfig->Seed = FdD.Seed;
			PlanConfig->Instanced = true;
			PlanConfig->BuildingSize = FdD.BuildingSize;
			PlanConfig->MinRoomSize = FdD.MinRoomSize;
			PlanConfig->MaxRoomSize = FdD.MaxRoomSize;
			PlanConfig->HallWidth = FdD.HallWidth;
			PlanConfig->MinRoomChunkArea = FdD.MinRoomChunkArea;
		}
	}

	// build the dungeon
	BuildDungeon();
}

```

This function is called whenever the FdD structure is changed, through the OnRep function:

```auto

void ADADungeon::OnRep_FdD()
{
	...]
	RebuildDungeon();
	...]
}

```

The dungeon is spawned by the player controller in a server function:

```auto

void AyagPlayerController::ServerSpawnDADungeon_Implementation(const FString& NewDAThemeName)
{
	// player location
	AYagPlayer* YagDefaultPawn = Cast<AYagPlayer>(DefaultPawn);
	if (!YagDefaultPawn) return;

	// spawning location
	// ground altitude relative to the player: -1/2 capsule
	float DeltaZToGround = -DefaultPawn->GetCapsuleComponent()->GetScaledCapsuleHalfHeight();
	FVector DADungeonLocation = DefaultPawn->GetActorLocation() + FVector(0.f, 0.f, DeltaZToGround) + 500.f * GetActorForwardVector();

	// rotation
	FRotator DADungeonRotation = FRotator(0.f, 0.f, 0.f);

	// spawn DADungeon
	FActorSpawnParameters SpawnDADungeonParams;

	ADADungeon* SpawnedDADungeon = GetWorld()->SpawnActor<ADADungeon>(ADADungeon::StaticClass(), DADungeonLocation, DADungeonRotation, SpawnDADungeonParams);
	if (!SpawnedDADungeon) return;

	// game state
	AYagGameState* MyGameState = Cast<AYagGameState>(GetWorld()->GameState);
	if (!MyGameState) return;

	// set DADungeon type
	FDAFdD NewFdD;
	NewFdD.DAName = Display(TextEnum::DUNGEON) + " " + FString::FromInt(MyGameState->DADungeonArray.Num() + 1);
	NewFdD.Seed = DungeonRandStream.GetUnsignedInt();
	NewFdD.DAThemeName = "Default";

	// This is the server function which replicates the FdD structure and triggers the call of the OnRep function on every clients
	SpawnedDADungeon->SetFdD(NewFdD);

	// add in DADungeon array
	MyGameState->DADungeonArray.Add(SpawnedDADungeon);
	...]
}

```

Destroying is done by calling the ADungeon::DestroyDungeon() method and then destroying the dungeon actor.

Saving and reloading are made through the FdD structure, nothing fancy.  
When reloading, i just read the FdD, then spawn a new dungeon and assign the FdD to it.

Hope this helps !  
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:** [September 26, 2016, 4:10am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1023 "2016-09-26T04:10:39Z")

</div>

> [@uced;599963](#):
>
> Hi,
> 
> Sorry for the very long post, i hope i can be a starting point for anyone interested in using DA with c++ 🙂
> 
> My code seems to be working so is how it looks like:  
> watch?v=MffP7li8hMM
> 
> And 's how it’s done.

, your game is looking . I really like what you did with it and thank you for posting the code 🆒

---

<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 26, 2016, 4:23am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1024 "2016-09-26T04:23:40Z")

</div>

A quick update on the marketplace integration for website customers, I waited for a few days for people to respond (about 45% have responded) and sent the list to Epic last week (on 20th). I’ll let you know if I hear from them

---

<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 26, 2016, 4:56am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1025 "2016-09-26T04:56:41Z")

</div>

> [@;600070](#):
>
> , your game is looking . I really like what you did with it and thank you for posting the code 🆒

Thanks a lot 🙂

---

<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 26, 2016, 1:50pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1026 "2016-09-26T13:50:37Z")

</div>

**Version 2.1.11-beta.1**

- Snap builder now uses world composition to build the scene. This retains all the other engine features in the modules like lightmaps, foliage, level blueprint scripts 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:** [September 26, 2016, 2:23pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1027 "2016-09-26T14:23:32Z")

</div>

> [@;599797](#):
>
> Can you throw me a Example, I think i`m Doing something wrong @.@ Everything I`ve Tried, that should work for allocation of information/Actors/Meshes in the Route arent working -\_-

@, I’ve have a sample soon

---

<div class="post-metadata">

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

</div>

[MENTION=28980][/MENTION] Is there any way to tell the Isaac Builder to:

1. spawn a certain marker only once per room? (I think a selection logic would be applied, but how do I tell the engine to select only the middle cell, if my rooms are 3x3 cells?)  
I tried also creating a new Marker Emitter live I’ve seen in this picture on the documentation page: [http://coderespawn.github.io/dungeon-architect-user-guide-ue4/stage/assets/images/marker\_emitter\_eg1\_1.png](http://coderespawn.github.io/dungeon-architect-user-guide-ue4/stage/assets/images/marker_emitter_eg1_1.png)  
But when I drag off the model pin, it does not return “break dungeonmodel” node. (pin color is blue, not darkblue like in your picture)

2. spawn a marker with 100% probability only just once per seed?

PS.: For the Isaac Builder, there is literally no documentation ☹

---

<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 27, 2016, 8:46pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1029 "2016-09-27T20:46:06Z")

</div>

> [@;600236](#):
>
> **Version 2.1.11-beta.1**
> 
> - Snap builder now uses world composition to build the scene. This retains all the other engine features in the modules like lightmaps, foliage, level blueprint scripts etc

Ok this seems to work with the exception being that you can’t seem to do it with Source control active. on a non source control project it works as best as I cant tell but when you build in a project under source control. "PERFORCE 4 " as it is building the editor starts trying to add a ton of files to the source control and then crashes. Not sure if there is a way to flag these as cache so this doesn’t happen or if it has to do with the way it seem that now all of the temp files get written to a folder in the same folder as the map. Anyway it overwhelms the system and it crashes the editor every-time with source control on.

Is there a way to make it toss that stuff in the “Intermediate” folder or something so it isnt under the source monitored folders? or a way to flag it I guess either way

The only real "BUG I have noticed is in the world outliner all of the objects are getting thrown int he root of it instead of in the dungeon items folder. This makes it a nightmare to navigate.

Back to testing

---

<div class="post-metadata">

**Author:** ![Ratamorph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ratamorph](https://forums.unrealengine.com/u/Ratamorph)\
**Post date:** [September 28, 2016, 3:43am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1030 "2016-09-28T03:43:11Z")

</div>

[MENTION=28980][/MENTION] Really nice plugin, exactly what I needed. I got 2.1.10 installed on 4.13(OSX), are some questions:

1. When you have 2 or more dungeon actors on a level and use the paint mode, how do I choose which dungeon I’m painting on? I noticed in the videos and docs you have a dropdown to choose where to paint, I don’t have such option in my editor, just the brush size and floor index.

2. How do I paint a room? No matter how large I paint an area it always paints corridors. Can this only be done using the platform volume? Using the platform volume method doesn’t create door openings on rooms when manually paining from it, only creates door openings when procedural generated dungeon parts connect to it, If I set my number of cells to 0 and do all the creation manually I never get doors.

3. Is it possible to use snap doors in custom made dungeon pieces and fill the gaps with procedural generation? Say I create an intro section and a boss room in Maya, can I place them in the level and use snap doors to generate a grid based dungeon that connects the two?

4. Is there a roadmap for planned features?

Feature request:

Have a way to change generated marker types manually.

are some sample scenarios:

a. Generated dungeon is perfect, but some stairs are not desired, be able to remove those stairs and have the change persist when I regenerate the dungeon like it does when I manually add/remove cells. Basically change the stair marker for a ground marker in a case by case basis.

b. Be able to expand or remove door openings on a case by case basis. Basically change a door marker for a wall marker or vice versa.

I’m aware that I can modify the generated dungeon and remove actors and parts as a please, but when I regenerate the dungeon or manually paint anywhere those edits are lost. Say I create a dungeon graybox using basic shapes and materials much like you do in your tutorial, I edit and tweak for function, remove some stairs, make some door openings wider, etc, then I apply the template that has the final look, all my changes and edits should persist.

---

<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 29, 2016, 4:52am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1031 "2016-09-29T04:52:04Z")

</div>

> [@;600236](#):
>
> **Version 2.1.11-beta.1**
> 
> - Snap builder now uses world composition to build the scene. This retains all the other engine features in the modules like lightmaps, foliage, level blueprint scripts etc

Compactly crashes on build EVERY time now. even cleared the dungeon and built a new one in a blank map with only a couple rooms and a connector. crashed. tried turning all of the setting like total rooms to 10 and safety limit to 50 and still crashed.

---

<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 29, 2016, 5:25am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1032 "2016-09-29T05:25:22Z")

</div>

Had to roll back to 2.1.10 So it still has the saving but. so what is the properway to trigger the snap builder int he level blue print I would assume…

Tried This: ![512b3ece8084208a2e7632fba025fc2bbf661110.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

it doesnt seem to work.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17a653651](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17a653651](https://forums.unrealengine.com/u/anonymous_user_17a653651)\
**Post date:** [September 29, 2016, 5:06pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1033 "2016-09-29T17:06:35Z")

</div>

> [@](#):
>
> Had to roll back to 2.1.10 So it still has the saving but. so what is the properway to trigger the snap builder int he level blue print I would assume…  
> it doesnt seem to work.

This is how I do it:

 ![dungeon1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/8/0800922482f4702888fd8838c3f61ebbde43304d.jpeg)

---

<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 29, 2016, 5:59pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1034 "2016-09-29T17:59:21Z")

</div>

right that would give you variables that you could change but does it not just run with the setting you have put in it in the editor. I shouldn’t have to set them again? I mean the only thing I would ever want to change would be the seed. But unless I pass it one it should go with the value in the editor should it not?

---

<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:** [September 29, 2016, 11:50pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1035 "2016-09-29T23:50:35Z")

</div>

This plugin looks . Followed the development on the Unity side for a while, but now making an Unreal project where this could be amazing!

Question: How might you go about using this to generate 3d platformer levels - eg “wall-less” platforms floating in air that aren’t connected always by hallways and need to be spaced according to the player’s possible jump distance.

Would I make invisible / collision-less hallway tiles and walls? Basically it’d be like a dungeon but with only the rooms, which are mainly floors + set dressing?

---

<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 30, 2016, 12:31am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1036 "2016-09-30T00:31:04Z")

</div>

that shouldn’t be an issue I wouldn’t think.

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

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