Random room generation

I’m working on a liminal spaces game using Blueprint scripting in Unreal Engine. I’ve set up a system that spawns rooms, but I’m running into a few issues:

  1. Everything is spawning at the 0,0 location. I need to avoid spawning any rooms in the center room that I’ve manually placed before generating new rooms. How can I prevent rooms from overlapping or spawning in this central area? How can I prevent rooms from overlapping or spawning on each other?
  2. The system is spawning 12 hallways and 11 corners, but they’re all within each other, making it look like only one of each room type is being generated. Sometimes, it does grab a different room, but this behavior is inconsistent.
  3. The system only spawns 23 rooms, but I need it to spawn an infinite number of rooms. How can I make the room generation loop properly so that it doesn’t stop after 23 rooms?
    Any suggestions or guidance on fixing these issues would be greatly appreciated!

Hey, so theres a few different ways to generate levels like this, heres a previous forum post where someone post a tutorial on this - Generating simple procedural dungeon - #2 by CradleRobin