• 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] Sunwell Core Questions

Status
Not open for further replies.

Grim

Emulation Addict
I was researching and decided to use the new Sunwell Core; due to it's amazing scripts and pathfinding.

It seems I keep recieving this error when I build the server:
Code:
Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2019	unresolved external symbol "public: __thiscall Cell::Cell(float,float)" (??0Cell@@QAE@MM@Z) referenced in function "public: bool __thiscall PathGenerator::CalculatePath(float,float,float,bool)" (?CalculatePath@PathGenerator@@QAE_NMMM_N@Z)	worldserver	C:\Users\Grim\Desktop\newbuild02\src\server\worldserver\game.lib(PathGenerator.obj)	1	

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1120	1 unresolved externals	worldserver	C:\Users\Grim\Desktop\newbuild02\bin\RelWithDebInfo\worldserver.exe	1

Did Research this http://emudevs.com/showthread.php/5828-Sunwellcore-Building-error and I still couldn't fix the error, It may just be staring me in the face, but when it comes to C++ I'm blind af :smile:

Another thing: could Eluna be added Sunwell, if so, how much modifications would be required.
 

lordlook

Emulation Addict
I was researching and decided to use the new Sunwell Core; due to it's amazing scripts and pathfinding.

It seems I keep recieving this error when I build the server:
Code:
Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2019	unresolved external symbol "public: __thiscall Cell::Cell(float,float)" (??0Cell@@QAE@MM@Z) referenced in function "public: bool __thiscall PathGenerator::CalculatePath(float,float,float,bool)" (?CalculatePath@PathGenerator@@QAE_NMMM_N@Z)	worldserver	C:\Users\Grim\Desktop\newbuild02\src\server\worldserver\game.lib(PathGenerator.obj)	1	

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1120	1 unresolved externals	worldserver	C:\Users\Grim\Desktop\newbuild02\bin\RelWithDebInfo\worldserver.exe	1

Did Research this http://emudevs.com/showthread.php/5828-Sunwellcore-Building-error and I still couldn't fix the error, It may just be staring me in the face, but when it comes to C++ I'm blind af :smile:

Another thing: could Eluna be added Sunwell, if so, how much modifications would be required.

Include:
#include "Cell.h"
#include "CellImpl.h"

in PathGenerator.cpp
 

Grim

Emulation Addict
Thanks it works great now.

Got 2 more questions:
1) How about adding Eluna? I've seen other threads with references to other documents but it seems it requires a good grasp of C++. I rather not ask for it to be done, but a hint to right path.

2) How are quests added to NPCs? I've added the NPC entry to the DB on creature_queststarter/ender. But the quest is still able not to be picked up, but if added by a GM command it works finr from there.

UPDATE: I seem to have stumbled over a bug where you cannot receive honorable kills. I've even made two separate regular player accounts and still resulted in both no honor gain and no kill credit.
I'm using a fresh compile from this core: https://github.com/Kittnz/Sunwell
However, I have added the SpellRegulator/Modifier script, but that shouldn't be too much of an influence on this. Should it? o_O

Thanks all,
Grim
 
Last edited:

lordlook

Emulation Addict
Thanks it works great now.

Got 2 more questions:
1) How about adding Eluna? I've seen other threads with references to other documents but it seems it requires a good grasp of C++. I rather not ask for it to be done, but a hint to right path.

2) How are quests added to NPCs? I've added the NPC entry to the DB on creature_queststarter/ender. But the quest is still able not to be picked up, but if added by a GM command it works finr from there.

UPDATE: I seem to have stumbled over a bug where you cannot receive honorable kills. I've even made two separate regular player accounts and still resulted in both no honor gain and no kill credit.
I'm using a fresh compile from this core: https://github.com/Kittnz/Sunwell
However, I have added the SpellRegulator/Modifier script, but that shouldn't be too much of an influence on this. Should it? o_O

Thanks all,
Grim

I think adding Eluna on Sunwell shouldn't be hard. Just not their latest release.

About the honor it's not a bug it's added so players won't farm honor from the same IP.

Search in Player.cpp for:

Code:
if (uVictim && uVictim->GetTypeId() == TYPEID_PLAYER && !IsGameMaster())
{
	if (GetSession()->GetRemoteAddress() == uVictim->ToPlayer()->GetSession()->GetRemoteAddress())
	return false;
}
 

Grim

Emulation Addict
Wow, Thanks again, I feel a bit stupid for not realizing that.

I've tried adding Eluna to the source and I result with:

Code:
$ git pull --recurse-submodules https://github.com/ElunaLuaEngine/ElunaTrinityWotlk.git
remote: Counting objects: 924, done.
remote: Compressing objects: 100% (888/888), done.
Receiving objects:  80% (740/924)    0 (delta 0), pack-reused 0
Receiving objects: 100% (924/924), 1.56 MiB, done.
Resolving deltas: 100% (542/542), done.
From https://github.com/ElunaLuaEngine/ElunaTrinityWotlk
 * branch            HEAD       -> FETCH_HEAD
Updating fa29645..b4a687f
error: Your local changes to the following files would be overwritten by merge:
        contrib/merge_updates_windows.bat
        dep/PackageList.txt
        dep/gsoap/soapC.cpp
        dep/gsoap/soapH.h
        dep/gsoap/soapServer.cpp
        dep/gsoap/soapStub.h
        dep/gsoap/stdsoap2.cpp
        dep/gsoap/stdsoap2.h
        dep/gsoap/tc_upgrades.txt
        sql/updates/world/3.3.5/2016_07_12_01_world.sql
        src/common/Collision/Management/MMapFactory.h
        src/server/database/Database/Implementation/CharacterDatabase.cpp
        src/server/database/Database/Implementation/CharacterDatabase.h
        src/server/database/Updater/DBUpdater.cpp
        src/server/game/AI/CoreAI/UnitAI.cpp
        src/server/game/AI/CoreAI/UnitAI.h
        src/server/game/AI/ScriptedAI/ScriptedCreature.cpp
        src/server/game/AI/ScriptedAI/ScriptedCreature.h
        src/server/game/AI/SmartScripts/SmartScript.cpp
        src/server/game/Accounts/AccountMgr.cpp
        src/server/game/Accounts/RBAC.h
        src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
        src/server/game/AuctionHouseBot/AuctionHouseBotSeller.h
        src/server/game/Battlefield/Battlefield.cpp
        src/server/game/Battlegrounds/ArenaTeamMgr.cpp
        src/server/game/Battlegrounds/Battleground.cpp
        src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp
        src/server/game/Chat/Channels/Channel.cpp
        src/server/game/Chat/Channels/Channel.h
        src/server/game/Chat/Channels/ChannelMgr.cpp
        src/server/game/Chat/Chat.cpp
        src/server/game/Chat/Chat.h
        src/server/game/Chat/ChatLink.cpp
        src/server/game/Chat/ChatLink.h
        src/server/game/Conditions/ConditionMgr.cpp
        src/server/game/Conditions/ConditionMgr.h
        src/server/game/DungeonFinding/LFGMgr.cpp
        src/server/game/Entities/Creature/Creature.h
        src/server/game/Entities/GameObject/GameObject.cpp
        src/server/game/Entities/GameObject/GameObject.h
        src/server/game/Entities/Item/Container/Bag.h
        src/server/game/Entities/Item/Item.h
        src/server/game/Entities/Object/Object.cpp
        src/server/game/Entities/Object/Object.h
        src/server/game/Entities/Player/Player.cpp
        src/server/game/Entities/Player/Player.h
        src/server/game/Entities/Transport/Transport.cpp
        src/server/game/Entities/Unit/Unit.cpp
        src/server/game/Entities/Vehicle/Vehicle.cpp
        src/server/game/Globals/ObjectMgr.cpp
        src/server/game/Globals/ObjectMgr.h
        src/server/game/Grids/Notifiers/GridNotifiers.h
        src/server/game/Handlers/BattleGroundHandler.cpp
        src/server/game/Handlers/CharacterHandler.cpp
        src/server/game/Handlers/ChatHandler.cpp
        src/server/game/Handlers/GroupHandler.cpp
        src/server/game/Handlers/NPCHandler.cpp
        src/server/game/Loot/LootMgr.cpp
        src/server/game/LuaEngine
        src/server/game/Mails/Mail.cpp
        src/server/game/Mails/Mail.h
        src/server/game/OutdoorPvP/OutdoorPvP.cpp
        src/server/game/Quests/QuestDef.cpp
        src/server/game/Quests/QuestDef.h
        src/server/game/Server/WorldSession.cpp
        src/server/game/Spells/Auras/SpellAuraDefines.h
        src/server/game/Spells/Auras/SpellAuraEffects.cpp
        src/server/game/Spells/Spell.cpp
        src/server/game/Spells/SpellEffects.cpp
        src/server/game/Spells/SpellMgr.cpp
        src/server/game/World/World.cpp
        src/server/game/World/World.h
        src/server/scripts/Commands/cs_gobject.cpp
        src/server/scripts/Commands/cs_misc.cpp
        src/server/scripts/Commands/cs_ticket.cpp
        src/server/scripts/EasternKingdoms/Gnomeregan/gnomeregan.cpp
        src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp
        src/server/scripts/EasternKingdoms/Karazhan/karazhan.h
        src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp
        src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp
        src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp
        src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/hyjalAI.cpp
        src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/culling_of_stratholme.cpp
        src/server/scripts/Kalimdor/RazorfenDowns/razorfen_downs.cpp
        src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_ossirian.cpp
        src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp
        src/server/scripts/Kalimdor/zone_felwood.cpp
        src/server/scripts/Kalimdor/zone_feralas.cpp
        src/server/scripts/Kalimdor/zone_silithus.cpp
        src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/instance_trial_of_the_champion.cpp
        s
error: The following untracked working tree files would be removed by merge:
        dep/gsoap/tc_changes.diff
        src/server/game/Entities/Item/ItemPrototype.h
Please move or remove them before you can merge.
Aborting

I've also tried with the MaNGOS version and resulted in a similar error:

Code:
$ git pull --recurse-submodules https://github.com/ElunaLuaEngine/ElunaMangosWotlk.git
warning: no common commits
remote: Counting objects: 94108, done.
remote: Total 94108 (delta 0), reused 0 (delta 0), pack-reused 94107
Receiving objects: 100% (94108/94108), 55.13 MiB | 6.10 MiB/s, done.
Resolving deltas: 100% (77767/77767), done.
From https://github.com/ElunaLuaEngine/ElunaMangosWotlk
 * branch            HEAD       -> FETCH_HEAD
error: The following untracked working tree files would be overwritten by merge:
        PreLoad.cmake
        cmake/compiler/icc/settings.cmake
        cmake/compiler/mingw/settings.cmake
        cmake/genrev.cmake
        cmake/macros/CheckBuildDir.cmake
        cmake/macros/EnsureVersion.cmake
        cmake/macros/FindACE.cmake
        cmake/macros/FindGit.cmake
        cmake/macros/FindOpenSSL.cmake
        cmake/macros/FindReadline.cmake
        cmake/platform/cmake_uninstall.in.cmake
        cmake/stack_direction.c
        contrib/valgrind/helgrind.supp
        dep/PackageList.txt
        dep/SFMT/SFMT.h
        dep/SFMT/randomc.h
        dep/bzip2/CMakeLists.txt
        dep/bzip2/LICENSE
        dep/bzip2/README
        dep/bzip2/blocksort.c
        dep/bzip2/bzlib.c
        dep/bzip2/bzlib.h
        dep/bzip2/bzlib_private.h
        dep/bzip2/compress.c
        dep/bzip2/crctable.c
        dep/bzip2/decompress.c
        dep/bzip2/huffman.c
        dep/bzip2/randtable.c
        dep/g3dlite/CMakeLists.txt
        dep/g3dlite/Readme.txt
        dep/g3dlite/include/G3D/AABox.h
        dep/g3dlite/include/G3D/Any.h
        dep/g3dlite/include/G3D/AreaMemoryManager.h
        dep/g3dlite/include/G3D/Array.h
        dep/g3dlite/include/G3D/AtomicInt32.h
        dep/g3dlite/include/G3D/BinaryFormat.h
        dep/g3dlite/include/G3D/BinaryInput.h
        dep/g3dlite/include/G3D/BinaryOutput.h
        dep/g3dlite/include/G3D/BoundsTrait.h
        dep/g3dlite/include/G3D/Box.h
        dep/g3dlite/include/G3D/Box2D.h
        dep/g3dlite/include/G3D/BumpMapPreprocess.h
        dep/g3dlite/include/G3D/Capsule.h
        dep/g3dlite/include/G3D/CollisionDetection.h
        dep/g3dlite/include/G3D/Color1.h
        dep/g3dlite/include/G3D/Color3.h
        dep/g3dlite/include/G3D/Color4.h
        dep/g3dlite/include/G3D/Cone.h
        dep/g3dlite/include/G3D/ConvexPolyhedron.h
        dep/g3dlite/include/G3D/CoordinateFrame.h
        dep/g3dlite/include/G3D/Crypto.h
        dep/g3dlite/include/G3D/Cylinder.h
        dep/g3dlite/include/G3D/EqualsTrait.h
        dep/g3dlite/include/G3D/FileSystem.h
        dep/g3dlite/include/G3D/G3D.h
        dep/g3dlite/include/G3D/G3DAll.h
        dep/g3dlite/include/G3D/G3DGameUnits.h
        dep/g3dlite/include/G3D/GMutex.h
        dep/g3dlite/include/G3D/GThread.h
        dep/g3dlite/include/G3D/GUniqueID.h
        dep/g3dlite/include/G3D/HashTrait.h
        dep/g3dlite/include/G3D/Image1.h
        dep/g3dlite/include/G3D/Image3.h
        dep/g3dlite/include/G3D/Image4.h
        dep/g3dlite/include/G3D/ImageFormat.h
        dep/g3dlite/include/G3D/Intersect.h
        dep/g3dlite/include/G3D/KDTree.h
        dep/g3dlite/include/G3D/Line.h
        dep/g3dlite/include/G3D/LineSegment.h
        dep/g3dlite/include/G3D/Log.h
        dep/g3dlite/include/G3D/Map2D.h
        dep/g3dlite/include/G3D/Matrix.h
        dep/g3dlite/include/G3D/Matrix2.h
        dep/g3dlite/include/G3D/Matrix3.h
        dep/g3dlite/include/G3D/Matrix4.h
        dep/g3dlite/include/G3D/MemoryManager.h
        dep/g3dlite/include/G3D/MeshAlg.h
        dep/g3dlite/include/G3D/MeshBuilder.h
        dep/g3dlite/include/G3D/NetAddress.h
        dep/g3dlite/include/G3D/NetworkDevice.h
        dep/g3dlite/include/G3D/ParseError.h
        dep/g3dlite/include/G3D/PhysicsFrame.h
        dep/g3dlite/include/G3D/PhysicsFrameSpline.h
        dep/g3dlite/include/G3D/Plane.h
        dep/g3dlite/include/G3D/PointHashGrid.h
        dep/g3dlite/include/G3D/PointKDTree.h
        dep/g3dlite/include/G3D/Pointer.h
        dep/g3dlite/include/G3D/PositionTrait.h
        dep/g3dlite/include/G3D/PrecomputedRandom.h
        dep/g3dlite/include/G3D/Quat.h
        dep/g3dlite/include/G3D/Queue.h
        dep/g3dlite/include/G3D/Random.h
        dep/g3dlite/include/G3D/Ray.h
        dep/g3dlite/include/G3D/Rect2D.h
        dep/g3dlite/include/G3D/ReferenceCount.h
        dep/g3dlite/include/G3D/RegistryUtil.h
        dep/g3dlite/include/G3D/Set.h
        dep/g3dlite/include/G3D/SmallArray.h
        dep/g3dlite/include/G3D/Sphere.h
        dep/g3dlite/include/G3D/Spline.h
        dep/g3dlite/include/G3D/Stopwatch.h
        dep/g3dlite/include/G3D/System.h
        dep/g3dlite/include/G3D/Table.h
        dep/g3dlite/include/G3D/TextInput.h
        dep/g3dlite/include/G3D/TextOutput.h
        dep/g3dlite/include/G3D/ThreadSet.h
        dep/g3dlite/include/G3D/Triangle.h
        dep/g3dlite/include/G3D/UprightFrame.h
        dep/g3dlite/include/G3D/Vector2.h
        dep/g3dlite/include/G3D/Vector2int16.h
        dep/g3dlite/include/G3D/Vector3.h
        dep/g3dlite/include/G3D/Vector3int16.h
        dep/g3dlite/include/G3D/Vector3int32.h
        dep/g3dlite/include/G3D/Vector4.h
        dep/g3dlite/include/G3D/Vector4int8.h
        dep/g3dlite/include/G3D/WeakCache.h
        dep/g3dlite/include/G3D/Welder.h
        dep/g3dlite/include/G3D/WrapMode.h
        dep/g3dlite/include/G3D/
Aborting

I've tried running the program as administrator and I still get nothing (thinking it was an admin error).
Any points the right direction?
 

Grim

Emulation Addict
I don't know C++ enough to fix it so I was asking if anyone could help me with it, and I'm not into learning another language atm for something that may be short lived. I can live without transmogrification I guess.

Well other than that mark this as solved thanks to all that helped!
 
Last edited:
Status
Not open for further replies.
Top