Page 1 of 1

Visual Studio compile error itemutils.cpp/.h

Posted: Thu Aug 31, 2017 11:28 am
by Zyrrahx
Hi i'm currently trying to setup a server, I have completed all the tasks up to compiling the solution in visual studio, the only error i get in the whole build is to do with itemutils.cpp/itemutils.h, I have looked around for a solution or even one person with this issue but I am unable to find any information, with no other alternative i decided it was time to make a forum post to maybe help solve this issue.
I get a total of 6 errors which are:
Code Description Project File Line
C2065 'g_pDropList': undeclared identifier DSGame-Server itemutils.cpp 236
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 470
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 472
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 483
C2227 left of '->push_back' must point to class/struct/union/generic type 483
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 572


I also get 2 warnings but i'm not sure how relevant they are to the issue:
Code Description
C4819 The file contains a character that cannot represented in the current code page(923). Save the file in unicode format to prevent data loss DSGame-Server itemutils.cpp 1
C4819 The file contains a character that cannot represented in the current code page(923). Save the file in unicode format to prevent data loss DSGame-Server itemutils.h 1


Please forgive me for any formatting errors

I won't pretend to be well versed in coding or scripting I know a very small amount, any help would be greatly appreciated thank you.

[Edit]for the moment I was able to get the program to compile by commenting out all of the errors, I can imagine this will cause serious issues down the line but for now I am able to get the server running, I would very much like some advice on solving this issue or even a fix if possible.

Re: Visual Studio compile error itemutils.cpp/.h

Posted: Thu Aug 31, 2017 7:02 pm
by whasf
???
I'm running current and I don't have those errors... Did you modify it at all?

Re: Visual Studio compile error itemutils.cpp/.h

Posted: Thu Aug 31, 2017 11:31 pm
by Zyrrahx
did not edit anything at all i just tried compiling the solution and I get those 6 errors, I managed to ignore the issues by commenting out all of the errors but I can only imagine thats going to cause issues down the line.

Re: Visual Studio compile error itemutils.cpp/.h

Posted: Fri Sep 01, 2017 7:43 am
by demolish
darkstar folder > address bar > cmd > enter > git reset hard && git fetch origin && git pull origin master
and try building again

Re: Visual Studio compile error itemutils.cpp/.h

Posted: Wed Sep 06, 2017 1:11 am
by Zyrrahx
I managed to solve the issue, I moved the server solutions to my laptop, compiled it there and it worked perfectly. However, now i'm having an issue getting the gameServer and loginServer to parse data to each other, I assume its an issue with the zoneip but at the moment i'm just running everything on the one pc until I'm certain its working properly.

Re: Visual Studio compile error itemutils.cpp/.h

Posted: Wed Sep 06, 2017 7:33 am
by whasf
That looks right, do you have a firewall running (either Windows or 3rd party)?

Re: Visual Studio compile error itemutils.cpp/.h

Posted: Wed Sep 06, 2017 7:42 am
by Zyrrahx
I'm not to sure why but I had to open the ports on my router to get it to work, its working now however I'm still having my initial issue, simply put enemies will not drop anything.
But I assume that's because of the itemutils errors i commented out.
Also demolish I tried your solution but I still get the exact same build errors.