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

A few Eluna erros

Status
Not open for further replies.

Rezolve

BETA Tester
Hey Emu-devs, so I recently went thou my modified source and merged Eluna, but i've got a few error's.
Additional information: I've add eluna in Cmakelists.

Code:
54 IntelliSense: identifier "lua_State" is undefined c:\src\LuaEngine\LuaEngine.h 473	 5 LuaEngine

71 IntelliSense: class "Unit" has no member "IsAlive" c:src\LuaEngine\LuaEngine.h 674 28 LuaEngine

52 IntelliSense: cannot open source file "lualib.h" c:\src\LuaEngine\LuaEngine.h 13	1 LuaEngine

51 IntelliSense: cannot open source file "lua.h"	c:\src\LuaEngine\LuaEngine.h	 12 1	LuaEngine

53 IntelliSense: cannot open source file "lauxlib.h" c:\src\LuaEngine\LuaEngine.h 14	1 LuaEngine


Error	20 error C1083: Cannot open include file: 'lua.h': No such file or directory (C:\src\server\game\Handlers\QuestHandler.cpp)	C:\src\LuaEngine\LuaEngine.h	 12 1	game

and so on.

Best Regards,
Rezolve, thank you.
 

Rezolve

BETA Tester
You have most likely messed up cmake linking or dependencies :)
Thanks, I was able to fix the error's above, but fixing them now gave me a few more error's which I'm unsure about.

Code:
Error's also include all the cpp listed.

Error	72 error C2371: 'ObjectGuid' : redefinition; different basic types (C:\src\server\game\World\World.cpp) C:\src\LuaEngine\LuaEngine.h  128  1  game

Error	71 error C2371: 'Vehicle' : redefinition; different basic types (C:\src\server\game\World\World.cpp) c:\src\luaengine\HookMgr.h  64  1  game

Error 73 error C2039: 'IsAlive' : is not a member of 'Unit' (C:\src\server\game\World\World.cpp) C:\src\LuaEngine\LuaEngine.h 674 1 game

Weather.cpp
Spell.cpp
SpellAuras.cpp
Worldsocket.cpp
Worldsession.cpp
ScriptMgr.cpp
Mapp.cpp
QuestHandler.cpp
NPCHandler.cpp
MiscHandler.cpp
LootHandler.cpp
ChatHandler.cpp
CharacterHandler.cpp
Guild.cpp
Group.cpp
Vechile.cpp
Unit.cpp
Player.cpp
Object.cpp
Item.cpp
Gameobject.cpp
Creature.cpp
AuctionhouseMgr.cpp

Best regards,
Rezolve - Thanks for the help so fair.
 

Rochet2

Moderator / Eluna Dev
What core source are you using (provide link or at minimum core name and patch)

I suspect its cataclysm patch and trinity based?
You should go to LuaEngine.h and fix the ObjectGuid definition to whatever it needs to be.
IsAlive to isAlive and it seems you should possibly try remove class Vehicle; from that file.
 
Last edited:

Rezolve

BETA Tester
What core source are you using (provide link or at minimum core name and patch)

I suspect its cataclysm patch and trinity based?
You should go to LuaEngine.h and fix the ObjectGuid definition to whatever it needs to be.
IsAlive to isAlive and it seems you should possibly try remove class Vehicle; from that file.
[MENTION=6]Rochet2[/MENTION], Thanks for the reply,
Funny I changed Is to is and the error still occur'd.
Removed, class Vehicle and solves that issue.
and was able to fix ObjectGuid, thank you.
 

Rochet2

Moderator / Eluna Dev
[MENTION=6]Rochet2[/MENTION], Thanks for the reply,
Funny I changed Is to is and the error still occur'd.
Removed, class Vehicle and solves that issue.
and was able to fix ObjectGuid, thank you.

There are multiple palces where IsAlive is used.
And nice that you could get them :)
 

Rezolve

BETA Tester
There are multiple palces where IsAlive is used.
And nice that you could get them :)
Thanks :),
anyways seems like these are the last of the error's

Code:
3 IntelliSense: identifier "NUM_MSG_TYPES" is undefined c:\src\LuaEngine\LuaEngine.cpp 554 13 LuaEngine

2 IntelliSense: cannot open source file "BattlefieldMgr.h" c:\src\server\game\Groups\Group.h 30 1 LuaEngine

1 IntelliSense: cannot open source file "Battlefield.h" c:\src\server\game\Groups\Group.h 30 1 LuaEngine

Thanks for the help so fair, I appreciate it.

#updated, error list ( Last of the error's hopefully. )
 
Last edited:

Rochet2

Moderator / Eluna Dev
Looks like you should take a look at the cmake list files around src/server/worldserver possibly. They need the luaengine and lua lib path in them.
The mgr file is missing .. hmm.
Its possible that is also a cmake list issue or similar, Should browse around those in lua engine folder and through the header files (group.h and battlefield.h and battlefieldmgr.h)
 

Foereaper

Founder
Looks like you should take a look at the cmake list files around src/server/worldserver possibly. They need the luaengine and lua lib path in them.
The mgr file is missing .. hmm.
Its possible that is also a cmake list issue or similar, Should browse around those in lua engine folder and through the header files (group.h and battlefield.h and battlefieldmgr.h)

It is a cmake issue yes :)
 
Status
Not open for further replies.
Top