Visual Studio compile error itemutils.cpp/.h

Post Reply
Zyrrahx
Posts: 4
Joined: Wed Jul 19, 2017 4:02 am

Visual Studio compile error itemutils.cpp/.h

Post by Zyrrahx » Thu Aug 31, 2017 11:28 am

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.
Attachments
Error.png
Error in visual studio

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

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

Post by whasf » Thu Aug 31, 2017 7:02 pm

???
I'm running current and I don't have those errors... Did you modify it at all?
-- Whasf

Zyrrahx
Posts: 4
Joined: Wed Jul 19, 2017 4:02 am

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

Post by Zyrrahx » Thu Aug 31, 2017 11:31 pm

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.

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

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

Post by demolish » Fri Sep 01, 2017 7:43 am

darkstar folder > address bar > cmd > enter > git reset hard && git fetch origin && git pull origin master
and try building again
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

Zyrrahx
Posts: 4
Joined: Wed Jul 19, 2017 4:02 am

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

Post by Zyrrahx » Wed Sep 06, 2017 1:11 am

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.
Attachments
zone set.png
error untitled.png

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

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

Post by whasf » Wed Sep 06, 2017 7:33 am

That looks right, do you have a firewall running (either Windows or 3rd party)?
-- Whasf

Zyrrahx
Posts: 4
Joined: Wed Jul 19, 2017 4:02 am

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

Post by Zyrrahx » Wed Sep 06, 2017 7:42 am

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.
Attachments
dropWorksButAlwaysErrorsDueToEdit.png

Post Reply