00:05 <+bridge> [ddnet] @fokkonaut it was fstd with twN 00:05 <+bridge> [ddnet] https://github.com/fstd/teeworlds/tree/twN 00:05 <+bridge> [ddnet] but i don't really remember if it worked well šŸ˜› 00:05 <+bridge> [ddnet] you won't get that many players without client support unless you do clipping 00:20 <+bridge> [ddnet] maybe isddnet belongs in the serverinfo actually 00:21 <+bridge> [ddnet] these are really hard to get to the right place :/ 00:37 <+bridge> [ddnet] @timakro would https://github.com/ddnet/ddnet/pull/1732/commits/9c3dafac work for you? 00:59 <+bridge> [ddnet] this score-time feature really doesn't make much sense at all... 01:10 <+bridge> [ddnet] @fokkonaut I think you should decide what kind of mod to make tbh, players having separate scoreformats is just too useless for any other mod 07:21 <+bridge> [ddnet] @Learath2 it is also usefull for mods that use IsDDNet and want time score but dont have a Race gametype 09:13 <+bridge> [ddnet] @Learath2 looks good, thank you! 09:18 <+bridge> [ddnet] clever use of the password field šŸ˜„ 09:44 <+bridge> [ddnet] @timakro lol, your code was so big, and these are so few lines xd 09:45 <+bridge> [ddnet] How does this |= and &= work? 09:46 <@deen> x = x | y; => x |= y 09:46 <@deen> ; 09:46 <@deen> same as += etc 09:50 <+bridge> [ddnet] ah lol 10:12 <+bridge> [ddnet] @Learath2 how do i set the ui_color correct now? i have the values of the old variables saved 10:12 <+bridge> [ddnet] cant get it with a converter 11:53 <+bridge> [ddnet] convert it to hex rgb and then set that 12:43 <+bridge> [ddnet] another pfp šŸ˜‚ 12:46 <+bridge> [ddnet] can you read jao 12:47 <+bridge> [ddnet] can you read foko 12:47 <+bridge> [ddnet] give me a link 12:48 <+bridge> [ddnet] for a converter 12:48 <+bridge> [ddnet] put your old values in a hsl to rgb converter 12:48 <+bridge> [ddnet] google 12:48 <+bridge> [ddnet] what about alpha 12:48 <+bridge> [ddnet] ui color is hsla 12:48 <+bridge> [ddnet] hsla to rgba converter 12:48 <+bridge> [ddnet] why rgba 12:48 <+bridge> [ddnet] i thought i need hey 12:48 <+bridge> [ddnet] hex* 12:48 <+bridge> [ddnet] I thought you need an alpha channel 12:48 <+bridge> [ddnet] ui color is hsla 12:49 <+bridge> [ddnet] how do i convert it to the new Format 12:49 <+bridge> [ddnet] ui_color 12:49 <+bridge> [ddnet] before it was split into single variables 12:49 <+bridge> [ddnet] convert it to hex 12:50 <+bridge> [ddnet] http://www.standardista.com/hsla-color-picker/ 12:50 <+bridge> [ddnet] first result on google 12:51 <+bridge> [ddnet] thanks 13:22 <+bridge> [ddnet] I wonder if I implemented RGBA hex properly 13:24 <+bridge> [ddnet] We have a limited amount of flags for serverinfo, do we want isddnet or something like israce 13:25 <+bridge> [ddnet] @fokkonaut well I don't really see a good way to implement time-score, the way you want, where you can send different values to different clients 13:26 <+bridge> [ddnet] you need a player var for it, like m_AllowTimeScore, then decide if you want to send the flag or not based on that 13:26 <+bridge> [ddnet] I know how to hack it in 13:27 <+bridge> [ddnet] I don't see how I can add it in as a proper feature 13:27 <+bridge> [ddnet] like look at my current attempt, it's inconsistent, the score-format is set properly, but at some places you just don't know what to display in the hud 13:27 <+bridge> [ddnet] or the title in the scoreboard 13:28 <+bridge> [ddnet] if some players have their level as score and some have time e.g. we don't know what to display 13:30 <+bridge> [ddnet] why 13:30 <+bridge> [ddnet] sure 13:31 <+bridge> [ddnet] It all worked fine before, so just leave it like i did (i mean those checks for hud and scoreboard text) 13:31 <+bridge> [ddnet] I'm not leaving in a franken-feature 13:33 <+bridge> [ddnet] It's a very specific feature that can only be used for your mod, it doesn't belong in ddnet 13:33 <+bridge> [ddnet] lol 13:34 <+bridge> [ddnet] it would make sense if the entire server had the same scoreformat at the same time 13:35 <+bridge> [ddnet] if you can do it so that i can edit it serverside its ok 13:35 <+bridge> [ddnet] i mean, if you do it ddnet-wise for all players, but give me space so i can edit it serverside to only send it to specific players 13:35 <+bridge> [ddnet] shouldnt that work? if you leave my checks in 13:35 <+bridge> [ddnet] for hud and board 13:36 <+bridge> [ddnet] as long as the scores sent are the same format for every client, yeah that'd work 13:36 <+bridge> [ddnet] one current score-format, that is applicable for every client 13:36 <+bridge> [ddnet] and you can hack around with it while snapping for a specific client 13:37 <+bridge> [ddnet] thats what i want to do 13:37 <+bridge> [ddnet] So, that would work, right? 13:37 <+bridge> [ddnet] but as i said, you aren't allowed to show levels for one client while showing time for another, there will only be one type of score in the scoreboard 13:38 <+bridge> [ddnet] ?? 13:38 <+bridge> [ddnet] What do you mean 13:39 <+bridge> [ddnet] why doesnt that work, if I send it only to specific clients 13:39 <+bridge> [ddnet] Oh 13:39 <+bridge> [ddnet] I mean the scoreboard will display a single format for every client 13:39 <+bridge> [ddnet] Yea, like before 13:40 <+bridge> [ddnet] but i can decide whether client 1's board shows time and client 3's board shows level 13:40 <+bridge> [ddnet] yep 13:40 <+bridge> [ddnet] Yes, thats what i meant 13:40 <+bridge> [ddnet] the rest was clear to me xd 13:40 <+bridge> [ddnet] I wonder how customisable I should leave this 13:40 <+bridge> [ddnet] can you imagine any other scoreformat except time and score? 13:41 <+bridge> [ddnet] No, there is nothing else i guess? Only numbers, or the time format using 00:00 13:42 <+bridge> [ddnet] what else should it display? xf 13:42 <+bridge> [ddnet] dont kill fokkos score sys its used in ddnet++ -.- 13:42 <+bridge> [ddnet] is already 13:42 <+bridge> [ddnet] i will redo it 13:42 <+bridge> [ddnet] wat? 13:42 <+bridge> [ddnet] for ddpp 13:43 <+bridge> [ddnet] ouch 13:43 <+bridge> [ddnet] once this pr is merged i will redo it, np 13:43 <+bridge> [ddnet] its not much 13:43 <+bridge> [ddnet] trust me 13:44 <+bridge> [ddnet] Idk what else should it display, that's why I asked 13:44 <+bridge> [ddnet] Shouldnt be any other possibility 13:45 <+bridge> [ddnet] If it'll just be a toggle between Score and Time I'll use a flag 13:45 <+bridge> [ddnet] if not I'll leave it an enum 13:45 <+bridge> [ddnet] There is no other format, so make it with flags 13:46 <+bridge> [ddnet] levels 13:46 <+bridge> [ddnet] leves is normal score tho 13:46 <+bridge> [ddnet] same format 13:47 <+bridge> [ddnet] isnā€™t it about the label too tho 13:47 <+bridge> [ddnet] No 13:47 <+bridge> [ddnet] that doesnt matter 13:47 <+bridge> [ddnet] yeah I was thinking of adding the label too 13:47 <+bridge> [ddnet] label oent matter 13:47 <+bridge> [ddnet] nobody reads that xd 13:47 <+bridge> [ddnet] as a cute feature 13:47 <+bridge> [ddnet] @Learath2 oh, thatd be sick 13:47 <+bridge> [ddnet] ā¤ 13:47 <+bridge> [ddnet] but in this case I mean just the format 13:47 <+bridge> [ddnet] u sure fok? 13:47 <+bridge> [ddnet] "doesnt matter" "ok that would be sick" 13:47 <+bridge> [ddnet] xd 13:47 <+bridge> [ddnet] classic foko 13:47 <+bridge> [ddnet] like the literal format string "%d" or "%d:%d:%d" 13:48 <+bridge> [ddnet] no, there is no other 13:48 <+bridge> [ddnet] format matters much more than the label 13:48 <+bridge> [ddnet] you can leave it open 13:48 <+bridge> [ddnet] one label being like score and the other like time or rank is totally fine 13:48 <+bridge> [ddnet] let the server send a format string to the client :troll: 13:48 <+bridge> [ddnet] I guess that really is all, I can't think of anything 13:48 <+bridge> [ddnet] Yea 13:48 <+bridge> [ddnet] @ChillerDragon did somebody say remote code execution? 13:48 <+bridge> [ddnet] hehe :p 13:48 <+bridge> [ddnet] XD 13:49 <+bridge> [ddnet] remote code executing is feature not security vulnerability 13:49 <+bridge> [ddnet] :troll: 13:49 <+bridge> [ddnet] true 13:50 <+bridge> [ddnet] using a scoreboard format string vuln, you could replace the gamecore to add better prediction for your own mod 13:50 <+bridge> [ddnet] yes 13:50 <+bridge> [ddnet] that is exactly what people will do 13:50 <+bridge> [ddnet] nothing else 13:50 <+bridge> [ddnet] did you see ZombieLoad btw? 13:50 <+bridge> [ddnet] ZombieToad sp someone? xd 13:51 <+bridge> [ddnet] https://zombieloadattack.com/ 13:51 <+bridge> [ddnet] no idk that 13:51 <+bridge> [ddnet] new cpu vuln 13:51 <+bridge> [ddnet] it says download 13:51 <+bridge> [ddnet] xd 13:51 <+bridge> [ddnet] affects all intel cpus 13:51 <+bridge> [ddnet] melt down 3.0 ? 13:51 <+bridge> [ddnet] i dont even know foreshadow 13:51 <+bridge> [ddnet] except pentiums, celerons and atoms i guess as those don't have SMT 13:51 <+bridge> [ddnet] "more critical vulnerabilities" jeez 13:52 <+bridge> [ddnet] it's very similar to meltdown yeah 13:52 <+bridge> [ddnet] same idea, unprivileged and privileged processes sharing "cores" 13:53 <+bridge> [ddnet] how can i use it to get ddnet admin rcon? 13:53 <+bridge> [ddnet] turorial pls 13:53 <+bridge> [ddnet] you can also use it between hypervisor threads, so you can access other peoples virtual machines as long as you are on the same physical server 13:53 <+bridge> [ddnet] hehe amd best 13:53 <+bridge> [ddnet] https://github.com/IAIK/ZombieLoad 13:53 <+bridge> [ddnet] ah there is xd 13:53 <+bridge> [ddnet] isnt that dangerous for all these coding websites 13:54 <+bridge> [ddnet] that have thes compilers and run user code 13:54 <+bridge> [ddnet] amd was affected by spectre aswell 13:54 <+bridge> [ddnet] not meltdown as much though 13:54 <+bridge> [ddnet] like the game we played yesterday 13:54 <+bridge> [ddnet] @ChillerDragon yep, very 13:54 <+bridge> [ddnet] is this a recent vuln 13:54 <+bridge> [ddnet] lez hack these sites 13:54 <+bridge> [ddnet] im always last -.- 13:54 <+bridge> [ddnet] xd 13:55 <+bridge> [ddnet] i wonder if this is fixable OS-wise 13:55 <+bridge> [ddnet] well it's a hardware vuln 13:55 <+bridge> [ddnet] i wonder how long the NSA is using this already :troll: 13:55 <+bridge> [ddnet] it might require new microcode 13:56 <+bridge> [ddnet] @Learath2 i didnt inform myself a lot on this butr isnt spectre and meltdown hardware too 13:56 <+bridge> [ddnet] but they are "fixed" 13:56 <+bridge> [ddnet] or idk 13:56 <+bridge> [ddnet] im not much into that 13:57 <+bridge> [ddnet] ```To address the issue in Debian, updates to the kernel, processor microcode, hypervisor, and various other userspace packages will be needed. These updates are being announced in Debian Security Announcements and Debian LTS Announcements as they become available. ``` 13:57 <+bridge> [ddnet] well meltdown was "fixed" by having the kernel be careful where it executes privileged processes 13:57 <+bridge> [ddnet] uh i guess u can update processor microcode? 13:57 <+bridge> [ddnet] wathever that is 13:57 <+bridge> [ddnet] https://wiki.debian.org/DebianSecurity/SpectreMeltdown 13:57 <+bridge> [ddnet] yeah,, during early boot you can patch the processors code 13:57 <+bridge> [ddnet] uh 13:57 <+bridge> [ddnet] isnt that dangerous 13:58 <+bridge> [ddnet] u can fck up the cpu right 13:58 <+bridge> [ddnet] xd 13:58 <+bridge> [ddnet] it's signed microcode 13:58 <+bridge> [ddnet] ah 13:58 <+bridge> [ddnet] I don't remember how they fixed spectre though 13:59 <+bridge> [ddnet] the only total fix to both is disabling SMT all-together 13:59 <+bridge> [ddnet] all those vulns always get some neat logos 14:00 <+bridge> [ddnet] https://wiki.debian.org/DebianSecurity/SpectreMeltdown 14:00 <+bridge> [ddnet] https://static.seekingalpha.com/uploads/2018/1/4/47376478-15151132152703211_origin.jpg 14:00 <+bridge> [ddnet] xd 14:00 <+bridge> [ddnet] this allows phishing sites 14:00 <+bridge> [ddnet] to do easy phishing 14:00 <+bridge> [ddnet] apparently they patched spectre with "unoptimizable code" 14:00 <+bridge> [ddnet] and scam 14:01 <+bridge> [ddnet] write branches in a way that the cpu doesn't try doing speculative execution 14:04 <+bridge> [ddnet] what do you mean by logos allowing easy fishing @Ryozuki ? 14:04 <+bridge> [ddnet] Like distributing scam patches and using the logo to loog legit? 14:05 <+bridge> [ddnet] I'm guessing he means the new vuln 14:05 <+bridge> [ddnet] actually, not sure šŸ˜› 14:05 <+bridge> [ddnet] @ChillerDragon lot of marketing for vulns most ppl wouldnt care less, some less tech savvy people would get worried and install some shit saying it patches it 14:05 <+bridge> [ddnet] meh i was just bored 14:06 <+bridge> [ddnet] tbh, spectre looks cute, I'd let him on my computer 14:06 <+bridge> [ddnet] :poggers: 14:42 <+bridge> [ddnet] @Learath2 why does ``str_toint_base("E0007897", 16)`` give me 2147483647 when it should be 3758127255 14:44 <+bridge> [ddnet] hmm 14:44 <+bridge> [ddnet] I think it might be too big 14:46 <+bridge> [ddnet] @jao ```14:45 ,cc long t = strtol("E0007897", NULL, 16); printf("%ld %d", t, t); 14:46 <+bridge> [ddnet] 14:45 Learath2: [warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]] 3758127255 -536840041``` 14:46 <+bridge> [ddnet] maybe you are printing it out the wrong format? 14:46 <+bridge> [ddnet] because str_toint_base calls strtol 14:47 <+bridge> [ddnet] but you should be getting hte negative thing, not 2147483647 are you also trying to shove it in a unsigned int? 14:47 <+bridge> [ddnet] yes you are šŸ˜› 14:59 <+bridge> [ddnet] but str_toint_base is int 14:59 <+bridge> [ddnet] :( 15:02 <+bridge> [ddnet] what are you trying? 15:05 <+bridge> [ddnet] hex rgba 15:09 <+bridge> [ddnet] doesn't work as long for me either tho lol 15:59 <+bridge> [ddnet] @fokkonaut https://ddnet.tw/colors.html 16:21 <+bridge> [ddnet] 16:21 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/578225546933174292/unknown.png 16:21 <+bridge> [ddnet] dark theme! 16:22 <+bridge> [ddnet] U weird 16:23 <+bridge> [ddnet] says the guy who speaks better numbers than english 16:23 <+bridge> [ddnet] :+( 16:24 <+bridge> [ddnet] These were just easy i'm sure i'll struggle on others 16:25 <+bridge> [ddnet] no you number wizard 16:25 <+bridge> [ddnet] we should burn u 16:25 <+bridge> [ddnet] Nah 16:25 <+bridge> [ddnet] Remember the *64 thing? 16:25 <+bridge> [ddnet] xd 16:26 <+bridge> [ddnet] I couldn't figure out how for like 10mins 16:26 <+bridge> [ddnet] i couldnt after 30 16:26 <+bridge> [ddnet] burn the witch šŸ”„ 16:27 <+bridge> [ddnet] xd 16:27 <+bridge> [ddnet] how did you dark theme that chiller 16:27 <+bridge> [ddnet] my ubuntu darktheme did that probably 16:27 <+bridge> [ddnet] What if ryo had play with us 16:27 <+bridge> [ddnet] i guess you didnt provide enoigh styling 16:27 <+bridge> [ddnet] make light 16:27 <+bridge> [ddnet] im darktheme user 16:27 <+bridge> [ddnet] xd 16:27 <+bridge> [ddnet] Did u even style it 16:28 <+bridge> [ddnet] Chiller what 16:28 <+bridge> [ddnet] do I need to css that now or what 16:28 <+bridge> [ddnet] šŸ•¶ 16:28 <+bridge> [ddnet] U dont use darktheme on discord do u? 16:28 <+bridge> [ddnet] no @jao its not the first site my theme messed up 16:28 <+bridge> [ddnet] rather do an pr on my theme than fix ur style 16:28 <+bridge> [ddnet] i us elightthemed discord xd 16:29 <+bridge> [ddnet] And u're a dark theme user 16:29 <+bridge> [ddnet] :troll: 16:29 <+bridge> [ddnet] Pretty strange.. xd 16:32 <+bridge> [ddnet] @jao I pack the color in the most significant byte btw 16:32 <+bridge> [ddnet] you do aswell, good 16:48 <+bridge> [ddnet] @ChillerDragon nobo u can fix it 16:48 <+bridge> [ddnet] u must tell firefox to use a light theme version of ur gtk theme 16:49 <+bridge> [ddnet] @ChillerDragon https://dougie.io/answers/firefox-linux-fix-dark-inputs/ 16:51 <+bridge> [ddnet] @Learath2 what to do about str_toint_base hex rgba 16:52 <+bridge> [ddnet] wym? the answer should be correct 16:52 <+bridge> [ddnet] it should be returning the negative number 16:53 <+bridge> [ddnet] didnā€™t work for me 17:09 <+bridge> [ddnet] where does it fail? 17:09 <+bridge> [ddnet] do you not get the negative number? 17:10 <+bridge> [ddnet] I get the original number 17:12 <+bridge> [ddnet] @jao how are you checking? 17:12 <+bridge> [ddnet] ```dbg_msg("DEBUG", "%d", str_toint_base("E0007897", 16)); 17:12 <+bridge> [ddnet] [2019-05-15 17:11:54][DEBUG]: -536840041``` 17:21 <+bridge> [ddnet] like that 17:21 <+bridge> [ddnet] but thatā€™s still the wrong value or not 17:22 <+bridge> [ddnet] the negative value is correct 17:22 <+bridge> [ddnet] alpha is at the beginning so it also uses the sign bit 17:23 <+bridge> [ddnet] ```dbg_msg("DEBUG", "%d %u", str_toint_base("E0007897", 16), (unsigned)str_toint_base("E0007897", 16)); 17:23 <+bridge> [ddnet] [2019-05-15 17:22:54][DEBUG]: -536840041 3758127255``` 17:23 <+bridge> [ddnet] I don't really get how you can arrive at 2147483647 17:26 <+bridge> [ddnet] @jao you do exactly that and you get 2147483647? 17:36 <+bridge> [ddnet] okay, what str_toint_base is doing is not well-defined 17:36 <+bridge> [ddnet] `Otherwise, the new type is signed and the value cannot be represented in it; either the result is implementation-defined or an implementation-defined signal is raised.` 17:39 <+bridge> [ddnet] ok you do it 17:39 <+bridge> [ddnet] I have no idea how to fix this properly 17:41 <+bridge> [ddnet] rip rgba then 17:41 <+bridge> [ddnet] god that entire feature was such a nightmare 17:41 <+bridge> [ddnet] I mean it should work right now 17:41 <+bridge> [ddnet] it worked for other rgba values too 17:41 <+bridge> [ddnet] only that one not 17:41 <+bridge> [ddnet] okay that does not make sense at all 17:42 <+bridge> [ddnet] @jao `dbg_msg("DEBUG", "%d %u", str_toint_base("E0007897", 16), (unsigned)str_toint_base("E0007897", 16));` 17:42 <+bridge> [ddnet] can you just print that? 17:43 <+bridge> [ddnet] Iā€™m not at home now 17:43 <+bridge> [ddnet] I'll make colors an unsigned integer instead just to make sure we are doing things that aren't at the mercy of the implementation 17:44 <+bridge> [ddnet] arenā€™t they already? 17:44 <+bridge> [ddnet] I kinda cheated, I still save them as integers 17:44 <+bridge> [ddnet] (ab)using the sign bit 17:45 <+bridge> [ddnet] oh 17:45 <+bridge> [ddnet] but then as said by the standard the conversions aren't well defined 17:48 <+bridge> [ddnet] btw why do you floor instead of rounding properly 18:02 <+bridge> [ddnet] @jao you mean round_truncate? I think it was the behaviour in the past that's why I kept it 18:14 <+bridge> [ddnet] https://itsfoss.com/windows-linux-kernel-wsl-2/ 18:15 <+bridge> [ddnet] why u put this shit articles here 18:15 <+bridge> [ddnet] is the fucking woman needed 18:18 <+bridge> [ddnet] interesting, why would windows want a linux kernel in it? what would the linux kernel do even? (nt kernel would be running ring 0, I don't see what the linux kernel would manage) 18:18 <+bridge> [ddnet] fake articles exist :troll: 18:18 <+bridge> [ddnet] "This is strictly my opinion. You may call it rant, I donā€™t really mind. 18:18 <+bridge> [ddnet] 18:18 <+bridge> [ddnet] Microsoft is infamous for its Embrace, Extend, Extinguish policy. It has started ā€˜lovingā€™ open source and Linux in the last few years but before that Linux was cancer. 18:18 <+bridge> [ddnet] 18:18 <+bridge> [ddnet] The so-called ā€˜love for Linuxā€™ seems more like ā€˜lust for Linuxā€™ to me. The Linux community is behaving like a teen-aged girl madly in love with a brute. Who benefits from this Microsoft-Linux relationship? Clearly, Microsoft has more to gain here. The WSL has the capacity of shrinking (desktop) Linux to a mere desktop app in this partnership. 18:19 <+bridge> [ddnet] 18:19 <+bridge> [ddnet] By bringing Linux kernel to Windows 10 desktop, programmers and software developers will be able to use Linux for setting up programming environments and use tools like Docker for deployment. They wonā€™t have to leave the Windows ecosystem or use a virtual machine or log in to a remote Linux system through Putty or other SSH clients." 18:19 <+bridge> [ddnet] linux kernel is licensed under gpl and derivative works must be under gpl 18:19 <+bridge> [ddnet] ur opinion is shit 18:19 <+bridge> [ddnet] it has quotes 18:19 <+bridge> [ddnet] coz i quote 18:19 <+bridge> [ddnet] ur opinion is copypasta 18:20 <+bridge> [ddnet] "The Linux community is behaving like a teen-aged girl madly in love with a brute. " by reading this it tells me u suck 18:20 <+bridge> [ddnet] and know nothing 18:20 <+bridge> [ddnet] are u retarded or what 18:20 <+bridge> [ddnet] @Ryozuki they'll be sure to make their contributions public under the gpl 18:20 <+bridge> [ddnet] i'm actually quoting the article 18:21 <+bridge> [ddnet] ah 18:21 <+bridge> [ddnet] xd 18:21 <+bridge> [ddnet] why put that shit here tho 18:21 <+bridge> [ddnet] xd 18:21 <+bridge> [ddnet] @Learath2 18:21 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/578255754008592384/unknown.png 18:22 <+bridge> [ddnet] looks like its not all clear 18:22 <+bridge> [ddnet] the derivative work would be WSL, worst case they'd need to open source that 18:23 <+bridge> [ddnet] the only good thing about this is that if you are a linux user and u are forced on a windows only enviroment on your shitty company u might have some breathable air 18:23 <+bridge> [ddnet] i think even gpl 2 isnt infectious enough to include windows and nt kernel with it 18:23 <+bridge> [ddnet] otherwise suck suck 18:23 <+bridge> [ddnet] besides gpl hasnt been tested in courts 18:24 <+bridge> [ddnet] microsoft surely has the money to beat a dragged out case 18:24 <+bridge> [ddnet] yeah microsoft beats others by using money everywhere 18:24 <+bridge> [ddnet] it has always been 18:24 <+bridge> [ddnet] cancer company 18:24 <+bridge> [ddnet] suck sucks 18:24 <+bridge> [ddnet] capitalism \o/ 18:24 <+bridge> [ddnet] wouldnt they lose shit ton of money or something 18:24 <+bridge> [ddnet] https://news.ycombinator.com/item?id=12827377 18:25 <+bridge> [ddnet] @Learath2 "The fact that GPL cases often settle does not mean the GPL is weak. In fact at least in some cases it's because the violators know they will lose and have no motivation to proceed to trial." 18:25 <+bridge> [ddnet] @Ryozuki iirc it never went to trial, it's generally settled 18:25 <+bridge> [ddnet] yeah that 18:25 <+bridge> [ddnet] but the thing is, even if it isn't weak a case that isn't settled will take a HUGE amount of time given there is no precedent 18:26 <+bridge> [ddnet] all hail linux and debian, case closed 18:26 <+bridge> [ddnet] as time goes on the rich people get the upperhand as they have a metric fuckton of money 18:26 <+bridge> [ddnet] yeah 18:26 <+bridge> [ddnet] justice works by money 18:26 <+bridge> [ddnet] not by "justice" 18:27 <+bridge> [ddnet] in america atleast 18:27 <+bridge> [ddnet] everywhere i would say 18:27 <+bridge> [ddnet] well atleast here in italy I can sue someone for stealing my money 18:27 <+bridge> [ddnet] in america I'd need a lawyer 18:27 <+bridge> [ddnet] well idk much about law 18:27 <+bridge> [ddnet] xd 18:28 <+bridge> [ddnet] do u use arch learath? 18:28 <+bridge> [ddnet] currently yes 18:28 <+bridge> [ddnet] my experiment to gain experience with systemd goes on 18:29 <+bridge> [ddnet] 18:29 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/578257584738271262/5qv2jd23wdy21.jpg 18:29 <+bridge> [ddnet] xddd 18:29 <+bridge> [ddnet] just make linux be in europe and then do EU bullshit :troll: 18:29 <+bridge> [ddnet] just so I can call systemd garbage and people cant call me out on not having used it 18:31 <+bridge> [ddnet] @Learath2 by using linux u are a teen-aged girl 18:31 <+bridge> [ddnet] according to the article 18:31 <+bridge> [ddnet] :poggers: 18:32 <+bridge> [ddnet] I think it means the general linux community that keeps crying about the "YEAR OF THE LINUX DESKTOP" 18:32 <+bridge> [ddnet] xd 18:32 <+bridge> [ddnet] https://www.reddit.com/r/linuxmasterrace/comments/bnsg42/why_i_actually_use_linux_fancy_terminals_and/ 18:32 <+bridge> [ddnet] linux best 18:33 <+bridge> [ddnet] why would you want that even 18:33 <+bridge> [ddnet] for fun 18:33 <+bridge> [ddnet] teen aged linux girls use https://www.montanalinux.org/ 18:34 <+bridge> [ddnet] wait 18:34 <+bridge> [ddnet] its not that, u can try it here http://hannahmontana.sourceforge.net/Site/Home.html 18:34 <+bridge> [ddnet] lmao 18:34 <+bridge> [ddnet] @Learath2 when I tested some rgb values where off and that sounds like a reason for it 18:34 <+bridge> [ddnet] my god, there actually is an iso and all 18:34 <+bridge> [ddnet] @jao you mean the rounding? 18:35 <+bridge> [ddnet] yes 18:35 <+bridge> [ddnet] It'd be more accurate if we rounded to the correct direction, yes 18:35 <+bridge> [ddnet] if you have any example i'd like to check it out aswell 18:36 <+bridge> [ddnet] but the old code rounded down so I kept it iirc 18:36 <+bridge> [ddnet] old code was bad 18:37 <+bridge> [ddnet] well one value was off by 2 so there might be another inaccuracy 18:43 <+bridge> [ddnet] if you know the color I can check specifically why it happens 18:53 <+bridge> [ddnet] also don't forget, the less saturated a color is, the worse it maps to rgb 18:53 <+bridge> [ddnet] e.g. half of the hsl space doesn't map to rgb space 18:56 <+bridge> [ddnet] yea 18:56 <+bridge> [ddnet] but the round truncate still feels wrong 18:56 <+bridge> [ddnet] maybe if we could get a better way to round 18:57 <+bridge> [ddnet] the property we need while rounding is making sure its invertible 18:57 <+bridge> [ddnet] why is it even wrapped in a function 18:57 <+bridge> [ddnet] @jao I wrapped it so it's obvious what I'm doing and where I'm doing it 18:58 <+bridge> [ddnet] I anticipated that it wouldn't be the best way to round, so it's useful to know where it happens 18:58 <+bridge> [ddnet] xd 18:59 <+bridge> [ddnet] why do you have to invert it? 18:59 <+bridge> [ddnet] if its invertible then it's consistent on the round trip 18:59 <+bridge> [ddnet] 1 HSL always maps to 1 RGB 19:00 <+bridge> [ddnet] On the bottom of the rgb vube that is 19:00 <+bridge> [ddnet] cube* 19:00 <+bridge> [ddnet] maybe we should quantise the 0->1, so that only integer multiples of 1/255.0f are allowed 19:01 <+bridge> [ddnet] or round to the closest 1/255.0f 19:03 <+bridge> [ddnet] ho does that meme format fit 19:03 <+bridge> [ddnet] round to closest 19:08 <+bridge> [ddnet] welll doesn't really help much tbh 19:08 <+bridge> [ddnet] #a96836 is 169 104 54 19:09 <+bridge> [ddnet] after going through hsl and coming back it's 168.0 102.2 53.9 19:09 <+bridge> [ddnet] rounding closest only fixes the blue, the roundtrip to hsl isn't really safe 19:11 <+bridge> [ddnet] rounding down is the correct choice here 19:12 <+bridge> [ddnet] or you map more of the rgb range into the closure of the interval then the boundry 19:15 <+bridge> [ddnet] would that be too much work (i mean to integrate in the latest version) if i work from hmh's branch `video_rebased2` to create a demo to video thing? 19:15 <+bridge> [ddnet] i'm not sure 19:15 <+bridge> [ddnet] you can try to git rebase and see how many conflicts you get 19:15 <+bridge> [ddnet] because right now i succeeded compiling from hes sources 19:15 <+bridge> [ddnet] k 19:22 <+bridge> [ddnet] when are you converting that back to hsl tho 19:22 <+bridge> [ddnet] itā€™s only output isnā€™t it 19:22 <+bridge> [ddnet] everything entered is converted to hsl 19:22 <+bridge> [ddnet] teeworlds stores hsl colors 19:23 <+bridge> [ddnet] i didn't dare break all the old color codes 19:23 <+bridge> [ddnet] so what roundtrip are you talking about 19:23 <+bridge> [ddnet] you enter $a96836 19:23 <+bridge> [ddnet] that's rgb 19:23 <+bridge> [ddnet] it's stored as hsl 19:23 <+bridge> [ddnet] now when displaying the rgb values again it goes back to rgb 19:24 <+bridge> [ddnet] and why is rounding to closest unsafe? you are doing it only once? 19:24 <+bridge> [ddnet] rounding to closest is wrong 19:25 <+bridge> [ddnet] in your example itā€™s more accurate 19:25 <+bridge> [ddnet] if you round to closest, 0 gets 0 ->0.5, 1 gets 0.5 -> 1.5 19:26 <+bridge> [ddnet] every integer except 0 and 255 get an entire 1/255 of the space 19:26 <+bridge> [ddnet] which isn't right 19:27 <+bridge> [ddnet] I donā€™t get why itā€™s wrong if itā€™s more accurate 19:27 <+bridge> [ddnet] it's more accurate in this example 19:27 <+bridge> [ddnet] it's less accurate in some other example 19:27 <+bridge> [ddnet] can you show one 19:28 <+bridge> [ddnet] I can probably find one if I look, but that's beside the point imho, equipartitioning the space just makes mathematically more sense 19:29 <+bridge> [ddnet] in my mind this canā€™t be worse than how it is now 19:29 <+bridge> [ddnet] not like it's any different currently, you just never saw the rgb values 19:29 <+bridge> [ddnet] this is always what we rendered 19:29 <+bridge> [ddnet] yes itā€™s only output thatā€™s why I donā€™t get how itā€™s unsafe 19:34 <+bridge> [ddnet] it's not unsafe, it's just not correct, this isn't correct either though, I should be multiplying by 256 and then rounding down 19:35 <+bridge> [ddnet] besides, it's not the rounding in the case of this number 19:39 <+bridge> [ddnet] `[2019-05-15 19:38:31][DEBUG]: R: 169, G: 104, B: 54, #A96836`if I print it out before the conversion to hsl and back 19:52 <+bridge> [ddnet] @Learath2 how does git rebase work? xd 19:52 <+bridge> [ddnet] it takes current branch, and the target branch 19:53 <+bridge> [ddnet] finds their common ancestor 19:53 <+bridge> [ddnet] then takes all the commits from the common ancestor to the current branch tip and applies them onto the target branch tip 19:53 <+bridge> [ddnet] hmmm 19:53 <+bridge> [ddnet] but the master branch of hmh is old 19:54 <+bridge> [ddnet] so how can i do? 19:54 <+bridge> [ddnet] @heinrich5991 you are better versed in math, can you give me a hand with all this when you have time? 19:54 <+bridge> [ddnet] @archimede67 you rebase hmhs branch onto ddnets master 19:54 <+bridge> [ddnet] but they are two branches in separate repo 19:55 <+bridge> [ddnet] but they are two branches in separate repos 19:55 <+bridge> [ddnet] @jao I think we just don't have enough bits to store accurate enough hsl to be able to get back to rgb 19:55 <+bridge> [ddnet] sad 19:56 <+bridge> [ddnet] @archimede67 they aren't 19:56 <+bridge> [ddnet] well yes they are 19:56 <+bridge> [ddnet] but you can add ddnets remote to your repo 19:57 <+bridge> [ddnet] `git remote add ddnet git@github.com:ddnet/ddnet.git` 19:57 <+bridge> [ddnet] i did that yea 19:57 <+bridge> [ddnet] then git fetch ddnet 19:57 <+bridge> [ddnet] oh yea i forgot that 19:57 <+bridge> [ddnet] then git rebase ddnet/master when you are on hmh's videoconv branch 19:57 <+bridge> [ddnet] I will try to prove you wrong 19:57 <+bridge> [ddnet] with the colors? šŸ˜› 19:58 <+bridge> [ddnet] yes 19:58 <+bridge> [ddnet] I'm fairly sure the correct mapping is round_truncate(rgb.r * 256.0f)` 19:58 <+bridge> [ddnet] but the problem with my above example isn't that 19:59 <+bridge> [ddnet] why 256? 19:59 <+bridge> [ddnet] I have 2 conflicts 19:59 <+bridge> [ddnet] @jao to avoid the issue i mentioned earlier 19:59 <+bridge> [ddnet] but that's not the issue here either 19:59 <+bridge> [ddnet] the issue is that color has a large mantissa in it's S and L when converted 20:00 <+bridge> [ddnet] 26.09 H 51.57 S and 43.73 L 20:00 <+bridge> [ddnet] the .57 we can't store, we can either round up or round down 20:01 <+bridge> [ddnet] either way it's 0.5 off 20:01 <+bridge> [ddnet] 0.43 20:01 <+bridge> [ddnet] the .73 we can't store, currently we are .7 off 20:01 <+bridge> [ddnet] so after that it's already no longer the same color 20:02 <+bridge> [ddnet] it's now #a66636 rgb 20:02 <+bridge> [ddnet] well it's about accuracy 20:02 <+bridge> [ddnet] I started with #a96836 20:02 <+bridge> [ddnet] say you round it up when storing the hsl, it's #a96937 20:03 <+bridge> [ddnet] it's not going to be exact when we have only 255 possible values 20:03 <+bridge> [ddnet] rounding up is closer tho 20:03 <+bridge> [ddnet] in that case 20:03 <+bridge> [ddnet] also the hsl conversion between all implementations 20:04 <+bridge> [ddnet] is a little different 20:04 <+bridge> [ddnet] we don't really get 26.09 for the hue but we get 25.41 20:04 <+bridge> [ddnet] I think that's where the bug is 20:06 <+bridge> [ddnet] but the implementation of RgbToHue is the exact one from wikipedia 20:12 <+bridge> [ddnet] okay nvm, i found where the inaccuracy is 20:12 <+bridge> [ddnet] the hue is calculated correctly but when it's stored it needs to be mapped to 0-255 20:13 <+bridge> [ddnet] I don't like that you can enter wrong hex values 20:14 <+bridge> [ddnet] it's impossible to do any better without starting to store those instead of tw colors 20:14 <+bridge> [ddnet] I mean it's better to slightly improve it by equipartitioning like i said 20:15 <+bridge> [ddnet] should we start storing rgb hex colors? 20:15 <+bridge> [ddnet] @Learath2 how good is ur bash? :justatest: 20:15 <+bridge> [ddnet] @ChillerDragon enough to do whatever i need to really 20:15 <+bridge> [ddnet] sorri if im interrupting here 20:15 <+bridge> [ddnet] oh send help then 20:15 <+bridge> [ddnet] well most colors make more sense in hsl? 20:16 <+bridge> [ddnet] ``echo "g" | grep g | ./bot.py`` 20:16 <+bridge> [ddnet] works 20:16 <+bridge> [ddnet] ``tail -fn1 logs/0.log | grep g | ./bot.py`` 20:16 <+bridge> [ddnet] doesnt 20:16 <+bridge> [ddnet] @jao colors are easier to manipulate in hsl 20:16 <+bridge> [ddnet] yes and logs are full of g xd 20:16 <+bridge> [ddnet] but I guess storing as rgb is more accurate 20:17 <+bridge> [ddnet] bot.py 20:17 <+bridge> [ddnet] ``` 20:17 <+bridge> [ddnet] while True: 20:17 <+bridge> [ddnet] line = sys.stdin.readline() 20:17 <+bridge> [ddnet] 20:17 <+bridge> [ddnet] ``` 20:17 <+bridge> [ddnet] @ChillerDragon I don't see what that's supposed to do 20:17 <+bridge> [ddnet] pass along lines that contain g? 20:17 <+bridge> [ddnet] yes 20:17 <+bridge> [ddnet] i want to filter tail and then pass it to python 20:17 <+bridge> [ddnet] i can pass tail to python 20:17 <+bridge> [ddnet] i can pass grep to python 20:18 <+bridge> [ddnet] but i cant pass tail to grep and then to python 20:18 <+bridge> [ddnet] anyways grep waits until the input is done iirc 20:18 <+bridge> [ddnet] somewhere data gets lost 20:18 <+bridge> [ddnet] ah 20:18 <+bridge> [ddnet] tail -f is never done so that's prolly it 20:18 <+bridge> [ddnet] that makes sense then 20:18 <+bridge> [ddnet] rip 20:18 <+bridge> [ddnet] any ideas? 20:18 <+bridge> [ddnet] i could also filter in python 20:18 <+bridge> [ddnet] but i prever grep cuz ez xd 20:18 <+bridge> [ddnet] filter in python 20:19 <+bridge> [ddnet] and learn more python meanwhile 20:20 <+bridge> [ddnet] -.- 20:20 <+bridge> [ddnet] u better learn bash 20:20 <+bridge> [ddnet] its best 20:20 <+bridge> [ddnet] @Learath2 can we return an invalid color instead of defaulting to black when entering a wrong color 20:21 <+bridge> [ddnet] i.e. don't update the color if u enter something wrong 20:21 <+bridge> [ddnet] I thought about that but couldn't figure out a good interface for it 20:21 <+bridge> [ddnet] maybe a bool m_Valid in color4_base and an override for ! 20:22 <+bridge> [ddnet] or maybe a ColorInvalid that fails to cast to any other color 20:22 <+bridge> [ddnet] y 20:23 <+bridge> [ddnet] can't do the second one, the functions are supposed to return ColorHSLA 20:23 <+bridge> [ddnet] I guess the first one it is 20:24 <+bridge> [ddnet] ColorHSLA(-1, -1, -1) 20:24 <+bridge> [ddnet] color4_base(-1,-1,-1) and bool color4_base::isValid() that returns false if the components aren't in 0-1 range 20:26 <+bridge> [ddnet] @Learath2 four mentions. did I miss something important? 20:26 <+bridge> [ddnet] even today has >1000 messages šŸ˜¦ 20:27 <+bridge> [ddnet] @heinrich5991 the first 3 was probably while we were golfing, wanted to see if you'd join 20:27 <+bridge> [ddnet] the last one I have a math question about mapping intervals 20:27 <+bridge> [ddnet] sure. PM in order to no spam the channel? 20:35 <+bridge> [ddnet] buy heinrich o,O we all have nothing better to do than spam and read #developer all day :feelsamazingman: 20:35 <+bridge> [ddnet] busy* not buy ^^ 20:38 <+bridge> [ddnet] hex rgba works with your pr btw learath 20:49 <+bridge> [ddnet] @jao it's ARGB or RGBA> 20:49 <+bridge> [ddnet] ? 20:51 <+bridge> [ddnet] rgba 20:54 <+bridge> [ddnet] some uses ARGB for hex values 20:59 <+bridge> [ddnet] so which one do you want 21:11 <+bridge> [ddnet] rgba(rrr,ggg,bbb,aaa)