Search found 3 matches

by emeldi
Wed Oct 06, 2021 5:48 pm
Forum: Dialogue System for Unity
Topic: Registered Lua function throwing exception.
Replies: 5
Views: 863

Re: Registered Lua function throwing exception.

I managed to solve the problem by moving the registration calls into the MonoBehaviour, along with methods that point to the methods in the scriptable object. I tried registering the methods through the reference to the object: Lua.RegisterFunction("AddStoryScore", this, SymbolExtensions.G...
by emeldi
Wed Oct 06, 2021 4:20 pm
Forum: Dialogue System for Unity
Topic: Registered Lua function throwing exception.
Replies: 5
Views: 863

Re: Registered Lua function throwing exception.

That exception means it's not finding "AddStoryScore" in the list of functions registered with Lua. Is it possible that it's getting unregistered, perhaps by a corresponding OnDisable() method? I tried commenting out the Unregister calls in OnDisable() to make sure--no change. The log sho...
by emeldi
Wed Oct 06, 2021 2:54 pm
Forum: Dialogue System for Unity
Topic: Registered Lua function throwing exception.
Replies: 5
Views: 863

Registered Lua function throwing exception.

Registered Lua functions are throwing exception when accessed via dialogue during play. Not sure what to do about this error--but it basically cripples my ability to move forward, so any help is much appreciated. Registered the following function on a scriptable object in the scene: public void AddS...