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 2023-09-04 00:00:00Z and 2023-09-05 00:00:00Z
Avatar
Avatar
Jupstar ✪
Buy the drive
Big f3
00:15
it's about drive it's about power!
Avatar
but muh shoes
03:33
in #welcome message
👍 1
Avatar
ChillerDragon BOT 2023-09-04 07:16:40Z
xd
07:16
ddnet bot being confused by discord tag
07:16
nob
07:17
@ryozuki#2188
Avatar
ChillerDragon BOT 2023-09-04 07:17:09Z
oh no... now thats embarassing
Avatar
Avatar
ChillerDragon
ddnet bot being confused by discord tag
There's a space between the @mention and the discriminator, so no not confused 👀
Avatar
ChillerDragon BOT 2023-09-04 07:34:07Z
wots a discrimnator
07:34
i dont see any space
07:35
omg jospti @Jupstar ✪ your typo commit broke my physics :D
07:35
good that im debugging god
Avatar
Avatar
ChillerDragon
omg jospti @Jupstar ✪ your typo commit broke my physics :D
chillerdragon what typo commit? I haven't done anything since few thousand years
Avatar
chillerdragon BOT 2023-09-04 08:21:20Z
i havent merged since 3000 commits
08:22
it stopped calling my tickdefered .-.
Avatar
the 3 times my english is better than other ppl's english 😏
09:28
nice logo chiller
Avatar
chiller best logger
Avatar
Avatar
heinrich5991
closeness = lambda x: 0.64 ** (np.sum(np.abs(x - np.median(x))) / len(x))
i need help converting this to JS
Avatar
The teeworlds code base has this concepts of gamemodes and multiple game controllers that get instantiated depending on sv_gametype. Sadly ddrace/ddnet removed this moddability by hardcoding the ddracecontroller all over the code base. It would be nice if one could create a new file in src/game/server/gamemodes/mod.cpp and in gamecontext add a if statement on this line m_pController = new CGameControllerDDRace(this); To conditionally run another controller. When using a new g...
Avatar
Avatar
fokkonaut
i need help converting this to JS
I got it, ChatGPT helped me on that one :o
Avatar
ChillerDragon BOT 2023-09-04 10:22:29Z
thanks ryowo
Avatar
@heinrich5991 why can the value of closeness be > 1 tho?
10:27
with high distances
10:29
oh nvm
10:29
it was cut off i didnt see the e
Avatar
If you've worked with Rust for a while, you've probably heard the phrase "making illegal states unrepresentable". It's a phrase that's often used when people praise Rust's type system. But what exactly does it mean? And how can you apply…
Avatar
Avatar
fokkonaut
I got it, ChatGPT helped me on that one :o
cool 🙂 what's the result?
Avatar
If the player slots update the 0.7 clients have to be informed about it. Otherwise the client can block the join button if the outdated playerslots are filled already. If there are no free in game slots (for example sv_spectator_slots 64) and a 0.7 client joins it gets this setting and blocks the join button on the client side. If then the slots free up (for example sv_spectator_slots 60) the client still thinks there are 0 in game slots and the user can not click the join button. ...
Avatar
pleasantly surprised, decided to try my ps5 controller i bought to play games with bluetooth on gentoo
13:31
0 issues
Avatar
I'm so glad they stopped making the controllers as incompatible as possible
13:32
DS3 was such a pita to connect to a computer
13:34
@Learath2 also USB-C is the best invention of human kind
this 1
13:35
i bought the controller but it came with no charger
13:35
my mobile uses usb-c charger
13:35
so i just use it
Avatar
Thank god we also got over the early adoption hiccups of usbc, some devices used to do PD negotiation wrong so would get fried if you didn’t use the correct charger
Avatar
as long as its a high quality charger i think it does auto adapting based on power needs
13:35
on some levels or smth
Avatar
Avatar
Learath2
Thank god we also got over the early adoption hiccups of usbc, some devices used to do PD negotiation wrong so would get fried if you didn’t use the correct charger
oh so its that
Avatar
Avatar
Ryozuki
on some levels or smth
The device and the charger negotiate the highest voltage-current combination they both support
Avatar
ye thats epic
Avatar
There are some remaining issues like some vendors using weird non-standard levels so only their own charger can fast charge…
13:38
My samsung s21 can do 25W “super fast charging” but not with any of my chargers that can do up to 90W, only with their own charger
13:40
I think it requires a silly 10V that no charger except theirs support 😛
Avatar
i use my chinese mobile phone 33w charger
13:41
xd
Avatar
What is your phone?
Avatar
i lost my redmi note 11 pro which had a 67w charger
13:41
now i have the redmi note 12
13:41
xd
13:41
it came with a 33w
Avatar
Ah, it’s own charger. Yeah that is usually fine
Avatar
honestly
13:43
i wanted to get a pixel but i couldnt get it the same day
13:43
nor i found it at the store i went
Avatar
Just need one more EU directive to regulate voltage levels and we’ll be in a utopia
Avatar
and i needed a phone hastly
13:43
sad
13:43
next time xd
Avatar
Avatar
Ryozuki
i wanted to get a pixel but i couldnt get it the same day
Get a Fairphone
13:49
You can even have linux on it 😄
Avatar
Avatar
Learath2
Get a Fairphone
looks good tbh
13:51
i just was in a rly hurry and didnt think much
Avatar
yea imagine a tiling wm on a phone. Everytime u wanna do smth you have to plug a keyboard in monkaStop
Avatar
but next would be a fairphone 5
13:51
or 6 if it exists then
Avatar
Avatar
Teero
yea imagine a tiling wm on a phone. Everytime u wanna do smth you have to plug a keyboard in monkaStop
ur memeing too much
13:52
linux is used on every phone
13:52
also steamdeck runs linux
13:52
u dont need a keyboard
Avatar
kk I'll slow down
Avatar
nah u can keep at it xd
13:52
but ill meme as much about winshit
13:52
gigachad
Avatar
Avatar
Ryozuki
linux is used on every phone
Well android is linux at it’s core but you can literally have ubuntu on a fairphone 😄
Avatar
I don't use Windows gigachad
Avatar
anti Microsoft f3
Avatar
Avatar
Learath2
Well android is linux at it’s core but you can literally have ubuntu on a fairphone 😄
i think im fine with android xd
13:54
i just wish android wasnt so anti-user with things like apps not coming from play store
13:54
fdroid is awesome
Avatar
Avatar
Ryozuki
i think im fine with android xd
I feel like sometimes default android really limits you. (edited)
Avatar
i dont rly use my phone in exotic ways
13:55
for that i have my nasa pc
13:55
i wish i wasnt lazy and made my own useful apps for myself somewhen tho
Avatar
me neither but I want to see the clock seconds on my home screen and I can't
Avatar
Does anyone here electronics?
Avatar
Avatar
Teero
I feel like sometimes default android really limits you. (edited)
Android stock is prob the best
Avatar
Avatar
Learath2
Does anyone here electronics?
I have made a handwired keyboard and wire stuff up to each other from time to time. I am noob though in circuits if you mean that.
14:19
I'm intersted in them though and would learn more ;) (edited)
Avatar
The DDTeam colors were previously generated in HSL by taking the team index and multiplying it by 360/64° to calculate the hue, which results in team colors being evenly distributed over the entire color range like a rainbow. However, this causes colors of adjacent teams to be very similar and therefore hard to distinguish. Now, the hue is calculated by multiplying the team index with the golden angle (~137.50776°) and taking the modulo 360° of that. Due to the properties of the golden ang...
Avatar
wanted to make a voronoi diagram generator from scratch found someone whos making everything from scratch https://youtu.be/kT-Mz87-HcQ
Avatar
Avatar
GitHub
Click to see attachment 🖼️
61 is still red/pinkish. I'll allow it
😄 1
Avatar
80% done by ChatGPT btw
16:17
(it's HTML)
Avatar
For the image?
Avatar
ok yeah im not doing in image like that manually, especially if the colors are generated LOL
16:18
i guess this usecase makes sense
Avatar
It's using JavaScript, I wouldn't have told ChatGPT to generate a static HTML justatest
Avatar
xd i cant argue with that
Avatar
Avatar
Voxel
wanted to make a voronoi diagram generator from scratch found someone whos making everything from scratch https://youtu.be/kT-Mz87-HcQ
@Ryozuki i think youd be interested
Avatar
Avatar
GitHub
Click to see attachment 🖼️
this feature makes lot of sense
16:26
its easier to distinguish now
16:27
idk how color blindness comes into this, since similar colors are confusing for everyone iimho
Avatar
Avatar
Voxel
@Ryozuki i think youd be interested
ill be honest, i rarely watch videos about programming
16:29
but fan fuct
16:29
fact
16:29
i used to watch that streamer sometimes
16:29
he also made 1 pr to teeworlds
16:29
about game controllers
16:29
pad
16:30
A retro multiplayer shooter. Contribute to tsoding/teeworlds development by creating an account on GitHub.
16:34
wtf
16:35
ill go there incognito
Avatar
ChillerDragon BOT 2023-09-04 16:36:02Z
magnus carlson in ryos backyard
Avatar
i'd prefer you go there with your nameplate visible
16:36
above you
Avatar
ChillerDragon BOT 2023-09-04 16:36:25Z
xxxxxxxxxxxxxxxxxxxxxD
16:36
jopsti do you know dedodated wam?
Avatar
@Voxel i saw u
16:36
i only saw ur leaving message
16:36
if it was u
Avatar
Avatar
Robyt3
80% done by ChatGPT btw
can u make a list old team, new team would be helpful 😂
16:37
nametag moment
Avatar
nothing funnier than minecraft questions
Avatar
Avatar
cyberFighter
@Voxel i saw u
yea
16:37
u were afk
Avatar
Avatar
Jupstar ✪
can u make a list old team, new team would be helpful 😂
Give ChatGPT the file and tell it to adapt 😄
16:38
fun stream.
Avatar
Avatar
Voxel
wanted to make a voronoi diagram generator from scratch found someone whos making everything from scratch https://youtu.be/kT-Mz87-HcQ
god this guy's fucking annoying but im still learning a thing or two from watching him actually Code
Avatar
Avatar
Voxel
u were afk
fokkonaut gameplay
Avatar
i love how lichess captcha is a chess puzzle
Avatar
@Jupstar ✪ Was also possible by stretching the browser window
Avatar
ChillerDragon bold of u to assume i have a backyard lol
Avatar
Avatar
Ryozuki
i love how lichess captcha is a chess puzzle
whats the point
Avatar
that its funny
16:41
original
Avatar
is it just a joke
16:41
to post in forums
16:41
u need to solve this
16:41
everytime u post
16:41
captcha
Avatar
It's cool but technically it should be very easy to solve for bots?
Avatar
i wonder if it detects a move a bot would typically make
Avatar
But this puzzle says "Black to checkmate in one move", so you only need to move one piece
16:44
I suppose is could detect unnatural mouse movement like the google captcha where you just click the checkbox
Avatar
Avatar
Robyt3
@Jupstar ✪ Was also possible by stretching the browser window
ty
Avatar
Avatar
Robyt3
@Jupstar ✪ Was also possible by stretching the browser window
ah i meant old color new color
16:45
u know
16:45
like sorted by the actual color
16:45
but with new team name
16:46
Not sure if ChatGPT can understand that xD
Avatar
it suprisingly often understands questions from me, that even i don't understand
Avatar
I mean if you word it right It could understand
Avatar
ChillerDragon BOT 2023-09-04 16:47:31Z
@heinrich5991 any idea why 149.202.127.134:8707 does not show up in the master? I tried this curl -s https://master1.ddnet.org/ddnet/15/servers.json | jq . | grep 8707
Avatar
something like "sort the new team array in chromatical order"
Avatar
its cuz master doesnt like u
Avatar
ChillerDragon BOT 2023-09-04 16:48:02Z
:c
Avatar
u been a bad tee
16:48
too many bots
Avatar
ChillerDragon BOT 2023-09-04 16:48:18Z
no proof
Avatar
no proof
xd sure
Avatar
@Jupstar ✪ Sorted by color
Avatar
epic
Avatar
Still a full rainbow
Avatar
Avatar
Robyt3
@Jupstar ✪ Sorted by color
did gpt create this?
Avatar
ChatGPT produced mostly garbage but it gave me the correct idea
16:56
newDivs.sort((a, b) => a.hue - b.hue);
16:56
Just sort the divs, doh
Avatar
well that's something
16:56
it understood it must use hue
Avatar
Avatar
Robyt3
@Jupstar ✪ Sorted by color
pin that already in questions/bugs xDD
16:57
some ppl will be mad
16:57
my new team is 50 now
Avatar
my new team is 16 methinks
Avatar
Avatar
Voxel
my new team is 16 methinks
we were close in the past
16:58
now we different
Avatar
A demake of Portal for the Nintendo 64. Contribute to lambertjamesd/portal64 development by creating an account on GitHub.
Avatar
does docker have a concept of selinux
Avatar
Avatar
pilonpl
Click to see attachment 🖼️
the license is better
18:48
its GPL
18:48
=
18:48
giant penis license
Avatar
"it will render the children".. - is that how i was born
Avatar
lucky i use AGPL
18:49
awesome giant penis license
🔥 1
Avatar
only LGPL for me
Avatar
chillerdragon: I do not know. can you check out the logs?
Avatar
"If hard work was good for you, the rich wouldn't leave any of it for the poor."
19:10
random quote i found on internet
19:12
Sure
Avatar
Reported by Jurai!. Screenshots:
  • Before:
!screenshot_2023-09-04_21-18-44
  • After:
!screenshot_2023-09-04_21-18-36

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 te...
Avatar
I asked ChatGPT:
Create a C++ code of a character inheriting from a base entitiy class. Those should be injected into a gameworld, which is injected in a gamecontext. Following attributes belong to the CEntity: 1. vel (velocity) 2. pos (position) 3. starttick (tick when it spawned) Following attributes belong to the CCharacter: 1. health 2. armor 3. ammo 4. weapons[] The gameworld will loop over the CEntity 's which the CCharacter is inheriting from. The gamecontext will have an instance of CGameWorld which will cycle through the entities in a Tick() method called by the gamecontext. Please stick to the following code convention: 1. member variables start with the prefix m_ 2. arrays have the prefix a (combine accordingly with member variables, such as m_aMemberArray) 3. classes have the prefix C
Avatar
now throw the code back at chatgpt and ask him if he spots any errors with it https://pastebin.com/raw/f0QabVcf (edited)
19:47
@matricks
Scalability: Right now, the CCharacter class assumes there will always be 5 weapons. Depending on your game's design, you might want to consider a more flexible design, like using a std::vector instead of an array for weapons.
You should've given us custom weapons!!11!1
Avatar
chillerdragon BOT 2023-09-04 20:25:02Z
There is nothing in the server logs
Replying to @heinrich5991 chillerdragon: I do not know. can you check out the logs?
Avatar
Avatar
chillerdragon
There is nothing in the server logs
if there's literally nothing in the server logs, then you should turn server logs on. if there's nothing about registering in the server logs, maybe you have sv_register 0?
Avatar
chillerdragon BOT 2023-09-04 20:28:15Z
It’s default 1
20:28
You mean a higher log level than default?
20:28
Shouldn’t Master errors and warnings be logged with the default output level?
Avatar
b4fa205 Truncate IP with ellipsis in connecting popup - Robyt3 228d996 Merge pull request #7130 from Robyt3/Menus-Connect-Popup-Ellipsis - def-
Avatar
Avatar
chillerdragon
You mean a higher log level than default?
I'm saying if you don't have any log messages at all, then you're not logging
20:30
if you have log messages, but no messages about initial register, then it seems you're not even trying to register?
Avatar
ChillerDragon BOT 2023-09-04 20:31:35Z
i mean yea logs are printing sure
20:31
but i dont see anything master related what am i looking for?
20:32
ah yea indeed there is not registering being printed hmm
Avatar
anything with register anywhere
20:33
when I start a server, I see a couple of lines mentioning register somewhere
Avatar
ChillerDragon BOT 2023-09-04 20:34:05Z
yea those are missing
20:34
weird i probably messed something up in my fork then
20:36
maybe a curl version thing?
20:37
the same codebase prints register stuff on my local machine hmm
20:43
hmmm sv_register 1 does the job
20:43
oh
20:44
is sv_register ipv4 no longer working?
Avatar
should work
Avatar
ChillerDragon BOT 2023-09-04 20:46:09Z
ok somehow on my vps sv_register is set to 0
20:46
not sure how that happend
Avatar
it'd be nice if you actually verified what I'm asking of you
20:46
would have cut this a little shorter
Avatar
ChillerDragon BOT 2023-09-04 20:47:04Z
dood who would have thought
20:47
im hosting servers since a decade and ppl keep mentioning sv_register 1
20:47
it was never 0
20:47
ever
Avatar
yes, that's why we're debugging together
Avatar
ChillerDragon BOT 2023-09-04 20:47:37Z
im super confused how that happend and currently investigating
Avatar
and verifying things together
20:47
while debugging it's good to put away "things I know"
20:47
because apparently something isn't like I know it
Avatar
ChillerDragon BOT 2023-09-04 20:48:32Z
also i did check it eventually didnt i
20:49
i was mobile when you mentioned it
20:49
i never set sv_register to 0 in my life
20:49
it was always the default
Avatar
when im trying build my own client(not cheat)
amogus 5
21:02
im taking this error
21:02
CMake Error at cmake/FindSSP.cmake:12 (message): could not find ssp paths Call Stack (most recent call first): CMakeLists.txt:580 (find_package)
21:02
i researched it
21:02
but i didnt found anything (edited)
Avatar
ChillerDragon BOT 2023-09-04 21:04:12Z
ah got it apt installed a system wide /usr/share/ddnet/data/autoexec_server.cfg which sets sv_register 0 @heinrich5991
Avatar
This is what I've been concerned about with the storage system :/
Avatar
ChillerDragon BOT 2023-09-04 21:04:54Z
when?
21:05
the storage system is older than ryozuki isnt it?
Avatar
The data directory integrity PR I did a while back, I never rebased and got it merged because I feel it'll decimate some package manager managed files somehow
Avatar
won't have rights to do that, right?
21:07
btw, maybe we should quit when running as root 😄
😃 1
Avatar
Yes but each installation should ideally only ever touch it's own data folder
Avatar
Avatar
meister
when im trying build my own client(not cheat)
git submodule update
Avatar
It even trying that is scary to me
Avatar
also try clean build dir, just to be sure
Avatar
Avatar
Learath2
It even trying that is scary to me
we could only do it in a build with an autoupdater or steam
Avatar
steam has it's own integrity check
Avatar
then only autoupdater
Avatar
Ideally storage system should only ever use a data directory directly next to the binary, or a compiled in directory for distro packaging
Avatar
Avatar
Jupstar ✪
git submodule update
wdym
21:11
how can i do this
Avatar
Avatar
meister
when im trying build my own client(not cheat)
(amnogus sus music plays)
Avatar
Avatar
Iza
(amnogus sus music plays)
NO
21:16
I NEVER USED
Avatar
Avatar
meister
how can i do this
Git bash
Avatar
Avatar
meister
wdym
how did you get your version of ddnet?
21:19
using msvs?
Avatar
guys im so idiot for answer this questions
Avatar
git gud
21:29
Just blame Windows But somehow u managed to get to the build process
21:29
Maybe just explain that
Avatar
Avatar
meister
guys im so idiot for answer this questions
how did you download the ddnet source code?
Avatar
There should never be a reason to need elevated privileges (root on Unix, admin on Windows). This will prevent issues where files/folders were created as admin and are not readable/writeable for the normal user.
Avatar
Avatar
Robyt3
80% done by ChatGPT btw
What’s this for
Avatar
Avatar
Ewan
What’s this for
team colors
Avatar
Avatar
Jupstar ✪
git gud
is gud a real command
Avatar
ChillerDragon BOT 2023-09-04 21:45:40Z
no
21:45
its slang for "git is good"
21:46
or "get good" :D
Avatar
Avatar
Ewan
What’s this for
now adjacent teams have more distinct colors
21:48
Sad though
Avatar
why sad?
Avatar
Can no longer choose team colors by number without looking it up
21:54
Like I join 25 because it’s a nice green. Now instead of joining 26 when 25 is taken, I have to look up the table and find a similar green
Avatar
±13 seems to work
Avatar
Good to know
Avatar
Can DDNet client connect to 0.7 servers?
Avatar
no, currently not
Avatar
Avatar
HamidReza
Can DDNet client connect to 0.7 servers?
@ChillerDragon i cant believe it, someone's interested
Avatar
Chillerdragon so happy rn
Avatar
Avatar
heinrich5991
how did you download the ddnet source code?
from github
Avatar
Avatar
Voxel
@ChillerDragon i cant believe it, someone's interested
XD
Avatar
Avatar
meister
from github
but how did you download it? which button did you press? can you make a screenshot?
Avatar
chillerdragon BOT 2023-09-04 23:04:33Z
There is a open pr by me. If you compile it your self you can play 0.7
Replying to @HamidReza Can DDNet client connect to 0.7 servers?
Avatar
Avatar
heinrich5991
but how did you download it? which button did you press? can you make a screenshot?
i downloaded
23:48
you know
23:48
CMake Error at cmake/BuildVulkanShaders.cmake:27 (message): glslangValidator binary was not found. Did you install the Vulkan SDK / packages ?
23:48
im taking this right now
😆 1
Exported 330 message(s)