Several Problems while creating a DDNet based server
-
- Posts: 57
- Joined: Mon Jul 13, 2015 1:43 pm
- Location: IR
- Player profile: http://ddnet.org/players/Sv3N/
- Mapper profile: http://ddnet.tw/mappers/FlushA/
- Clan: I.R.T
Re: sql file for DDNet
but i have windowsdeen wrote:apt-get install libboost-dev
how get this for windows ?
✟Տ℣ʒN✟
- deen
- Posts: 3579
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: sql file for DDNet
Not sure, maybe this helps: http://www.boost.org/doc/libs/1_59_0/mo ... ndows.html
-
- Posts: 57
- Joined: Mon Jul 13, 2015 1:43 pm
- Location: IR
- Player profile: http://ddnet.org/players/Sv3N/
- Mapper profile: http://ddnet.tw/mappers/FlushA/
- Clan: I.R.T
Re: sql file for DDNet
I am downloaded that but how this work,
Where should copy boost files ?
Where should copy boost files ?
✟Տ℣ʒN✟
-
- Posts: 57
- Joined: Mon Jul 13, 2015 1:43 pm
- Location: IR
- Player profile: http://ddnet.org/players/Sv3N/
- Mapper profile: http://ddnet.tw/mappers/FlushA/
- Clan: I.R.T
Re: sql file for DDNet
deen can u upload this for me ?deen wrote:Most don't need it and it's ~30 MB that you would have to download with every update. If you can't compile the SQL server, you'll have even bigger trouble using it.
✟Տ℣ʒN✟
- kamillentee
- Posts: 687
- Joined: Sat Jul 26, 2014 11:47 pm
- Player profile: http://ddnet.org/players/kamillentee/
- Clan: |*KoG*|
Re: sql file for DDNet
Deen never compiled the sql version on windows FlushA. So he cant have it.
-
- Posts: 57
- Joined: Mon Jul 13, 2015 1:43 pm
- Location: IR
- Player profile: http://ddnet.org/players/Sv3N/
- Mapper profile: http://ddnet.tw/mappers/FlushA/
- Clan: I.R.T
Re: sql file for DDNet
oh y i am forgat this,
so how i can fix this errors:
so how i can fix this errors:
Code: Select all
[2/3] #1 c++ src/game/server/score/sql_score.cpp
src/game/server/score/sql_score.cpp(839) : error C2057: expected constant expres
sion
src/game/server/score/sql_score.cpp(839) : error C2466: cannot allocate an array
of constant size 0
src/game/server/score/sql_score.cpp(839) : error C2133: 'aCuts' : unknown size
src/game/server/score/sql_score.cpp(1224) : error C2057: expected constant expre
ssion
src/game/server/score/sql_score.cpp(1224) : error C2466: cannot allocate an arra
y of constant size 0
src/game/server/score/sql_score.cpp(1224) : error C2133: 'newString' : unknown s
ize
bam: 'objs/game/server/score/sql_score_sql.obj' error 2
bam: error: a build step failed
-------------------------------------------------
Line 839:
int aCuts[Rows];
-------------------------------------------------
Line 1224:
char newString[size*2-1];
✟Տ℣ʒN✟
- deen
- Posts: 3579
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: sql file for DDNet
My bad, should be fixed on Github: http://git.io/vno0c
- babak2010
- Posts: 101
- Joined: Sun Jan 18, 2015 8:06 pm
- Location: IR
- Player profile: http://ddnet.org/players/GoJE-32-GrEEN-32--33-/
- Mapper profile: http://ddnet.tw/mappers/GoJE-32-GrEEN-32--33-/
Re: sql file for DDNet
you did wrongdeen wrote:My bad, should be fixed on Github: http://git.io/vno0c
https://github.com/ddnet/ddnet/blob/971 ... .cpp#L1207
Click Me : Happy Halloween
<3

-
- Posts: 57
- Joined: Mon Jul 13, 2015 1:43 pm
- Location: IR
- Player profile: http://ddnet.org/players/Sv3N/
- Mapper profile: http://ddnet.tw/mappers/FlushA/
- Clan: I.R.T
Re: sql file for DDNet
deen please fix this void
Code: Select all
void CSqlScore::ClearString(char *pString, int size)
{
char newString[size*2-1];
int pos = 0;
for(int i=0;i<size;i++)
{
if(pString[i] == '\\')
{
newString[pos++] = '\\';
newString[pos++] = '\\';
}
else if(pString[i] == '\'')
{
newString[pos++] = '\\';
newString[pos++] = '\'';
}
else if(pString[i] == '"')
{
newString[pos++] = '\\';
newString[pos++] = '"';
}
else
{
newString[pos++] = pString[i];
}
}
newString[pos] = '\0';
strcpy(pString,newString);
}
✟Տ℣ʒN✟
- deen
- Posts: 3579
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: sql file for DDNet
Try it now: http://git.io/vnKUQ
Who is online
Users browsing this forum: No registered users and 45 guests