02:50 <+bridge> [ddnet] Posted in #general aswell. 02:50 <+bridge> [ddnet] 02:50 <+bridge> [ddnet] Yeah so basically i'm having extreme lags. I have no noticable delays whatsoever throughout the entire playtime. It just goes from 0-100 and then back from 100-0 (If even..). No high ping, steady ping of 48 even throughout the entire lagperiod. As mentioned it behaves like a DDOS attack, if i press space then i twitch on the spot until whatever grabbed me down finally releases me 03:09 <+bridge> [ddnet] @Learath2 what's the talk about, roughly? 03:41 <+bridge> [ddnet] Could it be that you lose tele weapons due to saving? 03:41 <+bridge> [ddnet] probably happened to starkiller & me at brainduck 2 tournament 06:13 <+bridge> [ddnet] @heinrich5991 the guy made a program to find hidden/undocumented x86 instructions and ended up also finding various software/hardware bugs 08:35 <+bridge> [ddnet] @WeezMe to make sure whether it's your ISP or your PC you could try connecting your PC to another internet connection, or connecting a friend's computer at your home network connection 08:36 <+bridge> [ddnet] and if it turns out to be the ISP, complain to them. If it's your PC, remove stuff until the lags stop 08:36 <+bridge> [ddnet] it sounds like your ISP is blocking a few packets though 08:36 <+bridge> [ddnet] so you get dropped packets and that's why it feels like DDoS attack 08:54 <+bridge> [ddnet] @heinrich5991 the talk I sent? Fuzzing the x86 instruction set to find undocumented instructions and a couple odd quirks found along the way 08:54 <+bridge> [ddnet] https://www.youtube.com/watch?v=lR0nh-TdpVg this one from the same guy is even more interesting 09:00 <+bridge> [ddnet] ive never watched a 40minute+ youtube video before the first x86 one o_o 09:27 <+bridge> [ddnet] >>>FreezestylerToday at 03:41 09:27 <+bridge> [ddnet] Could it be that you lose tele weapons due to saving? 09:27 <+bridge> [ddnet] probably happened to starkiller & me at brainduck 2 tournament 09:27 <+bridge> [ddnet] >>> FreezestylerToday at 03:41 09:27 <+bridge> [ddnet] Could it be that you lose tele weapons due to saving? 09:27 <+bridge> [ddnet] probably happened to starkiller & me at brainduck 2 tournament 09:27 <+bridge> [ddnet] idk why it doesnt work 09:28 <+bridge> [ddnet] https://github.com/ddnet/ddnet/pull/1588 09:28 <+bridge> [ddnet] this should work 09:28 <+bridge> [ddnet] maybe num is incorrect? 09:29 <@deen> I see there is not just HasTeleGun, but also HasTelegunGun 09:29 <@deen> is that something different? 09:30 <+bridge> [ddnet] where is HasTelegunGun? 09:30 <@deen> probably you have to set m_Core.m_HasTelegunGun/Grenade/Laser too 09:30 <@deen> see TILE_TELE_GUN_ENABLE in character.cpp 09:30 <@deen> it sets both 09:30 <+bridge> [ddnet] ok found it 09:30 <@deen> or even better, remove one of them 09:31 <@deen> having two values that do the same thing seems like a great way to get bugs 09:31 <+bridge> [ddnet] ye idk how it ended that way 09:39 <@deen> Will you provide a fix? 09:40 <+bridge> [ddnet] im trying 09:40 <@deen> Thanks 09:49 <+bridge> [ddnet] i see why, core wasnt setting telegun status when loading but char did, now im removing char and using only core 09:56 <+bridge> [ddnet] 09:56 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/612917845399044162/unknown.png 09:56 <+bridge> [ddnet] this doesnt seem to be my fault 09:56 <+bridge> [ddnet] is there something wrong with console format? 09:57 <+bridge> [ddnet] hmm 09:57 <@deen> probably a null pointer being passed in 10:00 <+bridge> [ddnet] i added a check on pStr on Bind and now i get a segfault here 10:00 <+bridge> [ddnet] 10:00 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/612918803705364511/unknown.png 10:00 <+bridge> [ddnet] 10:00 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/612918905383550979/unknown.png 10:00 <+bridge> [ddnet] this is also weird 10:01 <+bridge> [ddnet] 10:01 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/612918983062192128/unknown.png 10:01 <+bridge> [ddnet] it fails to load files 10:01 <@deen> try a debug build and debug? 10:01 <+bridge> [ddnet] maybe its a problem on my end 10:01 <+bridge> [ddnet] somehow 10:02 <+bridge> [ddnet] ok 10:03 <+bridge> [ddnet] hmm it works 10:04 <+bridge> [ddnet] ill try with RelWithDebInfo 10:04 <+bridge> [ddnet] it works 10:04 <+bridge> [ddnet] maybe i had to refresh cmake 10:07 <+bridge> [ddnet] how to enable save? 10:07 <+bridge> [ddnet] i wanna test it 10:07 <@deen> you need mysql 10:07 <@deen> or add support for file based save/load 10:08 <@deen> I don't think we have it at the moment 10:08 <@deen> if it's too hard to add a db locally, you could give me the source code and I can run a test server on DDNet GER 10:09 <+bridge> [ddnet] ok ill pr 10:09 <+bridge> [ddnet] next time ill setup the db 10:15 <@deen> ger.ddnet.tw:8303 is updated with your version 10:16 <+bridge> [ddnet] ok ill test 10:20 <+bridge> [ddnet] ok it doesnt work xd 10:20 <+bridge> [ddnet] hmm 10:26 <@deen> "case 97:" can't be right, can it? 10:27 <@deen> ah, my bad 10:28 <+bridge> [ddnet] there are 100 elements right now 10:28 <@deen> yeah, looks correct 10:28 <+bridge> [ddnet] so it shouldnt be the problem 10:29 <+bridge> [ddnet] othert elements also set core variables when loading so that shouldnt be a problem either 10:29 <@deen> Is m_String long enough? 10:30 <+bridge> [ddnet] uh 10:30 <+bridge> [ddnet] maybe not 10:31 <+bridge> [ddnet] 10:31 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/612926524282241035/unknown.png 10:31 <+bridge> [ddnet] i guess its long enough? 10:31 <+bridge> [ddnet] what does getString do 10:31 <@deen> I meant m_String in save.h 10:31 <+bridge> [ddnet] oh 10:31 <@deen> but that looks big enough as well, 700 bytes in use currently 10:31 <@deen> shouldn't be over 2048 with your change 10:32 <+bridge> [ddnet] i guess 10:33 <@deen> Found the mistake 10:33 <+bridge> [ddnet] :o where 10:34 <@deen> \t instead of t in save.cpp:191 10:34 <+bridge> [ddnet] omg 10:34 <+bridge> [ddnet] xD 10:34 <+bridge> [ddnet] my editor even doesnt highlight it 10:34 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/612927410983272458/unknown.png 10:34 <+bridge> [ddnet] but i guess its hard to find 10:36 <+bridge> [ddnet] ok i forcepushed 10:36 <+bridge> [ddnet] update the sv just in case 10:36 <+bridge> [ddnet] its ez to test in wormhole map 10:37 <@deen> try again 10:39 <+bridge> [ddnet] works 10:39 <@deen> thanks for the fix 10:39 <+bridge> [ddnet] well you found the fix at the end :P 10:40 <+bridge> [ddnet] but we got cleaner code now i guess 10:40 <@deen> getting rid of the thousand character long lines would also be a nice next step :D 10:40 <+bridge> [ddnet] yep xD 10:45 <+bridge> [ddnet] maybe a serializable struct/class 10:45 <+bridge> [ddnet] Not really easy to get rid of though, even if we move to a binary format we'd need to encode it somehow to store it in the db 10:45 <+bridge> [ddnet] I guess we could split it into two tables in the db and store it properly, but that's quite some work 16:02 <+bridge> [ddnet] @heinrich5991 can you help me? Im trying to get rid of the automatic client disconnect like in DDNet. First is in network_conn.cpp, too weak connection (out of buffer) and the second is in network_server.cpp Error sending data. I cannot seem to properly eliminate those Disconnects, as the client just laggs out if I comment them like in DDNet 16:07 <+bridge> [ddnet] So why removing them? 16:38 <+bridge> [ddnet] anyone remember when isaid i had a problem with keyboard that it repeated keys while holding it when playing? unplugging and plugging it on another usb slot fixed it 16:39 <+bridge> [ddnet] i can play tw again yay 16:39 <+bridge> [ddnet] :justatest: 18:15 <+bridge> [ddnet] "gaming" optimized usb slot probably with higher input rate? 18:16 <+bridge> [ddnet] not rly 18:16 <+bridge> [ddnet] never heard of that xD 18:17 <+bridge> [ddnet] https://www.gigabyte.com/Motherboard/B450M-DS3H-rev-10#kf 18:17 <+bridge> [ddnet] this is my motherboard 18:19 <+bridge> [ddnet] https://ddnet.tw/tournaments/6birthday/ 18:19 <+bridge> [ddnet] the times are a bit broken ;D 18:25 <+bridge> [ddnet] i want to install kernel 5.3-rc5 on arch but compiling it takes ages 18:25 <+bridge> [ddnet] :twintri: 18:42 <+bridge> [ddnet] u can throw away modules u dont need 19:02 <+bridge> [ddnet] Kernels compile quite quickly, are you compiling on a toaster? 19:03 <+bridge> [ddnet] Compared to chromium and firefox everything compiles quite quickly actually 19:08 <+bridge> [ddnet] @Learath2 lol did u try compiling arch linux mainline? 19:08 <+bridge> [ddnet] i guess they enable all shit cuz its arch 19:08 <+bridge> [ddnet] Oh could be bloated as shit true 19:08 <+bridge> [ddnet] I'll give it a try 19:08 <+bridge> [ddnet] i just want to test if the audio cracking with a analog input with realteck is fixed 19:09 <+bridge> [ddnet] @Learath2 i dont think i hav a potato xd 19:09 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/613056907300831262/unknown.png 19:10 <+bridge> [ddnet] what do you mean, lags out, @fokkonaut 19:11 <+bridge> [ddnet] like a timeout 19:11 <+bridge> [ddnet] and then too weak connection (not acked for 1 0 sec) 19:12 <+bridge> [ddnet] the client does that I guess? 19:12 <+bridge> [ddnet] @Ryozuki i had alot of audio problems too 19:12 <+bridge> [ddnet] 19:12 <+bridge> [ddnet] nano /etc/pulse/daemon.conf 19:12 <+bridge> [ddnet] 19:12 <+bridge> [ddnet] change: 19:12 <+bridge> [ddnet] default-fragments = 5 19:12 <+bridge> [ddnet] default-fragments-size-msec = 2 19:12 <+bridge> [ddnet] 19:12 <+bridge> [ddnet] default-sample-rate = 48000 19:12 <+bridge> [ddnet] resample-method = src-sinc-best-quality 19:12 <+bridge> [ddnet] 19:12 <+bridge> [ddnet] 19:12 <+bridge> [ddnet] nano /etc/pulse/default.pa 19:12 <+bridge> [ddnet] 19:12 <+bridge> [ddnet] change: 19:12 <+bridge> [ddnet] load-module module-jackdbus-detect channels=2 tsched=0 19:12 <+bridge> [ddnet] #load-module module-suspend-on-idle 19:12 <+bridge> [ddnet] 19:12 <+bridge> [ddnet] this fixed it for me xD 19:12 <+bridge> [ddnet] do u have a amd cpu with intel audio and a ANALOG mic? 19:12 <+bridge> [ddnet] i tried lot of shit 19:12 <+bridge> [ddnet] but they say its fixedi n 5.3 19:12 <+bridge> [ddnet] i have realtek and amd cpu 19:13 <+bridge> [ddnet] https://www.phoronix.com/scan.php?page=news_item&px=Linux-AMD-Analog-Input-Audio-WA 19:13 <+bridge> [ddnet] ah and 19:13 <+bridge> [ddnet] /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf 19:13 <+bridge> [ddnet] 19:13 <+bridge> [ddnet] [Element Capture] 19:13 <+bridge> [ddnet] switch = mute 19:13 <+bridge> [ddnet] volume = merge 19:13 <+bridge> [ddnet] override-map.1 = all 19:13 <+bridge> [ddnet] override-map.2 = all-left,all-right 19:13 <+bridge> [ddnet] to 19:13 <+bridge> [ddnet] [Element Capture] 19:13 <+bridge> [ddnet] switch = mute 19:13 <+bridge> [ddnet] does ur mic work clean in discord? 19:13 <+bridge> [ddnet] in teamspeak 19:13 <+bridge> [ddnet] i dont use discord normally 19:13 <+bridge> [ddnet] but do u have a analog mic? 19:13 <+bridge> [ddnet] yes 19:14 <+bridge> [ddnet] hm ill try later maybe 19:14 <+bridge> [ddnet] also try to use the back ports 19:14 <+bridge> [ddnet] wdym? 19:14 <+bridge> [ddnet] there is no backports from releaae candidates 19:14 <+bridge> [ddnet] i mean 19:14 <+bridge> [ddnet] im on latest kernel 19:14 <+bridge> [ddnet] dont use ur front panels 19:14 <+bridge> [ddnet] in ur case 19:14 <+bridge> [ddnet] i tried front and back panels 19:14 <+bridge> [ddnet] ok 19:14 <+bridge> [ddnet] both have same bug 19:14 <+bridge> [ddnet] @heinrich5991 im on 0.7 and try to handle this like ddnet, they just commented that out, the auto disconnect and there its working fine 19:14 <+bridge> [ddnet] anyway all theses things together fixed it for me 😄 19:19 <+bridge> [ddnet] btw the most important thing was commeting out "#load-module module-suspend-on-idle" 19:19 <+bridge> [ddnet] somehow i read, that the audio drivers go suspend sometimes even if ur audio is used, that created annoying strange sounds, the rest came mostly from eletromagnetic fields from compents in the case, that weren't grounded, causing the analog cables to do loud pieps xd 19:20 <+bridge> [ddnet] i just know my mic is fine cuz it works on windows 19:20 <+bridge> [ddnet] its a driver issue or smth 19:20 <+bridge> [ddnet] thats why i have hopes o nthe kernel release 19:20 <+bridge> [ddnet] when i was tocuhing my case for example the noise was much less, since i was protecting the analog cables more or less xD 19:21 <+bridge> [ddnet] xd 19:28 <+bridge> [ddnet] @Jupstar ✪ so u use nano 19:28 <+bridge> [ddnet] thats no gud 19:29 <+bridge> [ddnet] why should i xD 19:29 <+bridge> [ddnet] why shouldnt i xD 19:30 <+bridge> [ddnet] vim isnt preinstalled on my machine 19:30 <+bridge> [ddnet] nano is 19:30 <+bridge> [ddnet] install vim then 19:30 <+bridge> [ddnet] masterrace 19:30 <+bridge> [ddnet] idc so much about terminal editors tbh 😄 19:30 <+bridge> [ddnet] u srsly edit ddnet code with nano? xd 19:30 <+bridge> [ddnet] oh 19:31 <+bridge> [ddnet] i use proper text editors 19:31 <+bridge> [ddnet] vim is a better than "proper text editor" 19:31 <+bridge> [ddnet] depends 19:31 <+bridge> [ddnet] and coming from a clion user 19:31 <+bridge> [ddnet] with enough mods maybe 19:31 <+bridge> [ddnet] i changed and after u adapt 19:31 <+bridge> [ddnet] its gud 19:31 <+bridge> [ddnet] i use neovim with lot of stuff ofc 19:31 <+bridge> [ddnet] i think i am fast coding like i trained it 19:32 <+bridge> [ddnet] i have autocompletion and lot of stuff like a fuzzy finder with fzf which works with the autocompletion and tags too 19:33 <+bridge> [ddnet] `vi` (unlike `vim`) is usually installed on unixy machines 19:33 <+bridge> [ddnet] but it was clear ryozuki meant vim here xd 19:33 <+bridge> [ddnet] https://gist.github.com/Ryozuki/08506fd05cc42d078882939cfa1f680a 19:33 <+bridge> [ddnet] my mess vimrc 19:34 <+bridge> [ddnet] would be more interesting to see a video where u code 19:34 <+bridge> [ddnet] then i could judge if its worth it 😄 19:35 <+bridge> [ddnet] i hav one 19:35 <+bridge> [ddnet] its bit cringey im coding opengl and u will for sure laugh at me 19:35 <+bridge> [ddnet] also when i record i dont code like when i dont 19:35 <+bridge> [ddnet] u know when u feel watched when u code 19:35 <+bridge> [ddnet] u drop ur perfomance a lot 19:35 <+bridge> [ddnet] xd 19:36 <+bridge> [ddnet] https://www.twitch.tv/videos/468992195 19:36 <+bridge> [ddnet] here u have 19:36 <+bridge> [ddnet] i dont laugh at ppl who code 😄 19:36 <+bridge> [ddnet] i was setting up freetype rendering with opengl 19:36 <+bridge> [ddnet] but now im changing it to use an atlas 19:36 <+bridge> [ddnet] and u know what igot? 19:36 <+bridge> [ddnet] shit 19:36 <+bridge> [ddnet] opengl feels great 19:36 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/613063849645572115/unknown.png 19:38 <+bridge> [ddnet] :D, well i can tell u, i code completly different, i use my mouse alot 19:38 <+bridge> [ddnet] xd 19:38 <+bridge> [ddnet] i like discovering new vim utilities 19:38 <+bridge> [ddnet] dt) will delete until ) 19:38 <+bridge> [ddnet] i use this shit a lot 19:39 <+bridge> [ddnet] if u have good aim its good xDD 19:39 <+bridge> [ddnet] xD 19:39 <+bridge> [ddnet] its all about getting used 19:39 <+bridge> [ddnet] i also used a lot mouse when using clion 19:39 <+bridge> [ddnet] but i wanted to go full vim 19:39 <+bridge> [ddnet] to feel hackerman u know 19:39 <+bridge> [ddnet] yeah, now u freetype opengl hakrr 19:39 <+bridge> [ddnet] my vim theme sucks i need to change it tho 19:39 <+bridge> [ddnet] i like high contrast 19:40 <+bridge> [ddnet] me too 19:41 <+bridge> [ddnet] :justatest: 19:41 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/613064968513913039/unknown.png 19:43 <+bridge> [ddnet] well atleast u using more modern opengl 19:43 <+bridge> [ddnet] most ppl learn old opengl 19:43 <+bridge> [ddnet] why would u learn old opengl 19:43 <+bridge> [ddnet] and dont understand the whole pipeline process 19:43 <+bridge> [ddnet] i think understanding what the hardware does is extremly essential 19:43 <+bridge> [ddnet] ah u mean the vertex shader -> fragment -> geometry 19:44 <+bridge> [ddnet] oh wait 19:44 <+bridge> [ddnet] its vertex geo and frag 19:44 <+bridge> [ddnet] xd 19:44 <+bridge> [ddnet] i never use geo one 19:44 <+bridge> [ddnet] yeah u dont need to 😄 19:44 <+bridge> [ddnet] but it also has its use cases 19:44 <+bridge> [ddnet] ye 19:44 <+bridge> [ddnet] its just sad that the GL drivers still are sooo buggy 19:45 <+bridge> [ddnet] but the more games will use it, the better they get 19:45 <+bridge> [ddnet] vulkan is also in C right? 19:45 <+bridge> [ddnet] what u think about it 19:45 <+bridge> [ddnet] well vulkan is an api too 19:45 <+bridge> [ddnet] it probs has a java implementation too 19:45 <+bridge> [ddnet] since i went only C i had to find a alternative to glm and i found https://github.com/recp/cglm 19:45 <+bridge> [ddnet] but yeah vulkan is deffs the better choice if u have the time 19:45 <+bridge> [ddnet] but their drivers are also bad 19:46 <+bridge> [ddnet] r u a pro graphics coder? 19:46 <+bridge> [ddnet] xD 19:46 <+bridge> [ddnet] i would say no 19:46 <+bridge> [ddnet] its not about coding anyway 19:46 <+bridge> [ddnet] its about math and creativity 19:46 <+bridge> [ddnet] im still understand the MVP matrix and the space coords opengl uses 19:46 <+bridge> [ddnet] its a bit confusing at start 19:46 <+bridge> [ddnet] im still understanding the MVP matrix and the space coords opengl uses 19:47 <+bridge> [ddnet] yeah, but in germany u learn that coordinate system anyway in school, so im fine with it xD 19:47 <+bridge> [ddnet] and sadly i wanted to use instead of an atlas for freetype glyps the new feature opengl has called texture arrays 19:47 <+bridge> [ddnet] directx is more of a pain for me there xD 19:47 <+bridge> [ddnet] but there are 0 tutorial 19:47 <+bridge> [ddnet] tutorials* 19:47 <+bridge> [ddnet] https://www.khronos.org/opengl/wiki/Array_Texture 19:47 <+bridge> [ddnet] just imagine what it could be 😄 19:48 <+bridge> [ddnet] i mean its self explaining isnt it? 19:48 <+bridge> [ddnet] i guess but im still confused 19:48 <+bridge> [ddnet] i think tw 0.7 uses that approach 19:49 <+bridge> [ddnet] texture arrays for all tiles 19:49 <+bridge> [ddnet] :o 19:50 <+bridge> [ddnet] well ok 19:50 <+bridge> [ddnet] it uses 3d textures xD 19:50 <+bridge> [ddnet] tw 0.7? 19:50 <+bridge> [ddnet] yes 19:50 <+bridge> [ddnet] why? 19:50 <+bridge> [ddnet] to remove the bug of tiles beings rendered shitty 19:50 <+bridge> [ddnet] like when zooming out u see lines 19:50 <+bridge> [ddnet] isnt that mip mapping 19:50 <+bridge> [ddnet] or smth 19:50 <+bridge> [ddnet] in my implementation its fixed by loading a specific mipmap 19:51 <+bridge> [ddnet] but for older opengl u cant do it that ez 19:51 <+bridge> [ddnet] its mipmapping, but u can clamp the texture boundaries in 3d textures 19:51 <+bridge> [ddnet] like 1 tile is 64x64 19:51 <+bridge> [ddnet] im still surprised by the need of thigns like GLEW due to windows 19:51 <+bridge> [ddnet] and not more 19:51 <+bridge> [ddnet] but if u look into a tile set 19:51 <+bridge> [ddnet] on linux only u dont need it right 19:51 <+bridge> [ddnet] its 1024x1024 19:52 <+bridge> [ddnet] yeah but that doesnt annoy me too much tbh, it gives some kind of downward compability, if u dont have newer opengl headers installed 23:27 <+bridge> [ddnet] hm myghost shows the afk emote all the time :c