01-12-2014, 01:42 AM
X-Post from The Gallery plugin thread:
Me:
How did you init the handlers in the Info.lua? I'm now working on another plugin but I have to use dofile(PLUGIN:GetLocalFolder() .. "/Info.lua") first and then use the RegisterPluginInfoCommands() function.
Xoft:
I'm doing the registration in the Initialize() function; so that I know that all the Lua files inside the plugin folder have already been loaded and the globals are available.
Me:
I have the RegisterPluginInfoCommands() function in the Initialize function but if I don't put the dofile function before it I get these errors:
Code Repo:
https://github.com/STRWarrior/Paths
Me:
How did you init the handlers in the Info.lua? I'm now working on another plugin but I have to use dofile(PLUGIN:GetLocalFolder() .. "/Info.lua") first and then use the RegisterPluginInfoCommands() function.
Xoft:
I'm doing the registration in the Initialize() function; so that I know that all the Lua files inside the plugin folder have already been loaded and the globals are available.
Me:
I have the RegisterPluginInfoCommands() function in the Initialize function but if I don't put the dofile function before it I get these errors:
Code Repo:
https://github.com/STRWarrior/Paths