ArgumentException: failed to convert parameters

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Timeslip
Posts: 39
Joined: Fri Apr 05, 2019 6:31 am

ArgumentException: failed to convert parameters

Post by Timeslip »

Hi Tony,

I'm getting the error in the title when trying to run a Lua function. The function is registered like this and also unregistered.

Code: Select all

Lua.RegisterFunction("GetHighestTeamSkill", this, SymbolExtensions.GetMethodInfo(() => GetHighestTeamSkill(0, false)));
This is what is being called in the script section of the dialogue:

Code: Select all

GetHighestTeamSkill(12,false);
Any idea what might be the problem here?
Timeslip
Posts: 39
Joined: Fri Apr 05, 2019 6:31 am

Re: ArgumentException: failed to convert parameters

Post by Timeslip »

Nevermind - forgot that Lua requires double, and was passing an int.
Post Reply