11:17 <+bridge> [ddnet] https://jsonhero.io/ 11:35 <+bridge> [ddnet] Does anyone know if it is possible to associate ddnet with a url protocol 11:35 <+bridge> [ddnet] In a way that by clicking a url makes it so you join a server 11:36 <+bridge> [ddnet] something like `ddnet://{server-ip}:{server-port}` 11:48 <+bridge> [ddnet] Should be 11:49 <+bridge> [ddnet] Sadly only over Firefox 11:50 <+bridge> [ddnet] Chrome sends the port formatted over a parameter instead of raw 11:50 <+bridge> [ddnet] But we could extend the client to accept that too. Most users probably don't use Firefox 11:58 <+bridge> [ddnet] Can you maybe give me an example of the url 11:59 <+bridge> [ddnet] Should I register the protocol myself? 12:08 <+bridge> [ddnet] !yt 12:09 <+bridge> [ddnet] oop 12:12 <+bridge> [ddnet] Look at ddnet.org status 12:12 <+bridge> [ddnet] The URL is clickable 12:13 <+bridge> [ddnet] The server url bottom right 13:11 <+bridge> [ddnet] Perfect. 13:12 <+bridge> [ddnet] It's literally the same format as this too 13:15 <+bridge> [ddnet] Do with slashes it works on chrome? Seems like ddnets page doesn't use them 13:19 <+bridge> [ddnet] 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 13:19 <+bridge> [ddnet] So I'm looking into it right now 13:32 <+bridge> [ddnet] Yeah I've associated protocol `ddnet` with ddnet.exe but it just opens the client, nothing else 13:34 <+bridge> [ddnet] Why doesn't ddnet do that automatically anyways? 13:59 <+bridge> [ddnet] It should work with Firefox 14:00 <+bridge> [ddnet] Last time i tested 14:00 <+bridge> [ddnet] For other brothers we simply need to parse the port from the query 14:00 <+bridge> [ddnet] Browser 14:02 <+bridge> [ddnet] do you maybe use the steam version 14:17 <+bridge> [ddnet] I usually try stuff without stream 14:17 <+bridge> [ddnet] 14:18 <+bridge> [ddnet] So did you click the one on ddnetorg or your own with slashes? 14:18 <+bridge> [ddnet] chrome doesn't pass the port? 14:18 <+bridge> [ddnet] why not? 14:18 <+bridge> [ddnet] It does. But as query string 14:19 <+bridge> [ddnet] So i asked if the slashes are maybe essential 14:19 <+bridge> [ddnet] But Alexander doesn't get it to work at all 14:19 <+bridge> [ddnet] I'm using brave which is based on chromium 14:20 <+bridge> [ddnet] At first nothing worked 14:20 <+bridge> [ddnet] With or without the slashes 14:20 <+bridge> [ddnet] I'll later test when I'm home 14:20 <+bridge> [ddnet] When I've added ddnet as ddnet protocol it worked with and without the slashes 14:20 <+bridge> [ddnet] But it didn't join the servers 14:21 <+bridge> [ddnet] But it tried? 14:21 <+bridge> [ddnet] No it just showed the default screen 14:21 <+bridge> [ddnet] For me it tried. But maybe recent changes just cancel the request now 14:21 <+bridge> [ddnet] main menu 14:21 <+bridge> [ddnet] Are you on windows maybe 14:21 <+bridge> [ddnet] No 14:22 <+bridge> [ddnet] Maybe the code that associates the ddnet protocol to ddnet.exe doesn't work on windows 14:22 <+bridge> [ddnet] But we had lot of changes recently with allowing domain names etc. Maybe one broke it 14:22 <+bridge> [ddnet] seems weird, but at least there's a workaround 🙂 14:23 <+bridge> [ddnet] Yes also couldn't find out why it didn't allow this 14:23 <+bridge> [ddnet] But maybe custom ports are already non standard even for https. Dunno 14:24 <+bridge> [ddnet] Else full bug xd 14:24 <+bridge> [ddnet] Fill 15:03 <+bridge> [ddnet] @Voxel no way im braindead 17:02 <+bridge> [ddnet] https doesn't matter for this. 17:03 <+bridge> [ddnet] We'd need an installer to do that I guess. Or figure out how to do that in client, I don't know 17:03 <+bridge> [ddnet] I meant in url Syntax Standstation If such exists xd 17:04 <+bridge> [ddnet] Standard lmao 17:06 <+bridge> [ddnet] the URL standard has ports 17:06 <+bridge> [ddnet] https://hostname[:port]/… 17:07 <+bridge> [ddnet] `https://hostname[:port]/…` 17:07 <+bridge> [ddnet] https://upload.wikimedia.org/wikipedia/commons/thumb/d/d6/URI_syntax_diagram.svg/800px-URI_syntax_diagram.svg.png 17:07 <+bridge> [ddnet] Maybe create a file that just associates ddnet to the protocol 17:08 <+bridge> [ddnet] https://commons.wikimedia.org/wiki/File:URI_syntax_diagram.svg 17:08 <+bridge> [ddnet] To avoid the installer 17:08 <+bridge> [ddnet] I think there should be a cross-platform library which associates ddnet to protocol, I'm trying to find one 17:10 <+bridge> [ddnet] Let ryo find one. He knows all rust libraries in existence 17:10 <+bridge> [ddnet] C library would be easier 17:11 <+bridge> [ddnet] 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 17:11 <+bridge> [ddnet] For me my browser simply asks me how i want to associate it 17:11 <+bridge> [ddnet] But ofc it had an installer 17:12 <+bridge> [ddnet] And then react properly 17:12 <+bridge> [ddnet] Firefox on macOS just does nothing when I click on the links 😄 17:12 <+bridge> [ddnet] Same for brave on windows 10 17:13 <+bridge> [ddnet] I guess a Windows-only solution would be ok-ish first, didn't find a library for this 17:13 <+bridge> [ddnet] if done without installer on windows it will probs need ddnet to run or ask for admin perms and modify the registry 17:13 <+bridge> [ddnet] i think its done through the registry 17:13 <+bridge> [ddnet] https://learn.microsoft.com/en-us/answers/questions/28817/registry-location-for-file-extension-associations.html 17:13 <+bridge> [ddnet] I associated it using cmd and a few reg add commands 17:13 <+bridge> [ddnet] https://superuser.com/questions/266268/where-in-the-registry-does-windows-store-with-which-program-to-open-certain-file 17:14 <+bridge> [ddnet] Hm, can you try using the windows instructions from here @Alexander_ https://ddnet.org/news/ddnet-links/ 17:14 <+bridge> [ddnet] If that works fine with Brave 17:14 <+bridge> [ddnet] Ye sec 17:14 <+bridge> [ddnet] oh wait 17:14 <+bridge> [ddnet] its a url not a file xD 17:14 <+bridge> [ddnet] idk 17:15 <+bridge> [ddnet] @deen do you want me to remove the file association that I have created 17:16 <+bridge> [ddnet] 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 17:16 <+bridge> [ddnet] yes, file association is wrong 17:16 <+bridge> [ddnet] it has to be a protocol association 17:17 <+bridge> [ddnet] Hm, Windows Search sounds wrong. 17:18 < hzhz> hi 17:18 <+bridge> [ddnet] hi hzhz 17:18 <+bridge> [ddnet] I don't understand the windows instructions 17:19 <+bridge> [ddnet] It doesn't just let me add an app 17:19 <+bridge> [ddnet] hm, too bad 17:19 <+bridge> [ddnet] I never tried it on Windows either, maybe you're the first 😄 17:19 <+bridge> [ddnet] :feelsbadman: 17:19 <+bridge> [ddnet] But anyways 17:20 <+bridge> [ddnet] Even if I associate protocol `ddnet` to DDNet.exe, it still doesn't join the server 17:20 <+bridge> [ddnet] It just opens ddnet 17:21 <+bridge> [ddnet] Ok, that probably means it passes the arguments in a wrong way 17:21 <+bridge> [ddnet] or a way we don't understasnd 17:22 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1047185854835216445/h1PLCb.png 17:22 <+bridge> [ddnet] Btw here is how I added the thing 17:23 <+bridge> [ddnet] For some reason it didn't let me do it from a bat file 17:23 <+bridge> [ddnet] So I had to do it line by line 17:24 <+bridge> [ddnet] But we don't use slashes i think 17:24 <+bridge> [ddnet] You also need to pass the URL to the ddnet executable, by adding something like `"%1"` after `DDNet.exe` 17:25 <+bridge> [ddnet] So we skip the port stuff 17:25 <+bridge> [ddnet] oh right, let me try that 17:26 <+bridge> [ddnet] that worked 17:27 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1047187058499784844/image.png 17:28 <+bridge> [ddnet] also it worked without slashes in the url 17:29 <+bridge> [ddnet] yeah i also forgot to run the batch file as an administrator, that's why it didn't work 17:30 <+bridge> [ddnet] ```bat 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet /t REG_SZ /d "DDNet" /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet /v "URL Protocol" /t REG_SZ /d "" /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet\shell /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet\shell\open /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet\shell\open\command /t REG_SZ /d "{Path to DDNet.exe} %1" /freg add HKEY_CLASSES_ROOT\ddnet /t REG_SZ /d "DDNet" /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet /v "URL Protocol" /t REG_SZ /d "" /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet\shell /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet\shell\open /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet\shell\open\command /t REG_SZ /d "{Path to DDNet.exe} %1" /f 17:30 <+bridge> [ddnet] ``` 17:30 <+bridge> [ddnet] ```bat 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet /t REG_SZ /d "DDNet" /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet /v "URL Protocol" /t REG_SZ /d "" /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet\shell /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet\shell\open /f 17:30 <+bridge> [ddnet] reg add HKEY_CLASSES_ROOT\ddnet\shell\open\command /t REG_SZ /d "{Path to DDNet.exe} %1" /f 17:30 <+bridge> [ddnet] ``` 17:30 <+bridge> [ddnet] rip irc if the bot was still working 😄 17:37 <+bridge> [ddnet] Yes, it was working, zhzh just wrote something 18:00 <+bridge> [ddnet] i get this btw 18:00 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1047195468062535730/image.png 18:02 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1047195760824958997/image.png 18:03 <+bridge> [ddnet] with slashes its close xd 18:03 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1047196023409365092/image.png 18:03 <+bridge> [ddnet] at least it doesnt reinterprets the port then 18:03 <+bridge> [ddnet] so i'd say we must add slahes and filter them in client 18:03 <+bridge> [ddnet] that makes more sense from standard 18:04 <+bridge> [ddnet] I guess, makes sense. It thinks it's a file without // 18:05 <+bridge> [ddnet] and yeah with firefox it works without 18:05 <+bridge> [ddnet] and with slahes it results in the same as with chrome with slahes 18:05 <+bridge> [ddnet] so with slahes its consistent 18:12 <+bridge> [ddnet] ok, let me do that 18:15 <+bridge> [ddnet] Edge also seems to add a slash at the end: 18:15 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1047199255292551269/image.png 18:16 <+bridge> [ddnet] sigh 18:16 <+bridge> [ddnet] Isn't like having slashes the standard? 18:17 <+bridge> [ddnet] yes 18:17 <+bridge> [ddnet] but u can also do it without 18:17 <+bridge> [ddnet] but then a `:` isnt a port 18:18 <+bridge> [ddnet] but since that's what we intend to do, we use slashes ^^ 18:18 <+bridge> [ddnet] Ah okay 18:55 <+bridge> [ddnet] Hey, this bug is pretty annoying imo: https://github.com/ddnet/ddnet/issues/2591 19:31 <+bridge> [ddnet] Does DDRace have an Api? And what are the servers on, Websocket’ax? @deen @murpi @Not Keks 19:33 <+bridge> [ddnet] we have multiple protocols 19:33 <+bridge> [ddnet] 19:34 <+bridge> [ddnet] it doesnt provide any "real" api 19:34 <+bridge> [ddnet] except for anti bot server side 19:35 <+bridge> [ddnet] Okay, thx 21:03 <+bridge> [ddnet] https://github.com/IgorTimofeev/MineOS 21:03 <+bridge> [ddnet] Wtf actual OS for minecraft mod 21:03 <+bridge> [ddnet] I mean OS for computers inside minecraft mod 21:03 <+bridge> [ddnet] :justatest: 23:27 <+bridge> [ddnet] @Ryozuki damn https://careers.embark-studios.com/jobs/1204728-senior-rendering-engineer-rust-creative-play 23:28 <+bridge> [ddnet] oh nice 23:29 <+bridge> [ddnet] Embark good studio 23:54 <+bridge> [ddnet] 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 23:54 <+bridge> [ddnet] On the website some information has json versions, check the json logo on pages, for example: https://ddnet.org/maps/?json=Kobra 23:55 <+bridge> [ddnet] https://fivethirtyeight.com/features/the-world-cups-new-high-tech-ball-will-change-soccer-forever/ 23:55 <+bridge> [ddnet] https://www.reddit.com/r/interestingasfuck/comments/z80b2o/world_cup_balls_getting_charged/ 23:55 <+bridge> [ddnet] lol 23:55 <+bridge> [ddnet] Sounds like a fit for @Not Keks 23:55 <+bridge> [ddnet] yeah jupstar go for it 23:55 <+bridge> [ddnet] the most complicated part is vulkan itself 23:55 <+bridge> [ddnet] u already know kek 23:56 <+bridge> [ddnet] they don't even require previous rust experience (don't feel afraid to apply for jobs where you don't have the requirements anyway) 23:56 <+bridge> [ddnet] i dont think u can rly find senior rust devs 23:57 <+bridge> [ddnet] maybe there are a handful at most xD 23:57 <+bridge> [ddnet] they pick c++ seniors 23:57 <+bridge> [ddnet] well depends what u consider senior 23:57 <+bridge> [ddnet] i usually set a high bar 23:59 <+bridge> [ddnet] 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