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-03-14 00:00:00Z and 2024-03-15 00:00:00Z
Avatar
ws-client BOT 2024-03-14 00:57:23Z
<ChillerDragon> Hmm ddnet master seems to pass pipelines but my pending pr and fork fail both in unit tests whats up with that tee_thinking
00:57
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
00:57
A teeworlds instagib (grenade/laser capture the flag) mod based on DDRaceNetwork (gctf/ictf) - Merge branch 'ddnet:master' into insta · ZillyInsta/ddnet-insta@0068c2c
00:58
<ChillerDragon> Did I break that?
Avatar
ws-client BOT 2024-03-14 01:34:37Z
<ChillerDragon> jopsti ur also netcup customer right? They shut down my vps once when i was port scanning for a mc server which seems fair. Now they took down my server again saying I did scan the ip 138.201.27.25 with src port 25+- and destination port 25+- no idea what happend there but sounds like bullshit.
01:35
why port scanning for mc
01:35
are u troll
Avatar
ws-client BOT 2024-03-14 01:35:08Z
<ChillerDragon> Any tips on how to get the vps back? Did that happen to you as well?
01:35
<ChillerDragon> @Ewan liveoverflow
Avatar
we had 3 ppl come in and grief on my last mc server
01:35
rly glad i had coreprotect
Avatar
ws-client BOT 2024-03-14 01:36:37Z
<ChillerDragon> I might have to switch hoster if netcup keeps doing this. They are holding all my data hostage and keeping all my services down until i write them a letter that proofs i fixed the problem. Which is tricky in this case.
Avatar
Avatar
louis
do you know why it's down so often?
ddnet.org was unreachable a couple hours ago, and I assume the bot didn't attempt to reconnect to Discord once the outage resolved itself
03:38
I also added a new topic talking about snap item IDs https://protocol-docs.teeframe.com/packets/snaps-concept#snap-item-id-id (edited)
Avatar
ws-client BOT 2024-03-14 06:02:19Z
<ChillerDragon> poggers2 @Miguilim
Avatar
ws-client BOT 2024-03-14 06:13:13Z
<ChillerDragon> @Robyt3 the client not being able to quit is getting really annoying is someone on that? If not can we revert the change that waits for all systems to shutdown? I sometimes reboot multiple clients in a 5sec interval and now i have to wait up to 20seconds with it also trapping my mouse on shutdown that is not okay
Avatar
ws-client BOT 2024-03-14 06:14:25Z
<ChillerDragon> I would patch it my self but the maintenance effort of that patch is huuuge
08:50
uhh I'm trying to host my own FNG2 server using AWS (EC2)
08:51
Everything's been OK but when I try to open the start.sh
08:52
it says "Permission denied"
08:52
I already did "$ uwf allow 8303" too
08:53
any kind of help would be appreciated 🥺 (edited)
Avatar
Make it executable, chmod +x start.sh
Avatar
Avatar
furo
Make it executable, chmod +x start.sh
alright, I'm gonna check if th at works
09:06
thanks in advance
09:08
It seems like that doesn't work neither (edited)
Avatar
chmod +x fng2_srv
👍 1
Avatar
ChillerDragon: The client not quitting should already be mostly fixed in nightly. All there is left is adding some more specific timeout values for some of the HTTP requests, which have the default timeouts that probably cause them to wait very long if you have bad internet. I'm also working on overhauling the skin loading in general.
Avatar
Avatar
Peakies
chmod +x fng2_srv
OK WOW THANKS
Avatar
Avatar
Blazulite
OK WOW THANKS
yw
Avatar
Why does the "configure your firewall/nat thing keeps happening though
09:14
if I already put uwf allow 8303
Avatar
ChillerDragon: The ASAN run on #8098 also failed with a random segfault around the same time. Does it happen on master? Maybe CI is broken again.
Avatar
The engine graphics do not need to be involved with freeing image data. The Free function now also ensures that all other member variables are cleared when freeing the image data. Checklist Teste...
Avatar
then that may be whay I did wrong I guess
Avatar
nope it still doesn't work
Avatar
iptables -I INPUT -p udp --dport 8303 -j ACCEPT
Avatar
Avatar
Peakies
iptables -I INPUT -p udp --dport 8303 -j ACCEPT
wasn't sure if that was an -l or -i so I tested with both and none of them worked (edited)
Avatar
Avatar
Blazulite
wasn't sure if that was an -l or -i so I tested with both and none of them worked (edited)
ufw enable ufw allow 8303/udp ufw status
Avatar
alright
09:28
I did that
09:28
time to check again if it works
09:29
wtf
09:29
important to know that literally everything's on ALLOW (edited)
Avatar
then I don't know sorry 😦
Avatar
nah don't worry man you tried to help and that's all I care abt 😅
09:32
thanks and have a nice day :3
Avatar
tnx you too ❤️
Avatar
anyway I think it's funny how every time I tried to host a teeworlds server I always finish having networking issues
Avatar
Avatar
Blazulite
anyway I think it's funny how every time I tried to host a teeworlds server I always finish having networking issues
I think you need to open the port through the web console on AWS. Try googling it.
Avatar
well that makes sense
09:37
I'd try that
09:37
thanks!
09:46
I added a Custom UDP inbound via the Security Group thing
09:46
now I can't connect to the instance
09:46
💀
Avatar
Avatar
Blazulite
💀
Over ssh?
Avatar
Avatar
furo
Over ssh?
nope, I'm trying to connect via the "EC2 Instance Connect" thing, not an ssh client
09:49
I also tried to connect via the instance connection endpoint and it still does not let me connect
Avatar
Not sure, I think because you have enabled ufw now. It might be blocking that connection because you're not allowing ssh any more.
Avatar
Avatar
furo
Not sure, I think because you have enabled ufw now. It might be blocking that connection because you're not allowing ssh any more.
that makes lots of sense
Avatar
ws-client BOT 2024-03-14 11:06:25Z
<ChillerDragon> @Robyt3 about the startup times nice to hear I will merge again didn't do that in a few weeks.
11:07
<ChillerDragon> @Robyt3 about the CI i have had multiple segfaults and ubsans today in two prs and in one fork. But also created a test branch on master with a readme change that passed so idk what is happening there
11:09
<ChillerDragon> > anyway I think it's funny how every time I tried to host a teeworlds server I always finish having networking issues
11:09
<ChillerDragon> @Blazulite yes networking is the hardest part about it. Because setting up the game server it self is so smooth c:
11:09
<ChillerDragon> one other trap is configs and maps but thats about it
Avatar
ChillerDragon: ikr 😭
11:15
I tried to also remove the inbound rules from the security group and I still can't connect via the EC2 Instance Connect
11:15
My brain is exploding :D
Avatar
87fbb57 Add curl_getdate to fake curl - heinrich5991
11:22
Prefer masters with newer server lists, and try re-selecting the chosen master if the result is older than 5 minutes.

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 existin...
Avatar
ws-client BOT 2024-03-14 11:46:27Z
<ChillerDragon> @Robyt3 i just merged my client and on first launch I had a 20 sec freeze plus gnome popup saying your program froze. Is this my custom http call having wrong timeouts? But the logs showed that one as done already its usually fast and clean.
11:46
<ChillerDragon> I can not reproduce it anymore i still have a 2 seconds delay but its much better than 20
Avatar
20 sec freeze might be just the way we load
11:49
unrelated to http and everything
11:49
we don't process window messages during loading IIRC
Avatar
ws-client BOT 2024-03-14 11:49:30Z
<ChillerDragon> i mean quitting not booting
Avatar
ah
Avatar
ws-client BOT 2024-03-14 11:49:51Z
<ChillerDragon> load is smooth
Avatar
how would I write a small custom HTTP server to test our HTTP client impl?
Avatar
Avatar
heinrich5991
how would I write a small custom HTTP server to test our HTTP client impl?
python3 -m http.server?
Avatar
yo where was that one library for tw maps in rust?
Avatar
ws-client BOT 2024-03-14 12:57:19Z
<ChillerDragon> @heinrich5991 yea wat lerato said. Or do you need it to be slow? Then I would go with express/sinatra/flask or any other web framework where you can define routes in 5 lines of code and put a sleep in there
12:59
<ChillerDragon> @Teero on the blaze it git cloud
13:00
<ChillerDragon> high dutch people gitlab.com/patiga/twmap
Avatar
send link!
13:00
cant find it
Avatar
ws-client BOT 2024-03-14 13:00:17Z
A Rust library for parsing, editing and saving Teeworlds and DDNet maps
13:00
<ChillerDragon> blaze
Avatar
if if if a == b { b == c } else { a == c } { a == d } else { c == d } { println!("True!"); } else { println!("False!"); }
Avatar
Avatar
ws-client
thats lit
13:28
@heinrich5991 @Learath2 @Jupstar ✪ @Chairn # Happy PI day!
owo 4
13:28
owo
13:32
Avatar
tf are u doign with those 14 cents saved
Avatar
Avatar
Learath2
python3 -m http.server?
need custom headers, custom status, custom sending delays, etc.
Avatar
Avatar
heinrich5991
need custom headers, custom status, custom sending delays, etc.
hyper was pleasent enough to use in rust, maybe that works for you?
15:28
Not very ergonomic though
Avatar
Btw I don't like what we ended up with in #8019. Gpu, Ui, Id all look meh. At the very least acronyms should have been all capital
Avatar
This is the strict version, ID → Id, UI → Ui, except DDNet which stays DDNet. This would fix #7750. Done using a naive rename script (for bash, use shopt -s globstar): sed -i \ -e 's/(...
Avatar
And all the renames absolutely ruined blames for years to come
15:38
Lose lose
15:44
Rename all variables for strict camel-casing of abbreviations will be the new copied refactor to trunk for the next decade
Avatar
I suggest using ignoreRevs or tig, both very powerful in dealing with that
Avatar
Atleast renames don't add lines like mass styling. Hopefully this will be the last time we do massive 300 file commits just to change styles
Avatar
I still want one for proper prefixing of variable names
16:00
2d17097 Use log_* instead of Console()->Log() in HTTP serverbrowser - heinrich5991 5603d28 Parse Date and Last-Modified HTTP headers - heinrich5991 ff7b6ff Take serverlist age into account when choosing master - heinrich5991 7d890aa Merge pull request #8099 from heinrich5991/pr_ddnet_http_age - def-
Avatar
Avatar
Learath2
PainChamp
16:14
b544c3e Add assertions to all thread and semaphore functions - Robyt3 1ced40d show countdown in player/tee settings for sv_info_change_delay - dobrykafe f7ea38e Version 18.1 - def- 6bebafc Update Swedish translations for 18.1 - furo321 4ba71b7 Update brazilian_portuguese.txt - rffontenelle c31e173 Update russian.txt - gerdoe-jr d7fcede Update russian.txt - gerdoe-jr 116156a Update simplified_chinese.txt - Bamcane eb0c26d Update turkish.txt - eghwand dbf8ec1 Update spanish.txt - n0Ketchp b2718c7 Update data/languages/turkish.txt - eghwand a9d5d31 Update data/languages/turkish.txt - eghwand 2c4b5b1 Update data/languages/turkish.txt - eghwand eb42a8e update czech translations - dobrykafe 52a2e17 Update traditional_chinese.txt - By622 891242f Fix HTTP client shutdown and deadlock on request error - Robyt3 653c5d0 Add validation for StrToInts and IntsToStr, move and rename - Robyt3 27f65cd Fix client crash due to truncated skin name - Robyt3 00873d8 Change m_ConnectionId name - def- 705d055 update slovak translations - dobrykafe a0b6a51 Add Estonian translation (by Cammo) - def- 389efa0 Revert "Add validation for StrToInts and IntsToStr, move and rename" - def- 7208b9a Add validation for StrToInts and IntsToStr - Robyt3 70ed41b Estonian fixes (by Cammo) - def-
16:15
16:18

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
1561db6 Add #8019 to formatting-revs.txt - furo321 38a4c91 Merge pull request #8100 from furo321/new-formatting-rev - def-
Avatar
@Patiga are there any examples on how do place some blocks with twmap? (edited)
17:19
552d466 Move tele vector init from gamecontroller to collision - ChillerDragon 4da4ca5 Make tele getters const - ChillerDragon 6df1d25 Merge pull request #7947 from ChillerDragon/pr_coll_tele - Robyt3
Avatar
https://teewebs.net Does this thing still work? Or no? And if it does, can I connect to a lan server with it in the same way?
Avatar
@murpi /upload still seems to be down
Avatar
Avatar
Peter0x44
https://teewebs.net Does this thing still work? Or no? And if it does, can I connect to a lan server with it in the same way?
The project itself should still work, but seems like the website is broken. The server you will be connecting to needs be compiled with -DWEBSOCKETS=ON. (edited)
Avatar
I seem to have trauma from years of propaganda. I know exactly what data structure I should be using but there is this voice in my head telling me it's wrong. Normalize using linked lists, especially ones backed by contiguous storage
f3 1
Avatar
@Learath2 SkinDB Bot seems to be offline or not connecting, maybe you wanna check?
Avatar
Avatar
murpi
@Learath2 SkinDB Bot seems to be offline or not connecting, maybe you wanna check?
I gave it a restart and it just came back up, it doesn't log at all so nothing to diagnose really
Avatar
Avatar
murpi
@Learath2 SkinDB Bot seems to be offline or not connecting, maybe you wanna check?
And YADDB dying yesterday was indeed a connection issue, no idea why it never recovered
Avatar
i have a silly question about CVoteOptionServer, why does it have char m_aCommand[1]?
18:15
like, why exactly [1]
Avatar
Avatar
zhn
i have a silly question about CVoteOptionServer, why does it have char m_aCommand[1]?
It's an old hack to compensate for C++s lack of flexible array members
18:20
It's technically UB, but we allocate more than needed for just CVoteOptionServer and access the extra allocated space through m_aCommand
18:21
so its pointer to last structure byte and first for string that lays in heap's padding memory?
Avatar
Avatar
zhn
so its pointer to last structure byte and first for string that lays in heap's padding memory?
It's treated that way yes, but as far as C++ is concerned it is an array of a single char that we are reading beyond the bounds of
Avatar
Avatar
zhn
i have a silly question about CVoteOptionServer, why does it have char m_aCommand[1]?
I do this sometimes because you can pass it to functions without having to write &
18:23
Like void example(int*); int x[1]; example(x);
Avatar
looks useful for string only though
18:23
strings*
18:23
like how would you find the actual length without passing it
Avatar
Avatar
zhn
like how would you find the actual length without passing it
If you don't store a string, you use a size member
Avatar
It's a nasty nasty hack that no compiler can break because it's the goto workaround for flexible array members
Avatar
does it need to be refactored in future anyway?
18:25
in ddnet i mean
18:25
the way vote options are stored, the struct itself and vote handling in general
Avatar
I wouldn't really mess around with it without good reason
Avatar
/shrug making CGameContext less god class
18:26
nice xd
Avatar
Most people would rework that to std::string m_Command and I don't like to introduce random heap allocations because C++ is a deficient language
18:29
WG14 suggests people use char m_aCommand[SOME_MAX_SIZE] but allocate less if needed. Which makes the access not UB at the cost of making sizeof CVoteOptionServer insane
Avatar
hm what about just using const char* and allocate string outside the structure (it will be placed after the structure anyway i think) in the heap
18:32
CHeap::StoreString(...) seems sane
18:33
idk, maybe it's just my view, m_aCommand[1] looks weird for me xd
Avatar
I don't like it, I want nothing to do with it, but I'm sure you can get heinrich or deen to merge it
18:33
Adding a pointless layer of indirection
Avatar
anyway thanks for help, wouldn't understand it myself
Avatar
are you collecting data about player behaviour?
21:01
if yes can you share statistics?
Avatar
There are some stats and raw data in https://ddnet.org/stats/
Avatar
i rly feel like the game UIs should have a separate software anti-aliasing implementation
23:21
so that people can play the game at the lowest input lag settings without their menus looking like complete shit (edited)
23:22
i love the new spinner ui thing but it (like any circle) looks really bad with aliased pixels
✅ 1
Exported 175 message(s)