Issues with NLua Integration
Posted: Wed Mar 30, 2022 8:28 am
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:
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:
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.
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'
Code: Select all
'Lua' does not contain a definition for 'warnRegisteringExistingFunction'