03:50 < bridge> [ddnet] is there a dark mode on github ? 05:42 < bridge> [ddnet] yes 05:42 < bridge> [ddnet] but u need to be logged in 05:48 < bridge> [ddnet] @TsFreddie xd, but this one is hard to fix actually, would require to change the components a bit a guess, or go savage and reimplement all the dummy network logic 05:48 < bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/851668875400708116/test.mp4 05:48 < bridge> [ddnet] cyborgworlds 05:48 < bridge> [ddnet] 😳 06:16 < bridge> [ddnet] Hiring 📊 Jobs 💯Offer's Earning 06:16 < bridge> [ddnet] Daily jobs income hourly legit rapidly earn profits $3,000 in 24hours. Interested inbox me "How To Proceed" to join. click on link 👇👇📥 06:16 < bridge> [ddnet] https://wa.me/message/B7L4VSPJGQBGP1 08:02 < bridge> [ddnet] why is there a million layers of audio 08:02 < bridge> [ddnet] it sounds amazing 10:26 < bridge> [ddnet] What particles do you use? 12:42 < bridge> [ddnet] the internet is down 12:43 < bridge> [ddnet] fastly is down 12:43 < bridge> [ddnet] https://news.ycombinator.com/item?id=27432408 12:43 < bridge> [ddnet] :monkaS: 12:43 < bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/851773455116664892/unknown.png 12:44 < bridge> [ddnet] Yeah, I figured something was weird when reddit didn't load and DDNet builds on Github started failing at the same time 12:44 < bridge> [ddnet] apparently lots of websites depend on fastly.com provider 12:44 < bridge> [ddnet] even amazon 12:44 < bridge> [ddnet] it's down since a hour and not completly down, can work sometimes or not 12:45 < bridge> [ddnet] For Amazon it's super-weird that they don't dogfood their own CDN but use a competitor instead 12:45 < bridge> [ddnet] https://techcrunch.com/2021/06/08/numerous-popular-websites-are-facing-an-outage/ 12:46 < bridge> [ddnet] some dev pressed the wrong button :monkalaugh: 13:00 < bridge> [ddnet] ``` 13:00 < bridge> [ddnet] Fastly Engineer 1: Seems like a common error message. Can you check stackoverflow to see if there's an easy fix? 13:00 < bridge> [ddnet] Fastly Engineer 2: I have some very bad news... 13:00 < bridge> [ddnet] ``` 13:00 < bridge> [ddnet] :monkalaugh: 13:28 < bridge> [ddnet] Standard, it's just bcs everything is cloned in that video 14:33 < bridge> [ddnet] Question for c++ devs: 14:33 < bridge> [ddnet] 14:33 < bridge> [ddnet] I'm in Bash environment and I would like to fetch DDNet version from source code. I can achieve this with bash-ism, but I wonder if would be possible with an inline c++ command. 14:33 < bridge> [ddnet] 14:33 < bridge> [ddnet] Currently I use this bash-ism solution: 14:33 < bridge> [ddnet] 14:33 < bridge> [ddnet] ``` 14:33 < bridge> [ddnet] variable=$(grep "^#define GAME_RELEASE_VERSION" src/game/version.h | cut -d\" -f2) 14:33 < bridge> [ddnet] ``` 14:33 < bridge> [ddnet] 14:33 < bridge> [ddnet] A Python-equivalent of what I am looking for (if this project was written in Python, of course) would be e.g.: 14:33 < bridge> [ddnet] 14:33 < bridge> [ddnet] ``` 14:33 < bridge> [ddnet] version=$(python -c "from src/game/version import; print(GAME_RELEASE_VERSION)") 14:33 < bridge> [ddnet] ``` 14:33 < bridge> [ddnet] 14:33 < bridge> [ddnet] Any c++ suggestion better than the currently used bash-ism above? 14:33 < bridge> [ddnet] Question for c++ devs: 14:33 < bridge> [ddnet] 14:33 < bridge> [ddnet] I'm in a Bash environment and I would like to fetch DDNet version from source code. I can achieve this with bash-ism, but I wonder if would be possible with an inline c++ command. 14:33 < bridge> [ddnet] 14:33 < bridge> [ddnet] Currently I use this bash-ism solution: 14:33 < bridge> [ddnet] 14:33 < bridge> [ddnet] ``` 14:33 < bridge> [ddnet] version=$(grep "^#define GAME_RELEASE_VERSION" src/game/version.h | cut -d\" -f2) 14:33 < bridge> [ddnet] ``` 14:33 < bridge> [ddnet] 14:33 < bridge> [ddnet] A Python-equivalent of what I am looking for (if this project was written in Python, of course) would be e.g.: 14:34 < bridge> [ddnet] 14:34 < bridge> [ddnet] ``` 14:34 < bridge> [ddnet] version=$(python -c "from src/game/version import; print(GAME_RELEASE_VERSION)") 14:34 < bridge> [ddnet] ``` 14:34 < bridge> [ddnet] 14:34 < bridge> [ddnet] Any c++ suggestion better than the currently used bash-ism above? 14:41 < bridge> [ddnet] Question for c++ devs: 14:41 < bridge> [ddnet] 14:41 < bridge> [ddnet] I'm in a Bash environment and I would like to fetch DDNet version from source code. I can achieve this with bash-ism, but I wonder if would be possible with an inline c++ command. 14:41 < bridge> [ddnet] 14:41 < bridge> [ddnet] Currently I use this bash-ism solution: 14:41 < bridge> [ddnet] 14:41 < bridge> [ddnet] ``` 14:41 < bridge> [ddnet] version=$(grep "^#define GAME_RELEASE_VERSION" src/game/version.h | cut -d\" -f2) 14:41 < bridge> [ddnet] ``` 14:41 < bridge> [ddnet] 14:41 < bridge> [ddnet] A Python-equivalent of what I am looking for (if this project was written in Python, of course) would be e.g.: 14:41 < bridge> [ddnet] 14:41 < bridge> [ddnet] ``` 14:41 < bridge> [ddnet] version=$(python -c "from src/game/version import GAME_RELEASE_VERSION; print(GAME_RELEASE_VERSION)") 14:41 < bridge> [ddnet] ``` 14:41 < bridge> [ddnet] 14:41 < bridge> [ddnet] Any c++ suggestion better than the currently used bash-ism above? 14:52 < bridge> [ddnet] ``` 14:52 < bridge> [ddnet] echo '#include "src/game/version.h"\n#include \nint main() { std::cout << GAME_RELEASE_VERSION << std::endl; }' | g++ -xc++ - && ./a.out 14:52 < bridge> [ddnet] ``` 14:54 < bridge> [ddnet] Alternatively, using just the preprocessor: `echo '#include "src/game/version.h"\nGAME_RELEASE_VERSION' | g++ -E - | tail -n1` 14:56 < bridge> [ddnet] Or implement a `--version` flag in DDNet-Server/DDNet and run that 16:08 < bridge> [ddnet] Spotifys album art was also down, funnily enough not the music 17:38 < bridge> [ddnet] hi. my friend can't start ddnet 17:38 < bridge> [ddnet] it closing in a moment after starting without any logfiles etc. 17:39 < bridge> [ddnet] and was it always like that? 17:40 < bridge> [ddnet] think yes because he just installed ddnet 17:40 < bridge> [ddnet] wait a second, i'll show properties of pc 17:40 < bridge> [ddnet] some weak pc 17:40 < bridge> [ddnet] ok 17:40 < bridge> [ddnet] but i think it can start 17:43 < bridge> [ddnet] win7 intel core duo2(как то так), nvidia geforce 7900, 2гб 17:43 < bridge> [ddnet] win7 intel core duo2, nvidia geforce 7900, 2гб 17:43 < bridge> [ddnet] win7 intel core duo2, nvidia geforce 7900, 2gb 17:43 < bridge> [ddnet] win7 intel core 2 duo, nvidia geforce 7900, 2gb 17:43 < bridge> [ddnet] win7 intel core 2 duo, nvidia geforce 7900, 2gb ram 17:43 < bridge> [ddnet] very weak but should start 17:44 < bridge> [ddnet] for win7 i can only say, that there were ppl that had to update to newest win7 in order to play 17:44 < bridge> [ddnet] hm 17:44 < bridge> [ddnet] generally that pc should be enough to run the game at all 17:45 < bridge> [ddnet] + 17:45 < bridge> [ddnet] maybe net framework 17:45 < bridge> [ddnet] or msvc packs need to check? 17:45 < bridge> [ddnet] what the msvc uses ddnet rn? 17:46 < bridge> [ddnet] none 17:47 < bridge> [ddnet] we use mingw and ship all redistributables 17:47 < bridge> [ddnet] hm ok 17:47 < bridge> [ddnet] it should work on win7 17:47 < bridge> [ddnet] i tested it on a vm lately 17:48 < bridge> [ddnet] make sure to update win7 to latest 17:48 < bridge> [ddnet] 17:48 < bridge> [ddnet] here is the latest win7 64bit nvidia driver 17:48 < bridge> [ddnet] https://www.nvidia.com/Download/driverResults.aspx/82758/en-us 18:33 < bridge> [ddnet] @heinrich5991 do you know if there is some trick to get rust macros with non-local effects or some way to create a list at compile time? I need a list of annotated functions that I can call later at runtime 18:35 < bridge> [ddnet] (I googled around a bit and found the crate `inventory` which does this (ab)using ctor as a list which is a very ugly hack involving running code before main) 18:36 < bridge> [ddnet] @Learath2 I think you asked the same question yesterday? or am I going insane? ^^ 18:37 < bridge> [ddnet] I'm not familiar with macros 18:37 < bridge> [ddnet] I did, but you weren't around so wanted to ask you too 18:37 < bridge> [ddnet] I googled yesterday and found out that this is essentially not possible 18:37 < bridge> [ddnet] hm 18:38 < bridge> [ddnet] maybe you can check how test crates do it? 18:38 < bridge> [ddnet] maybe it's on compiler level 18:38 < bridge> [ddnet] it does sound like you're trying to do a lot of magic tho 😛 18:38 < bridge> [ddnet] Hm, I didn't write tests in rust yet, let me check how they achieve it 18:39 < bridge> [ddnet] @heinrich5991 I'm just trying to reproduce the magic we can achieve with the C preprocessor or in more dynamic languages like python or php 18:39 < bridge> [ddnet] ok, I think we can achieve C-level stuff 18:39 < bridge> [ddnet] are you talking about X-macros? https://en.wikipedia.org/wiki/X_Macro 18:40 < bridge> [ddnet] I'm looking to reproduce exactly what we have in `ddracecommands.h`. I have commands annotated with the macro `#[command]`, I need to register all annotated commands with the bot 18:44 < bridge> [ddnet] would it be okay to read the code again, from a macro? 18:45 < bridge> [ddnet] register_commands!("commands.rs"); 18:45 < bridge> [ddnet] `register_commands!("commands.rs");` 18:45 < bridge> [ddnet] Oh, could I? `commands.rs` would also need to be generated, wouldn't that cause issues with incremental compression? 18:45 < bridge> [ddnet] compilation* 😄 18:46 < bridge> [ddnet] you implement the commands and annotate them in a file, right? 18:47 < bridge> [ddnet] Well I have a module for each "module" and each module can register their own commands 18:47 < bridge> [ddnet] okay. can you explain why it is similar to ddracecommands.h? for me ddracecommands.h is a central list for all commands 18:48 < bridge> [ddnet] Well just thinking about one module at a time it's exactly like ddracecommands.h 18:48 < bridge> [ddnet] I don't mind doing `myawesomemodule::register_all()` I just don't know how to generate `register_all` 18:49 < bridge> [ddnet] In C++ `register_all()` would just be `#define CONSOLE_COMMAND(...) #include "ddracecommands.h"` 18:49 < bridge> [ddnet] where ddracecommands.h is a list of all ddrace commands? 18:49 < bridge> [ddnet] I don't see why this is different from listing all the commands 18:51 < bridge> [ddnet] Well we don't do it but ddracecommands.h is actually obsolete. Unreal e.g. generates a similar file at compilation from annotations on functions 18:51 < bridge> [ddnet] I guess they do resort to a custom preprocessor though, mh, I guess what I want isn't possible in C++ either 18:52 < bridge> [ddnet] It's definitely possible in php and python though, the way you annotate flask routes and/or symfony routes is what I was looking to emulate 18:53 < bridge> [ddnet] https://rocket.rs/ 18:53 < bridge> [ddnet] ah, they also list them 18:53 < bridge> [ddnet] hm 18:53 < bridge> [ddnet] yep, that's the first thing I looked at 18:53 < bridge> [ddnet] I think it's just not possible right now, I saw one issue about some compile time state, maybe it'll become a RFC sometime 18:53 < bridge> [ddnet] anyway, just wanted to check with you whether you knew something I was missing 18:54 < bridge> [ddnet] apparently not 18:54 < bridge> [ddnet] one idea that I have, but not sure whether it'll work: 18:55 < bridge> [ddnet] annotate the module with `#[generate_register_all]` and in that macro scan the module for `#[command]` and generate a `register_all` function 18:56 < bridge> [ddnet] That could work, I didn't even know I was allowed to read the entire file. It shoult(tm) even work fine with incremental compilation 18:57 < bridge> [ddnet] It's quite fun to work with rust macros btw, having access to the ast is really nice 18:58 < bridge> [ddnet] interesting, haven't done it yet 18:59 < bridge> [ddnet] I only used `macro_rules!` to generate repetitive code https://doc.rust-lang.org/rust-by-example/macros.html 19:02 < bridge> [ddnet] heh, I can do this when https://github.com/rust-lang/rust/issues/54725 is stabilized 19:03 < bridge> [ddnet] anyway, I'll just list them all in a `#[commands(...)]` for now 19:06 < bridge> [ddnet] do you use grafana or similar? @Learath2 19:14 < bridge> [ddnet] nope 20:06 < bridge> [ddnet] @heinrich5991 if here can you take a quick look at something? 20:07 < bridge> [ddnet] sure 20:56 < bridge> [ddnet] someone can help me about server side? 20:57 < bridge> [ddnet] i would just ask your question, that way anyone checking the channel with an answer can just reply 20:57 < bridge> [ddnet] yep wait 20:57 < bridge> [ddnet] need some screens 21:00 < bridge> [ddnet] yes so im stocking some informations with account system in a txt, as you can see m_KillCounter is here 21:00 < bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/851898532789223424/unknown.png 21:01 < bridge> [ddnet] and now im trying to increment it when i kill someone 21:01 < bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/851898782240473098/unknown.png 21:01 < bridge> [ddnet] that should work? 21:01 < bridge> [ddnet] that code is from a old block mod 21:02 < bridge> [ddnet] im trying to update it 21:04 < bridge> [ddnet] makes sense to me but that if chain is redundant since all cases are identical 21:08 < bridge> [ddnet] the "0" for the kill counter appears in my account file but doesn't increase when I kill someone 21:09 < bridge> [ddnet] when is the file written to? 21:09 < bridge> [ddnet] also this mod looks extremely similar to kurosio's style 😅 21:09 < bridge> [ddnet] i have stuff like this in the xpanic repository 21:10 < bridge> [ddnet] https://github.com/Rei-Tw/blocker-mod-src 21:10 < bridge> [ddnet] rly old 21:11 < bridge> [ddnet] https://github.com/Rei-Tw/blocker-mod-src/commit/d9690c84f813fa443b784dd9afb75be69f15d141 21:11 < bridge> [ddnet] i love reading this 21:11 < bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/851901350614925383/unknown.png 21:27 < bridge> [ddnet] chillerdragon: and u think i am the only one with such commit messages 21:29 < bridge> [ddnet] this elco person is amazing 21:29 < bridge> [ddnet] this eico person is amazing 21:29 < bridge> [ddnet] half the commits are "mhm" and some of them are just "sdfsdf" 21:30 < bridge> [ddnet] thats Captain Teemo 21:30 < bridge> [ddnet] my personal favorite is "uhm improved balls" 21:30 < bridge> [ddnet] xd 21:31 < bridge> [ddnet] half of my commits are "Fix§" 21:31 < bridge> [ddnet] half of my commits are "Fix" 21:40 < bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/851908477735010374/unknown.png 21:40 < bridge> [ddnet] @lynn 21:40 < bridge> [ddnet] LOL 21:40 < bridge> [ddnet] yes so for my problem i dunno :c 22:33 < bridge> [ddnet] On the unique race servers we have the strangest bug. After doing a certain part on a certain map which involves falling a long distance and entering a blue teleport rocket is behaving strangely. You can no longer use it to get horizontal speed, it slows you down when you try to get speed (in the usual way that is walking and shooting behind you on the ground). Does this sound familiar to somone here? Did ddnet maybe fix something like this 22:35 < bridge> [ddnet] timakro: is this reproducible? if you're going very fast horizontally, going even faster will slow your actual speed down 22:35 < bridge> [ddnet] I'm asking because we can't reproduce on ddnet servers. 22:36 < bridge> [ddnet] hm. it's not ringing a bell for me 23:00 < bridge> [ddnet] maybe the unique servers changed the tele code 23:01 < bridge> [ddnet] or ddnet changed it and unique has a different type