Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/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 2022-11-29 00:00:00Z and 2022-11-30 00:00:00Z
Avatar
Avatar
Anime.pdf
I love reading raw json, thanks feelsbadman
JSON Hero makes reading and understand JSON files easy by giving you a clean and beautiful UI packed with extra features.
Avatar
Does anyone know if it is possible to associate ddnet with a url protocol
10:35
In a way that by clicking a url makes it so you join a server
10:36
something like ddnet://{server-ip}:{server-port}
Avatar
Should be
Avatar
Sadly only over Firefox
10:50
Chrome sends the port formatted over a parameter instead of raw
10:50
But we could extend the client to accept that too. Most users probably don't use Firefox
Avatar
Can you maybe give me an example of the url
10:59
Should I register the protocol myself?
Avatar
Look at ddnet.org status
11:12
The URL is clickable
11:13
The server url bottom right
Avatar
Perfect.
Avatar
Avatar
Alexander
something like ddnet://{server-ip}:{server-port}
It's literally the same format as this too
Avatar
Avatar
Alexander
It's literally the same format as this too
Do with slashes it works on chrome? Seems like ddnets page doesn't use them
Avatar
Actually it doesn't work, I think it's because I don't have the ddnet protocol associated with the ddnet client in my settings
12:19
So I'm looking into it right now
Avatar
Yeah I've associated protocol ddnet with ddnet.exe but it just opens the client, nothing else
12:34
Why doesn't ddnet do that automatically anyways?
Avatar
It should work with Firefox
13:00
Last time i tested
13:00
For other brothers we simply need to parse the port from the query
13:00
Browser
Avatar
do you maybe use the steam version
Avatar
Avatar
Alexander
do you maybe use the steam version
I usually try stuff without stream So did you click the one on ddnetorg or your own with slashes?
Avatar
chrome doesn't pass the port?
13:18
why not?
Avatar
It does. But as query string
13:19
So i asked if the slashes are maybe essential
13:19
But Alexander doesn't get it to work at all
Avatar
I'm using brave which is based on chromium
13:20
At first nothing worked
13:20
With or without the slashes
Avatar
I'll later test when I'm home
Avatar
When I've added ddnet as ddnet protocol it worked with and without the slashes
13:20
But it didn't join the servers
Avatar
But it tried?
Avatar
No it just showed the default screen
Avatar
For me it tried. But maybe recent changes just cancel the request now
Avatar
main menu
13:21
Are you on windows maybe
Avatar
No
Avatar
Maybe the code that associates the ddnet protocol to ddnet.exe doesn't work on windows
Avatar
But we had lot of changes recently with allowing domain names etc. Maybe one broke it
Avatar
Avatar
Jupstar ✪
It does. But as query string
seems weird, but at least there's a workaround 🙂
Avatar
Avatar
heinrich5991
seems weird, but at least there's a workaround 🙂
Yes also couldn't find out why it didn't allow this
13:23
But maybe custom ports are already non standard even for https. Dunno
13:24
Else full bug xd
13:24
Fill
Avatar
Moderators can access the last x minutes of the chat activity. Every entry beside server messages will show the player name, player ip and client who wrote the message / who disconnected so moderators can get the players ip after something happened in case he left already. The current implementation has a 4 minute time slot, messages older than 4 minutes are not shown. To limit the memory usage its limited atm to 256 log-entries. In case of more messages than 256 in 4 minutes (unlikely...
Avatar
@Voxel no way im braindead
Avatar
Avatar
Jupstar ✪
But maybe custom ports are already non standard even for https. Dunno
https doesn't matter for this.
Avatar
Avatar
Alexander
Why doesn't ddnet do that automatically anyways?
We'd need an installer to do that I guess. Or figure out how to do that in client, I don't know
Avatar
Avatar
deen
https doesn't matter for this.
I meant in url Syntax Standstation If such exists xd
16:04
Standard lmao
Avatar
the URL standard has ports
16:06
https://hostname[:port]/… (edited)
16:07
Avatar
Maybe create a file that just associates ddnet to the protocol
Avatar
To avoid the installer
Avatar
I think there should be a cross-platform library which associates ddnet to protocol, I'm trying to find one
Avatar
Let ryo find one. He knows all rust libraries in existence
Avatar
C library would be easier
Avatar
I remember when I was making an electron app it was a simple 1 line to associate the app with whichever protocol you want and then just adding a way for the app to detect if it was run with parameters
Avatar
For me my browser simply asks me how i want to associate it
Avatar
But ofc it had an installer
Avatar
Avatar
Alexander
I remember when I was making an electron app it was a simple 1 line to associate the app with whichever protocol you want and then just adding a way for the app to detect if it was run with parameters
And then react properly
Avatar
Avatar
Jupstar ✪
For me my browser simply asks me how i want to associate it
Firefox on macOS just does nothing when I click on the links 😄
Avatar
Same for brave on windows 10
Avatar
I guess a Windows-only solution would be ok-ish first, didn't find a library for this
Avatar
if done without installer on windows it will probs need ddnet to run or ask for admin perms and modify the registry
16:13
i think its done through the registry
Avatar
I associated it using cmd and a few reg add commands
Avatar
After installing Adobe PDF reader, it opens files with the .PDF file extension. Ones' default web browser opens .html files and notepad opens .txt files, etc. Where exactly in the registry are these
Avatar
Hm, can you try using the windows instructions from here @Alexander https://ddnet.org/news/ddnet-links/
16:14
If that works fine with Brave
Avatar
Ye sec
Avatar
oh wait
16:14
its a url not a file xD
16:14
idk
Avatar
@deen do you want me to remove the file association that I have created
Avatar
But yeah, seems like registry is the correct way still: https://learn.microsoft.com/en-us/windows/win32/search/-search-3x-wds-ph-install-registration. I was hoping for some api
16:16
yes, file association is wrong
16:16
it has to be a protocol association
Avatar
Avatar
deen
But yeah, seems like registry is the correct way still: https://learn.microsoft.com/en-us/windows/win32/search/-search-3x-wds-ph-install-registration. I was hoping for some api
Hm, Windows Search sounds wrong.
Avatar
[quakenet] hzhz BOT 2022-11-29 16:18:09Z
hi
Avatar
I don't understand the windows instructions
16:19
It doesn't just let me add an app
Avatar
hm, too bad
16:19
I never tried it on Windows either, maybe you're the first 😄
16:19
But anyways
16:20
Even if I associate protocol ddnet to DDNet.exe, it still doesn't join the server
Avatar
It just opens ddnet
Avatar
Ok, that probably means it passes the arguments in a wrong way
16:21
or a way we don't understasnd
16:22
Btw here is how I added the thing
16:23
For some reason it didn't let me do it from a bat file
16:23
So I had to do it line by line
Avatar
Avatar
heinrich5991
Click to see attachment 🖼️
But we don't use slashes i think
Avatar
You also need to pass the URL to the ddnet executable, by adding something like "%1" after DDNet.exe
Avatar
So we skip the port stuff
Avatar
Avatar
Robyt3
You also need to pass the URL to the ddnet executable, by adding something like "%1" after DDNet.exe
oh right, let me try that
Avatar
Avatar
Robyt3
You also need to pass the URL to the ddnet executable, by adding something like "%1" after DDNet.exe
that worked
16:27
16:28
also it worked without slashes in the url
16:29
yeah i also forgot to run the batch file as an administrator, that's why it didn't work
16:30
reg add HKEY_CLASSES_ROOT\ddnet /t REG_SZ /d "DDNet" /f reg add HKEY_CLASSES_ROOT\ddnet /v "URL Protocol" /t REG_SZ /d "" /f reg add HKEY_CLASSES_ROOT\ddnet\shell /f reg add HKEY_CLASSES_ROOT\ddnet\shell\open /f reg add HKEY_CLASSES_ROOT\ddnet\shell\open\command /t REG_SZ /d "{Path to DDNet.exe} %1" /f (edited)
Avatar
rip irc if the bot was still working 😄
Avatar
Yes, it was working, zhzh just wrote something
Avatar
i get this btw
17:02
17:03
with slashes its close xd
17:03
at least it doesnt reinterprets the port then
17:03
so i'd say we must add slahes and filter them in client
17:03
that makes more sense from standard
Avatar
I guess, makes sense. It thinks it's a file without //
Avatar
and yeah with firefox it works without and with slahes it results in the same as with chrome with slahes
17:05
so with slahes its consistent
Avatar
ok, let me do that
Avatar
Edge also seems to add a slash at the end:
Avatar

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
Isn't like having slashes the standard?
Avatar
Avatar
Alexander
Isn't like having slashes the standard?
yes
17:17
but u can also do it without
17:17
but then a : isnt a port
17:18
but since that's what we intend to do, we use slashes ^^
Avatar
Ah okay
Avatar
3fcf497 Remove // in ddnet:// url handler - def- 9912e44 Also remove appended / - def- d76755d Merge #6073 - bors[bot]
Avatar
Hey, this bug is pretty annoying imo: https://github.com/ddnet/ddnet/issues/2591
If you paused and move your view pos then unpause, you will have your cursor position moved to an unpredictable position. This causes failure when pause to look out and unpause. A possible fix is t...
Avatar
Does DDRace have an Api? And what are the servers on, Websocket’ax? @deen @murpi @Jupstar ✪
Avatar
Avatar
Deleted User
Does DDRace have an Api? And what are the servers on, Websocket’ax? @deen @murpi @Jupstar ✪
we have multiple protocols it doesnt provide any "real" api except for anti bot server side
Avatar
Okay, thx
Avatar
Home of MineOS and it's software for OpenComputers mod - GitHub - IgorTimofeev/MineOS: Home of MineOS and it's software for OpenComputers mod
20:03
Wtf actual OS for minecraft mod
20:03
I mean OS for computers inside minecraft mod
20:03
justatest
Avatar
The state of teams was not reset when restarting a round with restart, which led to various issues (#5144):
  • Switchers kept their previous state instead of being reset to the initial state after restarting.
  • Teams that started racing sometimes could not be joined after restarting.
  • Sometimes teams cannot finish a race after restarting. I cannot reproduce this issue, so I don't know if it's fixed by these changes.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided scre...
Avatar
The key reader was displaying the old key for a frame. It now shows the new key immediately without flashing the old one after changing a bind. Refactoring:
  • The if-branches are restructured to be the same as on upstream.
  • The function GetKeyBindModifiersName can be called without an additional check, because it returns an empty string when no modifier is pressed.
  • The unused parameter Checked of the DoButton_KeySelect function is removed.
From teeworlds/teeworlds#2877. ...
Avatar

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 existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addres...
Avatar
Are you interested in new new approaches to visuals and rendering and want to be a part of something no-one has ever made before? As a Senior Rust rendering engineer at Embark you'll be working...
Avatar
oh nice
Avatar
Embark good studio
Avatar
Avatar
Deleted User
Does DDRace have an Api? And what are the servers on, Websocket’ax? @deen @murpi @Jupstar ✪
Servers themselves are connected to using UDP, websockets can be enabled, but I'd call it experimental. The servers communicate with master server using https. client with master also using https: https://master1.ddnet.tw/ddnet/15/servers.json On the website some information has json versions, check the json logo on pages, for example: https://ddnet.org/maps/?json=Kobra
Avatar
When the 2022 World Cup made its debut on Sunday, it kicked off one of the most significant in-game uses of technology in sports history. All tournament long, m…
22:55
lol
Avatar
yeah jupstar go for it
22:55
the most complicated part is vulkan itself
22:55
u already know kek
Avatar
they don't even require previous rust experience (don't feel afraid to apply for jobs where you don't have the requirements anyway)
Avatar
i dont think u can rly find senior rust devs
22:57
maybe there are a handful at most xD
22:57
they pick c++ seniors
22:57
well depends what u consider senior
22:57
i usually set a high bar
Avatar
also, applying for jobs, even if you don't think you want to take them can be fun, good practice, and maybe you actually want the job after talking to some devs from the company
Avatar
10433e0 Reset teams when restarting round - Robyt3 c2d5d81 Merge #6074 - bors[bot]
Avatar
We are closer to releasing Godot 4.0. No matter the amount of time dedicated to testing and profiling — bugs and issues are inevitable. Still, we intend to follow 4.0 with bug fix releases to ensure a stable experience as soon as possible.
Avatar
0688355 Fix key reader text flashing for one frame, refactoring - Robyt3 e07bd45 Fix stored commands using original callback instead of the chain - Robyt3 2e2cb47 Fix client crash when launching with screenshot command - Robyt3 3012a42 Merge #6075 #6076 - bors[bot]
Exported 171 message(s)