nathanhoad / godot_dialogue_manager

A powerful nonlinear dialogue system for Godot
MIT License
2.05k stars 160 forks source link

Can't run the game after export #566

Closed ksmithdev closed 4 months ago

ksmithdev commented 4 months ago

I'm actually experiencing this exact issue as #552. I'm using the latest Godot (Godot Engine v4.2.2.stable.mono.official.15073afe3) and Windows 11, but whenever I export a project that has this plugin enabled, the program fails to run. It simply closes after loading up.

I even tried creating a brand new project and only added this addon and enabled it and it still fails.

Event viewer has this information:

Faulting application name: DialogManagerCrashTest.exe, version: 4.2.2.0, time stamp: 0x00000000
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x0000000000000000
Faulting process id: 0x0x2900
Faulting application start time: 0x0x1DAA548888DED22
Faulting application path: [redacted]\DialogManagerCrashTest\.exports\Windows\DialogManagerCrashTest.exe
Faulting module path: unknown
Report Id: a7e885f0-f41c-405e-87e1-ba5ad4ff5858
Faulting package full name: 
Faulting package-relative application ID: 

Here's the project I created: DialogManagerCrashTest.zip

_Originally posted by @ksmithdev in https://github.com/nathanhoad/godot_dialogue_manager/issues/552#issuecomment-2108172430_

ksmithdev commented 4 months ago

Interesting. The issue doesn't happen when I use v4.2.2.stable.official [15073afe3] only v4.2.2.stable.mono.official [15073afe3]

ksmithdev commented 4 months ago

It appears to be crashing on this line: https://github.com/nathanhoad/godot_dialogue_manager/blob/bca970c5599f3b8d95d4fe8b2fe59b30a876fa55/addons/dialogue_manager/settings.gd#L181 And if I comment that out it then crashes on this line next: https://github.com/nathanhoad/godot_dialogue_manager/blob/bca970c5599f3b8d95d4fe8b2fe59b30a876fa55/addons/dialogue_manager/settings.gd#L182 And then finally here: https://github.com/nathanhoad/godot_dialogue_manager/blob/bca970c5599f3b8d95d4fe8b2fe59b30a876fa55/addons/dialogue_manager/dialogue_manager.gd#L309

So something with the resource loader interacting with that cs file seem to be amok.

nathanhoad commented 4 months ago

I've updated how Dialogue Manager detects an actual C# project so let me know if you run into any issues (it appears to work fine with that crash test project).