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
e81c718180
Rework netobjs, fix chat
2020-06-19 20:28:55 +03:00
Learath
eff28c658a
Fix server messages
2020-06-19 20:28:55 +03:00
Learath
40247f6b43
Fix chat
2020-06-19 20:28:55 +03:00
Learath
f9cc634683
Fix recvmmsg issue
2020-06-19 20:28:54 +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
Learath
e9ba23b53a
Migrate to 0.6.5 flags
2020-06-19 20:27:15 +03:00
def
e36dc36b15
Fix demos header ( fixes #2278 )
...
Initially broken in 7aed6476dc
2020-06-19 10:42:19 +02:00
def
47e6c7cce2
Only forbid resizing when videorecorder is recording
2020-06-19 08:19:40 +02: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
Zwelf
f5ac6eea56
Fix segmentation fault when creating sql tables failed
...
`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`.
2020-06-18 21:11:36 +02:00
def
7aed6476dc
Allow larger map names
2020-06-18 18:29:27 +02:00
def
882185e299
Make SaveID DEFAULT NULL
2020-06-18 10:32:58 +02:00
bors[bot]
98b448ebcc
Merge #2247
...
2247: Thread safe SQL interaction r=def- a=Zwelf
This PR intends to make the database interaction thread safe and optimizes some SQL queries. This is still a WIP, but since it is a rather big PR I wanted to get feedback early on.
Benefits:
* remove race conditions leading to undefined behavior and potential crashes
* logging game related database results in teehistorian would be possible
Behavior change:
* /top5team prints ranks in reverse order when passing a negative number (like /top5, /top5points)
* Optimize SQL statements for /rank /teamrank /top5 /top5team /points /top5points
* /load without parameters doesn't pass the SQL error to the user (as most other functions)
* Simplify IScore interface
* Add UUID to /save table (update of database schema necessary):
```
ALTER TABLE record_saves ADD SaveID varchar(64);
```
* /save immediately kills team and loads it again if the database insert fails.
still TBD:
* [x] saving (team) score when finishing
* [x] loading team save
* [x] loading initial time and birthday check
* [x] /map and random map votes
* [x] RFC: generate a passphrase (2-3 word) if save-code exists or no save-code is given making /save failures much more rare and save-codes more secure
* [x] clean up code (removing now unused structs, ordering of functions in IScore)
Co-authored-by: Zwelf <zwelf@strct.cc>
2020-06-17 19:35:45 +00:00
Zwelf
f1b2ff086c
Clean up thread safe SQL refactor
2020-06-17 21:15:07 +02:00
Zwelf
ea31171873
Generate passphrase for save-code
...
* when none is given
* if the given save-code already exist
* if the database connection fails therefore it can't be checked if the save-code already exists
Using the short word list from eff:
https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases
2020-06-15 11:14:15 +02:00
Zwelf
528ca377ed
Thread safe saving of team score
2020-06-15 11:14:15 +02:00
Zwelf
62d56ca8e8
Make database init with create tables synchronous
...
Note: database init without creating tables behaves the same
2020-06-15 11:14:15 +02:00
Zwelf
031ac52320
Thread safe /save
2020-06-15 11:14:15 +02:00
Zwelf
4152a1995e
Add missing dependeny to sql string helper
2020-06-15 11:14:15 +02:00
12pm
01092a30c1
add sv_tele_others_auth_level
2020-06-14 19:21:12 +03:00
Learath
345798f9e1
Don't miss dummy disconnects. Fix #2257
2020-06-11 13:33:08 +03:00
bors[bot]
92fc95d742
Merge #2202
...
2202: Send DDNet version early in the connection process r=Learath2 a=heinrich5991
This gets rid of the problem that we don't know whether we should send
full snapshots to clients because they haven't told us about them being
DDNet yet.
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-05-27 17:49:31 +00:00
heinrich5991
f339fea748
Merge pull request #2139 from edg-l/pr_add_upnp
...
Add UPnP support
2020-05-24 22:23:20 +02:00
Edgar
3569e174f2
refactor upnp code
2020-05-24 11:36:43 +02:00
heinrich5991
0d7872c79e
Send DDNet version early in the connection process
...
This gets rid of the problem that we don't know whether we should send
full snapshots to clients because they haven't told us about them being
DDNet yet.
2020-05-22 17:58:41 +02:00
Zwelf
cd015c5e37
Fix storing incomplete game uuid on /save
...
Previously the formatted game uuid was cut off after 15 bytes.
Therefore only 52 out of 128 bit of the uuid were stored.
introduced in 69fd7f1767
2020-05-20 22:18:14 +02:00
Learath
850e4e84e4
Reserve bytes for the type and token
2020-05-18 21:13:15 +03:00
Learath
788fc8bb5f
Update can happen when the gameserver doesn't exist
2020-05-18 16:17:06 +03:00
Learath
1426392ae7
Don't Destroy if we didn't Init
2020-05-16 23:10:42 +03:00
bors[bot]
3c573cfd2f
Merge #2181
...
2181: Some antibot fixes r=Learath2 a=heinrich5991
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-05-16 08:06:53 +00:00
bors[bot]
8c2ae65059
Merge #2177
...
2177: Extend antibot interface r=def- a=Learath2
Supersedes #2167
Co-authored-by: Learath <learath2@gmail.com>
2020-05-16 06:07:55 +00:00
heinrich5991
afe2fc930e
Fix ITIS, IDONTKNOW not being system messages
2020-05-16 00:41:03 +02:00
heinrich5991
457c4db964
Some antibot fixes
2020-05-16 00:39:17 +02:00
Learath
eacc56059b
Keep ticks going
2020-05-15 19:29:34 +03:00
Learath
5e02bb5a23
Extend antibot interface
...
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-05-13 23:39:40 +03:00
trml
99baf219d0
Revert "Remove the dummy prediction"
...
This reverts commit 681f30950c
.
2020-04-18 22:16:25 +02:00
Arda Demir
8648b1a7dc
Don't push notification when active
2020-04-15 00:37:58 +03:00
Arda Demir
b7d452d2a0
Libnotify support for linux client ( #2099 )
...
Add libnotify support for linux client
Also unify notification management
Make libnotify mandatory for the client. It is installed on 100% of Arch
Linux systems and on 70% of Debian systems. I'd guess the remaining
Debian systems are servers.
Detect dependent libraries of `libnotify` using `pkg-config`. Remove
library-specific code from the game module. Decrement refcount for
libnotify notification object before leaving the function.
2020-04-14 17:53:53 +02:00
Ryozuki
ea7f3f0a62
prevent endless loop
2020-04-14 12:51:48 +02:00
Ryozuki
b647c1e978
Add UPnP support
2020-04-14 12:11:50 +02:00
Ryozuki
588f8a833f
Fix snapshot storage leak
2020-04-11 13:38:02 +02:00
Ryozuki
5f565a5eb5
check for WavpackCloseFile
2020-04-11 13:17:21 +02:00
Ryozuki
7d51a0992a
fix memory leak on sound decoding
2020-04-11 13:17:21 +02:00
Ryozuki
09b79701af
don't check, use dbg_assert
2020-04-11 13:17:20 +02:00
Ryozuki
cde63e2f48
Fix TexEx UB
2020-04-11 13:17:20 +02:00
Ryozuki
c6731c7e83
Fix uninitialized m_LastProgramID
2020-04-11 13:17:19 +02:00
def
dde88bbd77
Fix division by 0 ( fixes #2131 )
...
Caused by https://github.com/ddnet/ddnet/pull/2119/
2020-04-10 20:54:05 +02:00
Ryozuki
0da0dddf15
drop glu dependency
2020-04-08 18:19:12 +02:00
def
6fd7ded869
Whitespace
2020-04-07 22:57:07 +02:00
Learath
388d792205
Add an option for highdpi
2020-04-07 23:47:15 +03:00
bors[bot]
65673ab402
Merge #2119
...
2119: Change last render logic, when inactive r=def- a=Jupeyy
Just a small fix to let the client not try to get high fps, when it "thinks" it didn't render for a long time.
(is still affected by the SDL check "if window has input" at the cl_refresh_rate calculation, so not a 100% fix).
Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2020-04-07 15:27:29 +00:00
def
f7e8b10bff
Make gfx_resizable default to 0
...
because of common graphics issues. As suggested by Jupstar
2020-04-06 12:04:53 +02:00
Jupeyy
888223a529
Change last render logic, when inactive
2020-04-06 03:18:30 +02:00
def
a8c3d192d1
Add cl_unpredicted_shadow -1 value ( fixes #2100 )
...
to disasble unpredicted shadow even in debug mode
2020-03-31 18:00:20 +02:00
Learath
61e5667624
Streamline platform client
2020-03-28 02:20:16 +03:00
sirius
3c085b53ed
fix bug that demo can't play when demo pause and use start_video
2020-03-26 18:25:50 +08:00
bors[bot]
6e78deb0c4
Merge #2069 #2076 #2095
...
2069: Move global configuration out of client interface r=heinrich5991 a=ChillerDragon
2076: Allow editing multiple tile layer props r=heinrich5991 a=Learath2
Requested by Ravie on discord
2095: Fix `AntibotDestroy` being called twice r=def- a=heinrich5991
The resource deallocation needs to happen in symmetry with the
allocation, otherwise we get unmatched dealloctions leading to crashes.
Allocations happened in `CAntibot::Init`, but it was not guaranteed that
this was called before the destructor.
Co-authored-by: ChillerDragon <ChillerDragon@gmail.com>
Co-authored-by: Learath <learath2@gmail.com>
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-03-23 17:04:15 +00:00
bors[bot]
048ca9fe0a
Merge #2070
...
2070: Fix demo recording with broken maps r=heinrich5991 a=Learath2
Apparently there are maps out there with broken headers advertising the wrong map size. This allows demos to be recorded on those.
Example of such a map is `ctf4_old_d668e9fa_2f472051b26b6bffaa4af8990cf882cafd6364e00e1333b77762cb9911e49464.map`
Hosted on `Allround Network`
Reported by teini94 on discord
Co-authored-by: Learath <learath2@gmail.com>
2020-03-23 16:58:01 +00:00
bors[bot]
bf821fe391
Merge #2071
...
2071: Add an option to only start a new demo when connect while automatically record demos r=def- a=sirius1242
Origin auto demo recording of ddnet will generate lots of demo files especially when playing in mods which have shorter rounds, such as infclass. I added a new option to open a new demo file only when connect to server (include map changing), this is disabled by default, and can use `cl_auto_demo_on_connect 1` to open. It works only when `cl_auto_demo_record` open.
Co-authored-by: sirius <sirius.ustc@gmail.com>
2020-03-23 16:38:17 +00:00
Learath
6919ed3041
Use updated stub, switch around versions
2020-03-23 15:46:57 +01:00
Learath
060d60f2ea
Output library versions
2020-03-23 15:46:57 +01:00
def
2319151fb4
Disable currently broken sv_vanilla_antispoof
2020-02-27 22:53:56 +01:00
sirius
72fd0f9a21
forget to check CONF_VIDEORECORDER defined or not for video rendering pause
2020-02-27 20:32:42 +08:00
sirius
b5c931279f
add option to pause video rendering when demo playing pause
2020-02-27 18:50:18 +08:00
def
127372b03d
Fix timeout protection ( fixes #2067 )
...
CNetMsg_Cl_Say should not be a system message
2020-02-22 09:55:17 +01:00
sirius
50b980ea16
add an option to only start a new demo when connect while automatically record demos
2020-02-21 17:01:31 +08:00
Learath
c52bbb6c02
Fix demo recording with broken maps
2020-02-19 15:38:58 +03:00
ChillerDragon
9e0f6d2ce0
Move global configuration out of client interface
2020-02-19 11:24:58 +01:00
bors[bot]
43ecec1f2f
Merge #2061
...
2061: use pid in file names of temporary files r=heinrich5991 a=def-
to prevent race conditions with multiple clients running when saving maps, config on quit, during upgrade
Co-authored-by: def <dennis@felsin9.de>
2020-02-13 00:03:23 +00:00
def
31ae4c4d5a
use pid in file names of temporary files
...
to prevent race conditions with multiple clients running when saving
maps, config on quit, during upgrade
2020-02-12 23:14:30 +01:00
def
00b74d2acb
Don't overcomplicate Success = false
2020-02-12 22:45:09 +01:00
bors[bot]
72fcf9caa8
Merge #2050
...
2050: Fix race condition. Closes #2004 r=def- a=Learath2
I guess a new state is better then a global variable
Co-authored-by: Learath <learath2@gmail.com>
2020-01-26 15:49:30 +00:00
Learath
cc8dea393d
Address feedback
2020-01-25 21:05:33 +01:00
Dennis Felsing
50d848ec43
Merge pull request #1928 from sirius1242/demo_render2
...
Demo to video converter function.
2020-01-25 21:01:08 +01:00
Learath
40dc9692aa
Fix race condition. Closes #2004
2020-01-25 17:48:32 +01:00
bors[bot]
7a3ebd5948
Merge #2041
...
2041: Strip spaces in browser (server name) r=heinrich5991 a=ChillerDragon
before:
![image](https://user-images.githubusercontent.com/20344300/72688976-b45f1d00-3b0c-11ea-8920-5328c6d721f7.png )
after:
![image](https://user-images.githubusercontent.com/20344300/72688970-9db8c600-3b0c-11ea-8636-330218d75ca1.png )
Co-authored-by: KillaBilla <robomastermail@googlemail.com>
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-01-25 12:45:36 +00:00
bors[bot]
749929431a
Merge #2040
...
2040: fixed faulty message id r=heinrich5991 a=ChillerDragon
(cherry picked from commit 9023796d27
)
Co-authored-by: oy <Tom_Adams@web.de>
2020-01-25 12:40:14 +00:00
sirius
97064a1b09
Keep trying to solve fluency issues
2020-01-25 19:14:45 +08:00
def
8779be6bd8
Looks like my comment was wrong...
2020-01-25 07:37:28 +01:00
12pm
ec42291756
Allow filtering by name in status
...
Easier to find players when the server is full
2020-01-24 14:44:54 +01:00
ChillerDragon
610976eddd
Fix max snapshot size
2020-01-22 13:44:05 +01:00
ChillerDragon
ee825f42e9
Add snap check for dummy
2020-01-21 22:20:09 +01:00
oy
49168da784
fixed typo
...
(cherry picked from commit 3deb58d409
)
2020-01-21 22:17:20 +01:00
oy
ef3bce204c
added some checks to snap handling
...
(cherry picked from commit a09d498bc9
)
2020-01-21 22:16:28 +01:00
KillaBilla
ba1abac52f
remove leading and trailing space from server name and forbit the use of multiple spaces
...
(cherry picked from commit a9cc1e8de2
)
2020-01-19 22:28:19 +01:00
oy
1b4131a7fd
fixed faulty message id
...
(cherry picked from commit 9023796d27
)
2020-01-19 21:30:12 +01:00
sirius
d6dc811674
seems fluent problem solved, and fix a error when compile by msvs
2020-01-12 16:57:40 +08:00
sirius
483885b6b1
try to solve the problem that video not fluent caused by previous commits
2020-01-08 14:25:06 +08:00
sirius
d45b66938d
make latter to wait when write_frame collision between audio and video
2020-01-07 11:32:56 +08:00
sirius
3baba93ed2
fix the problem of audio when video fps is low
2020-01-06 11:57:24 +08:00
sirius
779afcb771
crf and preset can be set by variables
2020-01-05 11:18:51 +08:00
sirius
0be4629cc1
forget to deal with pError
2020-01-04 17:44:12 +08:00
sirius
3967ddba00
replace same operations by call Demoplay_Play() when rendering video by render button
2020-01-04 17:08:00 +08:00
sirius
521e822bbb
update map fix part when rendering video
2020-01-04 17:02:00 +08:00
sirius
5350a12185
fix wired sound
2020-01-04 10:17:16 +08:00
def
600a3b0bad
Fix preprocessor
2020-01-03 22:07:02 +01:00
def
511c9d248e
Fix alignment of pixels for reading to video recorder
2020-01-03 21:43:15 +01:00
def
1e36b4df15
Move some code out as a small optimization
2020-01-03 21:42:53 +01:00
def
8d716452ba
Fix sizes so that we don't write too far
2020-01-03 21:42:19 +01:00
def
54ae929b2f
Disallow resizing windows when videorecorder is compiled in
2020-01-03 21:40:41 +01:00
def
a0362019f0
Initialize m_NextaFrame
2020-01-03 20:37:27 +01:00
Learath
d2fad6c79a
Fix demo bug
2020-01-03 12:13:40 +03:00
sirius
6803726209
extend sound buffer, try to solve segment fault problem
2020-01-03 10:26:10 +08:00
def
017b8c3621
Move DDNet-custom json code out of external directory ( fixes #2022 )
2020-01-01 20:07:04 +01:00
def
df807a7486
-DVIDEORECORDER=ON instead of -DFFMPEG=ON, fix README
...
remove unused files
2020-01-01 16:56:54 +01:00
sirius
7710b88670
Merge branch 'master' of https://github.com/ddnet/ddnet into demo_render2
2020-01-01 18:36:49 +08:00
Dennis Felsing
811ddb3283
Merge pull request #2008 from Learath2/dd_pr_demohotfix
...
Fix (not) small bug with demos that don't include a map
2019-12-22 22:38:22 +01:00
Learath
a882cf5196
Fix bug with slices
2019-12-22 19:09:14 +03:00
Dennis Felsing
83f2fc2669
Merge pull request #2012 from ChillerDragon/pr_func_style
...
Style 'void foo() {' -> 'void foo()\n{'
2019-12-21 18:18:49 +01:00
ChillerDragon
928e5407eb
Style 'void foo() {' -> 'void foo()\n{'
2019-12-21 14:35:09 +01:00
Dennis Felsing
3e08d473ab
Merge pull request #2011 from heinrich5991/pr_ddnet_fix_comment
...
Fix outdated comment
2019-12-21 08:00:38 +01:00
heinrich5991
e70fb8e43d
Fix outdated comment
2019-12-20 22:51:10 +01:00
Learath
65ec25a8a1
Fix small bug with demos that don't include a map
2019-12-18 13:51:08 +01:00
Dennis Felsing
4171e8751f
Merge pull request #1939 from Learath2/dd_pr_demoload
...
Always try extracting map before fail. Fix #1886
2019-12-17 21:20:10 +01:00
Learath2
3784f5bea4
Use a UUID, Cleanup code and UI
2019-12-17 15:44:54 +01:00
ChillerDragon
4a6a85124a
Remove some unused includes
2019-12-14 10:20:42 +01:00
bors[bot]
4a83a42f14
Merge #1981
...
1981: Fix: background colors being set to white r=def- a=Aerll
After changing either of background colors in ddnet tab in settings and reopening the client, both become white.
Co-authored-by: Aerll <31746984+aerll@users.noreply.github.com>
2019-12-10 12:34:48 +00:00
def
8639c902ae
map_convert_07: use regular paths
2019-12-08 23:14:56 +01:00
Aerll
ff685ac1e0
fix ub
2019-12-08 20:08:00 +01:00
def
18e2232727
Add support to tell DDNet7 ranks apart from DDNet ones
...
Saves should not be loadable from one to the other.
Requires:
ALTER TABLE record_race ADD COLUMN DDNet7 BOOL DEFAULT FALSE AFTER GameID;
ALTER TABLE record_teamrace ADD COLUMN DDNet7 BOOL DEFAULT FALSE AFTER GameID;
ALTER TABLE record_saves ADD COLUMN DDNet7 BOOL DEFAULT FALSE AFTER Server;
2019-12-08 16:04:49 +01:00
Magnus Auvinen
6a6a5f00c9
more typesafty in the graphics. introduced the IGraphics::CTextureHandle
...
Edited by @ChillerDragon to fit in ddnet
(cherry picked from commit cb95e8dfe8
)
2019-11-22 18:08:37 +01:00
sirius
76a80fe01b
deal with warnings
2019-11-12 21:41:30 +08:00
ChillerDragon
9c3447dd17
Use an enum for netclient indices
2019-11-10 13:46:27 +01:00
ChillerDragon
1a957f0abe
Fix typo 'user' -> 'use'
2019-11-05 09:16:54 +01:00
Dennis Felsing
785ec3d345
Expire server info on connected/drop events
2019-11-04 15:45:55 +01:00
Learath2
c2bcd3bd4d
Fix bug
2019-11-04 01:06:52 +01:00
bors[bot]
0de012572b
Merge #1955
...
1955: Cache serverinfo responses r=def- a=Learath2
I'm not sure I like it but it works
Co-authored-by: Learath2 <learath2@gmail.com>
2019-11-03 20:09:21 +00:00
Learath2
c0b0f48d16
Oops
2019-11-03 20:58:35 +01:00
def
fdaafea6b5
Also init m_aClients[*].m_Latency
...
as reported by valgrind --tool=memcheck:
==376722== Conditional jump or move depends on uninitialised value(s)
==376722== at 0x1CDBDB: int maximum<int>(int, int) (math.h:79)
==376722== by 0x216A46: CPlayer::Tick() (player.cpp:174)
==376722== by 0x1FB308: CGameContext::OnTick() (gamecontext.cpp:658)
==376722== by 0x1C60AF: CServer::Run() (server.cpp:2046)
==376722== by 0x1CB099: main (server.cpp:3040)
==376722==
==376722== Conditional jump or move depends on uninitialised value(s)
==376722== at 0x183F27: int minimum<int>(int, int) (math.h:77)
==376722== by 0x216A65: CPlayer::Tick() (player.cpp:175)
==376722== by 0x1FB308: CGameContext::OnTick() (gamecontext.cpp:658)
==376722== by 0x1C60AF: CServer::Run() (server.cpp:2046)
==376722== by 0x1CB099: main (server.cpp:3040)
2019-11-03 18:54:25 +01:00
Learath2
c4d18118c1
Use automatic storage for the data
2019-11-03 18:31:05 +01:00
def
258eaf5a98
Fix uninitialized variable
...
As reported by valgrind --tool=memcheck:
[201==344082== Conditional jump or move depends on uninitialised value(s)
==344082== at 0x483BC85: strlen (vg_replace_strmem.c:461)
==344082== by 0x5B9E61D: __vfprintf_internal (in /usr/lib/libc-2.30.so)
==344082== by 0x5BB0409: __vsnprintf_internal (in /usr/lib/libc-2.30.so)
==344082== by 0x222AE7: str_format (system.c:2350)
==344082== by 0x2196AB: CStorage::GetPath(int, char const*, char*, unsigned int) (storage.cpp:274)
==344082== by 0x219DDD: CStorage::RemoveFile(char const*, int) (storage.cpp:409)
==344082== by 0x255D3C: CClient::DemoRecorder_Stop(int, bool) (client.cpp:3546)
==344082== by 0x2569E7: CClient::ConchainReplays(IConsole::IResult*, void*, void (*)(IConsole::IResult*, void*), void*) (client.cpp:3727)
==344082== by 0x1F4659: CConsole::Con_Chain(IConsole::IResult*, void*) (console.cpp:1169)
==344082== by 0x1E4C2C: CConsole::ExecuteLineStroked(int, char const*, int, bool) (console.cpp:504)
==344082== by 0x1E4F37: CConsole::ExecuteLine(char const*, int, bool) (console.cpp:558)
==344082== by 0x1E5240: CConsole::ExecuteFile(char const*, int, bool, int) (console.cpp:604)
2019-11-03 18:05:42 +01:00
Learath2
52cca29cd9
Use a std::list, improve variable naming
2019-11-03 15:39:32 +01:00
sirius
8c48e7d633
some small changes
2019-11-03 11:20:24 +08:00
Learath2
3d495a9936
Initialize variables
2019-11-03 01:53:50 +01:00
Learath2
79e4651d5b
Only update serverinfo when needed
2019-11-03 01:07:10 +01:00
Learath2
7f0589bff7
Cache serverinfo responses
2019-11-03 00:33:30 +01:00
sirius
4cc03af9a9
remove useless functions for previous audio sync
2019-11-02 18:32:48 +08:00
sirius
e910fe404f
Direct mix when recording audio now, and seems solve the stuck problem when
...
DDNet is not the focusing window
2019-11-02 18:21:47 +08:00
sirius
f2ffa996c2
GetSync calculate only when m_Recording true (otherwise sometimes core dump)
2019-11-01 10:52:24 +08:00
Sirius
45263ebdd0
Merge branch 'master' into demo_render2
2019-10-31 22:08:49 +08:00
sirius
ae1ff28579
not abort sample when sync now
2019-10-31 22:01:12 +08:00
WsYFU
1a16f5b5f0
Update serverbrowser.cpp
2019-10-31 16:16:35 +03:00
sirius
5ad8028aa4
sync audio frame with video frame number
2019-10-31 20:02:41 +08:00
sirius
99f6b66fbd
solve sync between video and audio by magic number
2019-10-31 17:37:38 +08:00
sirius
99df692e00
interleaving problem solved, but a little misplacement of video and audio stream
2019-10-31 17:00:05 +08:00
sirius
0a6edd02ca
solve the problem when video finished
2019-10-30 22:26:45 +08:00
sirius
9f009e0e04
interleaving problem seems solved, but still have some problem when playing by mplayer
2019-10-30 22:10:44 +08:00
sirius
f0e7ca200f
remove two first audio frames to avoid noise in the begining
2019-10-30 10:56:20 +08:00
sirius
a7c2a65ebc
audio seems correct, but need more elegant way, and still bad interleaving
2019-10-30 00:01:25 +08:00
sirius
49ff1a5827
not play sound when rendering video
2019-10-26 20:01:09 +08:00
sirius
9866a73b1c
sync audio and video
2019-10-26 19:54:25 +08:00
ChillerDragon
47b41f35ff
Fix objc_msgSend() xcode11 error
...
Fix by @heinrich5991
from the documentation of objc_msgSend in <objc/message.h>
```
/* Basic Messaging Primitives
*
* On some architectures, use objc_msgSend_stret for some struct return types.
* On some architectures, use objc_msgSend_fpret for some float return types.
* On some architectures, use objc_msgSend_fp2ret for some float return types.
*
* These functions must be cast to an appropriate function pointer type
* before being called.
*/
OBJC_EXPORT void
objc_msgSend(void /* id self, SEL op, ... */ )
OBJC_AVAILABLE(10.0, 2.0, 9.0, 1.0, 2.0);
OBJC_EXPORT void
objc_msgSendSuper(void /* struct objc_super *super, SEL op, ... */ )
OBJC_AVAILABLE(10.0, 2.0, 9.0, 1.0, 2.0);
```
2019-10-23 17:23:51 +02:00
sirius
b175a6fd42
add button to use sound when rendering video
2019-10-17 13:38:00 +08:00
Learath
7cdd050fee
Add SHA to demos. Bump Demo Version
2019-10-14 02:27:08 +02:00
Learath
b2cefb20ed
Always try extracting map before fail. Fix #1886
2019-10-13 18:46:28 +02:00
bors[bot]
fdf2ec37e7
Merge #1930
...
1930: Fix #1888 r=heinrich5991 a=Learath2
I didn't see a better fix for it
Co-authored-by: Learath <learath2@gmail.com>
2019-10-07 22:44:51 +00:00
12pm
36df86fcd2
Add toggle keyboard shortcuts button to demo player
...
Demo shortcuts can be annoying if you have other binds on them.
Icons made by eNJi
2019-10-05 18:06:58 +02:00
Learath
49a2a47dc8
Fix #1888
2019-10-02 20:44:03 +03:00
bors[bot]
e7ea336a94
Merge #1925 #1929
...
1925: Don't bundle libcurl for Linux r=Learath2 a=heinrich5991
It's installed basically everywhere and just increases release size.
They're serious about backward compatibility and haven't had a breaking
change in ages.
1929: Remove space at end of cfg description r=Learath2 a=ChillerDragon
Happy hacktoberfest :octocat:
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-10-02 17:25:02 +00:00
ChillerDragon
3777021383
Remove space at end of cfg description
2019-10-02 17:15:42 +02:00
sirius
6acae69d96
repair the segment fault bug in con_startvideo
2019-10-02 09:52:54 +08:00
sirius
ca583ba2a9
solve the problem about disorder of frames, reason is that no glReadBuffer() before glReadPixel()
2019-10-02 09:52:47 +08:00
sirius
b0ee5671ff
rebased to ef32fc4
2019-10-02 09:51:33 +08:00
sirius
e4fdeefdd4
remove first two frames to forbid from interface before playback being rendered to video
2019-09-30 20:55:23 +08:00
sirius
605da124d4
add button to adjust render speed
2019-09-30 20:54:42 +08:00
sirius
1c150106f8
demoplayer disconnect when render finished
2019-09-30 20:54:42 +08:00
sirius
d9d1e8b309
add if defined to newly added lines
2019-09-30 20:54:19 +08:00
sirius
562dffe800
segment fault repaired (don't nest others' function thoughtless)
2019-09-30 20:52:25 +08:00
sirius
a71339366b
add function to appoint video name, but will segment fault
2019-09-30 20:52:25 +08:00
sirius
1375fbb95d
add a button to render whole demo
2019-09-30 20:52:24 +08:00
HMH
41da2f4497
removed superfluous const
2019-09-30 20:48:50 +08:00
H-M-H
78e851c52c
hopefully made msvc happy now
2019-09-30 20:48:50 +08:00
H-M-H
4b86630b42
fps for videos configurable and videos are stored at a proper location
2019-09-30 20:48:47 +08:00
H-M-H
98568eba43
no audio for now
2019-09-30 20:48:47 +08:00
H-M-H
2f71720fb1
correct time after stopping recording a video
2019-09-30 20:48:47 +08:00
H-M-H
ab9e716444
fixed compiling on linux
2019-09-30 20:48:47 +08:00
H-M-H
7ae4b39574
made recording demos work
...
- videorecorder only works for recording demos now
- demoplayer was modified to allow controll over the time that passed
in order to get perfect fps, IVideo controlls how much time passed,
basically every rendercall sets the time to record the next frame
2019-09-30 20:48:47 +08:00
H-M-H
94860c935f
raw H.264 --> mp4 \o/
2019-09-30 20:46:45 +08:00
H-M-H
c5c171a3cb
initial work on a video recorder
2019-09-30 20:46:45 +08:00
bors[bot]
1bf178614f
Merge #1904
...
1904: Add tune zone prediction r=heinrich5991 a=trml
Is enabled with cl_predict_ddrace 1.
This will predict tunings loaded from the map the first time tunezones are entered, but will also update the tunes after you receive new tunes while in a tunezone, since it's possible to change them in rcon.
Co-authored-by: trml <trml@users.noreply.github.com>
2019-09-17 13:50:18 +00:00
bors[bot]
0c34b6eb55
Merge #1878 #1903
...
1878: Add paused and spec to explayerflags r=Learath2 a=Ryozuki
I think client should know about this, maybe we can do something with it in the future.
It also may help with https://github.com/ddnet/ddnet/issues/259 but i didn't figure out yet a way to fix it.
1903: Consistent spacing for getters and setters r=Learath2 a=ChillerDragon
Co-authored-by: Ryozuki <ryo@ryozuki.xyz>
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-09-15 13:41:19 +00:00
bors[bot]
c146de63fa
Merge #1909
...
1909: Fix filescore path r=Learath2 a=ChillerDragon
The filescore system did not handle map paths well that were an actual path and not just the mapname.
```
# before fix
$ ./DDNet-Server 'sv_map "DDNetPP-maps/BlmapChill"'
[...]
[2019-09-15 13:29:44][filescore]: opening 'records/DDNetPP-maps-BlmapChill_record.dtb' for reading failed
# after fix
$ ./DDNet-Server 'sv_map "DDNetPP-maps/BlmapChill"'
[...]
[2019-09-15 13:31:05][filescore]: opening 'records/BlmapChill_record.dtb' for reading failed
```
I called ```Server()->``` in a thread so please review thread safety before merge.
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-09-15 13:30:48 +00:00
ChillerDragon
b39de87b18
Fix filescore path
...
# before fix
$ ./DDNet-Server 'sv_map "DDNetPP-maps/BlmapChill"'
[...]
[2019-09-15 13:29:44][filescore]: opening 'records/DDNetPP-maps-BlmapChill_record.dtb' for reading failed
# after fix
$ ./DDNet-Server 'sv_map "DDNetPP-maps/BlmapChill"'
[...]
[2019-09-15 13:31:05][filescore]: opening 'records/BlmapChill_record.dtb' for reading failed
2019-09-15 13:35:35 +02:00
trml
bb5eab0cc0
Add tunezone prediction
2019-09-09 00:53:07 +02:00
ChillerDragon
f5f07860c4
Consistent spacing for getters and setters
2019-09-08 19:22:12 +02:00
Corantin H
043859b66d
Fix keeping tmp replay demo file on map change
2019-08-21 22:49:21 +02:00
bors[bot]
e2840b1a57
Merge #1881 #1895
...
1881: Replace browse_icons (by MiM) (fixes #1880 ) r=heinrich5991 a=def-
1895: Centered entities text r=heinrich5991 a=BannZay
Closes https://github.com/ddnet/ddnet/issues/1721
Before:
![not_centered_100](https://user-images.githubusercontent.com/17499770/63204728-89772580-c0a3-11e9-8ad9-060cd03d2f74.png )
Now:
![centered_100](https://user-images.githubusercontent.com/17499770/63204730-8da34300-c0a3-11e9-86e2-5f542e4789a1.png )
It is done for "buffered" mode. Therefore, it works for OpenGL 3.3 only.
Co-authored-by: def <dennis@felsin9.de>
Co-authored-by: Andrii Vynychenko <bannzay3@yandex.ru>
2019-08-17 15:32:29 +00:00
Andrii Vynychenko
1671e6fbfc
numbers dynamically centered for OpenGL 3.3
2019-08-17 03:42:54 +03:00
def
cb738ffed0
Fix show_ips to show regular formatting ( fixes #1873 )
2019-08-01 20:24:30 +02:00
def
0018ed27df
Don't attempt to move DLLs on Linux ( fixes #1867 )
2019-07-31 18:00:48 +02:00
Learath
0bc3650356
Send DDNet capability flag
2019-07-29 14:18:40 +03:00
12pm
c57fcf3ee7
Persist playerflags when using timeout protection
2019-07-26 01:39:53 +02:00
fokkonaut
5c280a3c9d
Fix blockZ and infectionZ
...
I talked to coffee (creator of both mods) and he said it is okay to use zoom on the mods, also: eye emotes work there so the eye wheel is also supported. I have updated both mods to ddnet master so they have all the new stuff
2019-07-24 06:52:32 +02:00
bors[bot]
658efe776b
Merge #1845
...
1845: Fix infectionZ gamemode seen as DDNet r=heinrich5991 a=fokkonaut
InfectionZ's gametype is somehow infection, instead of infectionZ
Co-authored-by: fokkonaut <35420825+fokkonaut@users.noreply.github.com>
2019-07-21 08:32:59 +00:00
fokkonaut
a8756f99e0
Fix infectionZ gamemode seen as DDNet
2019-07-21 10:03:27 +02:00
bors[bot]
69ace3c1ec
Merge #1837
...
1837: Don't advertise the reserved slots. Fix #1808 r=heinrich5991 a=Learath2
I think this is also fine for vanilla, but I can't get the vanilla client to work on mac to test it.
Co-authored-by: Learath <learath2@gmail.com>
Co-authored-by: Emir Marincic <learath2@gmail.com>
2019-07-20 18:32:19 +00:00
Emir Marincic
57197d990c
Better represent the state of the server
...
Co-Authored-By: heinrich5991 <heinrich5991@gmx.de>
2019-07-20 21:25:15 +03:00
bors[bot]
ebeeace65e
Merge #1841
...
1841: Restart required message when changing Show console r=heinrich5991 a=fokkonaut
Co-authored-by: fokkonaut <35420825+fokkonaut@users.noreply.github.com>
2019-07-19 00:16:01 +00:00
fokkonaut
78f52629e4
fix build
2019-07-19 01:58:49 +02:00
Learath
1769e5ae71
Don't advertise the reserved slots. Fix #1808
2019-07-18 18:20:55 +03:00
bors[bot]
bbcf7a6905
Merge #1815
...
1815: Return error codes on server fail r=def- a=ChillerDragon
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-07-11 09:25:59 +00:00
ChillerDragon
b9273a9ed2
Return error codes on server fail
2019-07-11 11:18:25 +02:00
ChillerDragon
6172a9dca0
Use the float type explicitly
2019-07-08 23:08:42 +02:00
Learath2
8469949257
Remove debug message
2019-07-02 14:56:02 +02:00
Learath2
1993989067
Fix toggle not working with colors
2019-07-02 14:54:06 +02:00
heinrich5991
ca03ab6337
Address Learath2's comments
2019-06-14 00:28:59 +02:00
heinrich5991
62846821da
Revert "Implement ISDDNET. Deprecates #1320 "
...
This reverts commit 1929bc6739
.
2019-06-14 00:28:59 +02:00
heinrich5991
a7857d58c4
Remove now-useless function in CGameClient
...
(incorporate @fokkonaut's feedback)
2019-06-14 00:28:59 +02:00
heinrich5991
f31e081bd4
Remove all checking for the gametype in the game
...
OK, maybe not actually remove because it is kept for fallback when the
new method isn't available.
The whole gametype parsing business had the same downsides as user agent
parsing on the web, hence I removed it while keeping behavior the same.
This allows servers to explicitly opt in or out of certain bug
workarounds and other client behavior. This increases the complexity of
different configurations that are available in the client (which is a
bad thing).
2019-06-14 00:28:59 +02:00
bors[bot]
f8ba394c5d
Merge #1781
...
1781: sv_server_info_per_second, sv_van_conn_per_second: allow 0 to disable r=heinrich5991 a=def-
Clean up code a bit, also allow larger values
Co-authored-by: def <dennis@felsin9.de>
2019-06-12 20:23:27 +00:00
Dennis Felsing
0d9952b32a
Merge pull request #1748 from archimede67/pr_replays
...
Replay system (demo after-the-fact)
2019-06-11 18:13:26 +02:00
def
85bb376bdc
sv_server_info_per_second, sv_van_conn_per_second: allow 0 to disable
...
Clean up code a bit, also allow larger values
2019-06-11 18:12:43 +02:00
Dennis Felsing
0992e3c7c4
Merge pull request #1777 from ChillerDragon/pr_demo_wrong_hash
...
Prefer downloadedmaps over maps ( #1702 )
2019-06-11 18:05:12 +02:00
Dennis Felsing
bbb1b2cdef
Merge pull request #1733 from Learath2/dd_pr_colorsigned
...
Store colors unsigned
2019-06-11 12:26:28 +02:00
ChillerDragon
839009fc93
Prefer downloadedmaps over maps ( #1702 )
...
Fixes corrupted demos if there is a different version of the current map in the maps/ folder.
Thanks to @archimede67 for initial research.
2019-06-05 22:24:17 +02:00
archimede67
0e62b4b9b9
fix code style
2019-06-05 19:49:00 +02:00
archimede67
65353c2030
fix
2019-06-05 19:36:45 +02:00
archimede67
929bf57bf6
infinite length and a lot of changes including notifications are now chat messages
2019-06-05 19:17:55 +02:00
Corantin H
2e27a22927
typo + added an optional argument to save_replay + changed max replay length and fixed cl_notification_time values
2019-06-02 15:34:01 +02:00
Corantin H
761e73a131
should be thread safe now + moved demoedit to a new file
2019-05-31 20:42:28 +02:00
bors[bot]
647bbcc259
Merge #1732
...
1732: Implement ISDDNET and Time Score cleanly r=def- a=Learath2
This is an attempt at implementing the two things in a cleaner way.
Deprecated #1320
Willfix #1622 soon(tm)
Co-authored-by: Learath <learath2@gmail.com>
Co-authored-by: Learath2 <learath2@gmail.com>
2019-05-31 10:12:10 +00:00
Corantin H
04464a325e
fix
2019-05-28 15:39:11 +02:00
Corantin H
709a6c2924
Moved notification outside of the demoedit job, so now we keep track of all the editjbos and show the notification when they are done in the client loop
2019-05-28 13:24:55 +02:00
Corantin H
7c79b48da5
The demoeditors are now initialised in the constructor of the job
2019-05-26 21:06:43 +02:00
Corantin H
cbcb8d4830
The slicing is now done with a new demoeditor each time we save a replay
2019-05-25 15:16:03 +02:00
Corantin H
e35951dedc
demo slicing is now done in a separate task to prevent ingame freeze
2019-05-25 00:24:13 +02:00
Corantin H
bf435e8b72
coding style + added cl_notification_time
2019-05-23 23:17:12 +02:00
Corantin H
858a85e7b5
fixed some typo errors, fixed code style and added a slider setting to set the replay length
2019-05-21 23:59:57 +02:00
Corantin H
e6ce2c0c46
Renamed class CNotification to CHudNotification
2019-05-21 18:50:41 +02:00
Corantin H
b6b8f7e536
Somehow build failed because of that
2019-05-21 18:04:37 +02:00
Corantin H
857656e8db
Implemented a small notification system, fixed some problems with removing tmp files and update the recorder status when checking/unchecking the setting "Enable replays".
2019-05-21 17:21:53 +02:00
Corantin H
ac4d7085c5
Switched to a proper new recorder instead of using the auto one
2019-05-21 12:49:19 +02:00
Learath
1929bc6739
Implement ISDDNET. Deprecates #1320
2019-05-21 10:25:15 +02:00
Learath
23255a04b3
Remove time-score
2019-05-21 10:24:07 +02:00
Learath2
c7d8ca129a
Rerevert #1187
2019-05-21 10:51:43 +02:00
Corantin H
817bdaf9cd
initial work on a replay system
2019-05-20 23:55:40 +02:00
Learath
66b1b44e07
Style
2019-05-20 00:18:19 +02:00
Kpro998
f3ff81e5ab
fix IsBlockInfectionZ duplication
2019-05-19 22:35:56 +01:00
Kpro998
0856fec38e
fix particles, emote wheel, zoom and score for blockworlds
2019-05-19 22:11:16 +01:00
Learath
db5c17ce71
Avoid implementation-defined behaviour
2019-05-15 18:11:22 +02:00
Learath
0d39eb128d
Use unsigned integers for colors
2019-05-15 18:05:19 +02:00
Andrii Vynychenko
0353eb94ef
fix zero fonsize
2019-05-11 18:59:47 +03:00
12pm
219d6dcd92
Explicitly filter finished maps
...
Otherwise this filters all maps in all other tabs
2019-05-11 13:45:41 +02:00
Learath2
e608e2f34f
Add Hex display
2019-05-11 02:32:37 +02:00
Learath2
0dd67c92f1
Abbreviate alpha
2019-05-11 02:16:48 +02:00
Learath2
82e6d180e4
Use % and °
2019-05-11 02:12:37 +02:00
Learath2
b059ac256e
Show Alpha only if it's relevant
2019-05-11 02:12:36 +02:00
Dennis Felsing
2396096e3b
Merge branch 'master' into pr-rename-col
2019-05-10 23:46:38 +02:00
12pm
ea324592c6
Change col to color in variable names
2019-05-10 23:34:21 +02:00
12pm
eda002993e
Restore old echo default color
2019-05-10 23:07:32 +02:00
Andrew
0fffd7705f
Cl_text_entities_size ( #1632 )
...
* new command added
* fix code duplication after merge
* merge #1632 suggestions
* align the texture to the center vertically
* refactor
* fix RenderSwitchOverlay
* Update src/engine/client/text.cpp
Co-Authored-By: BannZay <bannzay3@gmail.com>
* Apply suggestions from code review
Co-Authored-By: BannZay <bannzay3@gmail.com>
* Apply suggestions from code review
* Apply suggestions from code review
Co-Authored-By: BannZay <bannzay3@gmail.com>
* Apply suggestions from code review
2019-05-06 14:19:10 +02:00
trml
8eb4b7fd71
Add setting cl_predict_freeze 2 for having a small amount of misprediction while frozen
2019-05-05 12:32:06 +02:00
Learath
b86c457c91
Remember whether a color is lit or not
2019-05-01 23:35:29 +03:00
bors[bot]
9bca330a73
Merge #1691
...
1691: Persist show_ips setting on map changes r=Learath2 a=def-
@12pm
Co-authored-by: def <dennis@felsin9.de>
2019-05-01 12:08:13 +00:00
Learath
f479f69735
Add a flag for colors with alpha
2019-05-01 13:58:51 +03:00
Learath
324c389e87
Accept negatives aswell, don't clamp
2019-05-01 13:41:58 +03:00
bors[bot]
a2f44299e0
Merge #1678
...
1678: Handle colors in console r=def- a=Learath2
DEPENDS: #1654
A better way to fix #1581 possibly deprecates #1597
Co-authored-by: Learath <learath2@gmail.com>
2019-04-30 19:39:56 +00:00
bors[bot]
9699d4ef06
Merge #1694
...
1694: Fix inconsistant uppercase server in logs r=def- a=ChillerDragon
```
$ grep -nr 'IConsole::OUTPUT_LEVEL_STANDARD, "server"' src/ | wc -l
31
$ grep -nr 'IConsole::OUTPUT_LEVEL_STANDARD, "Server"' src/ | wc -l
1
```
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-04-30 07:35:26 +00:00
ChillerDragon
7a7caabbec
Fix inconsistant uppercase server in logs
2019-04-30 09:03:06 +02:00
def
a910d9eff7
Persist show_ips setting on map changes
2019-04-29 21:39:17 +02:00
Learath
588acdda0d
Consolidate color configs, extend debugging
2019-04-27 02:02:31 +03:00
Learath
979d58f830
Use colors in CTextRender
2019-04-27 01:34:20 +03:00
Learath
6c371a9a57
Even more refactoring
2019-04-27 01:11:15 +03:00
Learath
93d14a1eca
Inconvenience for windows
2019-04-26 22:36:49 +03:00
Learath
ffa07d88cb
Please -WError
2019-04-26 19:11:34 +03:00
Learath
69d78c21b4
Lighten tee colors
2019-04-26 16:38:16 +03:00
Learath
65a17599e1
Add ColorHSVA, phase out more vec3's
2019-04-26 15:06:32 +03:00
Learath
93265dbb9c
Please MSVC
2019-04-25 21:09:32 +03:00
Learath
e637064a68
Don't store HSL separately
2019-04-25 19:49:27 +03:00
Learath
95a3a69e08
Start phasing out vectors for colors
2019-04-25 18:21:35 +03:00
Learath
cc319e0152
Fix warnings and style
2019-04-25 15:04:36 +03:00
Learath
0f781df1dd
Try handling colors in console
2019-04-25 14:48:53 +03:00
Learath
cc36af73be
Cleanup colors
2019-04-24 23:53:26 +03:00
trml
681f30950c
Remove the dummy prediction
2019-04-23 02:01:17 +02:00
trml
c5c837e0e3
Revert dummy input fix (which wasn't a sufficient fix)
2019-04-21 16:12:21 +02:00
trml
0b3f3b03b5
Rewrite of prediction code, with additional prediction
2019-04-21 16:12:20 +02:00
12pm
6e880644af
Add some demo player shortcuts
2019-04-15 21:08:12 +02:00
Dennis Felsing
cde07b420b
Implement changes suggested by -Wuseless-cast
...
But don't enable it yet because I'm not sure what the best way is.
2019-04-11 19:54:43 +02:00
bors[bot]
279eeed9fc
Merge #1614
...
1614: Remove unmaintained Android code (fixes #1575 ) r=heinrich5991 a=def-
Thoughts?
Co-authored-by: def <dennis@felsin9.de>
2019-04-11 00:02:17 +00:00
def
b91530eedc
Console: Can't deallocate temp entries, so don't even try
2019-04-10 23:32:45 +02:00
def
ab9912c9c1
Rcon console: Don't show duplicates
...
when connecting to next server after old server shutdown
2019-04-10 23:31:06 +02:00
def
94f3d97ddf
Remove unmaintained Android code ( fixes #1575 )
2019-04-10 19:40:50 +02:00
Dennis Felsing
5d79c41010
Merge pull request #1603 from def-/pr-demo-open
...
Enable dragging demo file into client to play it directly
2019-04-10 17:38:00 +02:00
Dennis Felsing
7c0f4c9856
Address reviewer comments
2019-04-10 09:00:06 +02:00
def
cca80da554
Enable dragging demo file into client to play it directly
2019-04-08 21:43:59 +02:00
def
ea093f6d39
2 more tries to force DB to respond in UTF8 ( fixes #1599 )
2019-04-08 16:55:53 +02:00
bors[bot]
a4e2130342
Merge #1571
...
1571: show_ips r=heinrich5991 a=def-
The problem is that the same console output is sent to all right now,
not sure how to change that cleanly
Co-authored-by: def <dennis@felsin9.de>
2019-04-07 19:01:21 +00:00
bors[bot]
52c00dcc02
Merge #1573
...
1573: Handle FS failures while updating (fixes #1560 ) r=heinrich5991 a=def-
Not sure if I caught all locations
Co-authored-by: def <dennis@felsin9.de>
2019-04-07 18:50:08 +00:00
Jordy Ruiz
1e0cc51ba1
Add bound check in datafile.cpp anywhere m_ppDataPtrs is accessed as an array. Should fix #2073
...
(cherry picked from commit e086f4b35b
)
2019-04-07 13:10:07 +02:00
bors[bot]
5d9d0d7d35
Merge #1587
...
1587: Small fixxings r=heinrich5991 a=ChillerDragon
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-04-06 21:08:40 +00:00
def
e539bbacb1
Handle FS failures while updating ( fixes #1560 )
...
Not sure if I caught all locations
2019-04-06 19:24:40 +02:00
def
25c54ef4db
Implement show_ips to protect accidental leaking of IPs
...
Marks all sensitive data with <{ }> and then filters that out when
show_ips is not set.
2019-04-06 19:22:02 +02:00
bors[bot]
b25c5275d5
Merge #1585
...
1585: Use OpenSSL md5 if it is available r=def- a=heinrich5991
Fixes #1582 .
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2019-04-06 15:43:24 +00:00
ChillerDragon
abba71e6d6
Fix tw code style
2019-04-06 17:06:12 +02:00
12pm
98bfeb3e72
Notify about chat mentions in editor
2019-04-06 11:32:50 +02:00
heinrich5991
e3657ab2d5
Use SHA256 instead of MD5 in some places
...
This only works in places where the actual choice of hashing function
doesn't matter.
2019-04-06 02:56:29 +02:00
heinrich5991
e44b1ca986
Use OpenSSL md5 if it is available
...
Fixes #1582 .
2019-04-06 02:56:29 +02:00
Dennis Felsing
a7dabe3475
Merge pull request #1570 from 12pm/playerflags
...
Add playerflags, dnsbl, and ips for non-admins in status
2019-04-04 18:55:40 +02:00
Dennis Felsing
fc76c2219f
Merge pull request #1566 from def-/pr-demo-speed
...
Demo speed improvements
2019-04-03 19:02:42 +02:00
Dennis Felsing
1fd130cf15
Merge pull request #1564 from def-/pr-dummy-fixes
...
Some more dummy fixes (might fix #1415 )
2019-04-03 19:02:28 +02:00
12pm
a7ef921e3f
Add playerflags, dnsbl, and ips for non-admins in status
2019-04-03 15:07:05 +02:00
def
e25d43aaf6
Extend GUI options for available demo speeds up to 64
2019-04-02 23:20:44 +02:00
def
989726db00
Allow demo speeds up to 256
2019-04-02 23:16:01 +02:00
def
ad70456687
Some more dummy fixes (might fix #1415 )
2019-04-02 22:02:55 +02:00
def
392fe03844
Enable gun sound by default
2019-04-02 21:52:02 +02:00
Dennis Felsing
0b578c4330
Fix cl_confirm_disconnect/quit_time ( fixes #1550 )
...
-1 now works as described
Split into two settings
2019-03-29 14:56:02 +01:00
Dennis Felsing
5124372e9d
Merge pull request #1546 from def-/pr-glyph-missing
...
Fix text render when a glyph is missing (fixes #1543 )
2019-03-28 23:38:31 +01:00
Dennis Felsing
138a9c6ff7
Merge pull request #1545 from def-/pr-load-font
...
Move out common font loading into method
2019-03-28 23:38:24 +01:00
Dennis Felsing
95cc357dd6
Merge pull request #1540 from def-/pr-disconnect-time
...
Add cl_confirm_disconnect_quit_time (fixes #1530 )
2019-03-28 23:38:16 +01:00
def
4171db48a9
Fix text render when a glyph is missing ( fixes #1543 )
...
Instead show □ (white square, 0x25a1) as replacement character
The old behaviour was to continue when a glyph was missing, not load
the glyph and then instead fill the bitmap with random garbage that was
still in the buffer. Introduced by https://github.com/ddnet/ddnet/pull/1081
2019-03-28 22:46:08 +01:00
def
9e25f4c113
Move out common font loading into method
2019-03-28 21:51:42 +01:00
def
8908102536
Add cl_confirm_disconnect_quit_time ( fixes #1530 )
...
Number of minutes of active racing time before being asked to confirm
disconnecting, disconnecting dummy or quitting through GUI. Defaults to
20 minutes, -1 to disable, 0 to always enable.
Also removed confirmation to quit when in main menu, except when having
an unsaved map in editor.
Spectate and kill should already be safe thanks to server-side kill
protection.
2019-03-25 20:10:38 +01:00
def
bf576723a3
Add KoG tab in server browser
...
- As requested by qshar and KoG players
- Similar to DDNet tab
- Info fetched from servers-kog entry from https://info.ddnet.tw/info
- Also supports countries and types
- Doesn't inform whether map has been finished
- Generalized the code a bit but it's still ugly
- Depends on #1533 , also shows KoG servers as official/verified
2019-03-24 23:15:40 +01:00
Dennis Felsing
abe9f6f5a9
Merge pull request #1518 from ddnet/fetch-info
...
Demo browser: Make Fetch Info a checkbox instead
2019-03-20 07:45:12 +01:00
Dennis Felsing
8b68a2859a
Merge pull request #1509 from ddnet/error-checking
...
More error checking in system.c (fixes #1317 )
2019-03-20 07:44:12 +01:00
def
1e4890c499
More error checking in system.c ( fixes #1317 )
2019-03-19 23:16:29 +01:00
12pm
9f4f06e995
Make updating nameban reason work
2019-03-19 22:54:16 +01:00
def
22f278fdb8
Demo browser: Make Fetch Info a checkbot instead
...
And persist the result. Helps with the workflow described by Shyzo on
Discord:
> I mean after i press ctrl-f or fetch info. then i want to sort by marker (from ... to 0) and just delete every demo without a marker. either in a whole (not possible i think) or just one by one. but I think after deleting one demo the order of demos change again
> so i have to fetch info again, delete one. fetch info again. delete one
> and so on
2019-03-19 18:28:10 +01:00
def
ed5b08e7dc
Also recheck official server status when json gets loaded
2019-03-19 07:57:09 +01:00
def
4f515bf67e
Add symbol for official servers in server browser ( fixes #1501 )
...
- Also fix favorites checkbox when removing favorite
- Might need a nicer looking symbol
2019-03-19 07:46:50 +01:00
def
6f9cfd5af1
Increase MAX_PATH_LENGTH to support our own downloadedmaps names
2019-03-12 18:43:03 +01:00
bors[bot]
98d54263c7
Merge #1477
...
1477: Don't allow sound format changes, use preferred driver, print more debug info r=heinrich5991 a=def-
Someone should check if this works on Windows.
Co-authored-by: def <dennis@felsin9.de>
2019-03-12 12:49:48 +00:00
Dennis Felsing
b8c256b602
Merge pull request #1467 from 12pm/nameban_exact
...
Add exact name ban option
2019-03-11 22:50:39 +01:00
def
a7548511bf
Don't allow sound format changes, use preferred driver, print more debug info
2019-03-11 22:32:14 +01:00
12pm
3dcb83778f
Make name more descriptive
2019-03-11 14:48:45 +01:00
bors[bot]
d8e8a21a30
Merge #1469
...
1469: Don't use strtok. Close #1468 r=heinrich5991 a=Learath2
^
Co-authored-by: Learath <learath2@gmail.com>
2019-03-11 11:56:26 +00:00
Learath
f6c15f1de0
Style
2019-03-11 14:54:31 +03:00
Learath
9713f6c2cd
Improve interface to function
2019-03-11 14:39:54 +03:00
def
bc91659aa8
Get GAME_RELEASE_VERSION back, fix compatibility filter in server browser
2019-03-06 21:02:06 +01:00
bors[bot]
26dc51a272
Merge #1466
...
1466: Add colors for authed players. Deprecates #1299 r=def- a=Learath2
Not sure if a snap item is the best idea for this but it should help with not sending the data more then needed and keeping it properly updated. The colors aren't great now but we can fix that easily.
![image](https://user-images.githubusercontent.com/490500/53680889-607bf780-3cf2-11e9-84a0-579160e9e170.png )
Co-authored-by: Learath <learath2@gmail.com>
2019-03-06 13:44:28 +00:00
Learath
c4af290df5
Don't use strtok. Close #1468
2019-03-05 12:46:29 +03:00
def
deb2494692
Don't suggest to downgrade, clean up versioning ( fixes #1440 )
2019-03-03 20:31:23 +01:00
12pm
29592afdb5
Add exact name ban option
2019-03-03 18:29:33 +01:00
Learath
548e9969b2
Add colors for authed players. Deprecates #1299
2019-03-02 13:50:33 +03:00
def
65ce202697
Revert "More SQL fixes"
...
This reverts commit c665cabc27
.
2019-02-28 06:14:30 +01:00
def
f831f27d08
Revert "New SQL locking on each query ( fixes #1430 )"
...
This reverts commit 5ddcf8bd0c
.
2019-02-28 06:14:20 +01:00
Dennis Felsing
6701ae726f
Merge pull request #1434 from ddnet/sql-locking
...
Sql locking
2019-02-27 20:26:24 +01:00
Dennis Felsing
6f3d261b73
Merge pull request #1441 from trml/pr_sync_weapon_input
...
Sync weapon input with other input
2019-02-14 10:27:52 +01:00
Learath
37c67c00ad
Style
2019-02-13 15:13:44 +01:00
Learath
0086452757
Use str_in_list, generalize further
2019-02-11 18:52:40 +01:00
ChillerDragon
eaf61b662d
Never ban known bots
2019-02-06 14:49:41 +01:00
ChillerDragon
3f8e9613f7
Fix style
2019-02-06 13:06:28 +01:00
ChillerDragon
8ddb487e2b
Use consisten seperators (comma not semicolons)
2019-02-04 23:12:05 +01:00
ChillerDragon
ec7b525609
Default kick known bots instead of ban
2019-02-04 23:10:07 +01:00
ChillerDragon
03a20d6406
Add IServer::Ban
2019-02-04 23:09:14 +01:00
ChillerDragon
867b0a66ce
Fixings thanks to @Learath2
2019-02-04 22:16:09 +01:00
ChillerDragon
069b1763dd
Add autoban depending on client version
2019-02-04 20:46:42 +01:00
trml
3f9d30af0f
Sync weapon input with other inputs
2019-01-29 20:58:25 +01:00
jupeyy
28ba295792
Don't use compression for text rendering
2019-01-20 14:28:59 +01:00
Dennis Felsing
a5c78f85cf
Disallow sv_map_vote in map settings
2019-01-15 08:57:30 +01:00
def
5ddcf8bd0c
New SQL locking on each query ( fixes #1430 )
2019-01-14 22:28:13 +01:00
Dennis Felsing
c665cabc27
More SQL fixes
...
Should help with some crashes
Still doesn't call thread_init
Still shares statements and connections between threads
2019-01-14 22:18:37 +01:00
def
b1ef2bf864
Don't try to remove non-existing files
...
Causes annoying error messages during map change & server start.
2019-01-14 22:13:51 +01:00
bors[bot]
19aef99d0c
Merge #1432
...
1432: Merge BW support into IsDDNet r=def- a=fokkonaut
from now on Blockworlds can use this server message to tell the client not to use the DDRace (time) scoreboard.
(https://github.com/ddnet/ddnet/pull/1387 )
Co-authored-by: fokkonaut <35420825+fokkonaut@users.noreply.github.com>
2019-01-14 17:16:06 +00:00
fokkonaut
ade7b13f98
paranthese placement
2019-01-14 17:31:07 +01:00
fokkonaut
6206450e1b
moved paranthese
2019-01-14 17:28:34 +01:00
fokkonaut
cf09fbd1ea
Merge BW support into IsDDNet
2019-01-14 16:50:06 +01:00
heinrich5991
c24c6274b6
Decode extended packets for the dummy as well
2019-01-14 15:42:37 +01:00
fokkonaut
b2b6d25a92
add missing semicolon
2019-01-14 08:01:20 +01:00
fokkonaut
d156ac47b7
forgot one
2019-01-14 08:01:20 +01:00
fokkonaut
fe4426b008
fixed ddrace score (time score)
2019-01-14 08:01:20 +01:00
fokkonaut
0e842359ad
Add DDRace Score NETMSG
2019-01-14 08:01:20 +01:00
def
caa9e4ba29
Fix auto save statboard limit ( fixes #528 )
2019-01-11 12:07:12 +01:00
def
15fb7891cb
Fix FileCollection to remove the oldest file ( fixes #605 )
...
Previously it removed one entry from m_aTimestamps before having filled
it entirely, so there was a small chance that it was not the smallest
one. Only after we have filled more entries than we want to keep can we
know which ones can be deleted for sure.
2019-01-11 11:39:05 +01:00
def
6e9aa68149
Fix timestamp extraction with wildcards ( fixes #605 )
...
in CFileCollection. Previously it included the _ character.
2019-01-11 11:37:43 +01:00
def
f05c56d6ce
Fix cl_dyncam_mousesens
...
should only have an effect ingame, not in menus or editor
2019-01-11 09:40:04 +01:00
def
f9d9fee314
Demo browser: Show markers ( fixes #329 )
...
- Fetch Headers button
- Display Markers & Length columns
- Display footer info
- Don't rescan directory when not required
- Clean up code a bit
2019-01-09 08:25:03 +01:00
def
1ece46aa4e
Revert "setlocale for XOpenIM with compose key"
...
Has been fixed: https://bugzilla.libsdl.org/show_bug.cgi?id=3102
This reverts commit 6c4e6c5c44
.
2019-01-07 21:27:09 +01:00
def
8b782285ab
Fix return type of CStorage::RemoveFile
2019-01-07 14:35:11 +01:00
def
da2fe3cbbc
Revert "More SQL fixes"
...
This reverts commit a58ade137d
.
2019-01-06 10:59:29 +01:00
Dennis Felsing
afbb741910
Merge pull request #1420 from Jupeyy/master
...
Fix text kerning and add flags for better positioning
2019-01-06 10:57:16 +01:00
Dennis Felsing
dfd12fb23e
Merge pull request #1416 from ddnet/scopes
...
More SQL fixes
2019-01-06 10:51:26 +01:00
Dennis Felsing
2695cb101d
Merge pull request #1418 from ddnet/borderless
...
Disable borderless on Mac (fixes #1413 )
2019-01-06 10:51:15 +01:00
jupeyy
6fc49cbc9e
style
2019-01-06 06:45:47 +01:00
jupeyy
619a33a7d5
text kerning fix, add new text render flags for accurate positioning
2019-01-06 06:42:57 +01:00
def
a116ed3dbe
Revert "New try at not decompressing unknown packets"
...
Causes connection problems with old clients
This reverts commit a3b07dbf9c
.
2018-12-30 12:22:05 +01:00
def
aa7e6ff3e3
Disable borderless on Mac ( fixes #1413 )
2018-12-28 17:29:54 +01:00
Dennis Felsing
a58ade137d
More SQL fixes
...
Should help with some crashes
Still doesn't call thread_init
Still shares statements and connections between threads
2018-12-27 14:31:58 +01:00
def
87fa394daa
Add Christmas skin event for client
2018-12-23 22:58:30 +01:00
Dennis Felsing
8d200d1026
Try resetting m_pConnection to 0 to prevent segfault
2018-12-20 09:26:45 +01:00
Dennis Felsing
735e3c64fc
Read fifo more often
...
otherwise we lose messages since we sleep for long times when server is
empty
2018-12-20 09:18:03 +01:00
def
4b92e72763
Prevent copies
2018-12-17 22:15:41 +01:00
def
6846a6ecad
Fixes and stress improvements
2018-12-17 20:05:50 +01:00
Dennis Felsing
e9ee74a941
Merge pull request #1402 from ddnet/remove-modhelp
...
Remove /modhelp (fixes #1401 )
2018-12-17 14:42:07 +01:00
Dennis Felsing
9febf58f37
New try at recvmmsg with some improvements
2018-12-16 22:59:41 +01:00
def
a3b07dbf9c
New try at not decompressing unknown packets
2018-12-16 22:15:45 +01:00
def
d884465710
Revert "Don't decompress packets from unknown IPs"
...
This reverts commit 9089c2b35a
.
2018-12-14 17:12:49 +01:00
Dennis Felsing
0b256ff653
Allow connecting clients to compress
...
TODO: Look for better solution
2018-12-14 11:17:15 +01:00
def
c4d437bc0f
Make client launchable from browser
...
By needs from https://github.com/teeworlds/teeworlds/pull/1478/files
2018-12-13 19:57:34 +01:00
Dennis Felsing
9089c2b35a
Don't decompress packets from unknown IPs
2018-12-13 16:24:37 +01:00
Dennis Felsing
5c18d6c481
Remove /modhelp ( fixes #1401 )
2018-12-12 10:05:44 +01:00
Dennis Felsing
fabd559746
Clamp Spectator ID
2018-12-11 09:23:12 +01:00
Learath
0c13c8cebb
Handle the windows console properly. Fixes #1394
2018-12-07 23:52:33 +01:00
Learath2
21609d43fb
Fix the beep. Fixes #985
2018-11-22 17:37:52 +01:00
Ryozuki
d9d3ed783e
fix windows sound
2018-11-02 12:47:20 +01:00
def
faf388b853
Fix #1350
2018-10-29 22:03:57 +01:00
def
5b436adff8
blockZ & infectionZ are 64player but not DDNet
...
even though their name contains DDNet
fixes #1364
2018-10-29 21:33:35 +01:00
bors[bot]
1b0b36c6eb
Merge #1316 #1341 #1349
...
1316: code improvement on gameclient.cpp r=def- a=Ryozuki
1341: Mark unused envelopes r=def- a=Learath2
Thought I'd do this one as well while looking at the editor code.
1349: Don't ignore CONNECT packets with data that we don't know r=def- a=heinrich5991
This specifically affects 0.6.5. Just treat them the same way as those
without any data.
Co-authored-by: Ryozuki <edgar@ryobyte.com>
Co-authored-by: Learath <learath2@gmail.com>
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2018-10-29 14:31:27 +00:00
heinrich5991
c7750f3616
Don't ignore CONNECT packets with data that we don't know
...
This specifically affects 0.6.5. Just treat them the same way as those
without any data.
2018-10-14 08:18:32 +02:00
Dennis Felsing
e02a9956a5
Remove unused cl_eventthread
2018-10-12 14:42:40 +02:00
bors[bot]
61559f2ff0
Merge #1329
...
1329: Add support for extra map items in datafiles r=Learath2 a=heinrich5991
This works by utilizing the good old UUIDs – this way we can make sure
that we don't clash with other people extending the map format.
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2018-10-09 09:30:23 +00:00
heinrich5991
4660e0a680
Add support for extra map items in datafiles
...
This works by utilizing the good old UUIDs – this way we can make sure
that we don't clash with other people extending the map format.
2018-10-08 23:05:56 +02:00
Learath
5b95eddca1
DRY with net_addr_comp_noport
2018-10-08 21:04:04 +03:00
Learath
254ff3dc6b
Oversight
2018-10-08 20:56:49 +03:00
Learath
2e137e6fc7
net_addr_comp_ip -> net_addr_comp_noport
2018-10-08 19:56:51 +03:00
Learath
1073b72965
Ignore DNSBL on "empty" servers.
2018-10-08 01:59:07 +03:00
Dennis Felsing
dbaf779bda
Merge pull request #1335 from heinrich5991/pr_ddnet_serverjobs
...
Use two threads for the server thread pool
2018-10-07 17:29:22 +02:00
heinrich5991
a36250ba34
Use two threads for the server thread pool
...
This might help with long DNS timeouts.
2018-10-07 12:47:32 +02:00
bors[bot]
7f4c5b2183
Merge #1327
...
1327: Try closing the file earlier. Fix #1250 r=heinrich5991 a=Learath2
Maybe closing the file earlier could work?
Co-authored-by: Learath <learath2@gmail.com>
2018-10-04 14:27:11 +00:00
Learath
189a2939b0
Try closing the file earlier. Fix #1250
2018-10-04 16:10:27 +02:00
Dennis Felsing
b0759830b7
Merge pull request #1300 from Learath2/dd_pr_autoupdateflag
...
CMake option to disable autoupdater. Closes #1292
2018-10-02 08:04:12 +02:00
fokkonaut
cf727576eb
spaces again?
2018-09-28 18:29:14 +02:00
fokkonaut
ea64d57be1
spaces
2018-09-28 18:28:45 +02:00
fokkonaut
3240f6fbc5
fix bw support
2018-09-28 18:27:51 +02:00
def
2198f6c997
Limit demo speed to 64 (thanks to fokkonaut for report)
2018-09-24 18:07:14 +02:00
Learath
2696ac134c
Handle the platform differences in CMake.
2018-09-20 14:06:18 +02:00
Learath
3852f0e720
CMake option to disable autoupdater. Closes #1292
2018-09-20 03:01:31 +02:00
Dennis Felsing
925f7b6325
Fix weird Windows compilation
2018-08-29 11:32:36 +02:00
Dennis Felsing
a63f210a01
Fix segfault when deleting lock
2018-08-29 10:32:12 +02:00
Dennis Felsing
c29a72eb70
Lock style
2018-08-27 16:36:36 +02:00
Dennis Felsing
4d634bb7fd
Global lock for MySQL Connector's get_driver_instance
...
See note in https://dev.mysql.com/doc/connector-cpp/1.1/en/connector-cpp-examples-connecting.html
> get_mysql_driver_instance() calls get_driver_instance(), which is not
> thread-safe. Either avoid invoking these methods from within multiple
> threads at once, or surround the calls with a mutex to prevent
> simultaneous execution in multiple threads.
2018-08-27 09:42:37 +02:00
def
48d1757793
Fix bw support
2018-08-26 21:21:27 +02:00
Dennis Felsing
03098af933
Fix dnsbl initialization
...
Don't set dnsbl state to pending when we someone connects over ipv6 and
the init will fail, leaving a null pointer in m_pDnsblLookup
2018-08-24 14:24:34 +02:00
Dennis Felsing
39b36b2c3b
Check file system operations and log them
2018-08-23 09:58:35 +02:00
Dennis Felsing
20ea1651cb
Don't save non-client configs
2018-08-23 09:57:48 +02:00
Dennis Felsing
e295a121e4
DDNET_INFO(_TMP)
2018-08-23 09:57:35 +02:00
Dennis Felsing
29dd3e29f7
Read ddnet-info.json from correct location
2018-08-23 09:36:20 +02:00
Dennis Felsing
e2eb4a66dc
Add Filter for connecting players ( fixes #1263 )
2018-08-21 09:03:48 +02:00
heinrich5991
2ad4c86632
Fix a typo
2018-08-13 21:35:49 +02:00
Dennis Felsing
0b539df741
bw
2018-08-09 13:05:36 +02:00
Dennis Felsing
dda2b06672
Merge pull request #1235 from fokkonaut/master
...
block worlds zoom + eye wheel
2018-08-09 13:04:07 +02:00
Jupeyy
29ecaa2c2a
brace
2018-08-02 20:58:43 +02:00
Jupeyy
bc013513bc
don't restore the config variable in this case
2018-08-02 20:56:29 +02:00
Jupeyy
7ce29e7a1a
Properly reset context attributes, if OpenGL3 context failed to create
2018-08-02 20:52:51 +02:00
Jupeyy
d7bb03ee19
don't render all border all the time
2018-08-02 18:26:12 +02:00
def
18529fa082
Revert "Implement recvmmsg"
...
This reverts commit de5fe64be5
.
2018-07-29 23:07:59 +02:00
fokkonaut
2dafafd75b
oops, tab instead of spaces
2018-07-27 23:32:10 +02:00
fokkonaut
cd5d69bfc5
added bw to isddnet
2018-07-27 23:28:02 +02:00
fokkonaut
b8730b3653
block worlds zoom + eye wheel
2018-07-26 21:34:24 +02:00
heinrich5991
e8c7dca035
Fix storage.cfg reading broken by the str_startswith
change
2018-07-26 15:46:54 +02:00
heinrich5991
5c4e819e44
Use str_startswith
, str_endswith
instead of ad-hoc implementations
2018-07-26 14:18:23 +02:00
Dennis Felsing
de5fe64be5
Implement recvmmsg
2018-07-25 16:06:00 +02:00
bors[bot]
e571dc8d93
Merge #1200
...
1200: Share libcurl resources across requests r=def- a=heinrich5991
Use the libcurl-share interface to share DNS cache and connections
between different requests.
If compiled with OpenSSL, libcurl can only be safely used from multiple
threads for OpenSSL >= 1.1.0, but this problem is not newly introduced
by this commit: According to libcurl-thread(3):
>OpenSSL <= 1.0.2 the user must set callbacks.
>
>https://www.openssl.org/docs/man1.0.2/crypto/threads.html#DESCRIPTION
>
>https://curl.haxx.se/libcurl/c/opensslthreadlock.html
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2018-07-19 09:15:10 +00:00
Isaac Zhao
83ae953b21
Fixed hidpi resolution issue on macOS
2018-07-17 07:46:17 +00:00
heinrich5991
8d04e7e5e1
Share libcurl resources across requests
...
Use the libcurl-share interface to share DNS cache and connections
between different requests.
If compiled with OpenSSL, libcurl can only be safely used from multiple
threads for OpenSSL >= 1.1.0, but this problem is not newly introduced
by this commit: According to libcurl-thread(3):
>OpenSSL <= 1.0.2 the user must set callbacks.
>
>https://www.openssl.org/docs/man1.0.2/crypto/threads.html#DESCRIPTION
>
>https://curl.haxx.se/libcurl/c/opensslthreadlock.html
2018-07-11 20:17:21 +02:00
yangfl
81a39c229b
Fix typo
2018-07-10 17:29:02 +08:00
heinrich5991
925aff21d4
Fix all the header guards and adjust the script a little
2018-07-06 16:11:38 +02:00
ZombieToad
712fca8adc
fixes
...
thnx to Hey, Fuck you!
2018-07-04 04:35:06 +01:00
def
5e1f62fe7c
Fix http map download...
2018-06-30 09:47:45 +02:00
Dennis Felsing
35a26290db
Mac OSX: Don't use desktop resolution ( fixes #1174 )
2018-06-27 11:01:59 +02:00
heinrich5991
ab55bcd9c8
Also search for maps with sha256 in downloadedmaps
...
Additionally, forget the extra map details after disconnecting, they
shouldn't be used for the next server.
2018-06-24 17:04:50 +02:00
heinrich5991
ca8fcc823c
Use more secure hash function for map downloads
...
SHA256 was chosen because it is reasonably standard, the file names
don't explode in length (this rules out SHA512) and it is supported by
basically all versions of OpenSSL (this rules out SHA512/256 and SHA3).
The protocol is changed in a backward compatible way: The supporting
server sends the SHA256 corresponding to the map in the `MAP_DETAILS`
message prior to sending the `MAP_CHANGE` message. The client saves the
SHA256 obtained from the `MAP_DETAILS` message until the next
`MAP_CHANGE` message.
For servers not supporting this protocol, the client falls back to
simply opening maps like in the previous scheme.
Remove the `map_version` tool, it is not being used and would have been
a little bit effort to update.
Use the OpenSSL implementation of SHA256 if it is supported, otherwise
fall back to a public domain one.
Fix #1127 .
2018-06-24 17:04:50 +02:00
bors[bot]
ebb9481857
Merge #1157 #1160
...
1157: Add a way to call for external moderator help r=Learath2 a=heinrich5991
This is done by HTTP POSTing to a location specified by
`sv_modhelp_url`. We also provide a `src/modhelp/server.py` which can
use theses POSTs to forward them to Discord servers.
The POST contains a JSON object payload, with the keys `"port"` which
contains the server port, `"player_id"` which contains the calling
player's client ID, `"player_name"` which contains the calling player's
nick and `"message"` which is the user-specified message.
Make JSON-escaping function public, add tests and fix bugs uncovered by
these tests.
Supersedes #1129 .
1160: Fix warning about incompatible function pointers r=Learath2 a=heinrich5991
This comes at the cost of one allocation per started thread. This should
be okay because we're about to invoke a syscall anyway.
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2018-06-24 14:12:48 +00:00
bors[bot]
af1f9d198a
Merge #1152
...
1152: send password to first connected server r=heinrich5991 a=ZombieToad
https://github.com/ddnet/ddnet/pull/1149#issuecomment-397538132
fixes issues with connecting to servers with reserved slots
Co-authored-by: ZombieToad <25847476+zombietoad@users.noreply.github.com>
2018-06-20 09:05:56 +00:00
ZombieToad
f6d107b264
Update client.cpp
2018-06-20 07:44:44 +01:00
ZombieToad
dfaa8d1f46
Update client.cpp
2018-06-20 07:43:55 +01:00
ZombieToad
1c88ffd663
Update client.h
2018-06-20 07:36:10 +01:00
heinrich5991
36694d3852
Add a way to call for external moderator help
...
This is done by HTTP POSTing to a location specified by
`sv_modhelp_url`. We also provide a `src/modhelp/server.py` which can
use theses POSTs to forward them to Discord servers.
The POST contains a JSON object payload, with the keys `"port"` which
contains the server port, `"player_id"` which contains the calling
player's client ID, `"player_name"` which contains the calling player's
nick and `"message"` which is the user-specified message.
Make JSON-escaping function public, add tests and fix bugs uncovered by
these tests.
Supersedes #1129 .
2018-06-19 23:27:35 +02:00
heinrich5991
c739aef60e
Some style fixes
2018-06-19 14:28:53 +02:00
ZombieToad
57d1c37fb4
send password to first connected server
2018-06-16 00:44:24 +01:00
ZombieToad
45a9d96a76
send password to first connected server
2018-06-16 00:41:55 +01:00
ZombieToad
e05bd9c6c8
remove unused thingy
2018-06-14 20:44:14 +01:00
Dennis Felsing
ae3d91cf17
Set cl_refresh_rate to 0 by default to get higher fps and faster input processing
2018-05-28 08:03:31 +02:00
bors[bot]
eca23e45b7
Merge #1128
...
1128: Remove superfluous parameter from `CServer::NewClientNoAuthCallback` r=Learath2 a=heinrich5991
The `Reset` parameter was only ever set to true, at the only call site.
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2018-05-12 15:47:29 +00:00
def
a7b778977a
Add sv_sql_validservernames ( fixes #1123 )
2018-05-11 21:57:47 +02:00
heinrich5991
9454dfbff9
Remove superfluous parameter from CServer::NewClientNoAuthCallback
...
The `Reset` parameter was only ever set to true, at the only call site.
2018-05-09 23:50:25 +02:00
jupeyy
88acd47c99
reset font texture at window resize
2018-05-07 06:02:44 +02:00
jupeyy
62352a78dd
respect text alpha channel correctly ( fixes #1124 )
2018-05-07 05:52:02 +02:00
ChillerDragon
589749c2cf
Allows low mousesens
...
Lower minimum mousesens value to avoid confusion. Responing to GG Kid's request:
https://forum.ddnet.tw/viewtopic.php?f=45&t=5807&p=58207&hilit=mousesens#p58207
2018-04-27 01:40:59 +02:00
Dennis Felsing
e561498617
fix...
2018-04-25 14:12:49 +02:00
Dennis Felsing
96ecbfcfa8
Add cl_show_hook_coll_always
2018-04-25 12:03:27 +02:00
def
3f7b18322c
Set up DB by default
2018-04-24 23:07:51 +02:00
def
160b4df81c
Version 11.1.4
2018-04-15 20:15:13 +02:00
bors[bot]
73a65a7026
Merge #1116
...
1116: Don't send buffer cmds to non OpenGL 3.3 backend r=def- a=Jupeyy
Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2018-04-15 18:00:54 +00:00
Jupeyy
27d9440751
don't create buffers, if OpenGL 3.3 is not used
2018-04-15 19:34:56 +02:00
def
666b1a9576
Another SDL GL try
2018-04-13 21:34:12 +02:00
def
d0bb180473
Only run glewInit when using OpenGL3.3
2018-04-13 20:03:51 +02:00
bors[bot]
73cc3a147b
Merge #1110
...
1110: Fix killmessage flag render r=def- a=Jupeyy
Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2018-04-09 20:28:24 +00:00
Jupeyy
52ff132e56
reset color after text is drawn
2018-04-09 22:02:16 +02:00
heinrich5991
f8277267a0
Remove mem_alloc
and mem_free
, use standard C functions instead
...
Replace `mem_free` by `free`, and `mem_alloc` by `malloc` or `calloc`
(the latter one being used to allocate a zeroed array of elements,
sometimes, this makes a call to `mem_zero` superfluous).
This results in having to remove `mem_stats` which previously recorded
the number of allocations and their size that the Teeworlds code did
directly.
Remove OOM handling in `src/game/client/components/binds.cpp`.
Remove needless copying in the CSV code in
`src/game/client/components/statboard.cpp`.
2018-04-09 11:56:39 +02:00
def
c95e1a61c6
More conservative config saving
2018-04-05 17:24:49 +02:00
Dennis Felsing
fc355797a5
Merge pull request #1101 from Jupeyy/pr_mem_fix
...
Make mem_alloc, mem_free thread safe (fixes #1087 )
2018-04-05 09:10:55 +02:00
yangfl
46b7e4198b
Allow specifying DATA_DIR by compiler option, retry #1042
2018-04-05 11:11:31 +08:00
Jupeyy
1208bcc562
Make mem_alloc, mem_free thread safe ( fixes #1087 )
2018-04-05 04:17:21 +02:00
def
a9a71094dd
Revert "Allow specifying DATA_DIR by compiler option"
...
This reverts commit 3c488ff5c7
.
2018-04-03 19:18:27 +02:00
Jupeyy
15f0efc2bd
fix text color if opengl3.3 is off
2018-04-03 17:40:21 +02:00
Dennis Felsing
5a53e4c54d
Fix compilation
2018-04-03 10:27:19 +02:00
Dennis Felsing
ed33557a97
Merge pull request #1081 from Jupeyy/master
...
New buffer system and text renderer to support buffering of hud, text and map components, that are displayed ingame
2018-04-03 10:12:09 +02:00
Jupeyy
53622f56b4
respect the area width in any case
2018-03-26 05:08:21 +02:00
Jupeyy
abb9ba5572
use debug variable in a better way
2018-03-21 16:07:03 +01:00
Jupeyy
16894155e5
add attributes for screen state check
2018-03-21 15:49:15 +01:00
Jupeyy
53a93c077e
add window resize listener
2018-03-21 15:48:48 +01:00
Jupeyy
70c06be87e
allow non pixel alignment rendering, instead fo changing texture filter
...
add window resize event, and remove the font size limitation
2018-03-21 15:45:08 +01:00
Jupeyy
9b8da90151
check screen state
2018-03-21 15:41:45 +01:00
Jupeyy
91b1699994
remove unused and check freetype version
2018-03-15 14:22:08 +01:00
Jupeyy
da311d03c4
use a different texture filter instead of correcting text coordinates
2018-03-15 03:33:22 +01:00
bors[bot]
c65ffeb4ae
Merge #1082
...
1082: Fix a bug with name bans r=Learath2 a=heinrich5991
Overlong nick names could be used to circumvent name bans.
2018-03-14 02:00:42 +00:00
heinrich5991
11304661db
Put name ban stuff into a separate file
...
Fix a bug when overlong names could be used to circumvent name bans. Add
tests for name bans.
2018-03-14 02:35:31 +01:00
heinrich5991
d7f6cf2892
Fix some system.c insanity
...
`str_utf8_isspace` now returns true if the passed code point renders as
a space, instead of when not.
Add `str_utf8_trim_right`, use this function and
`str_utf8_skip_whitespaces` in the server.
Add tests for the three functions
2018-03-14 02:27:15 +01:00
Jupeyy
62c3074c88
add new text renderer engine to support text buffering, cursors, text
...
marking and less character texture updates
2018-03-13 21:49:07 +01:00
Jupeyy
75eddfec7a
add new shader programs
2018-03-13 21:47:45 +01:00
Jupeyy
898af39311
add new functions to support the new backend layout and the new
...
rendering system
2018-03-13 21:47:07 +01:00
Jupeyy
35f3dd5bc2
add new shader programs in the backend
2018-03-13 21:44:58 +01:00
bors[bot]
cc6449bcd6
Merge #1055
...
1055: Keep track of lost frames and update time r=heinrich5991 a=Jupeyy
The problem a friend was occuring was, that on a fresh Windows install settings like cl_refresh_rate are set to 480.
Since the render calls take longer time than no render calls, it happened that client was sleeping on one update cycle and then took to long in another, where it called the render functions, leeding to less FPS than the cl_refresh_rate. this caused mouse lags and rarely frame drops.
another thing is, that select on Windows is non microsecond accurate, or just often returns too early, which caused that the refresh rate is much too high, or even ignored, (probably windows can only sleep on milliseconds, or again, is extremly inaccurate).
Another things on windows is that time_freq might be a "very odd" number ^^
i mean like on unix it's one microsecond (1,000,000 = 1s), but on windows the time_freq depends on the CPU leading to inaccurate calculation of the sleep time and render time.
This wasn't insanly huge issue, but probably skipped a few microseconds here and there.
This fix should stabilize the frames. I'd like to hear your opinion on this tho.
2018-03-13 19:41:38 +00:00
Learath
729a42adec
More style
2018-03-13 00:13:50 +01:00
Learath
b7610901e3
Handle empty reason. Fix formatting
2018-03-12 23:29:46 +01:00
Learath
22c21f73ae
Actually display the reason
2018-03-12 19:09:53 +01:00
Learath
c1a7c30f0f
Add reason to name bans
2018-03-12 19:05:49 +01:00
Jupeyy
5b56e5b2c4
move the keyboard state back into the gfx update
2018-03-12 16:51:31 +01:00
Jupeyy
081057d6b9
style fixes and remove float cast
2018-03-12 15:43:31 +01:00
Jupeyy
5e1bee2760
clean up a bit to and descripe it better
2018-03-12 15:10:49 +01:00
heinrich5991
31a3e8d4c0
Add possibility to ban players by name
...
This uses the Unicode confusable data together with judging how close
two strings are by using the Levenshtein distance.
Adds the commands `name_ban`, `name_unban` and `name_bans`. Kicks
players who join using a banned name and doesn't allow ingame players to
change their names to the banned ones.
2018-03-09 20:30:27 +01:00
bors[bot]
fb69fa1815
Merge #1042
...
1042: Allow specifying DATA_DIR by compiler option r=heinrich5991 a=yangfl
2018-03-05 10:50:38 +00:00
Jupeyy
ced0ea3f82
set the gfx refresh rate limit higher for the console
2018-03-02 03:29:02 +01:00
Jupeyy
cc7371c1cd
set upper limit, for the case, if the refreshrate is smaller than the gameticks
2018-03-02 03:12:30 +01:00
Jupeyy
089cb1ea44
this must be inactive ofc
2018-03-01 08:25:34 +01:00
Jupeyy
a808ee07d3
add accedentially removed cast
2018-03-01 08:07:48 +01:00
Jupeyy
3458ee0976
check if gfx_refresh_rate is non zero
2018-03-01 07:50:52 +01:00
Jupeyy
6f0509cfae
the actual description to the problem
2018-03-01 07:44:22 +01:00
Jupeyy
edaf632c04
Merge branch 'master' of https://github.com/ddnet/ddnet
2018-03-01 07:38:50 +01:00
Jupeyy
238c8847c0
keep track of lost frames and updates, to ensure FPS stability and
...
better CPU sleep times
2018-03-01 07:34:14 +01:00
Jupeyy
3dabb5c2bd
ensure right internal image format, to prevent unsupported reformatting
2018-03-01 07:31:09 +01:00
heinrich5991
61c7e9307d
Don't log out on sv_rcon{,_mod,_helper}_password
if not changed
2018-02-26 18:01:02 +01:00
yangfl
3c488ff5c7
Allow specifying DATA_DIR by compiler option
2018-02-22 00:12:52 +08:00
heinrich5991
f7b7054152
Fix crash on startup due to sound initialization
...
Of course `WavpackOpenFileInputEx` is subtly incompatible to
`WavpackOpenFileInputEx64` in that it requires the userdata for the main
steam to be nonnull.
Fixes #1041 .
2018-02-18 12:45:03 +01:00
heinrich5991
73c03544b4
Support older wavpack versions
2018-02-17 01:35:07 +01:00
heinrich5991
99fe1d7bcf
Revert "Fix bundled wavpack when system wavpack is available"
...
This reverts commit 0d9265b1fa
.
2018-02-17 01:31:40 +01:00
def
0d9265b1fa
Fix bundled wavpack when system wavpack is available
2018-02-15 19:30:40 +01:00
heinrich5991
c2aaef2adf
Remove vendored libwebsockets
2018-02-14 12:55:37 +01:00
def
e9bc42a63c
Update websockets implementation ( fixes #1022 )
...
seems to work with libwebsockets 2.4
2018-02-14 12:30:14 +01:00
bors[bot]
6338a05fd3
Merge #1025
...
1025: Add Teehistorian UUIDs to every record r=heinrich5991 a=Learath2
For statistic collecting purposes, don't merge before updating the SQL Schema.
ALTER TABLE record_race ADD COLUMN GameID VARCHAR(64) AFTER cp25;
ALTER TABLE record_teamrace ADD COLUMN GameID VARCHAR(64) AFTER ID;
2018-02-13 16:01:20 +00:00
bors[bot]
c0fa444f3a
Merge #1034
...
1034: Try to find external GLEW, pnglite and Wavpack r=Learath2 a=heinrich5991
Allow for newer versions of Wavpack, fixes #1023 .
Fixes #1016 .
2018-02-13 02:02:07 +00:00
heinrich5991
94818ec1f0
Try to find external GLEW, pnglite and Wavpack
...
Allow for newer versions of Wavpack, fixes #1023 .
Fixes #1016 .
2018-02-12 23:29:45 +01:00
def
5587e6dc96
Remove unused inp_grab
2018-02-11 16:40:08 +01:00
bors[bot]
6283ad2012
Merge #1015
...
1015: Fix typo r=heinrich5991 a=yangfl
2018-02-07 16:22:48 +00:00
Learath
bc11fc2a35
Add GameUuid to teamscore aswell
...
Also get GameUuid through an interface.
2018-02-07 16:43:36 +01:00
Dennis Felsing
f62833b699
Always keep same resolution on macosx
2018-02-07 13:21:18 +01:00
yangfl
1620fc9b0f
Fix typo
2018-02-07 16:10:40 +08:00
Dennis Felsing
4c8a770ba6
macosx highdpi try #123456789
2018-02-07 08:22:57 +01:00
Learath
94d98e833a
Fix mistakes. Fix CREATE TABLE
2018-02-07 01:10:02 +01:00
def
864ff1ac74
Remove highdpi stuff
...
This reverts commit d234c55dfa
.
2018-02-06 23:21:17 +01:00
Dennis Felsing
d234c55dfa
Try macosx highdpi fix
2018-02-05 14:37:26 +01:00
heinrich5991
1c3dc8c316
Record rcon authentication stuff into teehistorian
...
This allows to check moderator actions after-the-fact.
2018-01-28 03:13:05 +01:00
bors[bot]
f48a2a395b
Merge #947
...
947: Add support for extra chunks in teehistorian r=Learath2 a=heinrich5991
This allows to add rarely-used chunks without increasing the file format
version.
2018-01-27 21:09:43 +00:00
def
151da9af97
Remove Emojis
2018-01-25 20:03:18 +01:00
def
dd7281ef86
Limit m_NumTimelineMarkers (reported by GG Kid)
2018-01-23 16:04:24 +01:00
Tim Schumacher
b3f7864ecf
Don't change map release time when updating map stars/points
2018-01-22 20:47:26 +01:00
def
9139737aa7
Minor style cleanup
2018-01-15 19:08:33 +01:00
def
48980efa2e
Disable OpenGL 3 by default
2018-01-14 07:33:00 +01:00
heinrich5991
22080c840f
Move teehistorian UUIDs into engine
2018-01-11 16:01:13 +01:00
heinrich5991
6c378b972b
Add support for extra chunks in teehistorian
...
This allows to add rarely-used chunks without increasing the file format
version.
2018-01-11 15:59:53 +01:00
bors[bot]
5b2a929bc1
Merge #976
...
976: fixed rand init error message r=heinrich5991 a=ChillerDragon
the ``dbg_msg()`` func doesn't work until the
``IEngine *pEngine = CreateEngine("DDNet", Silent);`` line gets executed.
I used a bool to leave the code order untouched c:
2018-01-07 17:02:44 +00:00
Chiller Dragun
52a7f84583
code styling
2018-01-07 03:03:33 -08:00
def
4813a4b857
Add cl_shownotifications ( fixes #949 )
2018-01-05 20:20:39 +01:00
Chiller Dragun
654dd597fe
fixed rand init error message
2018-01-04 06:33:21 -08:00
Learath2
8353701789
Add sv_rcon_vote. Fix punctuation.
...
Add option to only allow authed clients to call votes.
2017-12-27 10:40:51 +03:00
heinrich5991
eb31a52b83
Add very basic test for Unix sockets
2017-12-20 16:56:44 +01:00
heinrich5991
1a236dbefc
Send connection information to external server
2017-12-20 16:56:34 +01:00
Jupeyy
060f6fd36e
Load shaders through IStorage class
...
Fixes #939 .
2017-12-02 22:19:57 +01:00
bors[bot]
bad105c5e4
Merge #953
...
953: Overhauled job system r=Learath2 a=heinrich5991
The engine now takes `std::shared_ptr<IJob>`, this will ensure the
appropriate lifetime of the given parameters, it also allows for proper
destruction. Remove the now obsolete `IFetcher` interface and `CFetcher`
class.
Also adds some locks to `CUpdater`, previously it didn't have any locks
at all.
2017-11-27 23:34:54 +00:00
heinrich5991
fd36b8c8c8
Remove unused header file src/engine/shared/storage.h
2017-11-27 00:58:30 +01:00
bors[bot]
41f6140179
Merge #945
...
945: Don't use nonstandard `#pragma pack` r=Learath2 a=heinrich5991
It's not needed in that place anyway.
2017-11-26 16:27:50 +00:00
bors[bot]
5bfb25c9c8
Merge #954
...
954: Change some config variable defaults to official server values r=Learath2 a=heinrich5991
2017-11-26 16:13:23 +00:00
bors[bot]
f9e0b6b3fe
Merge #931
...
931: Add Speedup tiles correctly at the border creation & remove tile layer extension restriction & fix the LastIndex buffer initlialization & setup non mipmap textures up correctly(texture completness) r=heinrich5991 a=Jupeyy
Allows speedups to be drawn on extended range(out of map range) too.
2017-11-26 13:32:05 +00:00
Jupeyy
b1d99de87a
s_
2017-11-26 14:10:47 +01:00
Jupeyy
bff1186d3b
is now s_
2017-11-26 14:08:00 +01:00
Jupeyy
14297ae45c
code pattern
2017-11-26 13:28:41 +01:00
heinrich5991
c10db436b4
Change some config variable defaults to official server values
2017-11-24 11:59:45 +01:00
heinrich5991
3f43624d21
Add a couple of tests for CJobPool
2017-11-24 10:33:42 +01:00
heinrich5991
01d81fc4cc
Make m_Shutdown
variable atomic instead of volatile
2017-11-24 09:23:23 +01:00
heinrich5991
a3cdfac84e
Fix lookup job being zeroed in CMasterServer::Load
2017-11-24 02:13:34 +01:00
heinrich5991
94acac91a0
Overhauled job system
...
The engine now takes `std::shared_ptr<IJob>`, this will ensure the
appropriate lifetime of the given parameters, it also allows for proper
destruction. Remove the now obsolete `IFetcher` interface and `CFetcher`
class.
Also adds some locks to `CUpdater`, previously it didn't have any locks
at all.
2017-11-23 15:47:38 +01:00
heinrich5991
f0c647dba5
Change os_compare_version
to os_is_winxp_or_lower
...
This stops leaking OS details in non-`system.c` files.
2017-11-23 03:10:15 +01:00
heinrich5991
be80ccb7d6
Don't use nonstandard #pragma pack
...
It's not needed in that place anyway.
2017-11-18 00:24:44 +01:00
bors[bot]
27722633a3
Merge #940
...
940: Put shaders into the data/ directory r=Learath2 a=heinrich5991
Simplifies a lot of things
2017-11-15 23:29:55 +00:00
heinrich5991
17d3f4afa4
Put shaders into the data/ directory
...
Simplifies a lot of things
2017-11-08 22:19:47 +01:00
bors[bot]
fdb2e330ce
Merge #904
...
904: Fix use-after-free r=heinrich5991 a=Learath2
Not sure if this is the best way to go about this, but it works :/
2017-11-08 17:30:34 +00:00
Jupeyy
78c06e180f
remove dublicated GL queries
2017-11-04 05:38:48 +01:00
Jupeyy
78a9fbb9b5
use the write buffer slot, instead of elementarray slot to create the
...
index buffer
2017-11-04 04:57:58 +01:00
Jupeyy
d367f94d7c
invalidate all index buffer bindigs, when index buffer is resized
2017-11-03 19:48:17 +01:00
Jupeyy
c22af4bb4d
fix index buffer bindig for normal quads(fixes startup crashes) and
...
initialize non mipmap textures as linear(texture completness)
2017-11-03 19:33:23 +01:00
bors[bot]
5528cde5f6
Merge #869
...
869: Complete rework of the ghost and race recorder r=Learath2 a=Redix
This PR fixes a lot of issues with the ghost and race recorder, introduces a new ghost file format and implements some pretty useful features.
**A quick overview:**
- When you cross the start line multiple times, both (ghost and recorder) will only restart if it is a non-solo server
- If available, both will use the race timer to recognize the start instead of searching for the start line
- Fastcap support for both
- The recorder immediately starts when the Tee spawns, so the preparation steps (which are quite important for speedruns) will be included in the demo. If you do not cross the start-line within 20 seconds, it will stop the demo until you really start.
- Better ghost menu (colors, reloading, deleting and saving ghosts)
- The ghosts are more resistant against lags (old ones were sometimes completely useless due to small lags)
- New ghosts files are significantly smaller
- Cleanup, bugfixes..
**About the new ghost format (version 4/5):**
This format is used by Teerace for over a year now. The code for handling the binary files was moved to the engine. It includes an auto updater which creates a backup of all ghosts and converts them to the new format afterwards. The major differences from the format used by DDNet right now (version 2), are the ability to store multiple types of data, the usage of delta-encoding and a more portable header.
For whatever reason, the ghost stores values for every predicted tick, but without tick information, so lost snapshots can make them unusable. The new code uses the original values from the snapshots including ticks but it can also handle the old ones without. Since hardly any server uses the high bandwidth option this practically reduces the file size.
Like the demo recorder the ghost recorder directly stores the data to a file (every 50 snapshots) instead of writing the whole file at the end of the race. Indeed this can be changed with only a few lines if the old behavior is preferred.
The updater can handle version 2 (DDNet) and 3 (old teerace format, only slightly different from version 2) files. The updating already happens when the files are scanned for generating the list in the menu and not only when you activate them. The change from version 4 to 5 was only needed due to a bug in the implementation, the ghost loader can read both.
Some numbers about the file size: (map: hotrun, both about 30 seconds)
- Old ghost: 30.4 kB (converted: 10.7 kB)
- New ghost: 5.4 kB
**One thing about the race recorder:**
The old implementation compared the new file only with the first file it found for the particular map. The new one compares with all related demos and deletes them possibly, so that only the best demo is left. Since DDNet can also store the demos without name, this might also delete demos from other players, that you might have in your directory.
To prevent this I at least check whether the demo contains the player name if `cl_demo_name` is on.
In my opinion the better solution would be to remove `cl_demo_name` and always use the player name.
2017-10-30 20:27:10 +00:00
Redix
de1c0cf24d
Fixed several issues with the ghost (thanks to Learath2)
2017-10-28 14:23:24 +02:00
Michał
58b0ae5fc7
Possible emoji rendering fix
2017-10-28 09:08:17 +02:00
Learath2
a6eb1b94f2
Add lock around m_Destroy and m_PastCB
2017-10-27 15:26:39 +02:00
Jupeyy
442a1767d4
reset lastindexbuffer at object deletion
2017-10-24 03:12:48 +02:00
Jupeyy
5c9fc3d19b
remove unused variable
2017-10-23 18:31:44 +02:00
Jupeyy
37c5102928
only delete VBOs when the VAO, which uses the VBO, is deleted(AMD driver
...
bug under windows). And only allow true fullscreen under supported
display resolutions, to enable prevention of DPI scaled opengl viewport
2017-10-23 18:02:18 +02:00
def
cb00a294b8
Enable gfx_opengl3 by default
2017-10-20 22:52:38 +02:00
def
342c6048bf
Use new opengl by default
2017-10-20 22:47:59 +02:00
Dennis Felsing
6c7f6e3a7e
glew on macosx as well...
2017-10-20 11:49:00 +02:00
Dennis Felsing
5a75dc7f27
New glew try
2017-10-20 11:35:44 +02:00
Dennis Felsing
88c0778b21
Bundle glew instead
2017-10-20 11:12:27 +02:00
Dennis Felsing
07db95ed59
Mac build fix
2017-10-20 10:20:29 +02:00
Dennis Felsing
d7eabb0ea9
Further macosx fixes
2017-10-20 09:31:42 +02:00
Dennis Felsing
db46d18e71
No GLEW on OSX necessary (untested)
2017-10-20 09:08:49 +02:00
Learath2
b8b4f7771d
Rename the callback
2017-10-19 18:13:28 +02:00
Dennis Felsing
d6999bb726
Merge "Pull Request using OpenGL 3.3"
2017-10-18 12:49:27 +02:00
Edgar Luque
3408d4f016
MinGW putenv workaround.
2017-10-17 16:38:40 +02:00
Learath
30aebc9cf4
Destroy() implies Abort()
2017-10-17 15:42:17 +02:00
Learath
96acddb57f
Fix the other use after free
2017-10-17 15:39:20 +02:00
Learath
7f8356e37e
Fix a heap-use-after-free
2017-10-17 14:23:56 +02:00
bors[bot]
5aca38e50e
Merge #902
...
902: Fix victim handling r=Learath2 a=heinrich5991
2017-10-16 23:41:15 +00:00
heinrich5991
dfc53b48cf
Fix victim handling
2017-10-17 01:32:40 +02:00
Jupeyy
cc54c4acdf
also out the LOD to the fragment shader to make sure we use the same LOD
...
on every hardware
2017-10-14 23:27:14 +02:00
heinrich5991
16694a0d7b
Use a random token for serverbrowse requests
...
This alleviates the risk for spoofed servers.
2017-10-14 21:58:23 +02:00
Jupeyy
5389dd9666
fix border amount for right and bottom border lines
2017-10-14 16:37:48 +02:00
heinrich5991
8e778cd9ab
Address pull request comments
2017-10-13 02:29:18 +02:00
Jupeyy
1814fa8d19
make OpenGL 3.3 experimental option, and don't initialize it as default
2017-10-10 15:35:20 +02:00
heinrich5991
2fc018aac3
Add asynchronous file output, port dbg_msg()
s to that system
...
Also add tests.
2017-10-10 04:11:14 +02:00
Learath
1855992014
Fix style
2017-10-09 20:51:16 +02:00
Learath
f4b3bc63b3
Forgot classes need to be initialized with new
...
Also matched the function signatures to the ones in the interface
2017-10-09 20:04:23 +02:00
Learath
26efee9506
Forgot the virtuals
2017-10-09 19:22:44 +02:00
Jupeyy
26bd800d63
calculate the LOD on CPU side and restrict mipmap levels for huge
...
textures to remove bad looking mipmap generations at high zoom levels
2017-10-09 18:58:44 +02:00
Learath2
70ee5d9645
Properly free CFetchTask in case of abort
2017-10-09 18:47:02 +02:00
Learath2
9bce7e8630
Use a proper interface for CFetchTask
2017-10-09 18:47:02 +02:00
Learath2
d15dcd3c58
Merge pull request #871 from heinrich5991/ddnet_teehistorian
...
Teehistorian
2017-10-09 18:42:27 +02:00
Jupeyy
43fa2fd1a7
use wrap mode for every individual texture
2017-10-09 15:59:16 +02:00
Learath
1b0ab87015
Get rid of unnecessary queue in CFetcher
2017-10-08 00:57:56 +02:00
def
b368234dae
Delete editor before graphics ( fixes #881 )
2017-09-30 06:27:05 +02:00
Redix
2586c001b7
Use demos/auto/race for the race recorder
2017-09-28 19:14:36 +02:00
Redix
e9a0271c29
Improved ghost and race recorder file handling
2017-09-28 19:13:20 +02:00
Redix
a3a82b6571
Move filename clearing function to base lib
2017-09-28 16:02:01 +02:00
Redix
5721612761
Clean up trailing whitespaces
2017-09-28 16:02:01 +02:00
Redix
216e5654e8
Added config variables for server controlled ghost and race recording
2017-09-28 16:02:00 +02:00
Redix
ac234ad3ee
Write the correct player name into ghosts that are saved from menu
2017-09-28 16:01:59 +02:00
Redix
5b3e9e4bbf
Improved ghost file management
2017-09-28 16:01:58 +02:00
Redix
5cc0d16029
Reworked the race recorder
2017-09-28 16:01:57 +02:00
Redix
1c377ed00f
Added Fastcap support for ghost and race demo
2017-09-28 16:01:57 +02:00
Redix
c189678e44
Cleaned up the ghost component and made it use the ghost recorder and loader
2017-09-28 16:01:56 +02:00
Redix
b1e7138847
Added ghost file handling classes
2017-09-28 16:01:56 +02:00
Jupeyy
7aa547946b
more warning fixes
2017-09-27 15:01:38 +02:00
Jupeyy
463944b143
fix code pattern mistakes and warnings
2017-09-27 14:52:06 +02:00
Jupeyy
9fd1290734
auto adjust font size for entity overlay
2017-09-27 12:19:39 +02:00
Jupeyy
745d77ffeb
remove functions, that aren't needed anymore
2017-09-27 12:18:46 +02:00
Jupeyy
91216fb90c
reduce upload size by normalizing color values, fix slow upload for some
...
iGPUs and force old opengl context, if issueinit fails
2017-09-27 12:16:34 +02:00
Jupeyy
a85f542d1d
only use 4x2 matrix
2017-09-27 12:15:30 +02:00
Dennis Felsing
4fe6dc51f7
Fix non-random announcements (thanks noby)
2017-09-26 14:20:37 +02:00
heinrich5991
a201352b29
Fix a grammar mistake in bot client message
2017-09-24 21:11:23 +02:00
def
553c97b52d
Fix crash with broken ddnet-info.json
2017-09-20 22:25:55 +02:00
heinrich5991
9761e9606a
Make most user input teehistoric
...
Exclude private stuff like chat messages and votes.
2017-09-20 02:23:28 +02:00
heinrich5991
6ef9c8dbcd
First working version of teehistorian
...
teehistorian records all inputs from the players as well as the player
positions in each tick. It stores this info in a highly compressible
output format (I've achived 5x compression using xz or bz2).
2017-09-20 02:16:11 +02:00
Redix
43f246f174
Made int packing functions safe
2017-09-17 02:36:50 +02:00
Dennis Felsing
43d0299a45
Merge branch 'master' into pr_ddnet_fix_msvs_warnings
2017-09-16 11:17:39 +02:00
Jupeyy
26607cfd47
at texture upload, check if we have enough space in the command buffer
...
too
2017-09-15 03:50:06 +02:00
Jupeyy
31844d3353
set max width for custom text texture upload and fixing alignments for
...
texture updates
2017-09-15 03:01:26 +02:00
Jupeyy
f2820ea392
use 4*4 array instead of declearing a full matrix class
2017-09-14 19:47:04 +02:00
Jupeyy
f48e186bfd
use CLineReader instead of fgets, also delete program at destruct
2017-09-14 19:35:31 +02:00
Jupeyy
b6e4b4b4a6
detach shaders automatically after linking
2017-09-14 19:34:14 +02:00
Jupeyy
4fec86a354
support old opengl version with only 2 vertex coordinates
2017-09-14 08:03:33 +02:00
Jupeyy
3bdd8c19ac
delete primitive index buffer at shutdown too
2017-09-14 03:54:22 +02:00
Jupeyy
1df1731b01
use glDeleteVertexArrays instead of glDeleteBuffers
2017-09-14 03:50:42 +02:00
Jupeyy
211f8a6b11
only allow changing to use single/multiple texture units at restart
2017-09-14 02:58:13 +02:00
Jupeyy
1167ab822c
reduce upload since of vertices if drawing quads
2017-09-14 02:50:31 +02:00
Jupeyy
77b3c39553
allow disabling texture unit optimization by command, also use
...
drawelements instead of drawarrays for quads
2017-09-14 02:49:35 +02:00
Jupeyy
5c7c09d380
fixing most wrong code pattern
2017-09-13 20:33:58 +02:00
Jupeyy
a3658e5526
store alpha textures always as RGBA
2017-09-13 18:32:08 +02:00
Jupeyy
629bf2c5f9
Merge branch 'master' of https://github.com/ddnet/ddnet
2017-09-12 20:24:58 +02:00
Jupeyy
96694fb399
make new opengl version optionally
2017-09-12 20:12:37 +02:00
Jupeyy
92bf979467
add new functions to interface to support buffering and rendering
...
visual objects(opengl objects)
2017-09-12 20:11:47 +02:00
Jupeyy
2af3393810
add glyph upload for custom textures
2017-09-12 20:11:14 +02:00
Jupeyy
6a7e3d5836
add a glyph upload for custom textures
2017-09-12 20:10:27 +02:00
Jupeyy
bcb5f0ca8d
add new programs for various gpu render tasks, and some more uniform
...
setter
2017-09-12 20:09:40 +02:00
Jupeyy
a477540358
add new commands to buffer objects and draw them
2017-09-12 20:08:45 +02:00
Jupeyy
5f2ccf2960
add support for buffer objects and vertex object, and its draw calls
2017-09-12 20:07:38 +02:00
def
73d9ad7615
Really only download ddnet-info.json at correct time
2017-09-08 22:16:00 +02:00
def
e7e1070adf
WinXP: Use http://info.ddnet.tw
2017-09-08 20:06:48 +02:00
def
c2c453bd45
Make sending name to info.ddnet.tw optional, show dialog at start and some minor fixes
2017-09-07 20:51:46 +02:00
heinrich5991
4d96090770
Fix MSVS warnings
...
```
warning C4291: no matching operator delete found; memory will not be freed if initialization throws an exception
warning C4305: truncation from 'double' to 'float'
warning C4805: unsafe mix of type 'bool' and type 'int' in operation
```
2017-09-06 10:54:29 +02:00
Jupeyy
9bd6d0c6f9
Merge branch 'master' of https://github.com/ddnet/ddnet
2017-09-04 16:13:26 +02:00
def
8b1470c31f
Revert "Merge GAME_VERSION and GAME_RELEASE_VERSION"
...
This reverts commit 5cfd779c68
.
2017-09-03 23:46:15 +02:00
def
5cfd779c68
Merge GAME_VERSION and GAME_RELEASE_VERSION
2017-09-03 18:54:43 +02:00
def
89ed22e8d8
Introduce ddnet-info.json
...
- Single json file containing all information for the client
- Fetched from https://info.ddnet.tw/info?name=deen
- Replaces versionsrv, news, ddnet-maps.json and ddnet-ranks.json
- Servers are sorted by most popular ones for respective player
- Always stays < 100 ms response time, compared to occasional 50 s for
old ddnet-ranks.json
2017-09-03 17:42:04 +02:00
def
27b7549bba
Make --silent stop stdout logging
2017-09-03 10:37:24 +02:00
def
2e537684d5
actually don't need the family
2017-09-03 09:20:46 +02:00
def
f2a7f5f8dd
User agent in http fetcher
2017-09-03 09:18:00 +02:00
def
42bc38227d
Request server list and ranks at better location
2017-09-03 09:00:57 +02:00
def
862e26dd08
Clean up time handling a bit
2017-09-03 08:48:21 +02:00
Jupeyy
1053bc735d
initial port to opengl3.3 (without any optimazations)
2017-09-02 15:24:07 +02:00
def
e64e59a839
semaphore instead of busy waiting in CJobPool
2017-09-02 12:30:55 +02:00
Dennis Felsing
ed59b0f4a2
Fix binary dirs for installed locations on POSIX
...
Also rename them from teeworlds to ddnet
2017-09-01 13:37:01 +02:00
Dennis Felsing
6c21738d9d
Try to fix Windows crash
2017-09-01 08:01:26 +02:00
def
7c6c2f5d9b
Fix graphics init to be later so that user resolution is available
2017-08-31 23:42:21 +02:00
def
9b214db85f
Force version.ddnet.tw and update4.ddnet.tw
2017-08-31 23:28:10 +02:00
def
8ebac31c03
Use old ddnet-ranks.json when new one can't be fetched currently
2017-08-31 22:40:55 +02:00
def
03399994b5
Remove duplicate semaphore
2017-08-31 19:36:27 +02:00
def
a58895291c
Only trust ddnet ca
2017-08-31 19:33:20 +02:00
def
705349f2e5
Clean up and fix semaphores and threading
2017-08-31 19:18:07 +02:00
Learath2
cd386488e2
Rename semaphore_* to sphore_*
...
Previous naming conflicted with Mach kernel definitions.
2017-08-31 19:18:07 +02:00
Savander
1741df43cd
Add gametype support to exclude field
2017-08-31 12:35:01 +02:00
def
bff1c12b83
Don't try to load ddnet-ranks.json while fetcher is downloading it anyway
2017-08-31 00:07:59 +02:00
def
a20db6ec56
Don't shutdown sound twice ( fixes #851 )
2017-08-30 23:19:33 +02:00
def
7d71dae87f
Fetcher: sephamore instead of spinlock, exit thread gracefully
2017-08-30 23:14:00 +02:00
def
040fc9ca32
Implement right click and middle click on country and type filters
...
Right click: exclusively activate one
Middle click: reset (reenable all)
2017-08-30 22:36:39 +02:00
Dennis Felsing
eb2634ab0a
Merge pull request #852 from heinrich5991/pr_ddnet_fix_extractname
...
Add testing; fix, rename and test the `CEditor::ExtractName` function
2017-08-30 22:09:17 +02:00
def
16f3ddc5a7
Show if user has rank on map in browser (+filter)
...
UI implementation by timakro
2017-08-30 21:34:04 +02:00
def
e480b651e7
Fix fetcher write function to return size
2017-08-30 21:01:19 +02:00
def
7f0eb53ff4
Initialize in order to ensure destruction in order ( fixes #848 )
2017-08-30 17:22:36 +02:00
heinrich5991
22be1be389
Fix and rename the CEditor::ExtractName
function
...
Fixes #846 .
2017-08-30 13:59:42 +02:00
heinrich5991
2682480f8a
Rename GetUncompressedDataSize
to GetDataSize
...
Also rename the old `GetDataSize` to `GetFileDataSize`. `GetDataSize`
now returns the actual data size, not the data size before
decompression.
2017-08-30 08:36:17 +02:00
root
2c748ebf70
Fixing PR over heinrich revision
2017-08-30 00:21:41 +02:00
sctt
0849fa6024
fixing map_resave and adding map_replace_image
...
Update datafile.h
Update datafile.cpp
Update datafile.cpp
Update map_resave.cpp
Update datafile.h
Update map_resave.cpp
Update datafile.h
Update datafile.cpp
Update config_store.cpp
Update config_retrieve.cpp
Update io.cpp
Update gamecontext.cpp
Update config_store.cpp
Update CMakeLists.txt
Create map_replace_image.cpp
Update map_replace_image.cpp
fixing bug with height and witdth
2017-08-29 16:21:16 +02:00
def
40b145fe20
More utf8mb4 in database connection and database default
2017-08-26 10:12:47 +02:00
def
ac2943a49b
utf8mb4 in database for real utf8
2017-08-26 09:00:33 +02:00
def
0b1842d438
Use filesystem paths for -f command line param
2017-08-11 21:07:20 +02:00
def
0b5dcdc478
Disable vsync by default and warn about possible delay
2017-08-08 19:53:16 +02:00
def
5d8a0ddc1e
Add time in console
2017-08-04 22:38:22 +02:00
heinrich5991
33315452c3
Merge branch 'master' into leak_fix
2017-07-31 20:42:32 +02:00
def
c6a5a7dcb3
Try using more modern SDL audio interface
2017-07-30 12:33:51 +02:00
HMH
19a8e7add6
removed some spaces
2017-07-28 20:44:03 +02:00
HMH
04e2946efc
mem_free is safe on null pointers
2017-07-28 15:42:32 +02:00
HMH
6655b35bdd
minior style issues
2017-07-28 14:49:09 +02:00
heinrich5991
6247aa0c7f
Enable -Wextra
and -Wformat=2
...
Also annotate `dbg_msg`, `str_format` and `str_timestamp_ex` so that the
compiler can determine whether the format strings are correct.
Fix the compiler warnings generated by these extra warnings -- some of
them were security issues.
2017-07-27 20:38:17 +02:00
def
5a437b110f
Nicer formatting for task fetcher
2017-07-25 19:23:10 +02:00
heinrich5991
1ebb4f89a6
Reopen: Add a flag for rcon login via username ( #800 )
...
This uses an extended protocol message to signal that rcon
authentication might require a username, allowing the client to enable
the username prompt.
Add a forgotten logout on key update
2017-07-24 21:43:55 +02:00
def
60d7388d9f
Fix demo slicing
2017-07-22 22:03:05 +02:00
def
6e5375da71
Moving mouse is not a key
2017-07-22 12:28:06 +02:00
def
2fb5835980
Update json-parser to 1.1.0, zlib to 1.2.11
2017-07-22 11:07:29 +02:00
def
be8a149d12
We want Y axis falloff on both speakers
2017-07-22 09:15:28 +02:00
def
0b5942fc04
Add special handling for infClass class selection ( fixes #794 )
2017-07-21 21:43:56 +02:00
HMH
5877b17f5a
cleanup freetype
2017-07-21 20:45:23 +02:00
def
b57ffa429e
Use scancodes instead of keycodes for input ( fixes #796 , please test)
2017-07-21 19:53:49 +02:00
HMH
bfc5700314
Yes the Kernel and Interfaces need to be deleted too...
2017-07-21 19:46:31 +02:00
HMH
ae411710ba
unload fonts that are not in use anymore
2017-07-21 19:10:50 +02:00
HMH
7f7fa06dd6
free the Client created by CreateClient
2017-07-21 16:46:29 +02:00
HMH
7486ee867e
also Unload Sound
2017-07-21 16:37:23 +02:00
HMH
d3714f7efa
close workerthreads on shutdown
2017-07-21 15:52:42 +02:00
HMH
80fac31175
fixed memory leak in console
2017-07-21 15:51:56 +02:00
def
bf6c91a25c
Oops, update4
2017-07-17 00:08:15 +02:00
def
a30323d986
oops
2017-07-16 21:27:18 +02:00
def
4a8f3b083d
Use new update server that runs on Let's Encrypt
2017-07-16 11:46:38 +02:00
def
e4364983ab
Use https for map downloads by default
2017-07-16 11:29:10 +02:00
def
191eefbb2f
Only trust our own custom-selected CAs for our maps download server
2017-07-16 11:25:38 +02:00
def
c7c9c3c4dd
Possible to use https:// for map downloads, but still use http:// by default
2017-07-16 10:45:41 +02:00
def
a736a27430
No need for writing to tmp config file anymore
2017-07-16 06:54:02 +02:00
def
f9170fd031
ugly workaround for dummy input when frozen with grenade and getting hammered
2017-07-15 18:59:33 +02:00
def
5ad633ef26
No success with Windows fixes, have to delay until someone with a
...
Windows computer can look into it
2017-07-15 17:29:57 +02:00
def
fba3815ddc
Only send password on connection when explicitly asked to ( fixes #788 )
2017-07-15 17:29:20 +02:00
def
49eb0128f2
Windows cleanup
2017-07-15 16:38:40 +02:00
def
1e3476e8bd
Opposite manifest setting
2017-07-15 16:18:18 +02:00
def
78dc5aa959
Another Windows DPI try
2017-07-15 15:31:53 +02:00
def
f627a72ebb
Refcount IME usage ( fixes #577 and #738 )
2017-07-15 15:25:36 +02:00
def
f2444b0de7
Add map_diff tool to compare tile layers of map versions
2017-07-12 20:15:00 +02:00
def
ff8d22e335
Audio volume on right speaker should depend on x coordinate, not y...
2017-07-11 22:10:23 +02:00
Dennis Felsing
38eacf21b7
Next try for Windows
2017-07-11 14:37:12 +02:00
Dennis Felsing
6a90b00b0b
Types
2017-07-11 14:25:53 +02:00
Dennis Felsing
d6f6095358
Types
2017-07-11 14:24:28 +02:00
Dennis Felsing
81c6d0b33c
Who doesn't enjoy fixing Windows stuff?
2017-07-11 14:08:03 +02:00
def
d0f4ffdaad
SDL_HINT_VIDEO_HIGHDPI_DISABLED
2017-07-09 19:53:02 +02:00
def
53565aa937
fixes
2017-07-09 14:56:57 +02:00
def
afe8b4dfbe
Or we just disable stupid highdpi...
2017-07-09 14:50:10 +02:00
def
46cedf3a8c
Compiler warnings
2017-07-09 10:27:58 +02:00
def
66f6f16e81
Windows DPI fixes #2
2017-07-09 09:44:07 +02:00
def
2a1bf93165
Try to fix Windows DPI issue
2017-07-09 09:24:08 +02:00
def
35dcb4d6cf
Don't open map file again if we have it open already
2017-07-08 22:09:03 +02:00
def
42b07441a5
Try to make SQL connections a bit more hardy
2017-07-08 14:14:50 +02:00
def
f3e3d57a90
Always close files, cleaner demo recording, fix some other stuff
2017-07-08 13:39:20 +02:00
heinrich5991
409bc0e019
Ensure null-termination in str_escape
...
This also fixes a couple of potential buffer overflows. The affected
code is still buggy (doesn't do the right thing on potential buffer
overflow), but at least it won't result in crashes/out of bound writes
anymore.
2017-07-08 13:06:03 +02:00
def
36d5c8d608
string toggling supports escaped strings; also some code cleanup
2017-07-08 11:03:51 +02:00
Dennis Felsing
80565b646c
Merge pull request #790 from Learath2/dd_pr_togglestr
...
Add toggling for string options
2017-07-08 10:03:47 +02:00
Learath2
5941755832
Add toggling for string options
2017-06-20 11:27:14 +02:00
heinrich5991
1a50d405cb
Use str_find
from src/base/system.h
and check for C:
on Windows
...
Previously, using drive-relative paths could be used to escape the
Teeworlds directory on Windows.
2017-06-18 16:26:29 +02:00
def
59b33b95e4
Stronger catch for ..
2017-06-17 23:07:02 +02:00
def
d3daa51486
Correct filter
2017-06-16 22:19:36 +02:00
def
624fd38188
Oops
2017-06-16 20:46:41 +02:00
def
1b0de108c6
Forbid escaping base directory
2017-06-16 20:22:43 +02:00
def
73c61e4169
Let's not save maps that are ok already
2017-06-11 20:18:28 +02:00
def
2bd6316ce7
Add code for fixing old maps by removing unused tiles
2017-06-11 19:53:55 +02:00
heinrich5991
743c58e4ae
Revert "Fix OSX cmake build"
...
This reverts commit 3406f01ff9
.
2017-06-09 19:34:01 +02:00
Learath2
3406f01ff9
Fix OSX cmake build
...
A little crude but it works.
2017-06-09 16:05:04 +02:00
eeeee
0497cdd49d
stop casting auth state to bool
2017-06-08 13:03:44 -07:00
Learath2
ca4da73b75
Update the range of sv_default_timer_type. Fixes #760
2017-06-08 14:35:48 +03:00
eeeee
9c5ade24da
remove ConDnsblStatus copypasta
2017-06-07 11:04:04 +02:00
def
e4b3c17829
Add option to disable long pain sound (used when shooting in freeze)
2017-06-06 18:58:23 +02:00
eeeee
2797227063
also remove references to CGameContext from CServer
2017-06-05 22:31:56 -07:00
eeeee
9b6699d3b8
remove casts to CServer
...
improving encapsulation by going through the interface instead of including engine/server/server.h
2017-06-05 20:51:12 -07:00
def
b592d6af55
ms not µs for thread_sleep
2017-06-02 23:28:47 +02:00
def
7e503a306b
Revert "Back to cl_cpu_throttle_inactive"
...
This reverts commit c217040319
.
2017-06-02 23:27:35 +02:00
def
c217040319
Back to cl_cpu_throttle_inactive
2017-06-02 23:18:14 +02:00
def
d6e5df0023
oops
2017-06-02 21:58:16 +02:00
def
b8d61e9b7d
Change some defaults
2017-06-02 21:49:30 +02:00
def
8553ed727b
Replace cl_cpu_throttle with cl_refresh_rate
2017-06-02 21:33:45 +02:00
def
4125941896
Disable dbg_stress in release builds (fewer confused kids that think they hacked the server, less useless code in cache)
2017-06-02 20:45:09 +02:00
def
a6e144ea72
Let's not crash the client and server on dbg_assert
2017-06-02 20:12:20 +02:00
def
27074e926a
Further cleanup
2017-06-02 19:44:14 +02:00
def
814feede33
Don't copy strings into themselves
2017-06-02 18:37:29 +02:00
def
533ae0aaf8
Fix login crash ( fixes #771 )
2017-06-02 18:13:56 +02:00
Dennis Felsing
ca9cca4c94
Merge pull request #770 from heinrich5991/pr_fix_events_uuid
...
Fix unpacking of net events
2017-05-27 16:21:37 +02:00
heinrich5991
3b88d78736
Fix a possible out-of-bounds read in snapshot.cpp
2017-05-27 15:52:05 +02:00
heinrich5991
9e7020368e
Fix UUID formatting - the last field only has 12 hex digits
...
It didn't cause misprinted UUIDs because the string buffers had the
correct size.
2017-05-27 15:02:32 +02:00
heinrich5991
5ae37e6c72
Add protocol extension with UUIDs
...
This system can easily be extended by independent authors without
collisions, something the old system with plain increasing integers did
not allow.
Do this by utilizing the previously unused message code `NETMSG_NULL`
which has a value of 0.
This works for engine and game messages, snapshot items and events.
2017-05-25 00:52:43 +02:00
def
f4112e3bcb
Revert "Tees must be teamed up before loading"
...
This reverts commit d29f2306ef
.
2017-05-14 22:36:44 +02:00
def
c2400c79cf
Rename cl_show_other_hook_coll to cl_show_hook_coll_other and add cl_show_hook_coll_own ( fixes #741 )
2017-05-14 12:03:09 +02:00
Dennis Felsing
58207926ac
Merge pull request #726 from Learath2/dd_pr_load
...
Tees must be teamed up before loading
2017-05-14 11:54:39 +02:00
Dennis Felsing
a0a1276b6a
Merge pull request #751 from Learath2/dd_pr_ratelimitinvite
...
Add ratelimiting for /invite
2017-05-14 11:50:43 +02:00
Dennis Felsing
728e548f55
Merge pull request #754 from SheikhZayx/master
...
CSV file instead of statboard screenshot
2017-05-14 11:49:46 +02:00
def
6d81f1f188
Fix cl_cpu_throttle_inactive
2017-05-14 11:01:48 +02:00
def
7a9f316dd1
cl_cpu_throttle_inactive can be set higher than 1
2017-05-14 10:58:01 +02:00
SheikhZayx
ea0e4948b4
CSV file instead of statboard screenshot
...
En-/Disable statboard being saved as csv
2017-04-26 05:10:31 +02:00
def
4b376d239c
rename
2017-04-24 17:36:13 +02:00
Learath2
c1a4a95d61
Add ratelimiting and config options for invite
2017-04-24 14:04:50 +02:00
Ryozuki
3a4738560b
Don't show ips to non-administrators, Fixes #694 ( #739 )
...
People with non-administrator rights won't be able to see ips (mod, helper).
2017-04-17 12:13:58 +02:00
def
d4ed1310d2
Configurable rate limit for SQL queries
2017-04-13 09:33:26 +02:00
Dennis Felsing
40d3b4071d
Merge pull request #729 from Learath2/dd_pr_friendcoll
...
Strict checking for friends
2017-04-12 11:16:20 +02:00
Learath
ec1581f13a
Strict checking for friends. Fixes #539
2017-04-12 11:04:20 +02:00
Learath2
568b5e5603
Pointers should be set to NULL
2017-04-12 01:20:39 +02:00
Learath
389b432758
Take a blind stab at #718
2017-04-11 21:47:27 +02:00
Learath
d29f2306ef
Tees must be teamed up before loading
2017-04-11 21:18:26 +02:00
Henritees
33cdfee821
Handle multi-line motd correctly in the console
...
Rewrote MOTD processing to handle both kinds of newlines correctly
and added an option to disable printing it to the console.
Closes #711 .
2017-04-03 12:29:31 +02:00
east
bffb989a11
add generated rcon password as default auth key
2017-03-29 14:56:44 +02:00
heinrich5991
1d81d56850
Introduce new, vanilla-compatible server info protocol
...
This means that we have a reliable and fast way to query for extended info,
while also not wasting network bandwidth.
The protocol is designed to be extensible, there's four bytes space for
encoding more request types (currently zeroed), and there's one string in each
response packet and one string for each player available (currently the empty
string).
The protocol itself has no problems with more than 64 players, although the
current client implementation will drop the player info after the 64th player,
because it uses a static array for storage.
Also fixes #130 , the player list is just sorted each time new player info
arrives.
2017-03-29 12:56:13 +02:00
necropotame
b8e4e5beea
Fix style in several places
2017-03-22 19:45:14 +01:00
heinrich5991
f5446ca3b0
Fix unsigned/signed comparison warning when interacting with freetype
2017-03-19 17:19:59 +01:00
heinrich5991
d91cca728d
Partially revert warning-fixing, it caused warnings on other systems
2017-03-12 16:47:37 +01:00
Ryozuki
84726547aa
Fix warning also for server.cpp, and fixed client.cpp
2017-03-12 14:49:18 +01:00
Ryozuki
79f5b26cf7
Moved _WIN32_WINNT to the top instead
2017-03-12 14:45:57 +01:00
Ryozuki
1614e59e8f
Fix some warnings
2017-03-12 12:12:39 +01:00
Dennis Felsing
1d67e29c74
Merge pull request #663 from heinrich5991/pr_ddnet_fix_default_pws
...
Fix handling of default passwords
2017-03-10 12:45:01 +01:00
heinrich5991
87596c30ac
Fix handling of default passwords
...
It was horribly broken before. :) Only the first password set via
`sv_rcon*_password` worked, and that only due to a bug in `AddHashKey`
-- `AddHashKey` incorrectly assumed that only key slots greater than 0
are valid, but 0 is valid too.
Fix default passwords on password removal, fix no admin password being
generated if you only had `sv_rcon_mod_password` or
`sv_rcon_helper_password` set. Add an assert that would have caught our
mistake.
2017-03-10 12:33:34 +01:00
heinrich5991
f2b2eb8639
Allow easier login for passwords with spaces
2017-03-10 12:30:41 +01:00
heinrich5991
72f2eb32ee
Fix wording in scripts/hash_passwords.py, fix brace in other file
2017-03-09 13:37:54 +01:00
Dennis Felsing
761c3c9be1
Merge pull request #646 from heinrich5991/pr_ddnet_brace_style
...
Fix the brace style in some places
2017-03-09 13:31:21 +01:00
heinrich5991
d98abf35db
Rename WEBSOCKETS
to CONF_WEBSOCKETS
2017-03-07 13:03:37 +01:00
heinrich5991
5b63a33095
Merge pull request #639 from Learath2/dd_pr_rconauth2
...
New auth system for rcon.
2017-03-06 20:57:42 +01:00
heinrich5991
6302e4d7e0
Fix some style issues and a > to >=
2017-03-06 20:11:23 +01:00
heinrich5991
c1e826e853
Fix key slot indices after removing a key
2017-03-06 18:02:19 +01:00
Learath2
8c79f28802
Fix a crash on malformed input
2017-03-06 15:18:52 +01:00
Learath2
b49c13e617
KeySlots are 0 indexed...
2017-03-06 14:14:45 +01:00
Learath2
71fb030443
Fix a comparison. Hate backwards compatibility...
2017-03-06 13:46:02 +01:00
Learath2
4d0f036b4f
Forgot to negate the comparisons
2017-03-06 13:22:17 +01:00
Learath2
9800360340
Check the return from str_hex_decode. Remove comment
2017-03-06 12:59:47 +01:00
Learath2
c5a12e3eba
Fix the status command for logged out people
2017-03-06 12:35:37 +01:00
Learath2
6f1f348715
Fix c&p fail
2017-03-06 12:35:09 +01:00
Learath2
4101acd747
Add rcon_login
2017-03-06 10:31:05 +01:00
Learath2
95bb9894a7
Get rid of pw generation in CServer, Err out in CAuthManager instead
2017-03-04 23:16:02 +03:00
Learath2
3a22a4b62d
Fix some issues
2017-03-04 23:06:22 +03:00
heinrich5991
ba5af42b1f
Fix the brace style in some places
2017-03-04 15:43:49 +01:00
heinrich5991
a13cdc25b2
Merge pull request #632 from Learath2/dd_pr_friend
...
Put hearts before friends names. Closes #606
2017-03-04 15:37:24 +01:00
Learath2
cf9f3e3d38
Forgot one block
2017-03-04 10:58:02 +03:00
Learath2
d475eddb88
Add key ident to status command
2017-03-02 19:02:57 +03:00
Learath2
b7cbaedea0
New auth system for rcon
2017-03-02 18:16:29 +03:00
Dennis Felsing
4c1053c6c4
Merge pull request #635 from heinrich5991/pr_dummy_input_demo_filter
...
Refactor dummy input and demo filtering
2017-03-01 07:59:24 +01:00
heinrich5991
b841fdc203
Bump version requirement for warmup race timer
2017-03-01 00:08:56 +01:00