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 2023-07-02 00:00:00Z and 2023-07-03 00:00:00Z
Avatar
I knew most of these, nice to see
Avatar
This fixes a bug where ninja didn't get predicted when you fired a weapon right before picking it up and then tried to use ninja immediately afterwards

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 (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [x] Chan...
Avatar
The compile time checks thru enums were cool tho
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 (especially base/) or added coverage to integration test
  • [ ] 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-ad...
Avatar
d76c3ec M Bollermann, A Delirium - ddnet-maps
Avatar
1801c43 Update spanish.txt - n0Ketchp bd97482 Merge #6800 - bors[bot]
Avatar
8335fda Fix wrong predicted reload timer after ninja pickup - trml 793271c Merge #6799 - bors[bot]
Avatar
Avatar
Jupstar ✪
i wanted to know if u could implement the same logic pin does
you can implement the same logic as Pin does, however Pin doesn't actually implement any logic at all
09:19
it's the Unpin trait doing the work
09:19
but you could also re-implement the Unpin trait in user code
09:19
AFAICT
Avatar
ChillerDragon BOT 2023-07-02 09:35:01Z
09:35
why is that called crc?
09:35
i thought crc was more sophisticated than just adding up all the data in a unsigned int?
09:35
looks like an intentional overflow
Avatar
crc just means "cyclic redundancy check"
09:37
there are concrete crcs that are also called crc though
09:37
A cyclic redundancy check (CRC) is an error-detecting code commonly used in digital networks and storage devices to detect accidental changes to digital data. Blocks of data entering these systems get a short check value attached, based on the remainder of a polynomial division of their contents. On retrieval, the calculation is repeated and, i...
Avatar
ChillerDragon BOT 2023-07-02 09:39:44Z
i just scimmed that very wiki page
09:39
which made me think its more than just adding stuff up
09:40
they mention fancy words such as polynominal long division
09:40
The concept of the CRC as an error-detecting code gets complicated when an implementer or standards committee uses it to design a practical system. Here are some of the complications:
09:40
they even make use of the word "complicated"
Avatar
I have not understood the article well enough to know whether simply summing the contents modulo 2**32 is a CRC or not
Avatar
ChillerDragon BOT 2023-07-02 09:41:31Z
is all crc in tw so also for maps just adding up all data and then representing it as one unsigned int that might have overflown multiple times?
Avatar
no, map CRC (which is outdated, we use SHA256 these days) is a variant of the CRC that zlib implements
Avatar
ChillerDragon BOT 2023-07-02 09:42:32Z
so tw uses a diff crc for snaps than for maps o.O
Avatar
yep
Avatar
ChillerDragon BOT 2023-07-02 09:42:53Z
cant complain
09:42
i really like this crc algo
09:42
it makes sense to me
09:43
helps me debug
09:43
is a overflow undefined behavior in c++?
Avatar
69ba84e CSound: Initialize all members (fixes #6795) - def- c955905 Merge #6796 - bors[bot]
Avatar
Avatar
ChillerDragon
is a overflow undefined behavior in c++?
For signed integer types yes, for unsigned types no
Avatar
Avatar
ChillerDragon
is a overflow undefined behavior in c++?
not of unsigned integers
09:44
yea just came to the same conclusion
09:45
interesting
09:45
i always thought all kinds of overflow are bad
09:45
this is epic
09:45
thats the most simple hashing code i ever saw
Avatar
all overflows can be bad if not intended
09:54
also newer c++ versions make it not undefined anymore
Avatar
integer overflow? 😮
Avatar
as far as i remember yes
09:54
let me find
09:55
"Out-of-range cast to int is legal starting from C++20" mh i see only when casting
09:56
so not for calculations
09:56
i guess they dont know what they want
09:57
i wonder what arch blocks them to make it defined behavior, or unexpected result or smth the word undefined behavior is always so unspecified
09:58
left shifting is now defined
Avatar
I think they just want int i = 0; i <= limit + 1; i++ to be equivalent to int i = 0; i < limit; i++
10:00
and a + b > a + c equivalent to b > c
10:00
and so on
Avatar
chillerdragon BOT 2023-07-02 10:04:37Z
main@debian:~/Desktop/git/DDNetPP/build$ ./DDNetPP ./DDNetPP: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory main@debian:~/Desktop/git/DDNetPP/build$ ldd DDNetPP | grep libcrypto.so.3 libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f9531e00000) main@debian:~/Desktop/git/DDNetPP/build$ ls -lah /lib/x86_64-linux-gnu/libcrypto.so.3 -rw-r--r-- 1 root root 4.5M May 30 18:12 /lib/x86_64-linux-gnu/libcrypto.so.3wot?
Avatar
did u try a clean build dir
Avatar
ChillerDragon BOT 2023-07-02 10:07:35Z
yes
10:07
but even if it wasnt clean
Avatar
try strace
Avatar
ChillerDragon BOT 2023-07-02 10:07:49Z
the error makes no sense does it?
10:07
alr
Avatar
ah yeah u starting an exec lel
Avatar
ChillerDragon BOT 2023-07-02 10:08:11Z
writev(2, [{iov_base="./DDNetPP", iov_len=9}, {iov_base=": ", iov_len=2}, {iov_base="error while loading shared libra"..., iov_len=36}, {iov_base=": ", iov_len=2}, {iov_base="libcrypto.so.3", iov_len=14}, {iov_base=": ", iov_len=2}, {iov_base="cannot open shared object file", iov_len=30}, {iov_base=": ", iov_len=2}, {iov_base="No such file or directory", iov_len=25}, {iov_base="\n", iov_len=1}],
10:08
10./DDNetPP: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory
Avatar
that's the printing of the error message
Avatar
ChillerDragon BOT 2023-07-02 10:08:43Z
ah wait
10:08
ye
10:08
i saw above the juicy part
10:09
its looking everywhere
10:09
but not at the location ldd shows
10:09
how is that possible
Avatar
apparently ldd and the dynamic linker have different search paths
Avatar
ChillerDragon BOT 2023-07-02 10:09:42Z
woah
Avatar
maybe check which dynamic linker was selected for your executable
Avatar
ChillerDragon BOT 2023-07-02 10:10:19Z
there is no fix for that in ddnet is there?
10:10
so i must have messed soemthing up in my fork
Avatar
I have not seen the problem before
Avatar
ChillerDragon BOT 2023-07-02 10:10:42Z
how ever i managed to achive that
10:11
im using gold linker
10:11
the same that works for ddnet
10:11
time to diff cmakelists i guess
10:11
also its debian 12 only issue
10:11
on archlinux it works
10:12
my laptop only issue*
10:12
on my deb12 vps it works too xd
Avatar
how did u compile the binary?
10:13
on same machine?
Avatar
ChillerDragon BOT 2023-07-02 10:13:09Z
ye
10:13
time to buy new laptop
Avatar
yeah
Avatar
ChillerDragon BOT 2023-07-02 10:13:32Z
xd
Avatar
its bcs u dont have rtx 4090
Avatar
ChillerDragon BOT 2023-07-02 10:13:48Z
are those even in laptops?
10:14
my laptop has a 2080 mobile o.O
Avatar
if not, spam nvidia
Avatar
ChillerDragon BOT 2023-07-02 10:14:22Z
dear mr nvidia, can i has pls gaming laptop thank
10:14
for better ddnet linking
10:14
omg what a side quest i just wanted to debug crc issues
Avatar
Avatar
ChillerDragon
10./DDNetPP: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory
Maybe it's a symlink to a non-existing file?
Avatar
ChillerDragon BOT 2023-07-02 10:16:22Z
no
10:16
the ls -lah would have catched that
Avatar
No execute permissions for your user?
Avatar
ChillerDragon BOT 2023-07-02 10:16:36Z
o
10:17
OMG
10:17
deen u so smart
10:17
yes indeed
Avatar
I didn't even see the ls -lha output 😄
10:17
Should've scrolled up a bit, then would've been obvious
Avatar
ChillerDragon BOT 2023-07-02 10:17:24Z
nah its my apparmor profile
10:17
that broke on debian 12 update xd
10:17
i forgot it still active
Avatar
ChillerDragon BOT 2023-07-02 10:17:40Z
i was testing with my fork
10:17
good idea deen!
Avatar
nice error msg from linux xd
Avatar
ChillerDragon BOT 2023-07-02 10:17:58Z
yes
10:18
sudo dmesg
10:18
bae
Avatar
That makes sense now, you don't need +x
Avatar
ChillerDragon BOT 2023-07-02 10:18:28Z
[ 2293.564473] audit: type=1400 audit(1688292479.405:126): apparmor="DENIED" operation="open" profile="ddpp" name="/usr/lib/x86_64-linux-gnu/libcrypto.so.3" pid=30229 comm="DDNetPP" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Avatar
Well, apparmor is probably implemented in a hacky way that uses the existing interfaces, and then it looks to the linker like the file doesn't exist
Avatar
ChillerDragon BOT 2023-07-02 10:18:52Z
apparmor pog
10:18
i just gotta not forget i have it on
10:24
omg jopsti
10:24
new ddnet emotes
10:24
slow af
10:25
unplayable
Avatar
on kog?
Avatar
ChillerDragon BOT 2023-07-02 10:25:44Z
on ddnet
10:25
i just merged my fork w master
Avatar
they are slow again?
Avatar
ChillerDragon BOT 2023-07-02 10:25:58Z
or i broke merge idk
Avatar
ah
10:26
i renamed vars. they behave differently now
10:26
sry
10:26
didnt see a better way
Avatar
ChillerDragon BOT 2023-07-02 10:26:23Z
wait so is ddnet supposed to be fast?
Avatar
ddnet is fast, but u can do whatever u want
10:26
i dunno what ddnets current config is
Avatar
ChillerDragon BOT 2023-07-02 10:26:59Z
omg how did i manage to get it slow then xd
Avatar
as said
10:27
var is renamed
Avatar
ChillerDragon BOT 2023-07-02 10:27:27Z
delay var?
10:27
in config
Avatar
sv_emoticon_ms_delay
Avatar
ChillerDragon BOT 2023-07-02 10:27:54Z
sv_emoticon_ms_delay
10:27
bru
Avatar
sv_emoticon_ms_delay 20 is basically per tick
Avatar
ChillerDragon BOT 2023-07-02 10:28:10Z
no deprecation warning
Avatar
it was in seconds before xd
10:28
that sucked
Avatar
ChillerDragon BOT 2023-07-02 10:28:18Z
changelog
10:28
breaking version
Avatar
xd
Avatar
ChillerDragon BOT 2023-07-02 10:28:34Z
you broke the internet
Avatar
i mean slow emotes are a deal breaker
10:28
not gonna deny
Avatar
ChillerDragon BOT 2023-07-02 10:29:13Z
renaming config without deprecation warnings or major changelog announcement
10:29
is rude
Avatar
its a good way to find out if the downstream maintainers are still active
10:30
😉
Avatar
ChillerDragon BOT 2023-07-02 10:30:07Z
trol
Avatar
break compat
10:30
without warnings
Avatar
ChillerDragon BOT 2023-07-02 10:30:35Z
ima break ur spine
10:30
without warnings
Avatar
ChillerDragon BOT 2023-07-02 10:33:29Z
over-head emoticon
10:33
xd
10:33
lyrical genius
10:38
jopsti u had those in school?
10:38
Avatar
Tageslichtprojektoren?
10:41
or whatever they were called xd
Avatar
ChillerDragon BOT 2023-07-02 10:42:06Z
OVERHEAD PROJEKTOR
10:42
we called em
Avatar
i remember in a latin class the teacher once destroyed one when moving the board down hitting it and then falling down on the ground xD
Avatar
ChillerDragon BOT 2023-07-02 10:42:19Z
lol
Avatar
never again where all students awake so much
10:42
true, overhead projektor
Avatar
ChillerDragon BOT 2023-07-02 10:42:56Z
ye latin is low enegery
10:43
overhead emoticons
Avatar
Both are regressions in 17.1 and should be added to the release.

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 (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or v...
Avatar
pls dont tag inside a commit chiller. i get notified every time u change the commit or merge it or whatever huge troll
Avatar
ChillerDragon BOT 2023-07-02 10:54:05Z
i know
10:54
u break api
10:54
u suffer
Avatar
ChillerDragon BOT 2023-07-02 10:55:02Z
but dw pushed straight to master
10:55
wont rebase it
10:55
i get hughe warning message now evertime i start a server
10:56
Avatar
deserved
Avatar
ChillerDragon BOT 2023-07-02 10:57:03Z
-.-
10:57
toxic developers
Avatar
warning: bin/backup is measured in gigabytes
10:58
wtf is that warning xD
Avatar
ChillerDragon BOT 2023-07-02 10:58:35Z
hehe
10:58
leak
10:59
10:59
ye i should clean that
Avatar
xd
Avatar
ChillerDragon BOT 2023-07-02 10:59:32Z
i keep server binaries on update
Avatar
in case u want to downgrade 2 years?
Avatar
ChillerDragon BOT 2023-07-02 11:00:04Z
yes
Avatar
clever
Avatar
ChillerDragon BOT 2023-07-02 11:00:09Z
never happend
11:00
mostly to debug crashes
11:00
to have the exact binary that crashed
11:01
or revert to last working version when there is a bug that crashes server on launch
Avatar
ChillerDragon BOT 2023-07-02 11:16:47Z
382
Avatar
(Chiller got the edit to my old pin)
Avatar
ChillerDragon BOT 2023-07-02 11:18:12Z
a lol
11:18
Used master branch - commit 02/06/2022 at 17:00 (Merge #5311) Thread 4 "DDNet-Server" received signal SIGPIPE, Broken pipe. [Switching to Thread 0x7ffff4b9a700 (LWP 1530826)] __libc_write...
11:18
this should be closed
11:18
@faulty
Avatar
@Faulty
Avatar
ChillerDragon BOT 2023-07-02 11:20:24Z
I am interested if there are some users of eCON out there. Is it widely used?
11:20
also this is missing lables
11:20
thats not a relevant issue
Avatar
yeah, I was looking for that
11:21
I added a label "question" for issues like this
Avatar
@Jupstar ✪ i think they advanced baldurs gate release
12:44
GOAT
12:44
We will be releasing the game in order of platform readiness. Baldur’s Gate 3 will first come to PC on August 3rd, before launching on PlayStation 5 a few weeks later on September 6th.
12:45
dude
12:45
this game will be a true GOTY
12:45
More on those new heights: Baldur’s Gate 3 has more cinematic dialogue than three times all three Lord of the Rings novels combined. It has 174 hours of cinematics, making it more than twice the length of every season of Game of Thrones combined.
Avatar
yeah
12:47
even the EA is insane xd
12:47
sadly im on holidays then
14:34
@Learath2
14:34
gigachad
Avatar
what does this flag in variables say? CFGFLAG_INSENSITIVE
Avatar
It determines which client variables are factored into the client checksum
17:53
For example the password client config is not used for checksum of course
Avatar
so i should use it when i introduce a new client variable? justatest (edited)
Avatar
Depends on what it's used for
Avatar
Avatar
Vy0x2
what does this flag in variables say? CFGFLAG_INSENSITIVE
i dont know whats wrong with me but i just read the flag in your message as if you were screaming in my head justatest
justatest 1
Avatar
Seems like all gameplay and tee related variables are used for the checksum
✅ 1
Avatar
ah i got it, "insensitive" says its non sensitive data.. I thought it has something todo with case sensitive (edited)
Avatar
b252e74 Fix height of layer popup when automapper properties shown - Robyt3 e2ef536 Fix incorrect popup being closed when gametile popup used - Robyt3 ac6ee58 Merge #6802 - bors[bot]
Avatar
how do i update ddnet client to newest version? im not on steam (arch linux + downloaded client) and whenever i do yay it says everything is updated tho
Avatar
Avatar
Steinchen
how do i update ddnet client to newest version? im not on steam (arch linux + downloaded client) and whenever i do yay it says everything is updated tho
why dont u install from AUR?
Avatar
Avatar
Jupstar ✪
why dont u install from AUR?
thats pretty much aur, right?
19:53
i did yay ddnet and chose 1 now, lets see..
Avatar
Avatar
Steinchen
thats pretty much aur, right?
mh ok thought u meant "downloaded client" = downloaded manually
Avatar
Avatar
Steinchen
thats pretty much aur, right?
19:54
did u use ddnet-git
19:55
and just ddnet
Avatar
well seems like the packet is simply not updated yet
19:55
u can ping the maintainer rafaelff
19:55
he is here
Avatar
Avatar
Steinchen
how do i update ddnet client to newest version? im not on steam (arch linux + downloaded client) and whenever i do yay it says everything is updated tho
this depends on whoever updates the aur
19:59
i used to do it
19:59
but i upgraded to gentoo
19:59
so im now maintaining the gentoo ebuild
20:00
a good way to update ur ddnet is to upgrade to gentoo
20:00
gigachad
Avatar
i downloaded this one and its on 17.03 for now
Avatar
idk who even maintains it
Avatar
hey where is this litte sht drawn?
21:47
ah nvm i found it its in hud.cpp (edited)
Avatar
For long editor texts (group name, layer name, image name, sound name, file names, tooltips) make use of the font scaling and ellipsis functionality implemented in DoLabel instead of implementing it separately in the editor. Screenshots:
  • File dialog:
    • Before:
!filedialog old
  • After:
!filedialog new ...
Avatar
Avatar
Teero
hey where is this litte sht drawn?
what r u gonna do with this? :o
Avatar
cool animations :)
🔥 2
Avatar
0a73610 Add ellipsis flag to DoLabel, support stop-at-end with max width - Robyt3 2b64a66 Improve font scaling of long editor texts, improve ellipsis - Robyt3 35f8475 Merge #6803 - bors[bot]
Exported 281 message(s)