Posts: 219
Threads: 11
Joined: Dec 2013
Thanks: 52
Given 8 thank(s) in 4 post(s)
I made 2 new hooks but i can't call them from a plugin.
Edited Files:
Plugin.h
PluginLua.cpp
PluginLua.h
PluginManager.cpp
PluginManager.h
and i call this in ClientHandle.
When you can't help me without code. Say it. I can push it on github.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
Sure, push them on a separate branch, there's very little worse than discussing non-working code without the actual code.
Also post the actual problem - does Lua say any specific error, or the hooks are simply ignored, or what?
Note that you usually need to regenerate the Bindings after such changes - CMake doesn't do that at-all for windows and almost-at-all for *nix. Otherwise you won't have the hook constants (HOOK_) exported to Lua.
Posts: 953
Threads: 16
Joined: May 2013
Thanks: 67
Given 106 thank(s) in 90 post(s)
Navigate to src/Bindings and execute the AllToLua.bat batch file there.