Page 1 of 1

ArgumentException: failed to convert parameters

Posted: Tue May 21, 2019 7:03 am
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?

Re: ArgumentException: failed to convert parameters

Posted: Tue May 21, 2019 7:15 am
by Timeslip
Nevermind - forgot that Lua requires double, and was passing an int.