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-09 00:00:00Z and 2024-04-10 00:00:00Z
Avatar
add u to literal
01:31
69692d7 update readme on building with MSVC on windows - BlaiZephyr dee8ba4 Merge pull request #8195 from BlaiZephyr/fix-win-readme - def-
Avatar
chillerdragon BOT 2024-04-09 04:05:37Z
Hi
Avatar
how r u?
Avatar
Hey
04:26
how r u?
Avatar
chi hast
Avatar
webchat
04:26
what are u selling
Avatar
ewan
Avatar
male or female?
Avatar
how r u?
Avatar
male and well how about urself
Avatar
هعی
Avatar
male too
Avatar
male بدرد نمیخوره
Avatar
male 3
Avatar
فارسی بلدی؟
Avatar
r u coder?
Avatar
someone
04:27
not somewhat
Avatar
can u teach me how to manipulate ddnet source code?
Avatar
where did you studying english?
Avatar
from where should I start?
Avatar
from the int main
04:28
ha ha ha
Avatar
Moein: i can help u but u need to be more specific
04:28
Kourosh: wdym
Avatar
I mean are you C++ programmer buddy?
Avatar
wow
04:29
it's great
Avatar
very nice, I want to make it somewhat that connects to my api and for example at each round give the winners
04:29
and their score
Avatar
u want to submit game scores to your api?
Avatar
Exactly
04:30
احسنتم
Avatar
what kind of api is it
Avatar
Good API
Avatar
python API
04:30
Flask API
Avatar
flask for example
Avatar
but it's http?
Avatar
Yes.. HTTP
04:30
or HTTPS
Avatar
it can be
04:30
should be easy enough
Avatar
So explain to us
04:30
please
04:30
If you explain we will pay you
04:31
We will give you 1,000,000 ريال
Avatar
put your wallet address too bro
Avatar
ddnet already comes equipped with libcurl, all u have to do is read libcurl api docs to send http requests
Avatar
Really?
04:32
Imean جدی میفرمایید؟
Avatar
yeah, u can look up examples on stack overflow
Avatar
Would you please give us link?
Avatar
which part of the code should I read?
04:32
because the code I've downloaded
Avatar
had many parts
04:33
and it was peculiar for me to dig into it
Avatar
ddnet does have a pretty elaborate codebase
Avatar
You know
04:33
we wanna know
04:33
where in the c source code
04:33
should we add the code of libcurl or someshit like that
04:35
Hey?Ewan?
04:35
BUZZZZZZZZZZZZZZ
Avatar
look at engine/shared/http.cpp
Avatar
Wow
04:35
really?
Avatar
Let us see
04:36
Would you please clarify where in this code?
Avatar
anywhere you see curl_ function calls i guess
Avatar
Specify which function if it's possible.
Avatar
yes, cause it has many functions, Which function calls at the end of each round
Avatar
you'd mainly be doing something like this though const char *data = "submit = 1"; curl_easy_setopt(curl, CURLOPT_URL, "http://10.5.10.200/website/WebFrontend/backend/posttest.php"); /* size of the POST data */ curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 10L); /* pass in a pointer to the data - libcurl will not copy */ curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data); curl_easy_perform(curl); this is from the stackoverflow answer i posted earlier
04:37
using the curl_easy interface it's very trivial to send http requests
04:38
you ought to look at the answer code instead of the question though they may have better wistom :^)
04:38
wisdom
Avatar
You know let me say exactly what we wanna do... we have an api and wanna run some competition and need to start a game and get the game's result.
Avatar
do you know how to use your API for this if you were just sending example data
04:40
i can't really help you further without doing it for you
Avatar
I jus wanna send game data to some api
04:41
If it's true then please do it for us
Avatar
what part of that can't you do
04:41
you will really have to be more specific
Avatar
Don't know where in the code should we add the code that sends the data to our api.
Avatar
we want to start competions, in our server, after each round all of the servers should send game results ( First, Second, Third Player, ... and their score), now we want to know that from which part of the code of ddnet source
Avatar
you want it to happen at the end of every game?
Avatar
can give us these results
Avatar
Yes
04:42
Exactly
Avatar
let me see
Avatar
at the end of every game
04:42
Thanks buddy
Avatar
see CGameTeams::OnFinish
04:45
you can see how all of the data is collected and sent to the client so it can be shown on their statboard
Avatar
where Ewan
04:46
where
04:46
where in the code?
04:46
Which file, which line, which function?
Avatar
in ddnet this is in game/server/teams.cpp
04:46
i told you which function
04:46
void CGameTeams::OnFinish(CPlayer *Player, float Time, const char *pTimestamp);
Avatar
where
Avatar
but i am sending u info for ddnet server
04:47
which is the race mode
04:47
and i think u want pvp
04:47
but idk what server you're basing yours off of
Avatar
Morning
Avatar
ws-client BOT 2024-04-09 04:49:09Z
<ChillerDragon> mornin
Avatar
hi chiller
Avatar
ws-client BOT 2024-04-09 04:49:22Z
<ChillerDragon> uwun
Avatar
can u direct these charming fellows to the spot in the game server code where the match ends
04:49
on some pvp
04:49
idk which yet bcs they went MIA
Avatar
ws-client BOT 2024-04-09 04:50:01Z
<ChillerDragon> missing in amsterdam?
Avatar
missing in action
Avatar
we want fng
04:50
mode
Avatar
ws-client BOT 2024-04-09 04:50:26Z
A teeworlds instagib (grenade/laser capture the flag) mod based on DDRaceNetwork (gctf/ictf) - ZillyInsta/ddnet-insta
04:50
<ChillerDragon> here fng
Avatar
Or DogeBall
04:50
Or football
Avatar
if it is possible :
Avatar
ws-client BOT 2024-04-09 04:50:33Z
<ChillerDragon> no dogeball
Avatar
whose fng are you basing it off of?
Avatar
Or soccer
04:51
Couldn't understand
Avatar
what do you mean?
Avatar
Basketball?
Avatar
you will have to modify all of these game modes individually to get it to work in them
Avatar
ws-client BOT 2024-04-09 04:51:17Z
<ChillerDragon> did u ever play basketball @MilkeeyCat ?
Avatar
ChillerDragon: Shutup
Avatar
chillerdragon: a few times and once got hit by the ball in my face
Avatar
ws-client BOT 2024-04-09 04:52:23Z
<ChillerDragon> omg not irl
04:52
<ChillerDragon> cring
04:52
<ChillerDragon> i mean in teeworlds
Avatar
._.
Avatar
ws-client BOT 2024-04-09 04:52:34Z
<ChillerDragon> with shotgun
Avatar
ChillerDragon: Shutup
04:52
we have a important question
Avatar
I don't even know if this mode exists lmao
Avatar
what the fuck are you talking about
Avatar
ws-client BOT 2024-04-09 04:52:57Z
<ChillerDragon> thats what i thought @MilkeeyCat
04:53
<ChillerDragon> i don't think there are any servers anymore
04:53
<ChillerDragon> when did u start playing tw @MilkeeyCat ?
Avatar
ChillerDragon: You are definitely an idiot
Avatar
First Finish 08.09.2020
Avatar
ws-client BOT 2024-04-09 04:54:19Z
<ChillerDragon> eww ddracer
Avatar
Me new
Avatar
ws-client BOT 2024-04-09 04:54:34Z
<ChillerDragon> yea likely u never had the chance to play basketball
Avatar
I wish i found ddnet earlier
04:54
It had some cool ass vibe before
Avatar
ws-client BOT 2024-04-09 04:55:09Z
<ChillerDragon> don't forget the time before ddnet hehe
Avatar
(saw it from aoe vids)
Avatar
ws-client BOT 2024-04-09 04:55:27Z
<ChillerDragon> i used some goofy ddrace client (not ddnet) on my old macbook :D
Avatar
Average chillerdragon moment
Avatar
anyone there
04:56
?
Avatar
ws-client BOT 2024-04-09 04:56:35Z
<ChillerDragon> hi
04:56
<ChillerDragon> we are still waiting for your response
Avatar
from where can I obtain fng scores at the end of each round?
Avatar
ws-client BOT 2024-04-09 04:56:47Z
<ChillerDragon> from ewans question
04:56
<ChillerDragon> which code base are you currently working in
Avatar
nothing yet, we want to chose
04:57
please guide us
04:57
:')
Avatar
ws-client BOT 2024-04-09 04:57:28Z
<ChillerDragon> i think jopstis fng is best
04:57
<ChillerDragon> but not too sure
Avatar
where is the repo?
Avatar
ws-client BOT 2024-04-09 04:58:12Z
<ChillerDragon> you want 0.6 or 0.7 or both?
04:58
FNG mod for teeworlds, that advances the original FNG idea by golden spikes and other features - Jupeyy/teeworlds-fng2-mod
Avatar
and do you know my question's answer?
Avatar
When 1.0
Avatar
ws-client BOT 2024-04-09 04:58:30Z
<ChillerDragon> depends on the code base
Avatar
Suppose that this is our code base https://github.com/Jupeyy/teeworlds-fng2-mod
FNG mod for teeworlds, that advances the original FNG idea by golden spikes and other features - Jupeyy/teeworlds-fng2-mod
Avatar
ws-client BOT 2024-04-09 05:01:11Z
FNG mod for teeworlds, that advances the original FNG idea by golden spikes and other features - Jupeyy/teeworlds-fng2-mod
05:01
<ChillerDragon> for example here
05:01
<ChillerDragon> or here
05:01
FNG mod for teeworlds, that advances the original FNG idea by golden spikes and other features - Jupeyy/teeworlds-fng2-mod
Avatar
thanks chiller
05:02
i forgot and then played some gores
Avatar
thank you
05:03
ChillerDragon
05:03
Mighty God Bless You
05:03
dude
Avatar
ws-client BOT 2024-04-09 06:47:24Z
<ChillerDragon> omg pyson is the worst
06:47
<ChillerDragon> it took me 5mins to add multi processing to the bash script and i spent hours on porting the same code to python
06:48
<ChillerDragon> its literally one character in bash to go blazingly fast on all cpu cores
06:49
<ChillerDragon> at least i managed to max out all cpu cores now... but its probably spent in pyson land trying to compute for loops :D also wtf my progress counter is so drunk
06:49
<ChillerDragon> @heinrich5991 pain
06:49
<ChillerDragon> i am pretty sure the shell script would have been faster, easier to maintain, more portable and duh it was already finished and working
Avatar
what are you doing?
07:25
btw can I have a chillertube acc?
Avatar
will the world ever know who jia tan is
Avatar
I think He is trying to fix #8151 #8154 and #8141
Avatar
Tested with clang version 19.0.0git (https://github.com/llvm/llvm-project.git 57146daeaaf366050dc913db910fcc2995a3e06d) For now it is only checking local variables. There are also member/private/p...
Removed member prefix m_ used for local variables. Removed all b, c, i hungarian notation prefixes for boolean, const and integers. Fixed local variables using lower_snake_case instead of UpperCame...
This is not a pullrequest. This is an issue. #8019 just introduced a strict style guide. And it has been already violated. This should either be checked manually before new prs get merged. Or fixed...
Avatar
Chillerdragon: you messed up so much code of mine by changing up the variable names xdd I spent like half an hour renaming my stuff
Avatar
chillermicrosoftdragon
Avatar
Avatar
TsFreddie
will the world ever know who jia tan is
isnt that the xz attacker
Avatar
He's gigachad
08:32
But bad one
Avatar
Avatar
Ewan
isnt that the xz attacker
i mean yeah, but who are they
Avatar
I just ran into https://github.com/google/googletest/issues/4206 and realized that it is fixed on the main branch and google also recommends to use the main branch. From their readme
GoogleTest now follows the Abseil Live at Head philosophy. We recommend updating to the latest commit in the main branch as often as possible. We do publish occasional semantic versions, tagged with v${major}.${minor}.${patch} (e.g. v1.14.0).
https://github.com/google/googletest/blob/3d73dee97...
Avatar
Avatar
TsFreddie
i mean yeah, but who are they
I bet it’s not one person, it could be a state actor
09:09
Russia, Iran, China, America all have robust cyber warfare teams that could be behind it
Avatar
but still, will we ever know which state it is
Avatar
hi someone said my name
Avatar
Avatar
TsFreddie
but still, will we ever know which state it is
Unlikely unless it’s the US and there is another snowden incident
Avatar
Avatar
cyberFighter
hi someone said my name
Avatar
Avatar
Learath2
Unlikely unless it’s the US and there is another snowden incident
oof
Avatar
ws-client BOT 2024-04-09 09:51:10Z
<ChillerDragon> @Teero you can go here https://tube.zillyhuhn.com/php/register.php the alpha token is please_change_this it will error on mkdir but thats fine. Your credentials should then work fine.
09:51
<ChillerDragon> But you can not do anything with an account :D
09:51
<ChillerDragon> I upload videos manually via ssh access
Avatar
Avatar
Learath2
Russia, Iran, China, America all have robust cyber warfare teams that could be behind it
even Iran hmm didn't know that
Avatar
ws-client BOT 2024-04-09 09:54:16Z
<ChillerDragon> @Teero which rename? you mean heinrichs pr?
09:57
<ChillerDragon> I wonder what the goal of xz was. Maybe it wasnt a state actor but it was a 12yo kid who tried to ssh into one specific pentagon server. And decided adding a vulernability into ALL ssh servers was the easiest approach given he had 8 hours to kill every day anyways skipping school
09:58
<ChillerDragon> Thats why the goverment spreads the propaganda "stay in school kids" because they are scared of unemployed bored ppl hacking the most secure state level infrastructure
✅ 1
Avatar
Avatar
ws-client
<ChillerDragon> I upload videos manually via ssh access
oof
Avatar
Avatar
ws-client
<ChillerDragon> @Teero which rename? you mean heinrichs pr?
Renaming everything for example ID to Id and UI to Ui
Avatar
aa34ebe Update gtest to current main branch - ChillerDragon 39dd2a5 Merge pull request #8196 from ChillerDragon/pr_gtest_to_main - def-
Avatar
Avatar
ws-client
<ChillerDragon> Thats why the goverment spreads the propaganda "stay in school kids" because they are scared of unemployed bored ppl hacking the most secure state level infrastructure
True. I'm gonna quit school now
Avatar
Avatar
Teero
Renaming everything for example ID to Id and UI to Ui
Allah willing they are now content with the naming and style and we won't get any more of these massive commits that add nothing but merge conflicts
Avatar
Imagine introducing merge conflicts just to make code uglier "GpuId"
10:15
smh
Avatar
Avatar
Learath2
Allah willing they are now content with the naming and style and we won't get any more of these massive commits that add nothing but merge conflicts
#6775 got completely borked by recent commits of chiller
Avatar
Adds teleport prediction for tees, projectiles, lasers, and hook. The client will incorrectly predict teleports with multiple exits unless sv_teleport_seeds is 1. The seeding is based on gametick a...
Avatar
Avatar
Learath2
Imagine introducing merge conflicts just to make code uglier "GpuId"
Yea it looks ugly asf but ig it's theoretically correct but who cares xd
Avatar
going home
Avatar
You may think I'm insane but IMO coding isn't just theory, I feel it has a smidge of art within and these rigid things are ruining that aspect for me
10:19
Sure functionality above all but there is just something about beautiful code that hits the spot for me
Avatar
Avatar
Learath2
You may think I'm insane but IMO coding isn't just theory, I feel it has a smidge of art within and these rigid things are ruining that aspect for me
you are always insane
Avatar
It's like telling dali his proportions are off
Avatar
Sometimes optimised code looks so beautiful I get tears in my eyes
10:25
I'm serious
Avatar
I like the way you think
Avatar
I like it tightly packed :D
10:27
Always one cr after closing brackets
Avatar
beauty
Avatar
Avatar
Learath2
You may think I'm insane but IMO coding isn't just theory, I feel it has a smidge of art within and these rigid things are ruining that aspect for me
it is art
10:28
rust is art
Avatar
Avatar
MilkeeyCat
beauty
See, this brings so much displeasure, if a formatting tool told me this is the best way, I would just not use the formatting tool
Avatar
Please always do if(!c) return;
Avatar
Just opening this file would ruin my morning
Avatar
Sometimes clang format does shit
Avatar
Avatar
Teero
Please always do if(!c) return;
Exactly, the guard pattern is the best, no matter what CS purists say about multiple exit points from functions being bad
Avatar
Avatar
Teero
Sometimes clang format does shit
Like sometimes when I have a lot of vars for the same topic and they have default values I Indent the = signs for better readability (edited)
Avatar
Avatar
Learath2
Exactly, the guard pattern is the best, no matter what CS purists say about multiple exit points from functions being bad
What do you think about multilevel inline if statements?
10:33
Very dirty imo
Avatar
Avatar
Teero
What do you think about multilevel inline if statements?
multilevel inline if? like the condition spanning multiple lines?
Avatar
I mean smth like int a = b >= 63 ? 0 : (c <= 0 ? 31 : 0)
Avatar
Ah, ternaries. I don't like it if there is more than 2 and there aren't parens
Avatar
And where is the logic of attaching a hook in scripts?
Avatar
Avatar
dexter
And where is the logic of attaching a hook in scripts?
what?
Avatar
Avatar
Teero
what?
he asked where is the logic of attaching a hook in scripts?
Avatar
I think he's lost
Avatar
Avatar
Learath2
Ah, ternaries. I don't like it if there is more than 2 and there aren't parens
Imo with long variable names it can get really ugly, especially when having big formulas
Avatar
Avatar
Teero
what?
I mean where is the code associated with the hook
10:39
I'm lost.
Avatar
Ah that's what you mean
Avatar
gamecore.cpp is where most of it is at
✅ 1
Avatar
Check in gamecore.cpp
Avatar
TILE_TELEINHOOK What is TELE?
Avatar
There are teleporter tiles that teleport the hook to a different position upon hooking them
10:42
They are orange
Avatar
edlang now uses llvm 18
12:28
@Learath2
Avatar
ws-client BOT 2024-04-09 13:38:43Z
<ChillerDragon> @Teero @Learath2 ye that pr was from heinrich but all merge conflicts should be solvable with one command. I did not run into any issues I had to fix manually while merging forks and prs.
Avatar
test test 1 2 3
Avatar
test completed - thank you.
Avatar
Avatar
Ryozuki
@Learath2
I knew this thing existed but never really read into the details. I've added it to my archive of knowledge
Avatar
Avatar
Teero
Click to see attachment 🖼️
Fuck analog clocks all my homies hate analog clocks Who actually finds it easier to read the time from that vs 4 digits (edited)
Avatar
they are cool
15:27
cry me a river bitch
15:27
ok no insults oops
Avatar
Be glad heinrich is away
Avatar
Looking at the hour and then doing the mental calculation 5*minute hand position + 0-4 is annoying I don't want to do math to read it
Avatar
Avatar
Learath2
I knew this thing existed but never really read into the details. I've added it to my archive of knowledge
ye
15:29
Making system calls can be slow. In x86 32-bit systems, you can trigger a software interrupt (int $0x80) to tell the kernel you wish to make a system call. However, this instruction is expensive: it goes through the full interrupt-handling paths in the processor's microcode as well as in the kernel. Newer processors have faster (but backward incompatible) instructions to initiate system calls. Rather than require the C library to figure out if this functionality is available at run time, the C library can use functions provided by the kernel in the vDSO. Note that the terminology can be confusing. On x86 systems, the vDSO function used to determine the preferred method of making a system call is named "__kernel_vsyscall", but on x86-64, the term "vsyscall" also refers to an obsolete way to ask the kernel what time it is or what CPU the caller is on. One frequently used system call is gettimeofday(2). This system call is called both directly by user-space applications as well as indirectly by the C library. Think timestamps or timing loops or polling—all of these frequently need to know what time it is right now. This information is also not secret—any application in any privilege mode (root or any unprivileged user) will get the same answer. Thus the kernel arranges for the information required to answer this question to be placed in memory the process can access. Now a call to gettimeofday(2) changes from a system call to a normal function call and a few memory accesses.
15:29
interesting
Avatar
Avatar
Peter0x44
Looking at the hour and then doing the mental calculation 5*minute hand position + 0-4 is annoying I don't want to do math to read it
You don't do the calculation while reading it. Just by looking at it you instantly know
Avatar
I can't do that
Avatar
You can, just need to do it more
Avatar
also i like the ticking sound
Avatar
It's not instant for me, reading numbers is
Avatar
Start by memorizing the landmarks, 0 up top, 15 to the right, 30 to bottom, 45 to left
Avatar
minutes do kinda suck tho i agree
Avatar
Then it's just a matter of how far to the left or right of the landmarks the minute hand is
Avatar
Already more effort than reading two numbers
Avatar
Ofc it is, there is a reason we made digital clocks
15:31
With that attitude yeah, I can see you never being able to do it
Avatar
I can do it
15:33
I just don't want to
15:33
Anyway probably not a relevant debate here lol
Avatar
You obviously can't, as if you could then you wouldn't need to do any math
Avatar
analog is cooler. Otherwise we wouldn't have overpriced analog watches greenthing
Avatar
i doubt ppl buy 50k watches to know the time
Avatar
expensive watches are more status symbols than anything
Avatar
who is the network pro in ddnet source?
Avatar
Avatar
Daniel
who is the network pro in ddnet source?
🗿 1
☝️ 1
Avatar
there is no question.. its more like a poll 😄
16:08
but little ghost voices have told me that you should be reached for network topics
Avatar
Heinrich is probably the most familiar with the network code as he has been working on a rewrite of it for a while
Avatar
Send it a couple more times
19:53
rust devs to the rescue
19:53
is this my code's problem or... no?
Avatar
Mr. Teetorial 2024-04-09 19:55:17Z
Hey guys. I’m pretty new to that stuff so yeah 😅 Where in the code are player inputs handled ? Like fire jump movement
think_bot 5
19:56
Is it controls.cpp?
Avatar
Avatar
MilkeeyCat
oi
setting ulimit helps
Avatar
wtf
21:24
u cant practice mode in tutorial
Avatar
maybe you are on the tutorial server?
21:54
i think you can if you load the map on a normal server (edited)
Avatar
Avatar
Learath2
Send it a couple more times
Now that we know how a DDoS works in detail we can finally fix it toptri
Avatar
ws-client BOT 2024-04-09 23:53:16Z
<ChillerDragon> new bot dev axaxax
23:55
<ChillerDragon> @Daniel what are "network topics"? You mean ddnet / teeworlds related or in general?
23:55
<ChillerDragon> trying to improve your ddos tooling? xd
23:55
<ChillerDragon> @Mr. Teetorial what are you building?
Exported 347 message(s)