00:16 <+ddnet-discord> <|UbS| Rockus> oh 15:32 <+ddnet-discord> RUS down, GER ddos in full swing 15:33 <+ddnet-discord> we can't do much 15:33 <+ddnet-discord> no doubt 15:35 <+ddnet-discord> We are doomed to ddoses 15:35 <+ddnet-discord> :/ 16:10 <+ddnet-discord> yes 16:10 <+ddnet-discord> ger under ddos 16:37 <+ddnet-discord> @deen our of interest, how far did you get with your hookrace idea back then? 16:38 <+ddnet-discord> what idea? 16:38 <+ddnet-discord> @ChillerDragon https://hookrace.net/blog/what-is-hookrace/ 16:39 <+ddnet-discord> @cineara not far at all, just brainstorming, some random code, learning a new programming language, reporting dozens of bugs, writing blog articles about the language, forgetting that I wanted to write a game initially 16:39 <+ddnet-discord> I see :D 16:40 <+ddnet-discord> thanks 16:42 <+ddnet-discord> lol 16:42 <+ddnet-discord> but sounds kewl 16:43 <+ddnet-discord> yo mates 16:43 <+ddnet-discord> i ripped the randomness ._. 16:43 <+ddnet-discord> 16:43 <+ddnet-discord> https://cdn.discordapp.com/attachments/293493549758939136/387992448938541066/Bildschirmfoto_2017-12-06_um_16.33.00.png 16:43 <+ddnet-discord> ``rand() % 3 - 1`` dropped 0 20 times in a row 16:44 <+ddnet-discord> ``rand() % 3 - 1`` dropped ``0`` 20 times in a row 16:50 <+ddnet-discord> are you seeding it? 16:51 <+ddnet-discord> srand (time(NULL)); 16:51 <+ddnet-discord> http://www.cplusplus.com/reference/cstdlib/srand/ 16:51 <+ddnet-discord> @ChillerDragon 16:56 <+ddnet-discord> hm 16:57 <+ddnet-discord> but in other test program it works without srand 16:57 <+ddnet-discord> sec ill try 16:59 <+ddnet-discord> its weird. ._. i have to call srand everytime before i call rand to change the value 17:00 <+ddnet-discord> where can i buy teeworlds tee-shirt? 17:00 <+ddnet-discord> ddnet.tw 17:00 <+ddnet-discord> https://shop.spreadshirt.de/ddnet/ 17:01 <+ddnet-discord> DDNet doesn't get any money from them, but you can buy DDNet T-Shirts. 17:01 <+ddnet-discord> wtf 17:01 <+ddnet-discord> not good 17:21 <+ddnet-discord> @ChillerDragon no you dont 17:22 <+ddnet-discord> you seed the randomness with srand one time 17:22 <+ddnet-discord> all following calls to rand() will get you a new random number 17:23 <+ddnet-discord> if the seed is the same the sequence of numbers returned by rand() will be the same 18:02 <+ddnet-discord> @ChillerDragon you should only call `srand` once per program, early in your `main` function 18:03 <+ddnet-discord> teeworlds on linux feels so off 18:06 <+ddnet-discord> What's off about it 🤔 18:09 <+ddnet-discord> it doesn't feel smooth :/ 18:10 <+ddnet-discord> @gdin didnt u say u play tw on windows too? 18:14 <+ddnet-discord> No, I hate windows xd 18:15 <+ddnet-discord> @Learath2 If you're running it through X11, I find that fullscreen actually makes a big difference 18:15 <+ddnet-discord> but then I have to endure the blackscreen while switching windows 😛 18:16 <+ddnet-discord> I just made a bind to unfullscreen whenever I want to change windows xD 18:16 <+ddnet-discord> worth the trouble 18:16 <+ddnet-discord> and my resolution getting messed up everytime I switch screens :/ 18:16 <+ddnet-discord> i havent got a single distro supporting 144hz nicely 18:16 <+ddnet-discord> so i play on windows 18:16 <+ddnet-discord> :feelsbadman: 18:16 <+ddnet-discord> My monitor is 60Hz rip 18:17 <+ddnet-discord> it feels lot lot more smooth at144 18:17 <+ddnet-discord> it feels lot lot more smooth at 144 18:17 <+ddnet-discord> Ye i'd imagine 18:17 <+ddnet-discord> and since i can get perfectly more than 144fps it is even more smooth on teeworlds :D 18:17 <+ddnet-discord> (i got 2000fps on average hehe) 18:18 <+ddnet-discord> (i get 2000fps on average hehe) 18:18 <+ddnet-discord> Aha I got 6000 before on my desktop, but current machine gets like 200 18:18 <+ddnet-discord> well fps depends, playing with entities or not 18:18 <+ddnet-discord> Haven't played with graphics in years 18:18 <+ddnet-discord> 😂 18:19 <+ddnet-discord> :twinbop: 18:19 <+ddnet-discord> I consistently get 1000fps, doesnt stop it from stuttering both on windows and on linux 18:19 <+ddnet-discord> windows is masterrace for gaming 18:19 <+ddnet-discord> pls gdin 18:19 <+ddnet-discord> I don't disagree 18:19 <+ddnet-discord> but I hate windows more than I would reap benefits 18:20 <+ddnet-discord> not worth 18:20 <+ddnet-discord> it is, cause the strong push from microsoft to the gpu manufacturers and their drivers 18:20 <+ddnet-discord> I only restart to windows to play games nowadays 18:20 <+ddnet-discord> same 18:20 <+ddnet-discord> it's called wintendo 18:21 <+ddnet-discord> I had a win7 partition for a while but only booted it like 3 times a year xd 18:21 <+ddnet-discord> so eventually nuked it for more storage 18:21 <+ddnet-discord> https://www.urbandictionary.com/define.php?term=Wintendo 18:21 <+ddnet-discord> @Ryozuki liez, you program in C# 18:21 <+ddnet-discord> visual studio is such a good tool 18:21 <+ddnet-discord> butu can use mono 18:21 <+ddnet-discord> and program in linux too 18:22 <+ddnet-discord> mono is 😦 18:22 <+ddnet-discord> with monodevelop 18:22 <+ddnet-discord> VS Code is p nice when configured right 18:22 <+ddnet-discord> vs code != visual studio 18:22 <+ddnet-discord> visual studio knows basically everything of c# 18:22 <+ddnet-discord> its like the perfect ide for it 18:22 <+ddnet-discord> xD 18:22 <+ddnet-discord> it sucks on other languages tho 18:22 <+ddnet-discord> aha for c# makes sense I guess 18:22 <+ddnet-discord> I use vscode for cpp mostly 18:23 <+ddnet-discord> yeah 18:23 <+ddnet-discord> @Learath2 why mono is sad face? 18:23 <+ddnet-discord> i find it a nice thing 18:23 <+ddnet-discord> also .NET core is crossplatform now 18:23 <+ddnet-discord> although I'm tempted to learn emacs 🤔 🤔 18:23 <+ddnet-discord> it brings the windows ecosystem that i hate to linux 18:23 <+ddnet-discord> quite the rabbit hole tho 18:23 <+ddnet-discord> emacs is like an entire OS 😄 18:23 <+ddnet-discord> yep 😂 18:23 <+ddnet-discord> yes 18:24 <+ddnet-discord> i recommend http://spacemacs.org/ 18:24 <+ddnet-discord> "The best editor is neither Emacs nor Vim, it's Emacs and Vim!" 18:24 <+ddnet-discord> I'm really stuck between biting the bullet and buying sublime text or configuring vim and learning a thousand keybinds 18:24 <+ddnet-discord> Vim! 18:25 <+ddnet-discord> it's so worth it :thinking_smirk: 18:25 <+ddnet-discord> and by the time i'm done with vim it'll be so slow because of all the "unnecessary" plugins I want 😛 18:25 <+ddnet-discord> if u know lot of keybindings u will be more profitable on vim 18:25 <+ddnet-discord> it just becomes muscle memory after using it for a while 18:25 <+ddnet-discord> I know all the basics but to be an efficient user you need a lot more 18:25 <+ddnet-discord> dont really need to make much concious effort imo 18:26 <+ddnet-discord> also my hjkl-fu is off since I stopped playing nethack 18:28 <+ddnet-discord> @gdin do you use vim? 18:28 <+ddnet-discord> i do when im on linux and editing scripts 18:28 <+ddnet-discord> neovim 18:28 <+ddnet-discord> https://neovim.io/ 18:29 <+ddnet-discord> i still love that vim has a joke on its main page 18:29 <+ddnet-discord> http://www.vim.org/ 18:29 <+ddnet-discord> I need a more regular user to ask plugin performance 18:29 <+ddnet-discord> and its this http://www.vim.org/images/vim_drill_small.JPG 18:29 <+ddnet-discord> @Learath2 I use vscode with vim keybinds for heavier projects, and vim for small edits usually 18:29 <+ddnet-discord> Tempted to go to vim fully at some point 18:30 <+ddnet-discord> really don't want to get into vscode 18:30 <+ddnet-discord> Yeah its kinda fucky 18:30 <+ddnet-discord> scared I'll get too connected and micro$$$oft will pull a 180 18:30 <+ddnet-discord> I just like it for the gdb frontend xD 18:30 <+ddnet-discord> yeah also worried about m $ 18:31 <+ddnet-discord> got so used to gdb the frontends disturb me now 😛 18:31 <+ddnet-discord> Once I get used to it normally, thats when I can switch to just vim xD 18:31 <+ddnet-discord> did you try gdb -tui? 18:31 <+ddnet-discord> oo no 18:32 <+ddnet-discord> Didn't know that was a thing 18:32 <+ddnet-discord> 😃 18:32 <+ddnet-discord> will have to check that out :feelsgoodman: 18:35 <+ddnet-discord> who heard about the timeless debugger 18:36 <+nemo2> https://medium.com/@mkozlows/why-atom-cant-replace-vim-433852f4b4d1 18:36 <+ddnet-discord> atom was such a let down for me 😦 18:37 <+ddnet-discord> I really wanted to love it, I start it up it takes 30 seconds :((( 18:37 <+nemo2> composability is a big deal. even though I probably only use a tiny fraction of vim's power 18:37 <+ddnet-discord> file gets too big it starts lagging :/ 18:37 <+ddnet-discord> with sublime I can lazy load huge files 18:41 <+nemo2> Learath2: I don't really use hjkl much. too used to arrow keys. Use their visual mode tons 18:42 <+nemo2> Learath2: I like ctrl-v block select/replace in code 18:42 <+ddnet-discord> I need to get used to it b/c my next keyboard doesnt have arrow keys 😛 18:43 <+nemo2> Also use their regex a lot. love the fact you can call formulas on the matches. more convenient to do it in-editor than to fire up a code tool 18:43 <+nemo2> O_o 18:43 <+nemo2> whaaat? kbd w/o arrow keys? heresy. 18:43 <+nemo2> even my tiny compact kbd I use to make coding on my phone less painful has arrow keys 18:44 <+nemo2> I did use vim with vs last time I actually had to use visual studio - but, that was like 12 years ago. 18:44 <+ddnet-discord> thats a nice article nemo2 18:45 <+ddnet-discord> Just rebind all arrow key functions to hjkl :toptri: 18:45 <+nemo2> https://vim-adventures.com/ 18:45 <+nemo2> heh 18:45 <+ddnet-discord> :o 18:46 <+nemo2> I really don't see the advantage of hjkl frankly. vim is everywhere. arrow keys are everywhere. if I was going to use non-←↑↓→ I'd use wasd I think 18:46 <+nemo2> more intuitive arrangement 18:46 <+ddnet-discord> hjkl much better positioned on the keyboard tho 18:46 <+nemo2> ehhh 18:46 <+ddnet-discord> I have to bend my wrist to get to arrow keys and I end up away from all other keys at the end 18:47 <+nemo2> so wasd then 😉 18:47 <+nemo2> familiar w/ it from games 18:47 <+nemo2> nothing to relearn 18:47 <+nemo2> fingers are even in same position as arrows 18:47 <+ddnet-discord> It's nearly as efficient for me as arrow keys, and your hand already rests there 18:47 <+ddnet-discord> feels just as natural after getting used to ir 18:47 <+ddnet-discord> feels just as natural after getting used to it 18:47 * nemo2 shrugs. 18:48 <+nemo2> like a ton of vim stuff, the only reason I haven't gotten to using it is there's no reason to do so 18:48 <+ddnet-discord> wasd could actually be nice 18:48 <+ddnet-discord> I might try that out 18:48 <+nemo2> like. I don't use marks and copy buffers nearly enough 18:48 <+nemo2> I should, and I bet I'd get an extra like 5% in speed if I did so 18:48 <+nemo2> but just can't be bothered 18:49 <+nemo2> /pattern and % work well enough 18:49 <+nemo2> hell. sometimes I undo/redo to get back to a prior action point just 'cause I can't be bothered to use the `. history ☺ 18:50 <+nemo2> or g, 18:50 <+nemo2> well g,/g; 18:50 <+nemo2> g, and g; are good if doing a lot of changes all over a file tho. and that's also when I start doing mark points 18:50 <+nemo2> 'course by then I've probably said eff it and broken out global replace/regex ☺ 18:51 <+nemo2> " why am I copying and pasting this change from 30 lines back, then fixing it for this context when I could just be doing :↑ s/// 19:31 <+ddnet-discord> oh this vim adventures thing looks awesome tyty 20:24 <+ddnet-discord> @heinrich5991 @Learath2 (sorry for answering ur super old statement about the call the srand() one time in main but here it is:) ye i thought that too. But i tested it. If i call it once it doesnt help i have to call it every time before i want to use rand(). I tested it in a plain test.c with only a loop which prints random numbers it works great. But in this special code i send earlyer i ha 20:25 <+ddnet-discord> show code 20:30 <+ddnet-discord> @ChillerDragon see also: http://en.cppreference.com/w/c/numeric/random/srand 20:31 <+ddnet-discord> >Each time rand() is seeded with the same seed, it must produce the same sequence of values. 20:31 <+ddnet-discord> >srand() is not guaranteed to be thread-safe. 20:33 <+nemo2> heinrich5991: you guys only seed once? 20:33 <@heinrich5991> yes, we don't actually (want to) use randomness 20:33 <+nemo2> why? 20:34 <@heinrich5991> why would you want to use randomness? ^^ 20:34 <+nemo2> heinrich5991: so people using same seed don't get same game... 20:34 <+nemo2> heinrich5991: before we added more randomness we had players doing play prediction and seed abuse 20:34 <+nemo2> heinrich5991: much like why nethack changed to adding randomness during play 20:35 <@heinrich5991> well, teeworlds is pretty much deterministic, except for a few things that we (I) want to change 20:35 <+nemo2> sure. hedgewars is deterministic too... 20:35 <+nemo2> deterministic lockstep even 20:36 <+nemo2> nethack is pretty deterministic as well 20:36 <@heinrich5991> not really, is it? 20:36 <@heinrich5991> you even have random damage 20:36 <+nemo2> hm? 20:36 <@heinrich5991> miss chance, etc. 20:36 <+nemo2> ah 20:36 <+nemo2> heinrich5991: guess mean different things 20:37 <+nemo2> heinrich5991: skill vs chance 20:37 <+nemo2> heinrich5991: I personally prefer playing modes w/ less chance 20:37 <+nemo2> but oddly our most popular one is a mix. I think 'cause it lets sucky players win from time to time 20:37 <+nemo2> heinrich5991: in case of nethack the RNG used to be *very* abusable 20:37 <@heinrich5991> yes, I remember the blog posts :) 20:37 <+nemo2> it was exploited on the online servers to generate arbitrary items and guarantee an easy speedrun 20:38 <+nemo2> so they mixed in human input. which is 'sact same thing we did. 20:38 <+nemo2> still predictable in theory, just a lot harder 20:38 <+nemo2> most people can't be bothered ☺ 20:38 <+nemo2> I had my home server attacked shortly after ruining some item predictor/selector's fun on our server 20:39 <+nemo2> all he had to do was run the simulation ahead and he could have done same thing, but I don't think he even knew how to build the game 21:26 < ddnet-commits> [ddnet] heinrich5991 opened pull request #962: Use a longer bors timeout (master...pr_ddnet_bors_longer_timeout) https://git.io/vbcxJ 22:15 <+ddnet-discord> > Idk it is a sub process fork or something i dont really understand 22:15 <+ddnet-discord> @ChillerDragon Well rand() is pseudorandom, with the same seed for each process it also will produce the same output, therefore having the same number on each fork is expected. 22:28 <+ddnet-discord> ye i guess that makes sense i thought of the same but i didnt know i was forking at all in the beginning 22:34 <+ddnet-discord> where do you fork? 😃 22:58 <+ddnet-discord> forking? 22:58 <+ddnet-discord> Can you explain that word to me :D? 23:05 <+ddnet-discord> https://en.wikipedia.org/wiki/Fork_(system_call) 23:06 <+ddnet-discord> that's how you create new processes on non-windows 23:06 <+ddnet-discord> it creates an exact* duplicate of your current process 23:12 <+ddnet-discord> oh 23:12 <+ddnet-discord> now i understand 23:13 <+ddnet-discord> partially 23:23 <+nemo2> heinrich5991: heh. yeh. the "*" is important ☺\ 23:24 <@heinrich5991> yea :) 23:24 <+nemo2> https://aws.amazon.com/blogs/opensource/better-random-number-generation-for-openssl-libc-and-linux-mainline/ 23:24 <+nemo2> WIPEONFORK 23:24 <@heinrich5991> nemo2: most importantly, the function returns 0 in the child, and nonzero in the parent 23:24 <@heinrich5991> ;) 23:24 <+nemo2> https://news.ycombinator.com/item?id=15759855 23:25 <@heinrich5991> seen it :P 23:25 <+nemo2> heinrich5991: 'k. I linked to it mostly 'cause this comment was interesting to me https://news.ycombinator.com/item?id=15761326 23:26 <+nemo2> yeh, must be annoying for the lib which is trying hard to be secure 23:27 <+nemo2> well. that comment and the "reliably detecting forks" link in the reply 23:53 <+ddnet-discord> wwwwwwwwwwwwwwdasssssssssssswa