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-10-06 00:00 and 2024-10-07 00:00
Avatar
@heinrich5991 im sorry for ping again, but did token connection (0.7) work in libtw2? seems it fails on is_receive_chunk_still_valid(...) on every 0.7 control message with client token
00:14
netconnection just ignores that packet because its always false
00:18
ah wait
00:18
this assumption is wrong, something is going on feed
Avatar
got it, feed_impl(..) of net.rs in net crate doesn't cover 0.7's first packet since Packet::read(...) parses it as PacketConnected with type_ = ConnectedPacketType::Chunks with only relevant field token
Avatar
ahhhh there are different implementations for protocols... and protocol7 is unused...
00:52
okey i got it
Avatar
Avatar
Chairn
not sure if allowed, but my school is organizing cybersecurity event and is looking for some europeans teams to participate in a communication challenge. It is open to students of any level in the relevant fields https://www.linkedin.com/posts/csaw-europe_cac-cybersecurity-awareness-activity-7246873233709305856-5c_g/ (edited)
Armenia? That's random 😄
Avatar
Btw did y’all see Valve managed to break through the wayland stalemate that has been holding back that vsync proposal?
Avatar
! #sxp Data 2024-10-06 03:14
I`m Russia, I don't know English language 😫
Avatar
Avatar
Learath2
Btw did y’all see Valve managed to break through the wayland stalemate that has been holding back that vsync proposal?
no, i'm curious
04:07
maybe this is valve's destiny
04:08
they will bring working linux to us
Avatar
after update to 18.6 my own server settings is default. how to change rcon and other settings back?
Avatar
you should put your settings into a new file called "myServerConfig.cfg" which will not be reset on updates because it doesn't conflict with the name of a downloaded file
Avatar
Avatar
Tater
you should put your settings into a new file called "myServerConfig.cfg" which will not be reset on updates because it doesn't conflict with the name of a downloaded file
where is a blank? i cant find
05:18
and where is that need located?
Avatar
Avatar
triki
and where is that need located?
ig same as autoexec_server.cfg
05:26
OH FCK, its not about where is cfg. its about overwrite my old cfg setting and i just lost my old setting at all.
Avatar
Avatar
! #sxp Data
I`m Russia, I don't know English language 😫
$deepl
Avatar
Avatar
! #sxp Data
I`m Russia, I don't know English language 😫
Hi! Most of us communicate in English. If you’re having trouble with English, use https://www.deepl.com/en/translator to help you out.
Avatar
Avatar
DDNet
Hi! Most of us communicate in English. If you’re having trouble with English, use https://www.deepl.com/en/translator to help you out.
good bot
Avatar
Avatar
Exen
good bot
:3
Avatar
MilkeeyCat 2024-10-06 07:32
@Learath2 it finally works and doesn't swap operands xd
😎 1
Avatar
its possible to do smth like this and worked. bind kp_2 "rcon_login "" test4321 ; rcon_login "" 123" (edited)
Avatar
MilkeeyCat 2024-10-06 09:01
also I just realized I was releasing stack myself by generating add rsp, imm and I use leave instruction bluestripe
Avatar
скибиди вапапа скибиди вапапапа скибиди
Avatar
GitHub BOT 2024-10-06 09:20
See https://github.com/ddnet/ddnet/pull/9116#issuecomment-2395213924. #9116 added MAX_SKIN_LENGTH = 24 only for DDNet code because the array sizes of 0.7 skin (part) names are more inconsistent and seemingly broken with demos so this requires some more work. We already have constants for 0.7: https://github.com/ddnet/ddnet/blob/a1d7f0f1f07688a5d9832d30d0823dbd84880f3d/src/engine/shared/protocol7.h#L63-L64 But in many cases, arrays are currently sized 24 or `protocol7::MAX_SKIN_LE...
Avatar
Avatar
Ewan
no, i'm curious
Wayland had big governance issues, with the project having looong dragged out merge reviews. This particular vsync issue had been talked about for years and a couple people were just blocking it. So Valve just went around them and established a separate process to get protocols in there called "frog-protocols". Basically a process wherein experimental processes can be developed incrementally. This seems to have waken up the wayland-protocols governance people up from their eternal slumber. Now it seems there will be some very nice governance policy changes coming to wayland
greenthing 1
Avatar
Avatar
MilkeeyCat
@Learath2 it finally works and doesn't swap operands xd
Woooo
Avatar
Avatar
triki
where is a blank? i cant find
You should create myServerconfig.cfg in your config directory so it's not lost by updates
Avatar
GitHub BOT 2024-10-06 09:37
I see a new feature where you switch tee the camera moves smoothly. so what about when u switch the camera will zoom out and then zoom in. If you have a good PC, this will be satisfying to watch. like on the video. https://github.com/user-attachments/assets/821bd537-78ad-4e37-892f-c5a5bac073cf
Avatar
GitHub BOT 2024-10-06 12:57
Reported by triki on Discord: ``` 0x00000001400c31b4: std::_Rb_tree<int, std::pair<int const, std::vector<vector2_base, std::allocator > >, std::_Select1st<std::pair<int const, std::vector<vector2_base, std::allocator > > >, std::less, std::allocator<std::pair<int const, std::vector<vector2_base, std::allocator > > > >::_M_erase(std::_Rb_tree_node<std::pair<int const, std::vector<vector2_base, std::allocator > > >*) at /usr/x86_64-w64-mingw32/include/c++/13.1.0/bits/stl_tree.h:1936 0x000...
Avatar
MilkeeyCat 2024-10-06 13:20
@Learath2 i did packer poggers2 look at this beauty https://github.com/MilkeeyCat/ddnet-meraki/blob/master/main.mk
13:21
it doesn't have syntax highlighting tho feelsbadman
Avatar
Avatar
MilkeeyCat
it doesn't have syntax highlighting tho feelsbadman
Contact github
Avatar
Avatar
MilkeeyCat
@Learath2 i did packer poggers2 look at this beauty https://github.com/MilkeeyCat/ddnet-meraki/blob/master/main.mk
multiple return values, when?
Avatar
Avatar
jxsl13
multiple return values, when?
tuples when*
Avatar
not tuples
15:08
but also tuples
15:08
in addition to multiple return values
Avatar
if you have tuples in your lang you don't need multiple return values xd
Avatar
I want multiple return values
15:09
D:
Avatar
its meraki
15:09
not goraki xd
banhammer 1
15:09
justatest
Avatar
MultiplE Return AKI (edited)
Avatar
Avatar
jxsl13
multiple return values, when?
MilkeeyCat 2024-10-06 15:23
C doesn't have tuples so probably never xd
Avatar
not tuples D:
15:25
is it not possible to wrap return values as C structs?
Avatar
Avatar
Learath2
Contact github
MilkeeyCat 2024-10-06 15:26
We try only to add languages once they have some usage on GitHub. In most cases we prefer that each new file extension be in use in at least 200 unique :user/:repo repositories before supporting them in Linguist
https://github.com/github-linguist/linguist/blob/main/CONTRIBUTING.md All I have to do is ask chiller to make 1 repo on each of his github accounts 😬
👀 1
Avatar
MilkeeyCat 2024-10-06 15:39
What do I need next? xd
Avatar
interpreter
15:40
justatest
Avatar
MilkeeyCat 2024-10-06 15:41
i wanna connect a tee to ddnet server
15:41
and I implemented packer, what do I need next thonk
Avatar
grab libtw2/gamenet and rewrite it to feet ur language
15:44
then do epic generate and generate 0.6 protocol structs
15:44
but i think you need to check out network.h/cpp in src/engine
Avatar
Avatar
MilkeeyCat
i wanna connect a tee to ddnet server
Next step is implementing CNetPacketConstruct and CNetChunk
15:49
then next CNetBase and CNetConnection
Avatar
Well idk if he wants to completely mimic that part, but he will definitely need the ability to pack chunks and those chunks into packets. After that, he has everything needed to generate a valid packet that can be parsed
15:52
I guess CNetConnection you pretty much have to mimic exactly, but the connection level protocol isn't very complicated anyway.
15:52
-> CONNECT <- CONNECTACCEPT -> ACCEPT (pretty much useless iirc)
15:57
After you get a connection up, you need a small exchange on the engine level where you can just ignore everything since you want to just get a tee in there -> NETMSG_INFO <- NETMSG_MAP_CHANGE -> NETMSG_READY <- NETMSG_CON_READY
15:58
And finally iirc you just need to send 2 game messages startinfo and enter_game (edited)
Avatar
Avatar
Learath2
Next step is implementing CNetPacketConstruct and CNetChunk
MilkeeyCat 2024-10-06 16:21
Is there any description somewhere what CNetPacketConstruct and CNetChunk is used for? justatest
Avatar
network.h has some documentation on it but libtw2 has it cleaner
Avatar
GitHub BOT 2024-10-06 16:51
player_color_body, player_color_feet, dummy_color_body, dummy_color_feet all only accept ints now. Previously you could also type certain colors, and hex color codes. $FF0101 is not a valid integer. red is not a valid integer.
🇫🇷 1
Avatar
Avatar
Learath2
Wayland had big governance issues, with the project having looong dragged out merge reviews. This particular vsync issue had been talked about for years and a couple people were just blocking it. So Valve just went around them and established a separate process to get protocols in there called "frog-protocols". Basically a process wherein experimental processes can be developed incrementally. This seems to have waken up the wayland-protocols governance people up from their eternal slumber. Now it seems there will be some very nice governance policy changes coming to wayland
Oh I saw that. I didn’t know the frog guy was valve affiliated
Avatar
Ем привет? Тут можно говорить по русски?
Avatar
Avatar
руцу
Ем привет? Тут можно говорить по русски?
$deepl
Avatar
Avatar
руцу
Ем привет? Тут можно говорить по русски?
Hi! Most of us communicate in English. If you’re having trouble with English, use https://www.deepl.com/en/translator to help you out.
Avatar
Avatar
руцу
Ем привет? Тут можно говорить по русски?
В #off-topic да.
Avatar
Буду рада бить у вас в компании=>
Avatar
cyberfighter 2 2024-10-06 16:59
whos in charge of deciding what community servers are
Avatar
there seemingly is not even a definition or set if rules for how to get that status.
Avatar
cyberfighter 2 2024-10-06 17:00
i phrased that a bit badly
17:00
sorry
17:01
well i have noticed that one of the communities is just absolutely filled with cheaters and im not exactly sure if their moderators are doing anything about it
Avatar
that's their problem, imo
Avatar
cyberfighter 2 2024-10-06 17:02
then they shouldnt be allowed to be in the list
Avatar
why not
17:02
is there a rule?
17:02
there are seemingly no rules
Avatar
cyberfighter 2 2024-10-06 17:02
not that i know of but isnt it kind of stupid?
Avatar
should the server hoster be liable for what their users do?
17:03
I hope not
17:04
imagine being the hoster of the community servers
17:04
how would you fix the problem
Avatar
cyberfighter 2 2024-10-06 17:05
actually moderate the servers
Avatar
24/7 yourself?
Avatar
cyberfighter 2 2024-10-06 17:05
as if mod teams dont exist
Avatar
dunno, how many mods does fokko have?
Avatar
cyberfighter 2 2024-10-06 17:06
a few but it doesnt really matter since he does ban cheaters most of the times
Avatar
is it a requirement to have moderated servers to be part of that community list?
Avatar
cyberfighter 2 2024-10-06 17:07
i dont know but imo it should
17:07
what if a player starts cheating because they saw others cheating in the community servers just fine
17:07
and ddnet is super against cheating
Avatar
anyone is against cheating lol
17:07
you'd ban ddnet if their anticheat can't catch a new cheat client ?
Avatar
maybe that's just a toxic community and there is something fundamentally wrong with that community.
Avatar
for eg
Avatar
Avatar
ReiTW
you'd ban ddnet if their anticheat can't catch a new cheat client ?
cyberfighter 2 2024-10-06 17:08
no
Avatar
there's no reason to kick a server from the community then
17:09
anyone tries their best to avoid cheaters, some have the luck to use some anticheats like noby's one
17:09
others just ban after checking a report
Avatar
I think you are speaking from a user perspective and have never experienced the hoster side yourself, cyberfighter.
Avatar
a game with 0 cheater is a dead game with no players lmao
Avatar
there are multi billion dollar companies fighting cheaters, I have yet to hear that they won that fight.
Avatar
Avatar
cyberfighter 2
whos in charge of deciding what community servers are
admin team
Avatar
Avatar
cyberfighter 2
well i have noticed that one of the communities is just absolutely filled with cheaters and im not exactly sure if their moderators are doing anything about it
which one?
Avatar
cyberfighter 2 2024-10-06 17:16
requiem
Avatar
cyberfighter 2 2024-10-06 17:16
smth bout it?
Avatar
requiem hosted by 1 or 2 teenagers with no actual experience in moderating the game
17:17
i think every linear map magnets bunch of cheaters
17:17
le bunch
Avatar
Avatar
cyberfighter 2
not that i know of but isnt it kind of stupid?
Currently no rules, but we are actively discussing some rules. I do agree that we should expect some things of communities to be listed on the top right
Avatar
cyberfighter 2 2024-10-06 17:18
i mean idk i expect communities to be moderated at least a little bit
Avatar
retrospectively applying rules will be fun
Avatar
Avatar
cyberfighter 2
i mean idk i expect communities to be moderated at least a little bit
Avolicious 2024-10-06 17:19
Have you ever moderated a community? Not only talking about teeworlds, in general 😄
Avatar
Avatar
Avolicious
Have you ever moderated a community? Not only talking about teeworlds, in general 😄
cyberfighter 2 2024-10-06 17:19
yeah
Avatar
Avatar
jxsl13
retrospectively applying rules will be fun
It'll be simple this time. Atleast I'm of the opinion of "no discussions". Your community no longer qualifies to be in the community pane. Please re-apply after you fulfill the requirements
Avatar
Avatar
cyberfighter 2
yeah
Avolicious 2024-10-06 17:21
Moderation is hard & doesnt scale well in the voluntary business. Basically you need 24/7 moderation, where atleast 1 moderator is available all the time
Avatar
wasn't there some comunity exception from the beginning, was it kog?
17:21
Kinda remember there being some discussion
Avatar
Avatar
Avolicious
Moderation is hard & doesnt scale well in the voluntary business. Basically you need 24/7 moderation, where atleast 1 moderator is available all the time
I'm guessing he is more referring to the fact that there is actually 0 attempt at moderation here. I think we can expect atleast best effort moderation from communities
Avatar
Avatar
Avolicious
Moderation is hard & doesnt scale well in the voluntary business. Basically you need 24/7 moderation, where atleast 1 moderator is available all the time
thats not whats cyberfighter yapping about
17:22
yeah lerato got da point
Avatar
Avatar
Learath2
I'm guessing he is more referring to the fact that there is actually 0 attempt at moderation here. I think we can expect atleast best effort moderation from communities
cyberfighter 2 2024-10-06 17:22
Btw i might be wrong, i havent actually checked if they tried to moderate but i did report some people on their discord
17:22
ill see later though
Avatar
does vanilla need moderation?
Avatar
cyberfighter 2 2024-10-06 17:22
no response yet
Avatar
Avatar
jxsl13
does vanilla need moderation?
sometimes
Avatar
Avatar
jxsl13
wasn't there some comunity exception from the beginning, was it kog?
Currently I don't think we have any "exceptions". All communities are pretty much treated equally. The only thing I can think of is that the ddnet community is selected by default
Avatar
or a report system only?
Avatar
aquz funvotes me everytime
17:23
and noobs just press f3 in 1 second
Avatar
the server has decoded :'()
17:23
jk
Avatar
it was today too, on vanilla rus
17:24
we got 16/16 btw
Avatar
in that case, a simple reporting tool should suffice
17:24
not someone being active on a server
Avatar
Also, @Avolicious I was looking into enabling finish flags for 3rd party servers, are you still okay with the earlier design we were considering? You'd have to just do a rest api request whenever a finish happens (edited)
Avatar
Avatar
Learath2
Also, @Avolicious I was looking into enabling finish flags for 3rd party servers, are you still okay with the earlier design we were considering? You'd have to just do a rest api request whenever a finish happens (edited)
Avolicious 2024-10-06 17:25
Yeah, we can go for REST 🙂
Avatar
Perfect, I'll try to whip up something by friday assuming they don't randomly assign me 5 tickets at work
Avatar
Avolicious 2024-10-06 17:25
what params do you send? <rest>/?username=<username> ?
Avatar
urgh, query oarams
17:26
parame
Avatar
Avatar
jxsl13
urgh, query oarams
Avolicious 2024-10-06 17:26
thats how GET request works 😄
Avatar
it's a GET :0?
Avatar
Avolicious 2024-10-06 17:27
Yeah, no post body, just asking for a username & get the result
Avatar
well, forget I said anything
Avatar
Oh, that part will probably just be internal, we can expose it probably but it'd be no use for you
17:28
I'm thinking PUT /finishes/<community>/<map>/<username> for you to insert your finishes
Avatar
what happens with the data once a community looses its community status
Avatar
Avatar
Learath2
I'm thinking PUT /finishes/<community>/<map>/<username> for you to insert your finishes
Avolicious 2024-10-06 17:29
Oh, its the other way 😄 I see
Avatar
and another community with that exact same name wants to be added
17:30
king of grenade
17:30
xD
Avatar
Avatar
jxsl13
king of grenade
Avolicious 2024-10-06 17:30
its not gores tho 😄
17:30
its grenade
Avatar
Avatar
jxsl13
what happens with the data once a community looses its community status
It shouldn't be happening all the time, but if it does I guess we can delete it in 30 days or when requested. I don't think we would allow people to register the exact same community id anyway
Avatar
might make sense to use ids instead of names?
Avatar
Avatar
Learath2
I'm thinking PUT /finishes/<community>/<map>/<username> for you to insert your finishes
Or maybe POST /finishes/<community>/<map> to allow batched inserts
Avatar
assuming <community> was a name like kog
17:32
and not an id
Avatar
Anyway, the exact paths aren't that important. I wanted to check if you'd be okay with the general idea
Avatar
Avatar
jxsl13
assuming <community> was a name like kog
eh, we assign them by hand, so idk if it's that important
👀 1
Avatar
Avatar
jxsl13
assuming <community> was a name like kog
That's an ID. The same ID will not be used again even if another network with the same name appears
👍 1
Avatar
POST /data/<community>/finishes/<map> might keep it more generic too incase there is other data we want to store on behalf of third parties later
Avatar
will that service be hosted on some specific subdomain in order to group community api endoints or is there some prefix like /community/id/finishes/map required?
Avatar
Did you know that the sum of the first n cubes is equal to the (sum of the first n numbers) squared?
Avatar
Avatar
jxsl13
will that service be hosted on some specific subdomain in order to group community api endoints or is there some prefix like /community/id/finishes/map required?
Probably something like community.ddnet.org for all community endpoints
Avatar
hmhm
Avatar
Avatar
Learath2
Did you know that the sum of the first n cubes is equal to the (sum of the first n numbers) squared?
what am i supposed to do with this information 😄 ?
Avatar
destroy the universe
Avatar
Avatar
Chairn
what am i supposed to do with this information 😄 ?
Use it as you please. No strings attached. You are welcome
Avatar
Jupstar ✪ 2024-10-06 19:29
does someone have an API to fetch the last player skin of a given player name? gerdoe sent me the API from furo: https://ddstats.tw/player/json?player=n9 but it's way too verbose, i'd dos the server xD
Avatar
im summoning furo
19:30
le furo come in fury!
Avatar
Jupstar ✪ 2024-10-06 19:30
come not furo
Avatar
Koll Potato 2024-10-06 19:43
no way ramanujan mentioned!!!
19:43
not like i know much about him
Avatar
I'll add a route with just profile and one that would work with players that don't have points on DDNet.
Replying to @Jupstar ✪ does someone have an API to fetch the last player skin of a given player…
Avatar
Jupstar ✪ 2024-10-06 20:35
epyc
20:35
thanks
Avatar
There we go, I have added https://ddstats.tw/profile/json?player=n9.
Replying to @Jupstar ✪ epyc
Avatar
Avatar
furo
There we go, I have added https://ddstats.tw/profile/json?player=n9.
gigachad furo
20:52
working at the speed of light
Avatar
Jupstar ✪ 2024-10-06 20:52
that was fast
Avatar
MilkeeyCat 2024-10-06 20:56
chillerdragon: im getting closer xd
Avatar
GitHub BOT 2024-10-06 21:14
Previously, skins not found in the skins folder were downloaded from the configured URL and saved to the downloadedskins folder, but the saved files were never used, leading to wasted downloads and write operations. Now, if a skin to be downloaded already exists in the downloadedskins folder, the modified time of the skin file is determined and a HTTP HEAD request is sent to the skin download URL to determine when the skin to be downloaded was last modified. The times are compared wi...
Avatar
Avatar
Jupstar ✪
does someone have an API to fetch the last player skin of a given player name? gerdoe sent me the API from furo: https://ddstats.tw/player/json?player=n9 but it's way too verbose, i'd dos the server xD
why is there json in the request
Avatar
GitHub BOT 2024-10-06 21:57
77cee82 Add contribution guidelines - ChillerDragon 0aa6cfc deen's tweaks in CONTRIBUTING.md - ChillerDragon b41512a Merge pull request #8288 from ChillerDragon/pr_add_contributing - def-
Avatar
Avatar
GitHub
Click to see attachment 🖼️
lmfao
Avatar
Avatar
ReiTW
why is there json in the request
because it's json kekeke
Avatar
Avatar
zhn
because it's json kekeke
yes but that's useless asf
22:37
http standards has headers for that
22:37
like Accept
22:37
Accept: application/json
Avatar
nerdge
Avatar
Jupstar ✪ 2024-10-06 22:47
I guess if he wants to add yaml then he can simply add /yaml and still have /json
22:47
Can't hurt xd
22:48
Using headers is probs more complicated
Exported 217 message(s)
Timezone: UTC+0