Error code?

“ERROR:GAMESYS: Error when finalizing gui component: -2.”

When does this happen? Can you reproduce it?

Yes I can - it’s part of several errors dealing with a GUI object that is being referenced that’s in another scene. However, it’s weird because I thought I unloaded it, I thought I’ve deleted it otherwise, I’ve tried a few things and I can’t get it to stop. I set it aside for now to focus on other things, but I can package a build for you to explore later this week once I get other items taken care of.

1 Like

The error code itself is the internal error dmGui::RESULT_SCRIPT_ERROR during the destruction of the which doesn’t say very much in itself.

However, the only place it’s returned is when some gui script function is run, and since you didn’t post any other error output, I can pinpoint it to only one location, when calling finalize in the gui script.

Does that function contain any hints as to what might go wrong?

1 Like

It does involve finalize - I’ll post more later, been testing 1.66 and the HTML5 audio issues for a bit.