Page 1 of 1

Game Server not building in VS 2017

Posted: Sun Nov 25, 2018 1:11 pm
by Drinkie
So it's been a couple of years things have happened like my old HDD dying so i lost my old files etc... i am aware that i had a old thread on this subject but since i wasn't sure if necroing it was against the rules or not i decided not to post in it but i decided to try and make a server again however the issue i've been having is again with building the game server i'm getting a few error messages stopping it from being built in both 32 and 64 formats.

I've tried downloading the battleutils file multiple times but it's always the same errors i would be grateful for any help.

Code: Select all

 1>------ Build started: Project: DSGame-server, Configuration: Debug x64 ------
1>battleutils.cpp
1>synthutils.cpp
1>e:\darkstar\darkstar\src\map\utils\battleutils.cpp(2464): error C3646: 'uint8': unknown override specifier
1>e:\darkstar\darkstar\src\map\utils\battleutils.cpp(2464): error C3646: 'distribution': unknown override specifier
1>e:\darkstar\darkstar\src\map\utils\battleutils.cpp(2464): error C2061: syntax error: identifier 'GetRandomNumber'
1>e:\darkstar\darkstar\src\map\utils\battleutils.cpp(2464): error C2761: 'GetRandomNumber': redeclaration of member is not allowed
1>e:\darkstar\darkstar\src\map\utils\battleutils.cpp(2467): error C2059: syntax error: 'switch'
1>e:\darkstar\darkstar\src\map\utils\battleutils.cpp(2468): error C2447: '{': missing function header (old-style formal list?)
1>e:\darkstar\darkstar\src\map\utils\battleutils.cpp(2521): error C2059: syntax error: 'return'
1>Done building project "DSGame-server.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Re: Game Server not building in VS 2017

Posted: Mon Nov 26, 2018 1:30 am
by jono659
Which server version you using?

Re: Game Server not building in VS 2017

Posted: Mon Nov 26, 2018 2:03 am
by Drinkie
The latest files from github i even redownloaded them yesterday again

Re: Game Server not building in VS 2017

Posted: Mon Nov 26, 2018 11:56 am
by whasf
What do those lines look like?

Using my psychic abilities, I'm guessing you modified battleutils.cpp then tried pulling from GitHub, and now the file is conflicted and has a bunch of conflict info in it. Delete the file and pull fresh, there's nothing wrong with the file in the repository.

Re: Game Server not building in VS 2017

Posted: Mon Nov 26, 2018 2:44 pm
by Drinkie
I did delete it before pulling from Git i actually deleted the entire directory before pulling

Re: Game Server not building in VS 2017

Posted: Mon Nov 26, 2018 6:47 pm
by whasf
paste a screenshot of some of those lines as those errors don't make sense.

Re: Game Server not building in VS 2017

Posted: Mon Nov 26, 2018 8:10 pm
by Drinkie
Turns out copying the text from the Github and making a new file fixed the issue went through treatment today so i forgot to mention that granted it was a few hours ago i,e yesterday my time apologies for that