Page 1 of 1

Issues with NLua Integration

Posted: Wed Mar 30, 2022 8:28 am
by Chalk
Hey there,

I'm attempting to use NLua instead of the built in Lua interpreter, but I seem to have some issues. I've used NLua in the past with the Dialogue System, but since the latest update it doesn't seem to work. It appears that NLua_DialogueLua is missing two major methods, namely RegisterLuaFunctions and StringToFieldName, and NLua_Lua is missing the warnRegisteringExistingFunction property.

The error are as follows:

Code: Select all

'DialogueLua' does not contain a definition for 'RegisterLuaFunctions'
'DialogueLua' does not contain a definition for 'StringToFieldName'
I copied over StringToFieldName from DialogueLua into NLua_DialogueLua, and that gets rid of the second error, however I can't copy over RegisterLuaFunctions as it then gives me the following error:

Code: Select all

 'Lua' does not contain a definition for 'warnRegisteringExistingFunction'
Commenting out the three references to warnRegisteringExistingFunction in the newly copied NLua_DialogueLua.RegisterLuaFunctions method gets rid of the error, however I have no idea how this impacts the functionality of the Lua system.

Re: Issues with NLua Integration

Posted: Wed Mar 30, 2022 8:59 am
by Tony Li
Hi,

I'll check that and post a patch here today.

Re: Issues with NLua Integration

Posted: Wed Mar 30, 2022 9:27 pm
by Tony Li
Hi,

Sorry about that. The latest change in the NLua branch didn't get merged into the release branch. Here's the NLua patch:

DS_NLuaPatch_2022-03-30.unitypackage