shun126 / UE5-DungeonGeneratorDemo

Unleash Limitless Dungeon Exploration with Unreal Engine 5's Plugin. Create custom rulesets and generate efficiently for a unique and immersive experience.
https://www.unrealengine.com/marketplace/slug/36a8b87d859f44439cfe1515975d7197
MIT License
27 stars 4 forks source link

UE 5.1 crashes when using sublevels (or start/end rooms) #15

Open shun126 opened 3 months ago

shun126 commented 3 months ago

How to reproduce:

I created a blank Level and set its Script Actor's parent class to the Dungeon Sublevel Script Actor, and then I put some static meshes and Player Start on it.

I registered it in: DungeonSublevelDatabase -> Generate Parameter.

Then when I regenerated the dungeon, Unreal Engine crashed

It shows:

Assertion failed: false UnrealEditor_DungeonGenerator! UDungeonSubLevelDatabase::ConvertImpl() [D:buildU5M-MarketplaceSyncLocalBuildsPluginTempHostProjectPluginsDungeonGeneratorSourceDungeonGeneratorPrivate SubLevelDungeonSubLevelDatabase.cpp:122]

Unreal 5.1.1

DungeonGenerator 1.5.2/1.5.3/1.5.5 from marketplace

you says it's caused by a bug in 1.5.2, but I upgraded to 1.5.5 and the problem still exists.

I have a feeling it's because of the level streaming bShouldBlockOnLoad bug in ue 5.1: Level streaming: FlushLevelStreaming() causes BeginPlay() not to be called - Development / Programming & Scripting - Epic Developer Community Forums (unrealengine.com)

Level Streaming "Should Block On Load" Does Not Work - Programming & Scripting / Blueprint - Epic Developer Community Forums (unrealengine.com)

This causes your level streaming object to not actually finish loading, and operations on this object may cause ue to crash, Please confirm this problem and help me figure out how to fix it

Reprinted from Marketplace

shun126 commented 3 months ago

I am really sorry to keep you waiting. I could not reproduce it with UnrealEngine 5.1.1 and Plugin 1.5.11. I will look into this a bit more.