Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2022-03-20 00:00:00Z and 2022-03-21 00:00:00Z
Avatar
3d47274 Add tutorial joining code and tutorial map - def- bdafc37 Merge #4747 - bors[bot]
heartw 3
Avatar
can someone send me the documentation of the source
Avatar
This article aims to introduce you into DDNet development, since it's an open-source game, it relies on random people kind enough to contribute to it on their free time.
Avatar
chillerdragon BOT 2022-03-20 10:17:31Z
who needs docs when you got source code :brain:
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 10:19:41Z
Btw i latley realized that one can have multiple build directorys :D I mean i always kinda knew but it never came to my mind when i needed it. I even used to copy the whole repo for a short time haha
10:20
So nice to have release for playing a debug for development and a headless one for testing and also a clang-tidy one for testing the CI
10:20
might be even better than bam
Avatar
yeah, that's the proper cmake way, having multiple build directories
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 10:21:09Z
kinda cool
10:22
is there any chance we will ever get str_endswith_nocase? :(
Avatar
if you need it add it yourself?
10:23
actally all the usages of str_endswith look kind of wrong
10:23
like they should be endswith_nocase
10:23
I'll make a PR
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 10:24:57Z
Implement a string compare supporting multibyte my self? nah i dont think that would happen or get merged xd
10:25
Gets rid of the more complex str_comp_nocase_num usage Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related configuration...
10:26
got even merged into upstream -.-
10:26
not saying ddnet has lower standards but is usually merge happier
Avatar
Next time make it clear faster that you are talking about an existing PR: D
10:31
I mised that one, so just started reimplementing it 😄
Avatar

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--u...
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 10:44:24Z
Yea i noticed thats why i posted the link
10:44
didnt mean to be pushy but i feelt like this pr would stale forever
Avatar
just ping in the pr after a week or so
10:45
or answer the remaining questions, which was the reason why I didn't look into it
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 10:45:35Z
well heinrich said its broken and i got no solution for it :(
Avatar
none of our str_ (without utf8) handle unicode well
10:47
but you could implement a utf8 version by converting to unicode codepoints
10:48
if you have no solution, still write an answer why it doesn't apply or that it should still be merged, but you'll open a new issue etc
10:49
as long as there are unanswered comments the PR is on you basically
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 10:51:04Z
yea ik
Avatar
99b0eb2 Add str_startswith_nocase and str_endswith_nocase - ChillerDragon f49afca Merge #4818 - bors[bot]
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 10:51:48Z
I think heinrich has a valid point i didnt want to write "its broken but just merge it pls" on github xd
10:52
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/chat.cpp at f7e0d4d5c687281c9d68fef16cb8b3ffb1e0f00a · ddnet/ddnet
10:52
casting a const char * to a CLine *
10:53
does the server just send the struct fields as a string? :D
10:53
only if its a new enough ddnet client whos receiving it i guess
Avatar
Where is the cast?
10:54
auto &&FChatMsgCheckAndPrint = [this](CLine *pLine) {...} this generates a lambda function and stores it in FChatMsgCheckAndPrint (The F stands for function), the function takes a pLine parameter
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 10:56:06Z
ah right i read it wrong
10:56
still getting used to lambdas
10:56
i just saw pLine a few lines above and thought its the same
Avatar
I'll try to enable -Wshadow
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 10:59:10Z
Ou yea that sounds helpful
Avatar
18d85fd Update icons font - Jupeyy 343a529 Replace browse icons with icon font - Jupeyy daea2fe Switch to Font-Awesome - Jupeyy 12b7ff3 Merge #4842 - bors[bot]
Avatar
I think I found an actual bug by going through the shadowing: https://github.com/ddnet/ddnet/blob/master/src/engine/client/graphics_threaded.cpp#L1124 CC @Jupstar ✪ by not assigning to the old Data we are not using the alloc result after kicked command buffer at all, so basically no retry
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/graphics_threaded.cpp at master · ddnet/ddnet
Avatar
Avatar
deen
I think I found an actual bug by going through the shadowing: https://github.com/ddnet/ddnet/blob/master/src/engine/client/graphics_threaded.cpp#L1124 CC @Jupstar ✪ by not assigning to the old Data we are not using the alloc result after kicked command buffer at all, so basically no retry
yeah thats a bug, would be nice to enable wshadow
11:27
our codebase is full of it
Avatar
I'm doing so right now, lots of stuff to fix
Avatar
i found another bug a while ago when i enabled it
11:28
or at least a code path that makes no sense
11:29
but never finished it
Avatar
ah, I'm only doing Wshadow=local
11:29
that's easier
11:29
about 50% through
11:31
TeamMask is used before, so i dunno if this is unintendent
11:31
also dunno what the code acutually does 😄
Avatar
that's prediction code, it's always a weird copy of server code
Avatar
the branch always results in -1
11:31
but yeah
Avatar
on the server side this looks more reasonable
Avatar
ok
Avatar
I'll remove the teammask there
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 11:55:39Z
c++ is a bitsh :D
11:56
i was using the same source and destination for str_truncate() and it worked fine forever until 8 days ago i merged with upstream and it broke :D
Avatar
Warn when a local variable shadows another local variable or parameter.
Found one actual bug in graphics_threaded.cpp Should reduce confusion in the future when reading source code

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bound...
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 12:47:27Z
@Ravie you still on https://github.com/ddnet/ddnet/issues/4816 or should i look into it?
Helptext says "how many seconds to mute, if player triggers mute on spam. 0 = off" But sv_spam_mute_duration 0 still causes *** 'client2' has been muted for 0 seco...
Avatar
since you can reproduce it you can try to fix it
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 12:56:54Z
oke
Avatar
If you want, you can also build some test scenarios with headless client, then we can run them in CI as a basic sanity check
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 12:58:15Z
wowo new icons!
12:58
@Ravie its on my todo since forever .. but ya know procrastination
Avatar

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undef...
Avatar
[quakenet] ChillerDragon BOT 2022-03-20 13:19:59Z
Lmao all the backtraces refrencing the first few issues https://github.com/ddnet/ddnet/issues/1
Probably difficult since spectators don't have a character?
kek 2
13:31
b343022 Do not mute if spamprotection is off (closed #4816) - ChillerDragon 1f33fc8 Merge #4846 - bors[bot]
Avatar
729cbb7 Ignore fifo files - ChillerDragon 19415d4 Merge #4819 - bors[bot]
Avatar
motivation: currently you need to enable both weapon prediction and grenade prediction for either one to work, so i changed it so that projectiles predict with "grenade prediction" and / or "weapon prediction" and lasers predict only with "weapon prediction"

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [X] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c ...
Avatar
are useless visual bugs important to fix? if so i can talk about one that i found
15:37
it's quite irrelevant but
Avatar
You can report it in #bugs !
Avatar
8134f9f Enable -Wshadow=local - def- 29571ce Also document why we don't use some other useful warnings - def- 564a59d Merge #4845 - bors[bot]
Avatar
ups wrong chat
Avatar
hi anyone can send me sqlite3 pls
19:30
i need it for a friend
Avatar
chillerdragon BOT 2022-03-20 19:40:05Z
?xd
19:40
asking for a friend doi u have sume sql?
Exported 100 message(s)