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

[SOLVED] 1 vs 1 battlescript help

Status
Not open for further replies.

brh11

Respected Member
Hey guys I just installed the 1vs1 script from Hammer.And I get these errors when I compile.There lnk errors so I have no clue.
Code:
Error	4	error LNK2019: unresolved external symbol "public: void __cdecl HamarQueueu::Update(unsigned int)" (?Update@HamarQueueu@@QEAAXI@Z) referenced in function "public: void __cdecl World::Update(unsigned int)" (?Update@World@@QEAAXI@Z)	C:\Users\Brendan\Desktop\new build\src\server\worldserver\game.lib(World.obj)
Error	5	error LNK2019: unresolved external symbol "public: void __cdecl HamarBattleManager::Update(unsigned int)" (?Update@HamarBattleManager@@QEAAXI@Z) referenced in function "public: void __cdecl World::Update(unsigned int)" (?Update@World@@QEAAXI@Z)	C:\Users\Brendan\Desktop\new build\src\server\worldserver\game.lib(World.obj)
Error	6	error LNK2019: unresolved external symbol "public: void __cdecl HamarBattleManager::CreatePhases(void)" (?CreatePhases@HamarBattleManager@@QEAAXXZ) referenced in function "public: void __cdecl World::SetInitialWorldSettings(void)" (?SetInitialWorldSettings@World@@QEAAXXZ)	C:\Users\Brendan\Desktop\new build\src\server\worldserver\game.lib(World.obj)
Error	7	error LNK2019: unresolved external symbol "public: void __cdecl HamarBattle::HandlePlayerKill(class Player *,class Player *)" (?HandlePlayerKill@HamarBattle@@QEAAXPEAVPlayer@@0@Z) referenced in function "public: void __cdecl Unit::Kill(class Unit *,bool)" (?Kill@Unit@@QEAAXPEAV1@_N@Z)	C:\Users\Brendan\Desktop\new build\src\server\worldserver\game.lib(Unit.obj)
Error	8	error LNK2019: unresolved external symbol "public: bool __cdecl HamarQueueu::ReceiveBattleAnswer(class Player *,unsigned int,unsigned int,unsigned int)" (?ReceiveBattleAnswer@HamarQueueu@@QEAA_NPEAVPlayer@@III@Z) referenced in function "public: void __cdecl WorldSession::HandleGossipSelectOptionOpcode(class WorldPacket &)" (?HandleGossipSelectOptionOpcode@WorldSession@@QEAAXAEAVWorldPacket@@@Z)	C:\Users\Brendan\Desktop\new build\src\server\worldserver\game.lib(MiscHandler.obj)
Error	9	error LNK1120: 5 unresolved externals	C:\Users\Brendan\Desktop\new build\bin\Release\worldserver.exe

Thanks :)
 

Hamar

BETA Tester
Are you sure you have implemented it correctly?

And what i mean by implementing it correctly all the cmake text file edits?
 

Tommy

Founder
You probably didn't set it up correctly. Did you make a new folder in the game directory? If so, make sure you update the CMakeLists.txt inside of the game directory. Else, you can make it easy and put it in any of the folders in the game directory. Double check everything and make sure it is correct. :D

Also make sure the source and header file are actually in your solution. If they don't show up, you will have to manually add them or redo CMake (Configure and Generate again)
 
Last edited:

Hamar

BETA Tester
Also i highly recommend to use my script as reference for your own version rather than just using this version.
currently it really doesn't support proper public usage.
 
Status
Not open for further replies.
Top