• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Problem HookMgr.h

Status
Not open for further replies.

Avatar789

Enthusiast
Welcome, dear friends, yesterday tried to put all of Elune moved as shown in the video, but when compiling vylaziet error and complains about HookMgr.h tell me what to do?

Code:
/home/tclua/src/server/game/Handlers/NPCHandler.cpp:40:21: error: HookMgr.h: No such file or directory
/home/tclua/src/server/game/Handlers/NPCHandler.cpp: In member function ‘void WorldSession::HandleSpiritHealerActivateOpcode(WorldPacket&)’:
/home/tclua/src/server/game/Handlers/NPCHandler.cpp:401: error: ‘sHookMgr’ was not declared in this scope
 

Tommy

Founder
I'll look into it. I didn't get an error before, but let me do a fresh pull (source) and compile.
 

Avatar789

Enthusiast
I do not know if this is important, compiling on CentOS 6 gave an error cmake that a version of well below 2.8 have changed there was a 2.6 compiler, and such an error. Could you throw your sources with built-in lua?
 

Tommy

Founder
I do not know if this is important, compiling on CentOS 6 gave an error cmake that a version of well below 2.8 have changed there was a 2.6 compiler, and such an error. Could you throw your sources with built-in lua?

It's weird considering if it was a major compile issue the other files would more than likely error too, not just NPCHandler.cpp. I've only compiled on Windows 7 and haven't tested Linux based systems in awhile. But, besides that it seems as if that error shouldn't exist. Are you sure that's the only error? If so, double check all of your files and make sure nothing is missing. What do you mean by 'throw your sources with built-in Lua?' I don't see how that would fix the issue, honestly.

Did a fresh TrinityCore pull, copied all of the Eluna project files over and it compiled fine:

========== Build: 18 succeeded, 0 failed, 0 up-to-date, 1 skipped ==========
 

Avatar789

Enthusiast
Yes, the error is the only way I knew something like the file is not present in this directory, but it has copied everything. server is on Linux, you need a solution to it: (
 

Tommy

Founder
Only issues we ran into with Linux compile is the FilterType being wrong in LuaEngine.cpp > LoadDirectory. I fixed that just now https://github.com/ElunaLuaEngine/Eluna/commit/bc54d0c17e3dbf92086f9922647e0309d6412f06.

The error you're getting, ours compiled fine. As I said, double check everything and make sure you aren't missing any files, also make sure you have 'ELUNA' checked in CMake. I don't see how there can be a solution for an issue that doesn't exist. :surprised:
 

Hyperion

Founder
Script compiled on a fresh pull from TC & Eluna ->
3h8j.png
 

darksoke

OnTop500
idk if it would work but search for HookMgr.h in /src/server/LuaEngine/"HookMgr.h" if there's no such file download it from google :Drecompile again and it should work :|
 

Tommy

Founder

Avatar789

Enthusiast
do it all over again now so that's a poser: (
Code:
/home/tclua/src/LuaEngine/LuaEngine.cpp: In member function ‘void Eluna::StartEluna(bool)’:
/home/tclua/src/LuaEngine/LuaEngine.cpp:67: warning: deprecated conversion from string constant to ‘char*’
 

Hyperion

Founder
do it all over again now so that's a poser: (
Code:
/home/tclua/src/LuaEngine/LuaEngine.cpp: In member function ‘void Eluna::StartEluna(bool)’:
/home/tclua/src/LuaEngine/LuaEngine.cpp:67: warning: deprecated conversion from string constant to ‘char*’

That's a warning, not an error. Keep compiling
 
Status
Not open for further replies.
Top