Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/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-12-29 00:00:00Z and 2023-12-30 00:00:00Z
Avatar
Avatar
Fudgy
does ddnet server send a chat message to 0.7 clients when someone finishes a race? I don't seem to receive anything
0.7 has special netmessages for race which are being used
00:07
They send the text clientside
Avatar
hmm for some reason I think I dont receive any type of message when someone finishes, I get the start message tho
00:08
I will keep looking..
00:15
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
Avatar
Ok I understand the problem. If I'm on 0.7 client and someone with 0.7 client finishes, it works. But if I'm 0.7 and the one finishing is not on 0.7, I have this message in console instead : [client]: dropped weird message 'invalid' (0), failed on '(type out of range)'
Avatar
@Learath2
Avatar
quick question, what is the formula for converting ddnet score points into race timings?
01:30
score + 9999 = milliseconds?
01:30
something along the lines?
Avatar
hmk, it's just seconds ._.
Avatar
ChillerDragon BOT 2023-12-29 06:39:16Z
@Ewan thanks for teaching me english i never get a vs an. Also why do you talk about js not bout error? is the "a" not pointing to error instead of js in the stence "a javascript error"
06:41
@Fudgy are you working on something or just playing? On official ddnet servers? with latest teeworlds client?
Avatar
Im playing with a 0.7 client from like 3 years ago. It's annoying to not see finish times when playing race with others
poggers2 2
Avatar
Since other players are not using 0.7, it's sending the 0.6 net message and my 0.7 client cant parse it or smth
Avatar
Avatar
Fudgy
Ok I understand the problem. If I'm on 0.7 client and someone with 0.7 client finishes, it works. But if I'm 0.7 and the one finishing is not on 0.7, I have this message in console instead : [client]: dropped weird message 'invalid' (0), failed on '(type out of range)'
Yeah, that's a bug. I'll try to fix it.
heartw 1
Avatar
ChillerDragon BOT 2023-12-29 07:10:22Z
lmao ofc furo is fixing it xd
07:11
@furo thanks for writing it. I mean i shouldve guessed it by now that youll fix it xd. But i almost started looking into it xd
Avatar
Avatar
ChillerDragon
@Ewan thanks for teaching me english i never get a vs an. Also why do you talk about js not bout error? is the "a" not pointing to error instead of js in the stence "a javascript error"
because it only has to do with the word immediately after it
07:16
"a stack overflow" "an overflow"
07:16
something to do with having to have a *consonent sound to make the words flow smoother (edited)
07:16
because something like "a error" creates an awkward transition from vowel to vowel
07:17
uhh errurr
Avatar
Fixes 0.7 players not being able to receive finishes done by players on 0.6 (and vice-versa).

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...
Avatar
chillerdragon BOT 2023-12-29 07:41:38Z
O thanks
Replying to @Ewan because it only has to do with the word immediately after it
Avatar
1a94aa6 Use 0.7 translation layer for Sv_RaceFinish netmessage. - furo321 0f1171a Merge pull request #7741 from furo321/translate-racefinish - def-
Avatar
რილია 2023-12-29 09:27:14Z
i can't see what is CNetObj_CharacterCore and it's members
09:28
i just know the core read and write with it
Avatar
chillerdragon BOT 2023-12-29 09:52:43Z
Because the code is generated with python. That confuses most IDEs
09:53
You can open the src folder in your build folder to see its defintion
Replying to @რილია i can't see what is CNetObj_CharacterCore and it's members
Avatar
Avatar
chillerdragon
Because the code is generated with python. That confuses most IDEs
რილია 2023-12-29 10:09:08Z
thank you that explains
Avatar
@Jupstar ✪
10:27
It's not called out in the release notes announcement, but rustc will now automatically enable cross-crate inlining for small functions. This leads to both compilation time wins and runtime performance improvements. They are small in this initial implementation, but I expect it to be tuned over time.
Avatar
Avatar
Ryozuki
It's not called out in the release notes announcement, but rustc will now automatically enable cross-crate inlining for small functions. This leads to both compilation time wins and runtime performance improvements. They are small in this initial implementation, but I expect it to be tuned over time.
nice
10:28
2024 will be the year of good rust additions
Avatar
"cargo new" inside a workspace now automatically adds the new crate to the workspace members!
Avatar
Replace linear search for free sample index with free list. This brings sound sample index allocation down to constant complexity independent of the number of allocated sounds. On average the time to allocate sound samples is reduced by around 75% (843µs down to 223µs). For perspective, the time to load all default sounds on client launch is reduced by around 15ms (although this does not significantly affect launch time due to threaded loading). ![sound-sample-alloc-benchmark](https://gith...
Avatar
is https://github.com/ddnet/ddnet/pull/6914 fully implemented? because i don't see a redirect rcon command anywhere
This is a preperation for #6754 (redirect players on map vote) And an implementation of #5662 (redirect players) Reopen of #6757 Checklist Tested the change ingame Provided screenshots if it is ...
Avatar
Avatar
toneey
is https://github.com/ddnet/ddnet/pull/6914 fully implemented? because i don't see a redirect rcon command anywhere
I don't think there's a command for it, you're meant to manually send the NETMSG_REDIRECT net message in your code, but maybe one should be added?
Avatar
ChillerDragon BOT 2023-12-29 12:44:45Z
@toneey yes its fully implemented and working. Ofc not all clients support it yet. You are meant to use this api void CServer::RedirectClient(int ClientID, int Port, bool Verbose)
12:45
@Bejavioue there is no rcon command and heinrich was against adding one so there probably wont be any any time soon
12:45
No, I think that options in the official DDNet server are also important. If people want to use this for moderation, they'd have to patch the source by themselves, which can be enough friction that people might not do it.
Avatar
ChillerDragon BOT 2023-12-29 12:59:09Z
@furo when add colored broadcast hehe
12:59
its on my todo so it must also be on urs
13:49
7a84a74 Add CSample::TotalTime function - Robyt3 87191a3 Use sound lock when setting/getting current time of sample - Robyt3 661339c Optimize allocation of sound sample indices - Robyt3 5873b42 Merge pull request #7742 from Robyt3/Engine-Sound-Alloc-Improvement - def-
Avatar
Avatar
GitHub
Click to see attachment 🖼️
@Jupstar ✪ another unsound MT access rust would prevent
Avatar
int a = 5; if(a != -1 && (int b = 2)) { } why does this throw a syntax error?
Avatar
why are you doing this
14:13
xd
Avatar
making things better
14:14
i want "b" only to be in the scope of the if statement and also check if the variable i assign to b is not 0
Avatar
Avatar
Ryozuki
@Jupstar ✪ another unsound MT access rust would prevent
too bad that you cannot code it in the next 48hours :/
Avatar
well it works like if(int b = 2)
14:15
but not with parentheses around it
Avatar
Avatar
Teero
i want "b" only to be in the scope of the if statement and also check if the variable i assign to b is not 0
why not simply do a brace around it { int b = 2; if ... }
14:16
then the braces are your scope
Avatar
int a = 5; if (int b = 2; a != -1 && b != 0) { }
Avatar
Avatar
Nouaa
int a = 5; if (int b = 2; a != -1 && b != 0) { }
the 2 in my example might be a function call that i dont want to do twice
Avatar
BlaiZephyr | meloƞ 2023-12-29 14:16:52Z
compiler expects an expression, not a declaration ig?
Avatar
Avatar
Jupstar ✪
why not simply do a brace around it { int b = 2; if ... }
kinda ugly but it was my first guess too
Avatar
declarations in if's are allowed since cpp17
Avatar
Avatar
BlaiZephyr | meloƞ
compiler expects an expression, not a declaration ig?
if(int a = 4) is fine
Avatar
Avatar
Nouaa
int a = 5; if (int b = 2; a != -1 && b != 0) { }
ah wait i overlooked it
14:18
mybad
Avatar
well honestly. you really never need to have a declaration inside a if i bet there is a better way
Avatar
Avatar
Nouaa
int a = 5; if (int b = 2; a != -1 && b != 0) { }
works ty
Avatar
in worst case accept a second if statement
14:18
shit code anyways
Avatar
BlaiZephyr | meloƞ 2023-12-29 14:19:00Z
owo
Avatar
Avatar
BlaiZephyr | meloƞ
owo
see, im big dev
14:21
should get that role at some point
justatest 1
14:26
owo
Avatar
Avatar
Teero
the 2 in my example might be a function call that i dont want to do twice
BlaiZephyr | meloƞ 2023-12-29 14:27:43Z
couldnt you use structured bindings for that use case? https://en.cppreference.com/w/cpp/language/structured_binding
Avatar
cpp hard
Avatar
BlaiZephyr | meloƞ 2023-12-29 14:31:10Z
int a = 5; if (auto [b] = fooBar(); a != -1 && b != 0) { } to assign value to b and then check if b != 0) or smth
Avatar
Avatar
BlaiZephyr | meloƞ
int a = 5; if (auto [b] = fooBar(); a != -1 && b != 0) { } to assign value to b and then check if b != 0) or smth
thats what nouaaa said earlier xd
Avatar
Avatar
Nouaa
int a = 5; if (int b = 2; a != -1 && b != 0) { }
.
Avatar
ChillerDragon BOT 2023-12-29 14:35:50Z
@Ryozuki now that you llvm and rust core maintainer you are basically professional language designer right? Any chance you get some fixed into the german spec for me?
14:36
for example the german number system is fucked some drunk lang designer messed up ordering of double digit numbers
14:36
s/fixed/fixes/
Avatar
Avatar
Teero
.
BlaiZephyr | meloƞ 2023-12-29 14:37:15Z
structured bindings allow you to assign complex types to b, while the latter only allows simple types, but yeah, they basically do the same 😛
Avatar
wdym simple types
14:39
well it works with CGameContext
14:39
is that a simple type?
Avatar
BlaiZephyr | meloƞ 2023-12-29 14:41:50Z
simple: int a = 5; float b = 3.14; char c = 'A'; complex: int arr[] = {1, 2, 3};
14:43
classes are actually considered complex types, because they can hold data structures with multiple values, i dun fckn know >_<
15:05
[ddnet/ddnet-web] New branch created: pr-funding-2024
15:09
Avatar
რილია 2023-12-29 15:37:01Z
brah, i just found out you guys remove the m_hookTick in Core upon character getting endless hook, i thought the problem was my code for 1 hour justatest
Avatar
Avatar
BlaiZephyr | meloƞ
simple: int a = 5; float b = 3.14; char c = 'A'; complex: int arr[] = {1, 2, 3};
რილია 2023-12-29 15:53:32Z
this makes cpp programmers cry
Avatar
Avatar
რილია
brah, i just found out you guys remove the m_hookTick in Core upon character getting endless hook, i thought the problem was my code for 1 hour justatest
რილია 2023-12-29 16:07:12Z
don't fix it tho, i wanna make hook upgrading system with it feelsamazingman
16:07
it works fine with prediction 🙂
Avatar
@Jupstar ✪ i broke my promise
16:23
i coded in rust
16:27
i got a minimalistic game idea
16:27
time to try again with bevy
Avatar
Avatar
Ryozuki
@Jupstar ✪ i broke my promise
rust makes you weak
Avatar
Avatar
Ryozuki
i coded in rust
Did you talk to meloƞ? How did the therapy session go?
Avatar
Avatar
BlaiZephyr | meloƞ
if you need someone to talk - im always here for you 😦
(I'm refering to this btw kek )
Avatar
Avatar
Mr.Gh0s7
Did you talk to meloƞ? How did the therapy session go?
BlaiZephyr | meloƞ 2023-12-29 16:44:25Z
kek
16:45
Ryo if rust keeps you hostage, write unsafe code twice and we'll help you!
Avatar
ChillerDragon BOT 2023-12-29 18:19:58Z
@BlaiZephyr | meloƞ xd
Avatar
რილია 2023-12-29 19:00:39Z
hum
Avatar
ChillerDragon BOT 2023-12-29 19:02:04Z
ger10 doing some extra shenangians today?
19:02
i cant connect .-.
19:03
Avatar
ChillerDragon BOT 2023-12-29 19:08:36Z
did you update something?
19:08
ah nice it works now
19:09
wat did u do
19:09
oh holy shit or does http://ger10.ddnet.org/ not work?
19:09
somehow neither my browser nor the webserver upgrades me to https
19:09
it still says verified but does not seem to work
19:11
@deen if you did not fix something i assume the http version does not work. Maybe you could setup a redirect c:
Avatar
@Davide ^
Avatar
ChillerDragon BOT 2023-12-29 19:16:41Z
deen arent u hosting the web?
Avatar
yes, but not the way the whitelist works
Avatar
ChillerDragon BOT 2023-12-29 19:18:41Z
then you can fix it
Avatar
Avatar
ChillerDragon
oh holy shit or does http://ger10.ddnet.org/ not work?
Pretty weird
Avatar
ChillerDragon BOT 2023-12-29 19:18:48Z
no need to adapt the whitelist
19:18
just add a http to https redirect
19:19
sounds reasonable anyways
Avatar
Avatar
ChillerDragon
just add a http to https redirect
It should be http only as I can remember
19:19
Oh nvm, it's HTTPS too, still, even HTTP whitelists you, both works
Avatar
ChillerDragon BOT 2023-12-29 19:19:42Z
well i typed ger10.ddnet.org into my browser arrived at http and it didnt work then i clicked deens https link and i could join
19:19
maybe it was just some other bug then
Avatar
Let me check
Avatar
ChillerDragon BOT 2023-12-29 19:19:59Z
i didnt change anything
19:20
i tried like 3 servers when it didnt work
Avatar
I confirm it should work even with HTTP
Avatar
ChillerDragon BOT 2023-12-29 19:29:07Z
i am not at home. I think at home usually the http also works for me. Yea maybe it was something else.
19:29
Do you need me to test something? You can kick me and i can try http again if you are curious @Davide
Avatar
Avatar
ChillerDragon
Do you need me to test something? You can kick me and i can try http again if you are curious @Davide
Sure, send me your IP addr somewhere and I'll remove you from the verified map (edited)
Avatar
ChillerDragon BOT 2023-12-29 19:30:18Z
i can whisper u in game
19:30
securest channel
19:30
u online? xd
19:30
Done, joined
19:30
Username is Davide55
Avatar
ChillerDragon BOT 2023-12-29 19:31:07Z
go join me at zillyhuhn.com
19:31
i wanna grab ur ip too xd
Avatar
Oh, I'm in a random DDNet server
19:31
Just search for my username
Avatar
ChillerDragon BOT 2023-12-29 19:31:29Z
bliet ok
19:31
on a random ger10 ? -.
Avatar
ChillerDragon BOT 2023-12-29 19:33:28Z
ok i can confirm http works
Avatar
ChillerDragon BOT 2023-12-29 19:33:43Z
still deen i think a https redirect would be cool just for coolness sake
19:34
no idea what happend earlier tho
19:34
thanks for the quick response davide UwU
Avatar
No problems
19:35
I'll also check the UDP challenge as soon as I can
19:35
Maybe it needs a few updates
Avatar
ChillerDragon BOT 2023-12-29 19:35:38Z
i personally do not mind the http request too much since it can even be done via curl
19:35
but i guess the general public would appreciate it
Avatar
ChillerDragon BOT 2023-12-29 19:36:18Z
maybe it also doesnt work because of my hax client
Avatar
Would be good to implement an automatic curl request before the join
Avatar
Avatar
ChillerDragon
maybe it also doesnt work because of my hax client
Oh, yes can be
Avatar
ChillerDragon BOT 2023-12-29 19:36:32Z
i send some custom ddnet ex messages
19:36
identifying my client as it self to the server
Avatar
ChillerDragon BOT 2023-12-29 19:37:52Z
i think some custom client does the automatic curl within the client already
Avatar
Just tried with latest version from Steam and seems to work, pretty slowly but it works 😄
Avatar
ChillerDragon BOT 2023-12-29 19:38:01Z
ok nice
Avatar
Avatar
ChillerDragon
i think some custom client does the automatic curl within the client already
Can be
Avatar
ChillerDragon BOT 2023-12-29 19:38:19Z
if it rly is my extra msg that confuses ur prot thats totally fine
19:38
its one alt+tab and ctrl+r ger10 enter
Avatar
ChillerDragon BOT 2023-12-29 19:38:53Z
i had the curl running in a loop on my raspi for fokkos server when i was actively playing xd
Avatar
ChillerDragon BOT 2023-12-29 19:39:10Z
worked like a charm
Avatar
Sadly DDNet is super sensitive, so protections must be extremely aggressive to avoid crashes/lags (edited)
Avatar
ChillerDragon BOT 2023-12-29 19:39:48Z
seems fair
19:40
as i said i have no problem but it would be sad if new players or even old but non technical players rq on the issue :c
19:41
but i think everything is smooth and the protection does work really well
19:41
i barley play these days last time i played there were a few lags on ger10 but never longer than a few seconds
19:42
might as well have been non ddos issues idk
Avatar
I should move the DDNet GER10 VM to the new DC, it would be probably even more stable as connectivity (edited)
19:43
And even less ping (2-3ms less, nothing crazy) (edited)
19:44
Maybe we can schedule that @deen (edited)
Avatar
რილია 2023-12-29 19:44:18Z
what is the best method to give the player msg without spamming his chat ? (don't wanna use broadcast) (edited)
Avatar
Avatar
Davide
Maybe we can schedule that @deen (edited)
sure, i can spin down the servers and tell you when it‘s done?
Avatar
Avatar
deen
sure, i can spin down the servers and tell you when it‘s done?
Else I can just create you a new VM on the new DC, maybe it's faster? Depends on your install script (edited)
19:49
(Migrating a VM can require a few hours depending on the disk size)
Avatar
ChillerDragon BOT 2023-12-29 19:52:49Z
@რილია there is also the message of the day sv_motd and you can also use non important broadcast that will not overwrite important broadcasts in ddnet server code
19:53
you could also use in game stuff like projectiles in the snap for conveing information
19:53
fng even uses it for score numbers or BW for texts on kills
Avatar
Avatar
ChillerDragon
fng even uses it for score numbers or BW for texts on kills
რილია 2023-12-29 19:54:06Z
yes i seen it
Avatar
ChillerDragon BOT 2023-12-29 19:54:10Z
if you need another channel for sending text like custom popups you would have to modify the client
Avatar
რილია 2023-12-29 19:55:17Z
i seen "balance the teams" in fng, the msg shows up on screen, how about that ?
Avatar
ChillerDragon BOT 2023-12-29 19:55:32Z
there are a few of those but they are hardcodet
19:55
you can not set a custom message there
Avatar
რილია 2023-12-29 19:55:55Z
feelsbadman
Avatar
ChillerDragon BOT 2023-12-29 19:56:05Z
ye its not like in minecraft
19:56
its insane what custom ui a vanilla minecraft client can display
Avatar
Avatar
Davide
Else I can just create you a new VM on the new DC, maybe it's faster? Depends on your install script (edited)
yes, that‘s faster. then we can shut down the old after a few hours
Avatar
ger11 incoming!
20:44
poggers2
20:44
road to 100
Avatar
i read it as binary ger10 = ger2
20:45
😏
Avatar
Avatar
deen
yes, that‘s faster. then we can shut down the old after a few hours
Yes
Avatar
I'm installing UE5 for the second time today
21:09
😬
21:10
The first was for linux but the performance wasn't very good. Now it's windows time pepeW
Avatar
Avatar
Mr.Gh0s7
I'm installing UE5 for the second time today
teeworlds ray tracing edition? 😮
Avatar
im using bevy
21:11
would a teeish vampire survivors be fun?
21:11
xd
Avatar
i dunno, probably not as much xd
21:11
maybe some tower defense game
21:12
the nade shooter the hooker
Avatar
Avatar
Jupstar ✪
teeworlds ray tracing edition? 😮
😏
21:16
ofc
21:17
nice
Avatar
If you were to enter a tune_zone that has hammer_duration with a value above 1.25f, m_HookTick becomes negative. Which leads to 0.7 clients dropping the CNetObj_CharacterCore message, because it only accepts values between 0 and int_max. So, I just decided to clamp it at 0 if it's negative when sending it to 0.7 clients. Closes #3915 https://github.com/ddnet/ddnet/assets/141338449/2fa8986a-94aa-41ab-b65d-57110166627a

Checklist

  • [x] Tested the change ingame
  • [ ] Prov...
Avatar
is there some special url format to start the ddnet client and connect to a specific server? (edited)
22:43
(just ping me)
Avatar
Avatar
jxsl13
is there some special url format to start the ddnet client and connect to a specific server? (edited)
Avatar
Avatar
jxsl13
is there some special url format to start the ddnet client and connect to a specific server? (edited)
ddnet://host:port (edited)
Avatar
awesome, thanks
Avatar
38.54.57.140:8321 is an official DDNet server. https://ddnet.org/connect-to/?addr=38.54.57.140:8321/
Avatar
a918c61 Fix players on 0.7 becoming invisible when m_HookTick is negative. - furo321 9c8a081 Merge pull request #7743 from furo321/hookduration-07 - def-
Avatar
Avatar
BlaiZephyr | meloƞ
simple: int a = 5; float b = 3.14; char c = 'A'; complex: int arr[] = {1, 2, 3};
weird terminology
23:21
they're called primitives
Avatar
BlaiZephyr | meloƞ 2023-12-29 23:23:25Z
i called em that for ease of understanding, but you're right
Avatar
i hardly think using the wrong term will help anyone to understand
23:24
shrug
Exported 247 message(s)