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-04-14 00:00:00Z and 2024-04-15 00:00:00Z
Avatar
b4a22e2feeab15c87630402e3a20cd7bb7926faf is the first bad commit commit b4a22e2feeab15c87630402e3a20cd7bb7926faf Author: Robert Müller Date: Tue Feb 6 21:41:59 2024 +0100 Refactor client state handling in menus #8156
00:17
Vote cancel taken from https://github.com/teeworlds/teeworlds/pull/1436. If you are the vote creator, voting no (pressing f4) will cancel the vote. I didn't include the time limit and added a custom chat response: !vote Also fixed a bug where the server would incorrectly set the fields for protocol7::CNetMsg_Sv_VoteSet. The 0.7 clients would for example receive VOTE_END_FAIL instead of the co...
Avatar
Suggested by Davide, apparently FiveM uses this too. First do a TCP handshake (on the same port number) with the server, then connect over UDP.
If you implement the TCP port "punching" and you allow only the IPs who complete the handshake to send packets over the UDP port And you can actually using this system to block small/medium DDoS bypass. For example on a provider like OVH But still, even if the provider doesn't support that, you can run your own UFW/iptables rules
I'm ...
Avatar
Avatar
chillerdragon
lmao
damn the embed revealed my un-edited message
Avatar
Avatar
Learath2
AVX512 has some real bangers
true
04:14
32fcd2a Change type of m_HookTick to NetIntAny - furo321 0691d42 Merge pull request #8206 from furo321/rename-hooktick - def-
04:16
b6a1a12 fix votes for sixup - dobrykafe 8ca395c allow the vote creator to cancel the vote - dobrykafe 1b77cbc Merge pull request #8209 from dobrykafe/pr-votes - def-
Avatar
wii fails at connecting to a server spectacularly
Avatar
Avatar
ws-client
<ChillerDragon> also have you thought about live map updates? How hard would it be to build minetee?
chillerdragon: are u on?
06:46
i can give you a hint, you saw live updates yesterday, i compared it against gimp, remember?
Avatar
Avatar
Headshot
wii fails at connecting to a server spectacularly
does it get inactive, but still works or does it hang?
Avatar
it's not frozen, i can move the pointer and click cancel, but it never gets past sending info
06:50
the wii is big endian, could that be an issue?
Avatar
uff defs
Avatar
we have some semi good looking big endian hacks in the code
06:51
but i assume they were never truely tested
Avatar
you can test a big endian thing under qemu-user maybe
06:52
might be easier to debug that way
Avatar
you can
06:52
xd
06:52
but is it worth your time
06:53
big endian is basically dead nowadays
Avatar
I think so
Avatar
+ for rust again, which simply offers to_le_bytes, from_le_bytes
Avatar
does that just become a nop on le or what?
Avatar
yeah i guess so xd
06:57
but anyway, headshots problem could also be unrelated
06:57
maybe the compiler is buggy or smth
06:57
or our code lol
Avatar
true
Avatar
Avatar
Headshot
the wii is big endian, could that be an issue?
Did you fix detect.h for the Wii endianness? Last time I saw some log messages from this project it said "unknown endianness"
08:20
New detect.h doesn't allow compiling with unknown endianness
Avatar
CONF_ARCH_ENDIAN_BIG is defined, yes
Avatar
what features would make C better and more convenient language in your opinion? 😄
Avatar
Oop (edited)
nouis 1
Avatar
struct Foo { int bar; static Foo new(int bar) { return { .bar = bar }; } int gimme_bar(void) { return this->bar; } }; int main() { Foo foo = Foo::new(69); int val = foo.gimme_bar(); // 69 return 0; } i think this would be enough for me xd
Avatar
Avatar
MilkeeyCat
what features would make C better and more convenient language in your opinion? 😄
Namespaces, a new stdlib, some sort of metaprogramming capability maybe templating
Avatar
Avatar
MilkeeyCat
what features would make C better and more convenient language in your opinion? 😄
RAII
09:02
without RAII a language directly sucks
09:02
😏
Avatar
I think I'd take defer statements over raii
Avatar
Avatar
Learath2
I think I'd take defer statements over raii
does that work together with struct members?
09:04
or is it just an execution model
Avatar
Deferred statements execute at the exit of a function (or a block if the language wants)
Avatar
i can't really imagine a use case, looking at the go examples
Avatar
You can't because you live in a world with raii 😄
09:05
Imagine a world with no constructors no destructors. Then it's useful
09:05
Think of it as explicit destructors that you schedule to run at exit of block (edited)
Avatar
Avatar
Learath2
You can't because you live in a world with raii 😄
so basically u evaluate the arguments directly but put the "destructor" the function that handles the arguments at the end?
Avatar
Avatar
Learath2
Think of it as explicit destructors that you schedule to run at exit of block (edited)
mh yeah
09:06
i guess can be useful too, since it's more flexible than always surround everything in structs (edited)
Avatar
When things are evaluated allows for some cute trickery. But it's not the point. It just lets you have something akin to atexit but at a function level (in gos case)
09:08
It would be great in C because properly cleaning up after yourself is the cleanest with ugly goto statements otherwise
09:08
(Or objects and raii, that would also be a solution to the same thing)
Avatar
well what i like about RAII esp in rust is:
  • if the "contructor" returned no error, you can assume the object 100% exists, and cleans up itself
  • ^ => if you strictly follow this pattern and try to not use Option<> to often, your inner logic doesn't require so much error handling + i combine it with my hiarc, which basically prevents circling dependencies of struct members
Avatar
Avatar
Learath2
When things are evaluated allows for some cute trickery. But it's not the point. It just lets you have something akin to atexit but at a function level (in gos case)
i mean on function level that defs sounds useful maybe sometimes
09:10
it's like RAII for logic, if i imagine it correctly
Avatar
Raii is definitely more hands off and easier to get right. But you know me, I'm a more natural selection enjoyer. I'd rather have the flexibility and give the user the option to footgun
Avatar
Avatar
Learath2
Raii is definitely more hands off and easier to get right. But you know me, I'm a more natural selection enjoyer. I'd rather have the flexibility and give the user the option to footgun
well who knows, maybe u need to shoot into your foot 10000 times to find an ever better approach than anything we know now 😄
Avatar
FILE *f = fopen(f); defer fclose(f); ... ...
09:13
This is the usual pattern in a language with defer
Avatar
ah ok, i thought about it more like an transaction 😄
Avatar
The footgun is forgetting to defer an fclose, since it's not done for you like with raii through destructors
Avatar
change values as you want but then revert it under certain conditions or whatever
Avatar
Avatar
Jupstar ✪
change values as you want but then revert it under certain conditions or whatever
Ah, no but that does sound interesting. I'll ponder it maybe we can have a new language
Avatar
Avatar
Learath2
The footgun is forgetting to defer an fclose, since it's not done for you like with raii through destructors
true, for c that would defs already be an improvement
Avatar
The demo player needs to be rendered also when the menu is inactive, to handle the hotkeys for controlling the demo player and to render the play/pause and speed indicators. Closes #8208. The popup menus are already rendered in the CMenus::Render function, also for the demo player since #8156.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a u...
Avatar
717cbef Fix demo player hotkeys not working when menu is inactive - Robyt3 9abe501 Fix duplicated rendering of popup menus in demo player - Robyt3 c878cc7 Merge pull request #8211 from Robyt3/Menus-Demo-Hotkeys-Fix - def-
Avatar
With Vulkan I get the log message swap chain image was not ready to be copied and the view becomes weirdly streched over the resized screen when I resize the window while the rendering is active: !screenshot_2024-04-14_13-09-34 This state persists after rendering is finished until the client is restarted. The rendered video is messed up because the image data does not have the expected size. M...
11:33
old
Avatar
Fixed bug where these first buttons wouldn't place any tiles. Most likely caused by #8136 !image

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...
Avatar
ws-client BOT 2024-04-14 13:28:45Z
<ChillerDragon> @Jupstar ✪ ah right you said you wanted to keep the in game code close to the editor so in game is also flexible ye that makes sense. nice
13:34
<ChillerDragon> lerato are you a jai enjoyer?
13:36
<ChillerDragon> i saw defer in C code in tsoding videos
Avatar
2545c14 Fix bug where certain tiles would not work in Game tiles menu - furo321 06f1db9 Merge pull request #8213 from furo321/fix-gametiles-button - def-
Avatar
/timecp name show better timecp anymore I assume since atleast around 1-1,5months? but maybe just since around newest version. 2. While fixing it we could also allow to see "/timecp name" without the need of having the map finished.
Avatar
@Zwelf I'm still getting a bunch of panics: thread '<unnamed>' panicked at twgame/src/net_msg.rs:470:39: not yet implemented thread '<unnamed>' panicked at twgame/src/net_msg.rs:474:38: not yet implemented thread '<unnamed>' panicked at validator/src/lib.rs:858:21: assertion failed: team.load
✍️ 1
😅 1
Avatar
@Robyt3 what is on your UI todo list? inspire me please
Avatar
I'm currently refactoring the scoreboard
Avatar
Avatar
Robyt3
I'm currently refactoring the scoreboard
do you make a awesome fng scoreboard?
16:19
i'll soon have to implement the settings ui for tees i wonder how i want to design it. UI is always so much tryhard lol
Avatar
For team based modes I took some ideas from 0.7 (colored titles, score in the middle) (edited)
Avatar
Avatar
Robyt3
For team based modes I took some ideas from 0.7 (colored titles, score in the middle) (edited)
ah epyc
Avatar
Eventually scoreboard height could also be adjusted so it only takes up as much space as necessary
16:21
0.7 for reference
Avatar
Avatar
Robyt3
Eventually scoreboard height could also be adjusted so it only takes up as much space as necessary
mh, i decided against that for my fng scoreboard, it looks so weird 😄
Avatar
Avatar
Robyt3
For team based modes I took some ideas from 0.7 (colored titles, score in the middle) (edited)
16:25
dunno if u ever seen it
16:26
16:27
height basically always stays the same
Avatar
Avatar
Robyt3
0.7 for reference
what is the (1) behind the Red team... number of ctf flag captures?
16:28
is that a built-in feature with network support?
16:28
i need that too then 😂
Avatar
It's the amount of players, XD
Replying to @Jupstar ✪ what is the (1) behind the Red team... number of ctf flag captures?
Avatar
wtf ok
16:35
why is it in the title lmao
16:35
doesnt sound like a information that has to be highlighted xD
Avatar
Avatar
Jupstar ✪
Click to see attachment 🖼️
I think it's would be better if hook and hammer icon on title bar being in middle or after team's name
Avatar
Avatar
Peakies
I think it's would be better if hook and hammer icon on title bar being in middle or after team's name
agreed, i might have had it that way, but looked weird too i think. I also don't like the pattern of the title
Avatar
but I like it
16:47
pattern and corner of info row and column list row gave it a bit of 3D style don't know got my point or not
16:47
but generally noice ❤️
Avatar
Avatar
Jupstar ✪
agreed, i might have had it that way, but looked weird too i think. I also don't like the pattern of the title
wanna add scroll, page navigation support for 400+ tee right ? 😍 😋
Avatar
It would previously fail with Unknown column 'hasCP' in 'where clause' on MySQL/MariaDB, but worked fine with SQLite. The query has now been updated to work with both. Closes #8214

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 bo...
Avatar
Avatar
Peakies
wanna add scroll, page navigation support for 400+ tee right ? 😍 😋
scroll is no go imo xd would suck hard to having to scroll up and down 😄
18:26
also i think u can easily put more stuff into scoreboard by making font smaller
Avatar
Avatar
Jupstar ✪
also i think u can easily put more stuff into scoreboard by making font smaller
well my plan for scoreboard is a bit different having scroll and clickable ui for open up player profile to load that player points, badges, activity point and etc ... (activity point is like xp on my own server)
Avatar
Avatar
Peakies
well my plan for scoreboard is a bit different having scroll and clickable ui for open up player profile to load that player points, badges, activity point and etc ... (activity point is like xp on my own server)
bit like csgo scoreboard?
18:48
i dunno if it supports scroll too
Avatar
Avatar
Jupstar ✪
bit like csgo scoreboard?
yeah exactly but a bit simpler than csgo scoreboard
Avatar
i see. mouse support could be cool indeed, if you enable it over a hotkey my fear with scrollbar is simply that it defeats the purpose of just opening it for a short moment. if there is a forced scrollbar you have to use it
Avatar
well it can have option for old scoreboard ui but plus up and down support key to select player to open it's profile with enter key or something like this
Avatar
Avatar
Jupstar ✪
i see. mouse support could be cool indeed, if you enable it over a hotkey my fear with scrollbar is simply that it defeats the purpose of just opening it for a short moment. if there is a forced scrollbar you have to use it
is it possible to open scoreboard by holding down tab button and have this possibility to click or scroll scoreboard item ?
Avatar
possible, why not 😄
Avatar
Avatar
Jupstar ✪
i see. mouse support could be cool indeed, if you enable it over a hotkey my fear with scrollbar is simply that it defeats the purpose of just opening it for a short moment. if there is a forced scrollbar you have to use it
I think the time that player have to spend to find someone name with small size can spend to scroll or by using search box and find that specific player on scoreboard
Avatar
Avatar
Peakies
I think the time that player have to spend to find someone name with small size can spend to scroll or by using search box and find that specific player on scoreboard
i dont agree that a scrollbar helps, but yes a search box would help
19:24
but in that case i'd also probably not use the scoreboard
Avatar
today was the day when chat gpt was finally useful, i had to fill tables in a database with data and chat gpt generated pretty good shit. it's not good at helping with programming but it can generate dummy data
kek 2
Avatar
Avatar
MilkeeyCat
today was the day when chat gpt was finally useful, i had to fill tables in a database with data and chat gpt generated pretty good shit. it's not good at helping with programming but it can generate dummy data
it's better than me in pysoron. that's what it is useful for 😏
Avatar
Avatar
Jupstar ✪
i dont agree that a scrollbar helps, but yes a search box would help
hmm maybe you right
Avatar
Avatar
Jupstar ✪
it's better than me in pysoron. that's what it is useful for 😏
u write pyson? 🤨
Avatar
Avatar
MilkeeyCat
u write pyson? 🤨
no, else i wouldn't need gpt 😉
Avatar
anybody uses github copilot? 0_o if u do, do you like it? (edited)
Avatar
Avatar
MilkeeyCat
anybody uses github copilot? 0_o if u do, do you like it? (edited)
i don't write comments in my code xdd no jk. i used it once, for js it's ok. for other languages only for some basic algorithms
19:28
but been a while since i used it
19:29
do you use it actively?
Avatar
Avatar
Jupstar ✪
i don't write comments in my code xdd no jk. i used it once, for js it's ok. for other languages only for some basic algorithms
comments for people who read their code more than once
19:29
it aint me
Avatar
Avatar
Jupstar ✪
do you use it actively?
i never used it xd
Avatar
kek 2
Avatar
which way is less cursed justatest
Avatar
Avatar
MilkeeyCat
which way is less cursed justatest
write proc macro that parses the syntax directly
20:14
without string
Avatar
Clear current server info when playing demos to ensure that the score kind (points, time) is detected correctly. Previously, when playing a demo with points score kind and cl_demo_assume_race 0, the score was not shown as points when the last server that the client connected to had a race gametype. Move the implementation for cl_demo_assume_race together with the rest of the demo server info initialization in the CClient::DemoPlayer_Play function.

Checklist

  • [X] Tested the ...
Avatar
Avatar
MilkeeyCat
which way is less cursed justatest
Includes a UTF-8 encoded file as a string.
Avatar
cf65690 Fix /timecp not working with MySQL - furo321 47e4505 Merge pull request #8215 from furo321/fix-timecp-mysql - Robyt3
Avatar
Probably slipped in during rebase of https://github.com/ddnet/ddnet/pull/7521.

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 [A...
Avatar
Avatar
MilkeeyCat
which way is less cursed justatest
mh can't you save this in a file of it's own and include it in here somehow?
21:25
3b7019d remove unused ConMode function - dobrykafe 8a378da Merge pull request #8217 from dobrykafe/pr-remove-conmode - Robyt3
Avatar
I'm not sure if this was intended but no variation makes it easier to read. Before: !before After: !after

Checklist

  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (esp...
Exported 156 message(s)