View Full Version : [SOLVED] Once again compilation error

02-05-2015, 06:13 PM
Well since last time I've compiled TC few times without a problem. This time I was making new professions so there were few changes in scriptis. When I try to compilate it I get some kind of weird error which seems isn't even connected with changes which I made, anyway here's ss http://scr.hu/3zj7/7un0g

02-05-2015, 07:09 PM
We need more than just a picture of the error.
Can you send the code around the part where the error happens?
Can you try for example check in git for all changes you have done, possibly to worldsession and elsewhere that could matter? (accidental edits?)

02-07-2015, 12:54 PM
Well, sorry for late response. I didn't even really opened WorldSession.cpp. And I'm not pretty sure which part of code you need. So I'll just give part which might be one you're looking for: http://paste.emudevs.com/?paste=222 I can upload entire WorldSession if needed. I'm sorry I just don't know much about it

02-07-2015, 01:29 PM
You tried merging and there were conflicts.
Then git requested you to make manual edits to fix the conflicts but you didnt.

<<<<<<< HEAD
sScriptMgr->OnPacketReceive(this, *packet);
#ifdef ELUNA
if (!sEluna->OnPacketReceive(this, *packet))
if (AntiDOS.EvaluateOpcode(*packet, currentTime))
sScriptMgr->OnPacketReceive(this, *packet);
>>>>>>> c3a307825a457388697824dbd9b38dd7abadd7eb

This is a part of the WorldSession.cpp code you pasted.
It means that this part was edited by both Eluna and TC and git cant automatically merge the 2 changes to same place.
You need to manually edit the code to fix how the code should be like.

You should have the core from our repo and not merge it with the latest TrinityCore - unless you know what you are doing.
This way you wont run into Eluna compile errors.

If you try to update to latest TC, you will run into problems with the code changes that TC does. You should be able to fix them yourself.
We will merge eventually and fix the errors - but we cant individually fix everyone's merge errors like this

02-07-2015, 01:46 PM
Well. I'm not really sure what should I do. I wasn't even trying to update anything last time, just recompiled as always, and get this type of error. And well I'm using core from your repo and I wasn't really merging Eluna with TC. I just used your repo, uh.

02-07-2015, 02:08 PM
Well, you clearly did do something.
As you can see, there is no such thing on our repository: https://github.com/ElunaLuaEngine/ElunaTrinityWotlk/blob/master/src/server/game/Server/WorldSession.cpp#L268

Which means you likely tried merging or similar or swapped some files etc (do note that git pull does this)

You could try reclone the repository or you could checkout the file that errors (git checkout src/server/game/Server/WorldSession.cpp)
Checking out will reset the file to what is in the repo.

Make sure your git doesnt say its "merging" or similar

02-07-2015, 02:58 PM
Well now it reminds me that I was merging your DressNPC patch. And command git checkout src/server/game/Server/WorldSession.cpp gives me: "error: path 'src/server/game/Server/WorldSession.cpp' is unmerged"

02-07-2015, 03:28 PM
How about you do git status and post what it says here.