Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2020-04-26 00:00:00Z and 2020-04-27 00:00:00Z
Avatar
Rafael Fontenelle 2020-04-26 00:04:08Z
dpkg --list | grep libglew
00:04
@Shrod what does the above command return?
00:05
this
Avatar
Rafael Fontenelle 2020-04-26 00:08:12Z
Your DDNet expects a libglew version older than what you have now. You should rebuild/reinstall DDNet
Avatar
oh okay, i will try thank you ^^
Avatar
I get several reports for lag on my server, can it be the 128 player algorithm @Learath2 @heinrich5991?
Avatar
how would we know, profile it and you'll know
11:26
We have pretty inefficient O(n^2) algorithms all over the code
Avatar
as @Learath2 says, it's hard to say what exactly causes it
11:28
but the more players you add, the more problems will come from O(n^2) algorithms
Avatar
for both the collision checks and the playermap you can take a look at AABBs or quadtrees or map chunking
Avatar
AABB?
Avatar
axis aligned bounding box
Avatar
American Association of Blood Banks
Avatar
definitely not that 😄
Avatar
oh, spatial hashing is also interesting
11:39
(I think I would start with just chunking up the map)
Avatar
I don't know spatial hashing except for soing something like h(p) = p.x+p.y
Avatar
I'm trying to build again ddnet like @Rafael Fontenelle told me, but the command cmake .. and make doesn't work, someone else what to do please?
Avatar
@Shrod what distribution do you have?
Avatar
@heinrich5991 Linux mint 19.03
Avatar
type sudo apt install build-essential
Avatar
it's done
Avatar
then try cmake .. again
Avatar
sudo apt install libnotify-dev
13:24
it's done
Avatar
then try cmake .. 🙂
Avatar
yes its good 🙂
Avatar
nice!
Avatar
ohh thank you very much! 🙂
Avatar
you're welcome. if you run into any more troubles, make sure to ask here ^^
Avatar
ok thank you very much ^^ I may have a problem but I will first check if it does with this version before telling you about it 🙂
13:27
ah yes i have
13:27
in fact I can't hammer and hook at the same time I don't know why, I can hammer and hook but if I do it at the same time it doesn't do either
13:29
you know what to do or not please?
Avatar
it might be that pressing left and right mouse button at the same time emulates a middle mouse button click
13:30
can you select some text in the terminal and press both mouse buttons?
13:30
does the selected text get pasted then?
Avatar
and we could settle that?
13:31
wait i test
13:31
yes
Avatar
do you use a mouse pad or a mouse?
13:37
and suddenly you know how to fix it or not please? GWchadThink
Avatar
I'm trying to figure it out
Avatar
okay thank you ^^ GWbruhThonkNoHands
Avatar
can you go into the cinnamon settings, under mouse and disable "middle mouse button emulation"?
Avatar
I will see
13:46
here I have disabled
13:46
it's good it's settled, thank you very much!
Avatar
Hi, I want to save a date (for example 26th April 2020), and them compare it to another date (for example 20th May 2020). Is it possible in an easy way? Or do I have to write my own functions that care about things like 29th February etc. I want to have a check like if (date2 >= date1 + x days)
Avatar
in C++ probably chrono, but i haven't used it
Avatar
Whats that?
Avatar
why not just convert it to unix time
Exported 62 message(s)