BenPyton / ProceduralDungeon

This is an Unreal Engine 4/5 plugin to generate procedural dungeon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to offset the starting room?

SAM2WOW opened this issue · comments

Hello!

I'm wondering if it's possible to spawn the first room in a different location than the origin?

I'm trying to make a continuous procedural level where I want to generate the next set of rooms from where the end room of the previous generation is at.

Thank you!

Hi @SAM2WOW

Yes it is possible.
You just have to enable the Use Generator Transform in your DungeonGenerator actor and place it where you want your starting room.
(the issue #15 is when I implemented the feature)

P.S.: I noticed that it is not documented in the wiki, I will update it when I have some times.

Best.

I've updated the wiki page of Dungeon Generator to document this setting.

Did it solved your issue?

Oh yes! I haven't got to try the generator transform but I think I understand how it works. Thank you so much for the update!

On that note, I do have another question. Is it possible to generate again without deleting the previous generation?

Hi @SAM2WOW

Is it possible to generate again without deleting the previous generation?

It depends on what you means.
You can call the Generate functions again on a DungeonGenerator actor without reloading the master map.
However it will first unload all the existing rooms before creating the new dungeon.

If I understand correctly your question, you want to keep the previous rooms and generate another dungeon.
So you have to place new DungeonGenerator actors in the master map to generate independent dungeons. (The new actor has to be in the center of the cell (0,0,0) of the new first room, where the magenta prism is).

However, be careful: the new dungeon will not have knowledge of the rooms of the first dungeon, so it could generate rooms overlapping the ones of the previous dungeon...
You'll have to create generation rules to avoid that in all situations.

In fact, having the possibility to trigger the generation from an existing room of the dungeon, like a continuous generation, could be a good feature to add to the plugin for the next major release (but is not trivial, especially with the navmesh)

Best.

Ah, that is indeed what I'm trying to do. And Thank you so much!