Game Server not building in VS 2017

Post Reply
Drinkie
Posts: 23
Joined: Thu Nov 21, 2013 6:19 am

Game Server not building in VS 2017

Post by Drinkie » Sun Nov 25, 2018 1:11 pm

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 ==========

jono659
Posts: 59
Joined: Sat Mar 24, 2018 1:01 pm

Re: Game Server not building in VS 2017

Post by jono659 » Mon Nov 26, 2018 1:30 am

Which server version you using?

Drinkie
Posts: 23
Joined: Thu Nov 21, 2013 6:19 am

Re: Game Server not building in VS 2017

Post by Drinkie » Mon Nov 26, 2018 2:03 am

The latest files from github i even redownloaded them yesterday again

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

Re: Game Server not building in VS 2017

Post by whasf » Mon Nov 26, 2018 11:56 am

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.
-- Whasf

Drinkie
Posts: 23
Joined: Thu Nov 21, 2013 6:19 am

Re: Game Server not building in VS 2017

Post by Drinkie » Mon Nov 26, 2018 2:44 pm

I did delete it before pulling from Git i actually deleted the entire directory before pulling

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

Re: Game Server not building in VS 2017

Post by whasf » Mon Nov 26, 2018 6:47 pm

paste a screenshot of some of those lines as those errors don't make sense.
-- Whasf

Drinkie
Posts: 23
Joined: Thu Nov 21, 2013 6:19 am

Re: Game Server not building in VS 2017

Post by Drinkie » Mon Nov 26, 2018 8:10 pm

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

Post Reply