Open dimanjy opened 3 years ago
I'm also seeing this problem. I was hoping for each NPC to have its own story describing its interaction with the player. When there are multiple NPCs with Story objects in a map, the Unreal editor crashes. For me, it was throwing an exception from MonoInvoke when I was trying to add an observer callback.
How long are your Ink stories? Are you using multiple StoryAssets or one large StoryAssets? We found out that loading long stories multiple times leads to crashes, maybe exceeding the stack size in Mono. Using multiple, smaller StoryAssets might be a solution.
How long are your Ink stories? Not too long. The longest .ink file is only 200 lines long, with a lot of comments and blank lines.
Are you using multiple StoryAssets or one large StoryAssets? Multiple StoryAssets.
I'm using an Array of Story objects. One Story for each NPC in my game. Each Story initialization takes place only when I'm starting my conversation with next NPC. But when I'm returning to the previous NPC (switching the pointer of the Story Array to the previous array index) - the Engine crashes with Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000000
Is there any way to manage more than one Story object at the same time?