04:10 < bridge_> I should make a uefi ddnet client 04:11 < bridge_> why does the uefi specification have 2300 pages man 04:12 < bridge_> it's universal 05:10 < bridge_> TIL argv is argc+1 big and not argc 05:10 < bridge_> https://cdn.discordapp.com/attachments/293493549758939136/1426768887063646238/Screenshot_20251012-050830.png?ex=68ec6d92&is=68eb1c12&hm=cd0b3fa2f00cf593de610bc97dd7292efaf4d890ab5f782faf41be96a21d1a7b& 05:11 < bridge_> TIL argv is argc+1 big 05:11 < bridge_> https://cdn.discordapp.com/attachments/293493549758939136/1426768887063646238/Screenshot_20251012-050830.png?ex=68ec6d92&is=68eb1c12&hm=cd0b3fa2f00cf593de610bc97dd7292efaf4d890ab5f782faf41be96a21d1a7b& 10:20 < ChillerDragon> i just closed vim .. accidentally??? 10:20 < ChillerDragon> how 10:21 < ChillerDragon> i fumbled capslock and found my self in the shell with `-bash: A: command not found` 10:21 < ChillerDragon> how???? xd 10:21 < bridge_> A: buse 10:37 < bridge_> Which formatting mistake are you referring to 10:38 < bridge_> Wait no 10:38 < bridge_> How did I read that so wrong 10:38 < bridge_> So did I for that matter 10:38 < bridge_> But I thought you said "why is argv so big" comically referring to the style of spacing or the erroneous paragraph break in-between a word break 10:56 < bridge_> chiller what does LIBAN means 11:37 < ws-client1> **** there used to be a player who spammed chat with I am LIBAN on pvp servers 11:37 < ws-client1> **** havent seen him since probably 8 years oO 11:39 < bridge_> hmmmm 12:00 < bridge_> I remember him xD 12:05 < bridge_> Epic 12:12 < bridge_> that's nabil ig 12:49 < ws-client1> **** interesting take lol 12:49 < ws-client1> **** what makes you think that @zhn? 12:58 < ws-client1> **** hmm why does clang tidy not want to make this one const? 12:58 < ws-client1> **** https://github.com/ddnet/ddnet/blob/ae90996d5823971b3f9f1709015d78390e6f058d/src/game/server/gamecontext.h#L191 13:21 < bridge_> string.reverse("LIBAN") 13:27 < bridge_> WOW 13:28 < bridge_> I used zstd to replace with zlib. 13:28 < bridge_> And then-> 13:28 < bridge_> map: NatureDefense 13:28 < bridge_> size: 457.0 KiB 13:29 < ws-client1> **** oh 13:29 < bridge_> map: NatureDefense_zstd 13:29 < bridge_> size: 81.7KiB 13:37 < bridge_> :justatest: 13:48 < bridge_> chillerdragon: https://clang.llvm.org/extra/clang-tidy/checks/readability/make-member-function-const.html 13:48 < bridge_> > this check will not suggest to add a const to a non-const method if the method reads a private member variable of pointer type 13:48 < bridge_> probably that's why? 13:50 < bridge_> Oh, so we could have avoided the NOLINT by making the member variable private: 13:50 < bridge_> ```cpp 13:50 < bridge_> CTuningParams *m_pTuningList; 13:50 < bridge_> const CTuningParams *TuningList() const { return m_pTuningList; } 13:50 < bridge_> CTuningParams *TuningList() { return m_pTuningList; } // NOLINT(readability-make-member-function-const) 13:50 < bridge_> ``` 14:10 < ws-client1> **** oh i see thanks @milkeeycat 15:11 < bridge_> is there a way to access server message logs without joining the server 15:40 < bridge_> trough the console 15:40 < bridge_> heh? 15:41 < bridge_> Like on a server you're hosting right? 15:43 < bridge_> Is it not printed to stdout 15:43 < bridge_> Or a log file 15:43 < bridge_> . 15:49 < bridge_> econ? 15:59 < bridge_> whats the prefix for a static char array? s_aArray ? 16:00 < bridge_> whats the prefix for a static char array again? s_aArray ? 16:00 < bridge_> yes 16:00 < bridge_> s_aBuf if you will 16:00 < bridge_> depends on what it does 16:01 < bridge_> bored so i thought about doing https://github.com/ddnet/ddnet/pull/11066/files quickly 16:01 < bridge_> 16:01 < bridge_> putting the emotes in a static const char array and i was unsure about the prefix 16:01 < bridge_> guess `s_aEmoteNames[]` it is 16:01 < bridge_> bored so i thought about doing https://github.com/ddnet/ddnet/pull/11066/files quickly 16:01 < bridge_> 16:01 < bridge_> putting the emotes in an array and i was unsure about the prefix 16:20 < bridge_> It can be static const, so `EMOTE_NAMES` 16:49 < bridge_> oh wow, fix_style.py fails silently on windows when launched through powershell 16:49 < bridge_> :angy: 16:57 < bridge_> hmm.. @robyt3 i added `if(Emote != EMOTE_NORMAL)`. I could either keep that or i adjust the index and remove it from `EMOTE_NAMES` - any preferences? 16:58 < bridge_> i tried not to alter behaviour given we break early if its EMOTE_NORMAL, but it looks weird having it in EMOTE_NAMES then xd 16:59 < bridge_> I'd maybe replace the `"normal"` with `nullptr` because it's not supposed to be used, but removing the element entirely and adjusting the index would also be fine I think 17:00 < bridge_> i guess i'd prefer to do the latter the 17:00 < bridge_> i guess i'd prefer to do the latter then 18:09 < ChillerDragon> !remind 60 @jsaurusrex wat bug 18:09 < ChillerDragon> !ping 18:09 < ChillerDragon> gg 18:25 < bridge_> ChillerDragon 18:25 < bridge_> 18:25 < bridge_> ``` 18:25 < bridge_> /home/runner/work/ddnet/ddnet/src/engine/client/client.cpp:516:22: error: invalid case style for static variable 'EMOTE_NAMES' [readability-identifier-naming,-warnings-as-errors] 18:25 < bridge_> 516 | static const char *EMOTE_NAMES[] = { 18:25 < bridge_> | ^~~~~~~~~~~ 18:25 < bridge_> | s_EMOTE_NAMES 18:25 < bridge_> ``` 18:25 < bridge_> 18:25 < bridge_> really? ._. 18:29 < bridge_> Hmm, why does it work in other cases like `static const char *DEFAULT_SERVERLIST_URLS[]` or `static const char *const EXPLANATION[]` though? 18:49 < bridge_> not on LLVM bruh 😭 18:49 < bridge_> https://cdn.discordapp.com/attachments/293493549758939136/1426975037344452780/image.png?ex=68ed2d90&is=68ebdc10&hm=544d769ba911f6885d2b8b38b41467c9db2d245a9ec6906bdf71b33bf9f13d3a& 18:50 < bridge_> huuh why? :o 18:50 < bridge_> force pushing 18:51 < bridge_> is LLVM --amend driven? xd 18:51 < bridge_> i'm a big force push fan 18:51 < bridge_> https://cdn.discordapp.com/attachments/293493549758939136/1426975637691961465/image.png?ex=68ed2e1f&is=68ebdc9f&hm=bdad86633fb2d933b716e0e79cb575da3369033e93500a02772ddcf5fda1c36b& 18:51 < bridge_> easier to edit commits that way 18:52 < bridge_> easier to edit commits that way IMO 19:03 < bridge_> :[ 19:09 < bridge_> But once it gets merged the force pushes are wiped clean? So what does it matter? 19:10 < bridge_> you sure got me! 19:10 < bridge_> there will never be negative consequences to force pushing 19:10 < bridge_> :lol: 19:21 < bridge_> `static const char *DEFAULT_SERVERLIST_URLS[]` works because it's global, `static` options apply only to local `static`s :justatest: (https://github.com/llvm/llvm-project/blob/d72cd24ac43861b885dbcac395f2cc53246d6042/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp#L1497-L1558) 19:21 < bridge_> `static const char *const EXPLANATION[]` works because it uses `StaticConstant*` options, not `StaticVariable*`(there's only `StaticVariablePrefix` option set) 19:33 < bridge_> Idk I thought you had some secret git knowledge 19:34 < bridge_> it depends on what the force push overwrote and whether anyone else had it checked out 19:34 < bridge_> in this situation it's pretty harmless yea 21:31 < bridge_> Do only admins have access to the core dump and binary for https://github.com/ddnet/ddnet/issues/11046 ? 21:32 < ws-client1> **** catto hunting the 0d 21:34 < bridge_> Yeah, because it would contain the rcon auths 21:57 < bridge_> Understandable 22:32 < bridge_> ``` 22:32 < bridge_> git commit --ammend -m "hi" 22:32 < bridge_> ``` 22:32 < bridge_> is the same as 22:32 < bridge_> ``` 22:32 < bridge_> git reset HEAD~1 22:32 < bridge_> git commit -m "hi" 22:32 < bridge_> ``` 22:32 < bridge_> for both you need `git add -A` and `git push --force(-with-lease)` 22:33 < bridge_> `git rebase -i HEAD~1` 22:33 < bridge_> i interactively rebase everything 22:33 < bridge_> edit, squash, pick - it has everything i need! 22:33 < bridge_> squash 🤤 22:34 < bridge_> rebase is cool, took me a while to figure out how it works 22:34 < bridge_> my only gripe is EDITOR is often set to something stupid 22:34 < bridge_> (vscode config not making it code, wsl using vim for whatever reason, default nano) 22:34 < bridge_> but thats not gits fault 22:35 < bridge_> I would really hope apps don't fuck up my environment when I install them 22:35 < bridge_> on systems which are not mine i dont like using rebase because i will get an inconvenient editor 22:35 < bridge_> there's also no unified way to set EDITOR 22:35 < bridge_> vscode integrated terminal *should* set EDITOR to code 22:35 < bridge_> oh the integrated one 22:35 < bridge_> agreed 22:35 < bridge_> yeah there is, every shell has a way to set env vars 22:36 < bridge_> its up to you and your shell on how to get the env var to the git when you run it 22:36 < bridge_> what 22:36 < bridge_> all os's have environment variables, which are normally inherited in shells, and settable 22:37 < bridge_> git might also take an argument for it i dont know 22:37 < bridge_> I don't think you read what I said 22:37 < bridge_> the terminal is presummably spawned from javascript where you can use javascript 22:38 < bridge_> the terminal is presummably spawned from javascript where you can use javascript (to pass env vars to the shell of your choice) 22:38 < bridge_> the terminal is presummably spawned from javascript where you can use javascript (to pass env vars to the shell of your choice) 22:38 < bridge_> yeah there is, every shell has ~~a way to set~~ env vars 22:39 < bridge_> ~~all os's have environment variables, which are normally inherited in shells, and settable~~ 22:39 < bridge_> yeah i did not really think what i said 22:39 < bridge_> but there is 22:39 < bridge_> its up to you and your shell on how to get the env var to the git when _you_ run it 22:39 < bridge_> git might ~~also~~ take an argument for it i dont know 22:42 < bridge_> bashrc 👀 22:43 < bridge_> maybe not 22:58 < bridge_> the closest thing is /etc/profile or the user-specific counterpart but the former is not guaranteed to be writable and the latter is not guaranteed to exist 22:58 < bridge_> also it's not sourced by all shells 22:59 < bridge_> but for the integrated terminal, it can just inherit the environment from the parent process 22:59 < bridge_> i thought we were talking about system-wide modifications when installing an editor 22:59 < ws-client1> **** @Solly (bun bun) its not the same its just similar 23:00 < ws-client1> **** for example if you change your git identity `--amend` will keep the old one and `reset` and recommit will update it 23:02 < ws-client1> **** solly btw u realy cooked with the nameplate stuff xd 23:02 < ws-client1> **** i never looked at the code until kz sent some pr using it 23:02 < ws-client1> **** i should port my messy nameplate edits to use the new shit 23:07 < bridge_> @chillerdragon thank you 23:07 < bridge_> bash rc ): 23:08 < bridge_> yeah it'll overwrite 23:08 < bridge_> i guess you could detect a vscdoe session and not set EDITOR 23:08 < bridge_> my problem is that it doesnt get set at all 23:08 < bridge_> you can definatley manually write a command on start 23:08 < bridge_> export EDITOR=yo mama 23:08 < bridge_> `export EDITOR=yo mama` 23:09 < bridge_> works in unix-like shells 23:09 < bridge_> then batch and pshw are different 23:09 < bridge_> you can do like bash --noprofile 23:09 < bridge_> id rather use my profile 23:09 < bridge_> but then u have the opposite issue 23:09 < bridge_> yeah 23:09 < bridge_> and this is only bash 23:09 < bridge_> there is no UNIFIED way 23:09 < bridge_> everyone should use bash 23:09 < bridge_> powershell is disgusting 23:09 < bridge_> yes they are the only two shells 23:10 < bridge_> everything which isnt is old, niche, or based on bash 23:10 < bridge_> everything which isnt is old, niche, or based on bash/bash compatible 23:10 < bridge_> everything which isnt is old, niche, or based on bash/posix compatible 23:10 < bridge_> i write my shell scripts with /bin/sh B) 23:10 < bridge_> "everyone should use x" 23:11 < bridge_> one day u might realize why this is bad 23:12 < bridge_> the only thing i dislike about wayland is them not deciding on one env var 23:12 < bridge_> (which has already been standardized) 23:12 < bridge_> to determine whether to use wayland or x(wayland) 23:12 < bridge_> `XDG_SESSION_TYPE=x11` 23:13 < bridge_> powershell is just a sucky shell 23:13 < bridge_> Set-Directory 👻 (has been fixed so) 23:13 < bridge_> Set-Directory 👻 (has been fixed so, not a point anymore) 23:14 < bridge_> it's not a sucky shell 23:14 < bridge_> you just don't understand it 23:14 < bridge_> theres a meme for that 23:14 < bridge_> try writing cmd scripts in current year 23:14 < bridge_> batch wasnt any better 23:14 < bridge_> goto 👀 23:15 < bridge_> posix also has stupid syntax aswell 23:15 < bridge_> fi 23:15 < bridge_> fish calls it end 23:15 < bridge_> slightly better 23:15 < bridge_> i am a brace fan 23:15 < bridge_> also works for loops and whatnot 23:15 < bridge_> for (i think) uses end already 23:16 < bridge_> If I'm writing a shell script I'm going to write it in a language that most shells understand 23:16 < bridge_> If I'm not doing that then I'm not subjecting myself to shell script 23:16 < bridge_> fish is stupid 23:16 < bridge_> i wouldn't script in fish unless it's for personal use 23:16 < bridge_> as with bash extentions shortcuts are nice 23:16 < bridge_> especially when its quick and dirty 23:16 < bridge_> I don't like fish either xd 23:16 < bridge_> tater likes zsh 23:17 < bridge_> But honestly bash is also a horrible language 23:17 < bridge_> some script in tclient uses it and i couldnt tell you how it works 23:17 < bridge_> if we are talking about scripting for any real use case, you kind of have to do /bin/sh (not because it's better, but because it has the potential to be much much faster if the host is running dash which is the default on most distros atp) 23:17 < bridge_> zsh is like for the cool people who like fancy shells but I'm clearly too boring and basic in my usage to want any of that 23:18 < bridge_> i still think fish is pretty great as a daily driver 23:28 < bridge_> i am going to lose my mind 23:28 < bridge_> https://cdn.discordapp.com/attachments/293493549758939136/1427045229772673196/image.png?ex=68ed6eef&is=68ec1d6f&hm=c6c6adab73863bfc9cc67bacd027df0a718c263110700b411d06980c34315d45& 23:28 < bridge_> is it because of these 23:28 < bridge_> https://cdn.discordapp.com/attachments/293493549758939136/1427045404603842580/image.png?ex=68ed6f19&is=68ec1d99&hm=bb0993f11c289012ba0efe4998ba90d38fb8cd637052fff903d62f73c574a18e& 23:29 < bridge_> GitHub will remove the notification from your view but not from the total count 23:29 < bridge_> :pepeW: