Zwelf
044edbe42b
Make storing teamrank compatible with SQLite
2020-08-03 12:58:52 +02:00
Zwelf
e3a78a7a31
Add BindBlob and BindFloat function to IDbConnection interface
2020-08-03 12:58:52 +02:00
Zwelf
26a2c91235
Trying to reconnect when ongoing MySQL connection failed
2020-08-03 12:58:52 +02:00
Zwelf
eb4d77f071
Make inserting ranks compatible with SQLite
2020-08-03 12:58:52 +02:00
Zwelf
17de42a947
Implement locking in SQLite
2020-08-03 12:58:52 +02:00
Zwelf
1677e1fed5
Gracefully shutdown database pool
2020-08-03 12:58:52 +02:00
Zwelf
00da45191c
Make CREATE TABLE compatible with SQLite
2020-08-03 12:58:52 +02:00
Zwelf
452017a58b
Move format string to CREATE TABLE into own file
2020-08-03 12:58:52 +02:00
Zwelf
2c5f892205
Apply suggestions from code review
2020-08-03 12:58:52 +02:00
Zwelf
b898f8c7c2
Remove unused MySQL interface
2020-08-03 12:58:52 +02:00
Zwelf
7c31a15c93
Add SQLite interface
2020-08-03 12:58:52 +02:00
Zwelf
2eb3d23ef4
Rewrite score using the new interface
...
delete file_score for now as it will be replaced by a sqlite backend
2020-08-03 12:58:52 +02:00
Zwelf
295ce95d64
Roughly define database pool interface
2020-08-03 12:58:52 +02:00
Zwelf
d59cdf47b5
Define new database interface
2020-08-03 12:58:52 +02:00
def
c8876b2c02
Fix legacy 64 player serverinfo, don't send duplicate packets ( fixes #2495 )
...
For legacy we sent the first packet once correctly, then the 2nd and 3rd
packet without the marker and token at the start, so they never worked.
For new 64 player serverinfo we sent all packets correctly but the 1st
packet twice.
Introduced in #1955 .
2020-07-13 00:19:00 +02:00
def
a34c72530b
Some minor improvements to sv_port 0, make it default
2020-07-09 18:28:20 +02:00
MikiGamer
f7eda384ea
changes for auto port
2020-07-09 17:48:03 +02:00
MikiGamer
beaadca6a9
switch, limited tries & sv_port 0
2020-07-09 17:47:30 +02:00
MikiGamer
6a87278c3d
find available port
2020-07-09 17:46:22 +02:00
def
66c7bf8851
Tell why DNSBL isn't allowing to vote ( fixes #2466 )
2020-07-07 23:12:55 +02:00
def
f15ac1d869
Fix uninitialised values in sixup differently ( fixes #2421 )
...
"./DDNet-Server shutdown" still works
2020-07-07 10:26:44 +02:00
Zwelf
6be35cd4e7
Remove unused function
2020-07-03 20:13:51 +02:00
Learath
416cb37000
Send Sixup information to antibot
2020-07-01 21:09:58 +03:00
heinrich5991
358735aadb
Revert "Don't run UpdateServerInfo if server isn't initialized yet"
...
This reverts commit e69f747e5f
.
Fixes `shutdown` on the initial command line which is also used on CI.
2020-07-01 17:45:01 +02:00
def
e69f747e5f
Don't run UpdateServerInfo if server isn't initialized yet
...
or currently shutting down anyway. Fixes the first half of #2421
2020-06-30 18:33:22 +02:00
Learath
8d8f1d7208
Only SendChat to clients that exist. Initialize m_Sixup anyway
2020-06-30 18:58:44 +03:00
bors[bot]
1750bb09f7
Merge #2335 #2336 #2340 #2342 #2349
...
2335: Make it more clear that this is a sixup translation server r=heinrich5991 a=def-
2336: Set skill level for Sixup (fixes #2334 ) r=heinrich5991 a=def-
2340: Keeping multiple states consistent is hard (fixes #2315 ) r=heinrich5991 a=def-
let's go recount every time
2342: Don't forget video recorder fps setting r=heinrich5991 a=def-
after switching to non-videorecorder client
2349: Document which MySQL/MariaDB versions we require (fixes #2343 ) r=heinrich5991 a=def-
Co-authored-by: def <dennis@felsin9.de>
2020-06-24 14:37:53 +00:00
def
5b3b42b771
Make it more clear that this is a sixup translation server
2020-06-24 14:49:23 +02:00
def
a8a2b41f3a
Set skill level for Sixup ( fixes #2334 )
2020-06-23 22:47:29 +02:00
Learath
f327e5bc42
Log join type
2020-06-23 18:30:57 +03:00
def
252cda2d49
Use str_comp instead of strcmp
...
error: ‘strcmp’ was not declared in this scope
2020-06-22 14:47:49 +02:00
Learath
28905c4659
Disable timeout for 0.7 clients
2020-06-20 19:52:23 +03:00
Learath
6db72b2388
Times are no longer negative in 0.7
2020-06-20 11:59:46 +03:00
Learath
91c44f1808
Sixup needs it's own maps
2020-06-20 01:00:45 +03:00
bors[bot]
5b4227fbba
Merge #2283
...
2283: teehistorian: Track whether clients join via the 0.7 protocol r=Learath2 a=heinrich5991
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-06-19 20:31:40 +00:00
heinrich5991
e294da41ba
teehistorian: Track whether clients join via the 0.7 protocol
2020-06-19 22:06:39 +02:00
Learath
da68923ac3
Implement a switch for 0.7 compatibility
2020-06-19 22:08:41 +03:00
Learath
aeb7ea2971
Don't forget that the client is Sixup
2020-06-19 20:28:55 +03:00
Learath
70ecf785bb
Compatible version filter
2020-06-19 20:28:55 +03:00
Learath
9f71478099
Get Rcon working
2020-06-19 20:28:55 +03:00
Learath
88ca573682
Serverinfo and Register support for 0.7
...
Co-authored-by: Tim Schumacher <tim@timakro.de>
2020-06-19 20:28:55 +03:00
Learath
9e2434c65d
Better skin colors. Better game message translation
2020-06-19 20:28:55 +03:00
Learath
9dc1a0357a
Get /spec working
2020-06-19 20:28:55 +03:00
Learath
03070d0567
Fix many issues
2020-06-19 20:28:52 +03:00
Learath
807c92f1a4
Generate the 0.7 protocol
2020-06-19 20:27:15 +03:00
Learath
f7e9df7abf
Move the rest of the translation to CServer
2020-06-19 20:27:15 +03:00
Learath
b0e5a37fa9
Do message translation differently
2020-06-19 20:27:15 +03:00
Learath
5000b248bb
Fix things
2020-06-19 20:27:15 +03:00
Tim Schumacher
442148a194
Begin work on 0.7 support
2020-06-19 20:27:15 +03:00
bors[bot]
6f8f606e05
Merge #2276
...
2276: Fix segmentation fault when creating sql tables failed r=heinrich5991 a=Zwelf
`GameServer()->OnShutdown(true);` (which would wait on running threads to exit)
wasn't called if an error occured in the server init. Therefore `CServer` was
freed before the init-thread finished executing, causing a use after free from
`CSqlConnector::ms_ppSqlReadServers` pointing to `CServer->m_apSqlReadServers`.
Fixes #2271
Note that the server exits when creating tables failed. Since the tables are created by default, it has to be disabled explicitly (e.g. `add_sqlserver r teeworlds record teeworlds PASSWORD "localhost" 3306 0`) if the servers should start even when the database connection fails.
Co-authored-by: Zwelf <zwelf@strct.cc>
2020-06-18 19:23:00 +00:00