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 2024-07-14 00:00 and 2024-07-15 00:00
Avatar
chillerdragon BOT 2024-07-14 00:43
pyson gangster
Replying to @Learath2 notnice, it is well known that the less braces you use the more cool you…
Avatar
Avatar
heinrich5991
if that means "I don't want to hear anything about the program", then sorry
i think all of your concerns have been addressed now
Avatar
Avatar
Ewan
i think all of your concerns have been addressed now
heinrich5991 2024-07-14 08:39
tell me when I'm allowed to give feedback
08:39
it's also a little bold to assume i hadn't thought about these things
I did not mean to imply this
08:42
a lot of it is in the tone/wording, i know you're probably doing your best but prefacing your criticisms with "by the way" or "if you didn't know" goes a long way lol
to me, prefacing these particular statements with "by the way" or "if you didn't know" makes them sound more like I'm implying that you don't know
Avatar
i can see that (edited)
Avatar
MilkeeyCat 2024-07-14 08:56
chillerdragon: who's playing with ur name? justatest
Avatar
Avatar
heinrich5991
tell me when I'm allowed to give feedback
any time
Avatar
Avatar
Ewan
maybe if i was like "yeah i spent a lot of time on this and i'd like to see what you think" then it'd be appropriate to nit like that but i'm obviously still in the process of fleshing it out
we are here
Avatar
Avatar
Ewan
i do appreciate the feedback but it's also a little bold to assume i hadn't thought about these things. being unfamiliar with the language makes it hard to just quickly knock shit out like that, even if i had already thought about it a lot of it is in the tone/wording, i know you're probably doing your best but prefacing your criticisms with "by the way" or "if you didn't know" goes a long way lol
heinrich5991 2024-07-14 09:12
sorry for my nitpicking your feedback. thanks for taking the time to tell me how you felt about this
Avatar
in hindsight i did kind of bite your head off lol
09:15
it was just frustrating because you were saying exactly what i already knew but didnt get around to doing lol
09:15
not super reasonable to expect you'd know anyway
Avatar
heinrich5991 2024-07-14 09:18
.into_os_string().into_string().unwrap() on a path can be replaced by .display() if you just want to display it to the user
Avatar
oh sweet
09:18
why doesnt it implement the Display trait?
Avatar
heinrich5991 2024-07-14 09:19
because file paths can contain "characters" that aren't valid strings
09:20
both on windows and on linux. on windows, they can contain unpaired surrogates (something that relates to weird implementations of UTF-16) and on linux they're unchecked bytes (except for / and \0), so they don't have to contain valid UTF-8
09:21
isn't there another one too
09:21
into srting lossy or smth
Avatar
heinrich5991 2024-07-14 09:21
yes, that's the same as the .display(), but slightly less efficient
Avatar
heinrich5991 2024-07-14 09:27
do you work on windows or on linux?
Avatar
linux rn
Avatar
heinrich5991 2024-07-14 09:27
the shell should be handle globbing for you
09:27
btw ^^
Avatar
fish doesnt like globbing properly for me
09:27
idk
Avatar
heinrich5991 2024-07-14 09:28
what do you mean?
09:28
fish doesn't glob the way you want to?
Avatar
it does now >_>
09:28
that i say something
09:30
and even if so i don't think it would replace the strings in a compatible way
09:30
cuz i use ; delim
09:30
maybe i could just use multiple input args but this seems good for now
Avatar
heinrich5991 2024-07-14 09:32
yea, probably works. globs need to be quoted now
Avatar
good imo
09:33
guaranteed consistent across shells
Avatar
heinrich5991 2024-07-14 09:34
IMO not so good, because the user knows their shell and the program will interpret the globs differently from their shell. also, it has weird behavior if filenames contain glob characters
Avatar
how would the shell glob it? delimited by space?
09:36
i usually never use the shell glob lol
09:36
i use find in scripts
Avatar
heinrich5991 2024-07-14 09:37
the shell globs it by putting it into separate arguments
Avatar
hi
Avatar
so -i=*.png would do -i=a.png -i=b.png?
Avatar
heinrich5991 2024-07-14 09:37
i.e. in a directory containing two files a and b, it'd turn ls * into the three parameters ls, a and b
09:38
yea i could just make inputs unnamed
Avatar
Avatar
Ewan
so -i=*.png would do -i=a.png -i=b.png?
heinrich5991 2024-07-14 09:38
no, -i=*.png would not work, unless you have file called like -i=foobar.png (with the -i=) in your current directory (which would also be cursed, I guess) ^^
Avatar
Avatar
Ewan
yea i could just make inputs unnamed
heinrich5991 2024-07-14 09:39
yea
09:39
well
09:39
food for thought
09:39
not sure exactly how ''d handle an undefined amount of unnamed args as inputs
09:40
makes any other unnamed param impossible
Avatar
heinrich5991 2024-07-14 09:41
yup
Avatar
chillerdragon BOT 2024-07-14 10:31
thats me doing legit gaming (trust me bro)
Replying to @MilkeeyCat chillerdragon: who's playing with ur name?
Avatar
If possible, can anyone confirm with me on game state updating? Is there any difference between Teeworlds and DDNet on how the game state is updated? I see that DDNet updates 50 ticks per second. This means 20ms each tick. What if the player's ping/jitter/disconnect is 50ms or 500ms for a brief moment? What part of the game state is checked then updated, and how frequently? Any partial updates or is everything full updates?
Avatar
GitHub BOT 2024-07-14 11:26
`` Core was generated by ./DDRace64-Server_sql -f servers/8321.cfg'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f199e046a62 in ?? () from /home/teeworlds/servers/libantibot.so [Current thread is 1 (Thread 0x7f199c9ceec0 (LWP 2485944))] (gdb) bt #0 0x00007f199e046a62 in ?? () from /home/teeworlds/servers/libantibot.so #1 0x00007f199e049c4e in AntibotOnHookAttach () from /home/teeworlds/servers/libantibot.so #2 0x0000556ef2a735cb in CCharacter::Tick (thi...
Avatar
@deen where is the core?
11:38
found it
Avatar
GitHub BOT 2024-07-14 11:42
Let the IClient::SnapGetItem function return an IClient::CSnapItem directly instead of passing it as a pointer. Add the item data pointer as a member variable to IClient::CSnapItem instead of returning it separately. Therefore, the separate data pointer of the class CSnapEntities is also not necessary anymore. Consistently mark the snapshot items and data as const. The C-style cast to void * in the IClient::SnapGetItem function was previously implicitly casting away the `cons...
Avatar
Avatar
GitHub
Click to see attachment 🖼️
Yeah it has something to do with the address :/
Avatar
chillerdragon BOT 2024-07-14 11:49
I don’t know for sure but the way the core game state is handled should be the same in ddnet and teeworlds.
Replying to @Pathos If possible, can anyone confirm with me on game state updating? […]
11:53
Also the game state does not depend on the clients ping. If you have a 900 ping with 1 fps and 90% packet loss. The server will still let for example gravity apply the same speed in the same time to your tee. The server handles the state and it ticks 50 times a second. The client just sends inputs. And the server sends the game state as a snapshot which always a diff to the last snapshot the client acknowledged.
11:58
So if your client drops all packets for 500ms the server will still have computed the full state 50 times a second using your latest input. And it will keep sending you that new information of the game state as a diff to the state you last acknowledged which was before the jitter.
Avatar
GitHub BOT 2024-07-14 12:12
Hopefully fixes #8587

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....
Avatar
GitHub BOT 2024-07-14 12:49
ebd266c Reset and regenerate m_aPeerAddrStr appropriately - Learath2 91c2e6e Merge pull request #8589 from Learath2/pr_antibot_empty_addr - def-
Avatar
GitHub BOT 2024-07-14 13:07
e9646ba Simplify usage of IClient::SnapGetItem function - Robyt3 2f6c3ab Remove unnecessary IClient::SnapItemSize function - Robyt3 b0f0292 Merge pull request #8588 from Robyt3/Snapshot-Usage-Cleanup - def-
Avatar
https://paste.pr0.tips/U7L if any of you need a backlight script, I didn't feel like using anyone elses for some reason 😄
Avatar
i'm going nuts haha
15:09
been working on a custom vote menu class since yesterday evening
15:10
It's pretty much done for now, but it's a pain in the ass to work with the strings from the description
15:25
you'll not believe but i did the same previous night
Avatar
really?
15:34
xd
16:10
not vote menu only though
Avatar
What did you do specifically?
Avatar
main character 2024-07-14 16:36
hello i have a server and few people are playing right now. i want the ban some people without me being on the server
16:36
i looked at the external console thing. but i want to manage it with a program with gui. is there like this on github or somewhere else?
Avatar
[TOOL] External Console - Graphical Client (GUI) (Page 1) — Fan Art and Other — Teeworlds Forum — Everything Teeworlds!
Avatar
main character 2024-07-14 16:46
i cant download built version
16:46
and i dont know how to build source
Avatar
wait is it possible to bind spectate_closest on rmb?
Avatar
Avatar
Robyt3
Still working on it. I hopefully have some more time next week
I'm here a week later
17:55
is there anything new?
17:55
Hello
Avatar
Avatar
fokkonaut
What did you do specifically?
@zhn, what are you working on? A server mod?
Avatar
nice leak
Avatar
GitHub BOT 2024-07-14 19:09
Support showing up to 128 players in the scoreboard and the spectator UI, although the font size is rather small so this is hard to use with small screens. Other lists like server info (ingame and in the server browser) and the voting list already support showing any number of players. Screenshots:
Avatar
Avatar
Hekkeyne
is there anything new?
Still working on the ingame controls
Avatar
Can anyone with multiple GPUs, especially Intel and NVIDIA Optimus, test #8575?
Avatar
Essentially reverts "For integrated and discrete GPUs always prefer what comes first in the list", commit 7ca20a5, which attempted to resolve issue #6200. That commit caused the 'auto...
Avatar
why is #8568 relevant? is /dnd not enough?
Avatar
Since it's easy to abuse and impossible to moderate Partially solves #8364 Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possib...
Avatar
Avatar
zhn
why is #8568 relevant? is /dnd not enough?
dnd blocks everything, including public messages that moderators can react to. Some people only spam in whispers
Exported 111 message(s)
Timezone: UTC+0