Issues with NLua Integration

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Chalk
Posts: 4
Joined: Wed Mar 30, 2022 8:17 am

Issues with NLua Integration

Post 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.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issues with NLua Integration

Post by Tony Li »

Hi,

I'll check that and post a patch here today.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issues with NLua Integration

Post 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
Post Reply