Commit graph

2081 commits

Author SHA1 Message Date
heinrich5991 80ea4c8590 Disallow usage of semicolons in chat commands
This prevents player name exploits due to tab completion of nicknames
that could result in unwanted commands being executed.

Print a deprecation message that is supposed to be removed in the
future.
2017-01-03 14:01:51 +01:00
heinrich5991 e94c0260d7 Implement /rules in a less copy-and-pasty way 2017-01-03 13:57:22 +01:00
BannZay a96ebde93a getting jetpack through remote 2016-10-10 15:18:06 +03:00
Dennis Felsing 67ef498573 Merge pull request #549 from heinrich5991/pr_ddnet_improve_pause
Don't show player HUD during `/pause`
2016-09-29 13:48:12 +02:00
def 3ed6692ad7 SQL string cleanup 2016-09-25 10:41:34 +02:00
heinrich5991 c08206dd96 Don't show player HUD during /pause for vanilla clients 2016-09-20 21:40:40 +02:00
east c9a50916b3 sv_dnsbl_vote option added 2016-09-05 11:53:26 +02:00
east 678a69bf5b basic DNSBL implementation 2016-09-05 11:38:11 +02:00
H-M-H 1a311585be escape strings before applying FuzzyString 2016-09-03 18:28:11 +02:00
Speedy Consoles 39704a04a7 made 1-tick unfreeze reliable 2016-08-27 18:03:50 +02:00
def c91ef1ea81 str_append instead of strcat 2016-08-21 21:14:41 +02:00
def 2aa3303884 Longer team ranks 2016-08-21 21:06:12 +02:00
def 320c299b68 Fix laser code 2016-08-07 22:38:45 +02:00
def e8dac3346a Fix veto 2016-07-20 20:56:22 +02:00
def aab3beb3b0 Veto right for start and join time 2016-07-08 18:28:33 +02:00
def 992c148dce Fix messages a bit 2016-07-03 23:23:33 +02:00
Tim Schumacher 96d05e3370 Send chat message when team is unlocked by a tile 2016-06-30 17:55:34 +02:00
H-M-H 35bd378a62 fixed RandomUnfinishedMap
do not execute this function several times even after success
2016-06-22 02:00:29 +02:00
def e518a701a3 Clean up sql dbg_msg calls 2016-06-15 11:52:40 +02:00
def e0ec97174a Try to fix broken /map 2016-06-10 03:05:47 +02:00
HMH bb9d23bb73 sql-save: forgot a line 2016-05-31 12:32:09 +02:00
HMH 28d116217b fixed resetting of saving-state of teams (was not reset always)
destructor of CSqlTeamSave takes care of that now
while doing so the allocation of CSaveTeam has been moved to the stack
2016-05-31 00:03:28 +02:00
H-M-H ada3b9a5db Merge pull request #378 from H-M-H/sqlmasters
separate sqlwrite and sqlread server
2016-05-28 23:00:16 +02:00
HMH ea5892b1ce don't clear sql-mapstring twice 2016-05-21 22:53:49 +02:00
def af8317c2e9 Don't allow restarting after touching finish line on solo server 2016-05-21 21:51:38 +02:00
H-M-H b648b530d5 Merge branch 'master' into sqlmasters 2016-05-20 23:40:29 +02:00
def 3c54f443b2 Make sv_join_vote_delay work for /map votes and make the number of seconds configurable 2016-05-20 20:05:47 +02:00
def aff85462aa Update messages a bit 2016-05-20 18:36:32 +02:00
def ede6a9f93f More uniform /times output (thanks Soreu) 2016-05-20 18:28:33 +02:00
H-M-H 2bcbe52d14 fixed /load message 2016-05-11 15:54:09 +02:00
H-M-H 42fc8a0fe2 fixed use of Str and ClrStr 2016-05-11 15:26:16 +02:00
H-M-H 6a2438e1cf fixed includes 2016-05-11 15:01:53 +02:00
H-M-H 3b6baaa8d3 made CSqlData const for threadfunctions and added a class for sqlstrings
CSqlData is const for threadfunctions now to avoid modification from
within the threadfunctions as these might be called several times.
Previously this was a problem as ClearString could possibily be applied
multiple times to the same string.

To solve this the class CSqlString has been added. This class takes a
const char* and copies it. Additionally a clearstring is created from
the given const char*. This enables access to the original as well as
the cleared string safe for sql-statements.

sql_string_helpers got an own source file now.

A crashbug from CSqlServer has been fixed (pointer has not been set
back to 0)
2016-05-09 23:35:23 +02:00
Ryozuki 82d2a994ed Fixed cl_showping (now cl_showpred) 2016-05-05 18:07:00 +02:00
H-M-H 4bf1a68292 do not write nullbytes to failed_sql.sql 2016-05-05 13:23:35 +02:00
Henningstone 77b584c12f Forbid showing /top5 from rank 0 on 2016-05-05 01:33:28 +02:00
H-M-H 30ca8d8774 made writing to sql-failurefile threadsafe 2016-05-04 23:37:34 +02:00
def 2df9c79483 proper str_copy size (fixes #461) 2016-05-04 18:43:54 +02:00
H-M-H 5dc47ede58 put sql_string_helpers into an own namespace 2016-05-04 16:51:18 +02:00
H-M-H a7c0cd58ee fixed birthdaycheck and the format of sql-inserts for the failure-file 2016-05-04 16:47:53 +02:00
H-M-H cd41220a44 wait for score-threads on shutdown 2016-05-04 15:32:24 +02:00
H-M-H a93e845e6d checkbirthday now also sends a broadcast to the 'birthdaychild' 2016-05-03 23:50:42 +02:00
H-M-H 94f163f094 added CSqlPlayerData for simple tasks like getting best time 2016-05-03 23:24:44 +02:00
H-M-H c9e65c7931 Merge branch 'master' into sqlmasters 2016-05-03 23:07:24 +02:00
H-M-H c9b64053d0 cleaned up structure of sql_score.cpp 2016-05-03 20:45:58 +02:00
H-M-H d0cebb576d sql-score can now handle mapchanges/reloads 2016-05-03 20:36:17 +02:00
Dennis Felsing 230784d234 Merge pull request #458 from Ryozuki/pr_showping
Added cl_showping
2016-05-03 16:12:30 +02:00
Ryozuki 5c7856ee59 Added cl_showping 2016-05-03 16:06:10 +02:00
def 61e47422f6 Clean up debug messages a bit (lower case, no useless errors) 2016-05-02 21:35:32 +02:00
Tim Schumacher 50f9e37282 disable deepfly patch applied at wrong position 2016-05-02 16:25:34 +02:00
def b6733a1827 Update credits 2016-05-01 17:14:02 +02:00
def e0e7f20196 added sv_deepfly (default 1) to disable deepfly (by timakro) 2016-04-29 18:08:53 +02:00
def 67bff95a72 Merge remote-tracking branch 'timakro/new_hookthrough' 2016-04-27 18:59:51 +02:00
def 750f30b6b9 Don't use hardcoded table name 2016-04-23 16:42:54 +02:00
def 93ce3c84c3 Add fake tuning for hammer hit 2016-04-20 11:59:14 +02:00
def 2f170c4d1c Actually call new birthday function 2016-03-26 00:36:54 +01:00
def fc2bf86174 Birthday check when player joins 2016-03-26 00:20:18 +01:00
def 52fcc6e550 Fix sv_hide_score 2016-03-26 00:19:44 +01:00
def b2105ef3ec Revert "Nicer formatting for SQL stats"
This reverts commit c36b7efe1d.
2016-03-09 23:45:48 +01:00
def 64e4f99102 Revert "Further improvement on ranks formatting"
This reverts commit fad318e86f.
2016-03-09 23:45:43 +01:00
def fad318e86f Further improvement on ranks formatting 2016-03-08 17:53:49 +01:00
def c36b7efe1d Nicer formatting for SQL stats 2016-03-08 17:36:14 +01:00
def ce7eb0aac1 Add UNLOCK_TEAM tile (someone draw a tile please) 2016-03-07 18:04:59 +01:00
H-M-H e39829ef7c killer of locked team will get strong hook on respawn 2016-03-04 22:55:12 +01:00
def e577c8e9ae Fix web links 2016-02-23 01:05:37 +01:00
H-M-H 53a004fa74 reset preferred sql-server to the first specified
on map load
2016-02-20 15:33:35 +01:00
H-M-H 2bd6d0c381 do not always try to connect to unreachable sqlservers
but instead remember the last reachable server
- some cleanup
- added timeout of 10 seconds to sql-connections
2016-02-20 15:33:35 +01:00
H-M-H 783c2161f1 sql_score init is threaded now 2016-02-20 15:33:35 +01:00
H-M-H 8dacd88755 more generic format of saved sql-inserts 2016-02-20 15:33:35 +01:00
H-M-H 88ed7391da handle exceptions from sql properly
- write failed sqlinserts to a file
- improved structure
2016-02-20 15:33:35 +01:00
H-M-H 1314085928 restructured sqlconnection
reading from and writing to several different servers is now possible
TODO:
-handle Exceptions properly (try another sqlserver)
-if everything fails while writing write the insert to a file
2016-02-20 15:33:35 +01:00
H-M-H 2d41ce3527 try next sqlmaster also if the current write fails 2016-02-20 15:33:35 +01:00
H-M-H c4ab59e4c3 fixed use of locks for threading:
each sqlserver has its own lock now
-> it is required that every connect call is followed by a disconnect call
2016-02-20 15:33:35 +01:00
H-M-H 15f2e07c48 moved sqlserver stuff into CServer-class
as sqlconnections should not last only
until next mapreload
2016-02-20 15:33:35 +01:00
H-M-H 6ba10d2719 mastersqlservers are working now
TODO: move the sqlserver objects somewhere else
so they wont be destroyed on every reload
2016-02-20 15:33:35 +01:00
H-M-H 5e4456584f started with sqlmasters
+ added #ifdef for sql_server.cpp
(fixes compilation for release mode)
2016-02-20 15:33:35 +01:00
H-M-H 9ed66f7adc Cleanup of Sqlconnection
-moved all connectionstuff to a new class
-moved sqlstring functions to an own file
-do not give threads access to CSqlScore
2016-02-20 15:33:35 +01:00
Tim Schumacher e183a17117 removed other gametypes files and gametype setting 2016-02-16 14:29:11 +01:00
H-M-H 42a68636b5 tweaked respawndelay a bit 2016-02-02 21:14:46 +01:00
H-M-H cb1c63c652 Merge pull request #410 from heinrich5991/pr_ddnet_join_vote_delay
Add sv_join_vote_delay
2016-01-29 12:58:05 +01:00
Dennis Felsing 269bd3df4b Merge pull request #412 from heinrich5991/pr_ddnet_overlong_utf8_server
Kick people using overlong UTF-8 sequences
2016-01-27 02:15:19 +01:00
def 0a49428e21 Veto considers time on server not in current race 2016-01-27 02:14:46 +01:00
heinrich5991 a1923b154b Only ignore messages on invalid UTF-8, don't kick players 2016-01-27 01:48:19 +01:00
heinrich5991 d4eefefa26 Kick people using overlong UTF-8 sequences
This works around the bug in older clients (including vanilla) that
interpret those sequences incorrectly.
2016-01-27 01:24:02 +01:00
heinrich5991 90ba4c5986 Make join vote delay the default 2016-01-22 17:44:53 +01:00
heinrich5991 957844e234 Add comment about when sv_join_vote_delay doesn't apply 2016-01-21 00:09:11 +01:00
heinrich5991 384668928b Add sv_join_vote_delay
This is a new delay that specifies how many seconds you have to wait
before making your first vote. In case the server was only recently
filled (e.g. by a map change or if people start joining an empty
server), this delay is disabled (in the first case, because it's normal
to join after a map change, in the second case because you might have
joined the empty server to vote for a different map).
2016-01-19 23:52:28 +01:00
heinrich5991 c0a90f98b8 Fix length of vote reason display in chat
Fixes #407.
2016-01-19 15:00:41 +01:00
heinrich5991 294a962141 Fix a few style issues in voting code 2016-01-19 14:58:52 +01:00
H-M-H 8e24ef8020 commanddescription can now be placed directly in
the commandparamsstring: "s[file]"
2015-12-28 16:19:52 +01:00
H-M-H 11a426c18b added (console-)command usage 2015-12-23 14:29:31 +01:00
timgame 9f45090ca6 added chat msg to reveal killer of locked team 2015-11-12 18:59:58 +01:00
timgame dc89301292 clean up intersect line code 2015-11-08 10:20:44 +01:00
timgame 988a8f591a remove colflags 2015-11-08 10:20:10 +01:00
H-M-H 0e532adb67 Implemented Helper accesslevel
basically just copied everything from moderator-accesslevel implementation

note however that mod_command changed to access_level
2015-10-23 04:21:07 +02:00
def 05fcc58b2f Oops, next SQL server compilation fix 2015-09-23 14:05:54 +02:00
def 97152e5cbf Hopefully fix SQL server compilation with Visual Studio 2015-09-23 11:54:20 +02:00
def 336e916548 Add option not to create sql tables 2015-09-15 09:28:18 +02:00
heinrich5991 48ecf3d5a1 Merge pull request #323 from Chairn/drag_range
Added sv_dragger_range to control the length of the laser draggers.
2015-09-07 11:12:52 +01:00
def a8cadc21eb Last one I hope 2015-09-05 18:05:29 +02:00
def ffe9235151 Oops, another one 2015-09-05 17:59:37 +02:00
def 7487923774 Fix Windows thread handle leak 2015-09-05 04:49:22 +02:00
def 0fa06c4a5e Server names may be 4 bytes long 2015-09-05 00:48:11 +02:00
Chairn 8148a29108 Removed useless comment line 2015-09-01 23:17:45 +02:00
Chairn c5443d8e34 Added command sv_dragger_range. Maybe need some more tests. 2015-09-01 23:15:48 +02:00
oy e91d26b8ac force vital check on essential cl/srv messages and added additional sequence checking 2015-09-01 13:50:45 +02:00
heinrich5991 3a069093d7 Fix settings compare
It was just using a heuristic, comparing the first 24 bytes. Memory unsafety
for configs that were shorter than 24 bytes.
2015-08-27 16:20:56 +02:00
heinrich5991 cc0d0fa728 Fix config_store for old maps that don't contain MAPITEMTYPE_INFO
Just add one in this case.
2015-08-27 15:46:51 +02:00
heinrich5991 d56f80f0f5 Fix temp file creation in case no temp file is needed 2015-08-27 13:37:34 +02:00
heinrich5991 e954e55533 Removed *_dump and *_reset from the list of game commands 2015-08-27 13:00:43 +02:00
heinrich5991 d13ebf93a2 Add config_store and config_retrieve tool 2015-08-27 12:55:35 +02:00
heinrich5991 bf1f7d6ccd (Safely) execute settings embedded in maps 2015-08-27 12:55:34 +02:00
heinrich5991 6a17d2700d Fix saving the config into the map 2015-08-27 12:51:24 +02:00
SushiTee 7bd0f276d4 saving server settings within the map and loading them on init 2015-08-27 12:51:24 +02:00
heinrich5991 a3246ed099 Save the config into the map when the server loads the map 2015-08-27 12:51:24 +02:00
def ed0634f9b0 Update credits 2015-08-23 23:22:31 +02:00
def 5119976c9f Oops 2015-08-22 20:25:28 +02:00
def 7ff9cd890c No magic number for weapon 2015-08-22 20:15:15 +02:00
def 844d8b8ae3 Add sv_teleport_lose_weapons 2015-08-22 19:24:10 +02:00
def f977f80c94 Stronger checks on save 2015-08-22 15:16:14 +02:00
def f62bb1821c /map and /mapinfo improvement (fixes #292) 2015-08-19 22:43:08 +02:00
BeaR 6b2e61bbc6 Fix collision bug with weapon projectiles
Ignore characters, which can't collide e.g different teams, in the intersection test for projectiles.
2015-08-16 10:54:06 +02:00
def e1fe407ee5 Make team locking an option 2015-08-16 00:39:31 +02:00
def 9d5459d731 Check IDs in a more reasonable order 2015-08-12 15:54:03 +02:00
heinrich5991 ec85951736 Finish the renaming of sv_allow_rescue to sv_rescue 2015-08-10 13:34:56 +02:00
def 1fd0f947af Better numbers in average time for /mapinfo 2015-08-09 22:20:52 +02:00
def 727ea434d4 Increase magic number a bit until we assume client is not DDNet 2015-08-07 03:26:50 +02:00
def f39b85a3e2 Add average time to /mapinfo 2015-08-06 16:02:00 +02:00
def 8401c43edb Remove a message to prevent server log spamming 2015-08-05 22:43:57 +02:00
def d57b0d62c6 Support for 0 stars in database 2015-07-23 12:49:22 +02:00
def 949fcb2c40 Remove one useless debug print 2015-07-23 12:11:42 +02:00
def a04578b3ba Add switch_open to set the initial state of a switch to open 2015-07-22 23:32:39 +02:00
def bab961f054 Prepare switch to mixed case server names 2015-07-22 19:56:24 +02:00
def 0cb50c1805 Print actual SQL inserts/updates to debug log 2015-07-22 19:05:45 +02:00
def 4e658c1057 Minor cleanups 2015-07-22 18:23:40 +02:00
def 0cd9b0006b Another known bot client 2015-07-13 00:18:59 +02:00
def 17b8a5219b Show a nice message to known bot clients 2015-07-13 00:02:57 +02:00
def da68023f7a Off by one ;) 2015-07-11 19:28:45 +02:00
def 6d68e22cd1 Hopefully fix string fuzzying for unicode 2015-07-11 19:26:57 +02:00
def 73229fbb62 Only allow /save when team is started already (prevents saving after
noobfilter)
2015-07-09 23:48:29 +02:00
def 1ef03e7387 Only disallow team changing and killing when calling kick/spec votes 2015-07-09 19:07:33 +02:00
def 6e8ada1ac8 Fix whitespaces a bit 2015-07-09 02:12:35 +02:00
def acf18f98fc Clearer message on veto 2015-07-08 18:09:52 +02:00
def b6133e7ece Fix typo... 2015-07-08 17:05:49 +02:00
def c79b4d3112 Add veto right for players with high time to stop map change votes 2015-07-08 17:03:22 +02:00
def 1f2b09303f Vote caller never counts as afk 2015-07-08 16:04:54 +02:00
def fbe1bcbf39 Don't capitalize server name in /mapinfo 2015-07-08 15:47:46 +02:00
def 872a94618d Oops, use non-fuzzy map string 2015-07-08 02:14:33 +02:00
def 87227927cd /map and /mapinfo: Prefer exact match, including capitalization 2015-07-08 02:07:49 +02:00
def b3592380d1 Re-enable broadcast for old DDNet client version 2015-07-04 14:12:49 +02:00
def 9e4da8658d Update credits 2015-07-01 17:57:27 +02:00
def e20be248f0 Fix previous commit 2015-07-01 16:27:19 +02:00
def e552ef2643 Print number of finished tees in /mapinfo as well 2015-07-01 16:24:27 +02:00
def ce465b584c Add sv_rescue_delay and rename sv_allow_rescue to sv_rescue 2015-06-30 18:46:36 +02:00
def 45b7706439 Don't ignore timeout codes because of spam protection (might fix issue with timeout code being ignored) 2015-06-26 03:59:38 +02:00
def 3b7fca86c6 Initialize pReleasedString 2015-06-25 22:38:16 +02:00
def dcddb7896d It would help to test before commiting 2015-06-24 21:53:00 +02:00
def 2decad5d75 Fix SQL query of /mapinfo for empty case 2015-06-24 21:46:42 +02:00
def a0ac817966 Fix 2015-06-24 19:18:59 +02:00
def 6b300334f7 Nicer wording 2015-06-24 19:17:49 +02:00
def 7c9d452c61 Fix /mapinfo string 2015-06-24 19:15:03 +02:00
def 9a55f52e61 Fix SQL query 2015-06-24 19:04:34 +02:00
def 6b1c7a5350 Initial support for release dates in /mapinfo 2015-06-24 19:03:03 +02:00
def 55e0c58707 Fix bracket 2015-06-22 13:07:41 +02:00
def 4f323313f3 Clean up code a bit 2015-06-22 13:06:14 +02:00
def 49c0bedb62 Go back to forbiding cl_startinfo 2015-06-18 17:47:07 +02:00
def 8523fdc043 Update credits 2015-06-14 12:24:10 +02:00
def 981b6d0013 Fix potential server crash 2015-06-02 11:55:16 +02:00
def dd9563a88c Make switch number work for freeze on switch layer 2015-05-31 18:21:12 +02:00
def 0f5a4f8428 Fix start info spam protection 2015-05-19 17:47:41 +02:00
def 987723316a Fix server crash with doors 2015-05-18 20:36:30 +02:00
def 14b5766b30 Disallow spectators to participate in kick votes
Fixes #186
2015-04-19 14:15:59 +02:00
def 230ad1a6f6 Revert "Timestamp index for race table for improved performance of /players/"
Better indices on the relevant server, not necessary everywhere else.

This reverts commit d4d5109c47.
2015-04-19 12:52:27 +02:00
def d4d5109c47 Timestamp index for race table for improved performance of /players/ 2015-04-19 11:55:35 +02:00
def a77cd039a6 Get rid of all Clang warnings 2015-04-18 22:29:28 +02:00
timgame 52aab8c00f added unfreeze after /r, /rescue 2015-04-16 18:13:36 +02:00
timgame 62aa011734 added /r, /rescue: teleport yourself out of freeze 2015-04-16 17:37:57 +02:00
def 3992b1346b Hopefully fix compilation on new OS X systems
Names collided with some new OS X defined names, fixes #189
2015-04-07 19:07:38 +02:00
def 9ff0fbf530 Add /teamrank and /teamtop5 as aliases 2015-04-02 01:00:16 +02:00
def bb88034def Merge branch 'DDRace64' of github.com:def-/ddnet into DDRace64 2015-03-28 21:53:13 +01:00
def 14d0d2ba08 Kill everyone!
This fixes a bug where some players can fall outside of a map and don't die.
2015-03-28 21:52:43 +01:00
timgame 108e46275c fixed refill jumps with 1 jump 2015-03-22 18:27:57 +01:00
timgame 909db5cd55 added ninjajetpack prediction 2015-03-14 18:55:50 +01:00
def 564a69210c Revert ZZZ emoticon when afk 2015-03-13 15:21:27 +01:00
def f893ed6ec4 Fix and clean up autoupdater 2015-03-13 15:14:00 +01:00
def 05970cc2e2 Add BONUS tile, opposite of PENALTY (for Saavik's new map) 2015-03-10 22:57:40 +01:00
def cdc855f3fd Set telecp when using totelecp (for Saavik) 2015-02-21 19:48:22 +01:00
def 2b32b4a18a Add fire delay tunings 2015-02-12 15:20:22 +01:00
def 201e67d513 Update libcurl includes 2015-02-05 20:21:37 +01:00
def 96e864e9c3 Fix: Make /map work with # 2015-01-23 21:47:16 +01:00
timgame b53009db7c improved refill jumps tile 2015-01-19 22:14:49 +01:00
timgame 2ee0ca0648 added refill jumps tile and cleaned tile detection 2015-01-19 22:14:49 +01:00
def 4ee13df329 Fix text message about ninja jetpack 2015-01-05 13:30:38 +01:00
def f0d830021a Fix old bug 2014-12-29 20:06:00 +01:00
def 79aeb5ea38 Add hook duration tune 2014-12-27 12:05:02 +01:00
def 75ea9719db Player can be NULL, prevent crashes 2014-12-27 02:50:59 +01:00
def 6dc501f286 Fix: Actually should spam protect sql messages 2014-12-25 14:56:31 +01:00
def 292c18a1e0 Make prediction work with unsolo command 2014-12-25 11:37:44 +01:00
def 023f926e89 Fix Compilation 2014-12-20 16:35:47 +01:00
def e5aa762cf1 Make non-sql server comile again 2014-12-19 21:58:48 +01:00