Page 1 of 1

Lua conditions can't be entered: Internal Error Building Condition

Posted: Thu Jan 21, 2021 9:04 am
by rykaan
Hi Tony,

I'm not sure how I did it but I've managed to break the LUA conditions section of the Dialogue System trigger. Selecting either 'Variable' or 'Custom' from the condition Wizard throws an "Internal error building condition" and doesn't retain anything I enter into the box. In the lead up to this I had been changing functions in a 'MyLuaFunctions' script and I did delete a variable from the Database, so some combination of actions I took must have broken the wizard somehow.

Here's a screenshot of the error I get.
Broken Lua conditions.jpg
Broken Lua conditions.jpg (271.11 KiB) Viewed 263 times
This is the error I get when selecting 'Custom' from the drop down menu. The same error is shown when selecting Variables except the error is "Index was outside the bounds of the array" instead of Object reference missing.

Let me know what else you might need to get to the bottom of this.

Cheers,
Rob

Re: Lua conditions can't be entered: Internal Error Building Condition

Posted: Thu Jan 21, 2021 10:20 am
by Tony Li
Hi Rob,

If you restart Unity, does the error persist?

Re: Lua conditions can't be entered: Internal Error Building Condition

Posted: Thu Jan 21, 2021 10:23 am
by rykaan
It does persist yeah.

Re: Lua conditions can't be entered: Internal Error Building Condition

Posted: Thu Jan 21, 2021 2:44 pm
by Tony Li
Would it be possible for you to email a copy of the dialogue database to tony (at) pixelcrushers.com?

Re: Lua conditions can't be entered: Internal Error Building Condition

Posted: Fri Jan 22, 2021 6:03 am
by rykaan
Hi Tony,

I've sent the email through. Cheers for looking into this for me.

Re: Lua conditions can't be entered: Internal Error Building Condition

Posted: Fri Jan 22, 2021 1:08 pm
by Tony Li
(Updating to DS 2.2.14 resolved the issue.)