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
tnx deen my source now fixed
but now i added in autoexec_server.cfg sv_use_sql 1
and open DDNet-Server_sql server is crashed and closed
i don't know why this don't work?:(
but now i added in autoexec_server.cfg sv_use_sql 1
and open DDNet-Server_sql server is crashed and closed
i don't know why this don't work?:(
✟Տ℣ʒ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
What's the error? It works here.
-
- 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
doesn't show any error just crashed the ddnet-server_sql.exe after opening

SpoilerShow

- Attachments
-
- Untitled.png (152.08 KiB) Viewed 4370 times
✟Տ℣ʒ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
No idea, sorry. I really never ran it on Windows. Maybe someone with Windows experience can give it a try and figure something out.
-
- 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'm debuged when crashed and show me this code
https://github.com/ddnet/ddnet/blob/mas ... re.cpp#L92
https://github.com/ddnet/ddnet/blob/mas ... re.cpp#L92
✟Տ℣ʒ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
Ok, did you set the other SQL settings?
Do you have a MySQL server runnning? Maybe the version of you mysql libs is not working with Visual Studio.
Code: Select all
sv_use_sql 1
sv_sql_ip "localhost"
sv_sql_port "3306"
sv_sql_database "teeworlds"
sv_sql_prefix "record"
sv_sql_user "teeworlds"
sv_sql_pw "foobar"
-
- 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
my uwamp mysql version is 5.6.20,
my config is
my config is
Code: Select all
sv_use_sql 1
sv_sql_user "root"
sv_sql_prefix "record"
sv_sql_pw ""
sv_sql_database "teeworlds"
sv_sql_ip "localhost"
sv_sql_port "3306"
✟Տ℣ʒ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
I think this line does not work
line:
file:
can u fix that ?
line:
m_pConnection = m_pDriver->connect(connection_properties);
file:
sql_score.cpp
can u fix that ?
✟Տ℣ʒ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
Works for me, no idea why it doesn't on Windows.
Who is online
Users browsing this forum: No registered users and 9 guests