01:02 <+bridge> [ddnet]
guys need your help, im have too bad ping in GER2 servers (300+),
01:02 <+bridge> [ddnet] only on them, on GER, and on Gores on GER, GER3, GER4 ping 500+
01:02 <+bridge> [ddnet] wtf was that
07:51 <+bridge> [ddnet] @DD you're not the first to report that, my guess is that hetzner (our ger2 hoster) has bad peering to some isps. @heinrich5991 any plans to shut down ger2?
08:53 <+bridge> [ddnet] @heinrich5991 fixed the /players/ issue. reload of the data now takes 0.5 s instead of the previous 5-10 min. Each individual page loads in 0.1 s, similar to before. Memory usage is down to 120 MB from 1000 MB. Seems good enough for now. Was also extremely easy to do with diskcache: http://www.grantjenks.com/docs/diskcache/
08:57 <+bridge> [ddnet] Basically just put the players dict on disk:
08:57 <+bridge> [ddnet] ```
08:57 <+bridge> [ddnet] with Cache('/home/teeworlds/servers/players-cache') as cache:
08:57 <+bridge> [ddnet] for player, value in players.items():
08:57 <+bridge> [ddnet] cache[player] = value
08:57 <+bridge> [ddnet] ```
08:57 <+bridge> [ddnet] And replaced all data['players'].get(name) with cache.get(name). Should've done this much earlier I guess π
09:30 <+bridge> [ddnet] @louis is your GPU intel and your laptop lenovo?
11:11 <+bridge> [ddnet] @Learath2 what happened to ddnet7 master? Why doesnt it build? Can you fix it?
11:11 <+bridge> [ddnet] what or who caused it?
11:27 <+bridge> [ddnet] Ive come here to say big thanks for new version of DDNet. Compared to previous version it loads at least 2 (might be 3 or 4) times faster. No idea who did it, but it is very very cool! Thank you β€οΈ
11:30 <+bridge> [ddnet] Ive come here to say big thanks for new version of DDNet. Compared to previous version it loads at least 2 (might be 3 or 4) times faster. No idea who did it, but it is very very cool! Thank you, dear devs β€οΈ
11:31 <+bridge> [ddnet] nani
12:00 <+bridge> [ddnet] @fokkonaut idk, idk, idk, idk
12:02 <+bridge> [ddnet] > @Trafalgar Law master branch is currently broken, needs a fix (that was recently pushed to teeworlds by Ryozuki and to ddnet by deen)
12:02 <+bridge> [ddnet] @heinrich5991 .
12:02 <+bridge> [ddnet]
12:02 <+bridge> [ddnet] @fokkonaut
12:05 <+bridge> [ddnet] ddnet7 doesnt have that?
12:11 <+bridge> [ddnet] it looks like the freetype issue, there is a commit fixing it in both ddnet and teeworlds
12:40 <+bridge> [ddnet] Can you fix it?
12:48 <@deen> done
12:54 <+bridge> [ddnet] @deen oh wow, awesome optimizations
12:54 <+bridge> [ddnet] thanks!
12:56 <+bridge> [ddnet] hmm
12:57 <+bridge> [ddnet] ubuntu wavpack version doesnt have WavpackCloseFile?
12:57 <+bridge> [ddnet] https://github.com/ddnet/ddnet/pull/2128/checks?check_run_id=573556917
12:57 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/698486888348254268/unknown.png
12:57 <+bridge> [ddnet] it compiles for me
13:04 <+bridge> [ddnet] why does ubuntu doesnt install wavpack CI
13:04 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/698488695732305960/unknown.png
13:05 <+bridge> [ddnet] libwavpack-dev
13:06 <+bridge> [ddnet] it should also compile without installing wavpack
13:06 <+bridge> [ddnet] we have a bundled wavpack for that case
13:06 <+bridge> [ddnet] what version is bundled
13:06 <+bridge> [ddnet] update it to atleast v5 pls
13:06 <+bridge> [ddnet] no, it's a stripped down old version
13:06 <+bridge> [ddnet] there are no newer versions of the stripped down one
13:06 <+bridge> [ddnet] why use a stripped one
13:07 <+bridge> [ddnet] http://www.wavpack.com/downloads.html
13:07 <+bridge> [ddnet] search for "tiny"
13:07 <+bridge> [ddnet] because we don't need more functionality than that, I guess
13:08 <+bridge> [ddnet] we nee dto close the context
13:08 <+bridge> [ddnet] or we are leaking xd
13:09 <+bridge> [ddnet] is there a way to check if a function exists
13:09 <+bridge> [ddnet] i would want to fix it atleast for sane people who install wavpack library
13:11 <+bridge> [ddnet] it looks like you don't have to free in the tiny library
13:11 <+bridge> [ddnet] (reading the source for a sec)
13:11 <+bridge> [ddnet] @Ryozuki add a line above `check_symbol_exists(WavpackOpenFileInputEx wavpack.h WAVPACK_OPEN_FILE_INPUT_EX)`
13:11 <+bridge> [ddnet] does tiny have WavpackGetLibraryVersion
13:11 <+bridge> [ddnet] oh
13:11 <+bridge> [ddnet] in CMakeLists.txt
13:15 <+bridge> [ddnet] ok i did it
13:15 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/698491519098683392/unknown.png
13:16 <+bridge> [ddnet] @Ryozuki can you rebase to master btw, then the CI will at least complete for non-mac
13:16 <+bridge> [ddnet] y
13:17 <+bridge> [ddnet] done
13:32 <+bridge> [ddnet] @Ryozuki for snapshot storage, add a constructor that calls `Init` and a destructor that calls `PurgeAll`. that should fix it
13:34 <+bridge> [ddnet] ok
13:35 <+bridge> [ddnet] @heinrich5991 do i remove the calls to init then?
13:35 <+bridge> [ddnet] or maybe not
13:35 <+bridge> [ddnet] i think no
13:36 <+bridge> [ddnet] not needed, no
13:38 <+bridge> [ddnet] pushed
13:38 <+bridge> [ddnet] @heinrich5991 github still marks it as a X and it triggers me xd
13:38 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/698497241320652840/unknown.png
13:38 <+bridge> [ddnet] ^^
13:38 <+bridge> [ddnet] need a fix for mac CI ^^
13:41 <+bridge> [ddnet] @heinrich5991 is there a way we could get verbose builds in the CI? I want to see the way the compiler is invoked
13:41 <+bridge> [ddnet] `make VERBOSE=1`
13:42 <+bridge> [ddnet] @Ryozuki you started the client at least once and connected to a server?
13:42 <+bridge> [ddnet] and it's ready for merging, right?
13:43 <+bridge> [ddnet] ye
13:43 <+bridge> [ddnet] and map sounds works
13:44 <+bridge> [ddnet] [2020-04-11 13:43:23][chat]: *** DDraceNetwork Mod. Version: 0.6.4, 13.0
13:44 <+bridge> [ddnet] is the server not at 13.0.2?
13:49 <+bridge> [ddnet] i guess that sv didnt restart
13:51 <+bridge> [ddnet] I don't know if we automatically update the servers
14:08 <+bridge> [ddnet] @heinrich5991 why does your test fail for me?
14:08 <+bridge> [ddnet] https://github.com/fokkonaut/F-DDrace/runs/578923569
14:08 <+bridge> [ddnet] Your newly added datafile test in 0.7
14:14 <+bridge> [ddnet] did you apply the patch that goes with it that fixes the datafile size thing?
14:21 <@deen> Ryozuki: were there any server relevant changes? I didn't recompile official servers
14:24 <+bridge> [ddnet] I'm compiling ddnet for macOS in a docker container, in a linux vm, on a mac π
14:28 <+bridge> [ddnet] π
14:28 <+bridge> [ddnet] inception
14:32 <+bridge> [ddnet] the darwin.toolchain file references darwin15 but that's dependent on the SDK version we are using
14:32 <+bridge> [ddnet] darwin15 is 10.11
14:39 <+bridge> [ddnet] @deen how do you build curl with osxcross?
14:50 <+bridge> [ddnet] @Learath2 of course
15:07 <+bridge> [ddnet] @Learath2 https://github.com/ddnet/ddnet-scripts/blob/master/ddnet-lib-update.sh#L193
15:23 <+bridge> [ddnet] @deen how did you fix that SSLContextCreate thing btw? you still seem to target osx 10.7 which doesn't have that api
15:26 <+bridge> [ddnet] you told me to set --without-ssl, that worked
15:28 <+bridge> [ddnet] heh, didn't work at all for me
15:28 <+bridge> [ddnet] the make clean might not work
15:28 <+bridge> [ddnet] i always deleted directory to retry
15:29 <+bridge> [ddnet] gotta love weird clang builtins introduced only for macOS
15:29 <+bridge> [ddnet] well, clang was mostly developed at apple
15:29 <+bridge> [ddnet] huh, didn't know
15:32 <+bridge> [ddnet] they bought chris lattner, who started llvm+clang+clang++ as his phd thesis
15:32 <+bridge> [ddnet] and then he kept developing it there
15:38 <+bridge> [ddnet] Nice conversation with him I watched a few days ago: https://www.youtube.com/watch?v=yCd3CzGSte8
15:39 <+bridge> [ddnet] @Jupstar βͺ razer laptop intel iGPu
15:44 <+ChillerDragun> is there a need for spoof protection in tcp based games?
15:45 <+bridge> [ddnet] no
15:45 <+ChillerDragun> cool
15:45 <+ChillerDragun> thanks
15:57 <+bridge> [ddnet] @deen what is the video about?
15:57 <+bridge> [ddnet] just a chat about his work, compilers, more an overview, nothing really in-depth
15:58 <+bridge> [ddnet] but i liked it anyway, puts a face on a name
16:06 <+bridge> [ddnet] @louis tried to update your GPU driver?
16:07 <+bridge> [ddnet] oh thanks for sharing the video deen π
16:08 <+bridge> [ddnet] i will try
16:08 <+bridge> [ddnet] why do they have to break compatibility in every single version of xcode? they just had to rename that symbol to __isPlatformVersionAtleast and implement it in some other library
18:05 <+bridge> [ddnet] @Learath2
18:05 <+bridge> [ddnet] U know code of blue color on teeworlds?
18:07 <+bridge> [ddnet] which blue? team blue?
18:07 <+bridge> [ddnet] no
18:07 <+bridge> [ddnet] in binds
18:08 <+bridge> [ddnet] binds are blue?
18:08 <+bridge> [ddnet] :I
18:12 <+bridge> [ddnet] 11403008
18:13 <+bridge> [ddnet] 16776960
18:14 <+bridge> [ddnet] 12582656
18:15 <+bridge> [ddnet] oh, you want the teeworlds color code for blue?
18:15 <+bridge> [ddnet] its a colors
18:15 <+bridge> [ddnet] yes
18:16 <+bridge> [ddnet] give me the color in hex and I'll give you the teeworlds code for it
18:16 <+bridge> [ddnet] or r, g, b
18:16 <+bridge> [ddnet] whichever
18:18 <+bridge> [ddnet] i was find
18:18 <+bridge> [ddnet] what me need
18:19 <+bridge> [ddnet] there are infinite tones of blue, what kind of blue do you want?
18:19 <+bridge> [ddnet] light blue?
18:19 <+bridge> [ddnet] dark blue?
18:19 <+bridge> [ddnet] very darkblue??
18:20 <+bridge> [ddnet] I think they found the solution already
18:20 <+bridge> [ddnet] > i was find
18:20 <+bridge> [ddnet] > what me need
18:21 <+bridge> [ddnet] what kind of color code use tw?
18:21 <+bridge> [ddnet] hex? rgb?
18:21 <+bridge> [ddnet] HSL, with a twist
18:22 <+bridge> [ddnet] ddnet supports colors without a twist too
18:22 <+bridge> [ddnet] you can do `player_color_body blue`Β and it'll work
18:22 <+bridge> [ddnet] or `player_color_body r0000FF`
18:22 <+bridge> [ddnet] I think it was r, might be $ too I don't remember
18:24 <+bridge> [ddnet] @deen is it okay if we bump the min mac os version to 10.8 or 10.9?
18:28 <+bridge> [ddnet] The __isOSVersionAtleast issue stems from you not having compiler_rt built, it works fine with that
18:28 <+bridge> [ddnet] the function works dynamically so there is no problem with statically linking compiler_rt
18:29 <+bridge> [ddnet] that allows us to also get rid of the ugly lazy linking fix
18:29 <+bridge> [ddnet] Actually, I'll make a PR and you can test, see if everything works fine
18:44 <+bridge> [ddnet] @heinrich5991 I want to set https://cmake.org/cmake/help/v3.14/variable/CMAKE_OSX_DEPLOYMENT_TARGET.html
18:45 <+bridge> [ddnet] could you help me give it an absolute minimum? e.g. don't allow the user to set something lower then 10.8 e.g.
19:02 <+bridge> [ddnet] @Learath2 what do you want to do?
19:02 <+bridge> [ddnet] let the user decide on a value of that, but you want to throw an error if it's lower than 10.8?
19:16 <+bridge> [ddnet] yes
19:16 <+bridge> [ddnet] but it has to happen pretty early as that needs to be set before the project call
19:20 <+bridge> [ddnet] `if(CMAKE_VARIABLE VERSION_LESS 10.8)` @Learath2
19:38 <+bridge> [ddnet] Much wowo data science I compiled a list of all vote reasons we collected on laws ddnet7 servers in the last 5 months if anyone is interested what people think is a valid reason to move a player to spec or kick from the server (no option votes) https://paste.zillyhuhn.com/uU
19:39 <+bridge> [ddnet] (might include insults lmao)
19:41 <+bridge> [ddnet] lowercase the strings maybe
19:42 <+bridge> [ddnet] yea thought about it
19:42 <+bridge> [ddnet] but i think case is interesting to see the mood of the voter
19:44 <+bridge> [ddnet] maybe normalize case except for all uppercase words?
19:44 <+bridge> [ddnet] when i try to start a server rn, i get
19:44 <+bridge> [ddnet] `/bin/DDNet-Server: error while loading shared libraries: libantibot.so: cannot open shared object file: No such file or directory`
19:45 <+bridge> [ddnet] that's bad
19:45 <+bridge> [ddnet] where did you get ddnet from?
19:45 <+bridge> [ddnet] (havent restared my computer since the update, hope that shouldnt help?)
19:45 <+bridge> [ddnet] from the aur
19:45 <+bridge> [ddnet] the non-git package
19:45 <+bridge> [ddnet] @RafaelFF ^^
19:45 <+bridge> [ddnet] packaging problems
19:46 <+bridge> [ddnet] (for packaging problems, contact the packager)
19:47 <+bridge> [ddnet] @heinrich5991 does make install install libantibot?
19:48 <+bridge> [ddnet] did u modify cmake install
19:48 <+bridge> [ddnet] ( @Patiga you can solve the problem by either not compiling with `-DANTIBOT=ON` or installing `libantibot.so`
19:48 <+bridge> [ddnet] )
19:48 <+bridge> [ddnet] did not
19:48 <+bridge> [ddnet] @Learath2 ok
19:48 <+bridge> [ddnet] dunno how to install libantibot.so, but compiling should be done in a sec
19:49 <+bridge> [ddnet] @heinrich5991 antibot should be off by default
19:49 <+bridge> [ddnet] yes, I saw the packager add `-DANTIBOT=ON`
19:49 <+bridge> [ddnet] ok, otherwise we coud also enable it and ship the empty one
19:49 <+bridge> [ddnet] the empty one is compiled if you have `-DANTIBOT=ON`
19:50 <+bridge> [ddnet] im also a packager btw
19:50 <+bridge> [ddnet] ah
19:50 <+bridge> [ddnet] then @Ryozuki
19:50 <+bridge> [ddnet] https://github.com/ddnet/ddnet/blob/master/CMakeLists.txt#L1480
19:51 <+bridge> [ddnet] so there is no install there right?
19:51 <+bridge> [ddnet] yea, looks like it
19:51 <+bridge> [ddnet] i think thats why
19:51 <+bridge> [ddnet] its not at all the aur fault more the cmake setup :P
19:52 <+bridge> [ddnet] pff
19:52 <+bridge> [ddnet] if the packager adds an option and doesn't check it's working, it's also the package's fault
19:52 <+bridge> [ddnet] well yeah
19:52 <+bridge> [ddnet] ye, it works file without `-DANTIBOT=ON`
19:52 <+bridge> [ddnet] rafael probably didnt check
19:54 <+bridge> [ddnet] ye, it works *fine without `-DANTIBOT=ON`
19:54 <+bridge> [ddnet] hmm but it also works with `-DANTIBOT=ON` when i compile it o.o
19:54 <+bridge> [ddnet] ofc
19:54 <+bridge> [ddnet] ur running it without installing
19:58 <+bridge> [ddnet] i wonder if libantibot.so is a good library name
19:58 <+bridge> [ddnet] its too generic i think @heinrich5991
19:58 <+bridge> [ddnet] libtwantibot might be a better name
20:00 <+bridge> [ddnet] @Patiga update ddnet, i disabled antibot
20:25 <+bridge> [ddnet] @Learath2 you here?
20:33 <+bridge> [ddnet] Yep
20:54 <+bridge> [ddnet] oh we don't even require cmake 3.0?
20:55 <+bridge> [ddnet] @heinrich5991 can we?
20:59 <+bridge> [ddnet] @Learath2 requiring cmake 3.0 on non-linux is a non-issue
21:00 <+bridge> [ddnet] what ancient version of centos ships with cmake 2.8? π
21:01 <+bridge> [ddnet] CentOS 6, CentOS 7
21:02 <+bridge> [ddnet] CentOS 7 EOL 2024-06-30
21:02 <+bridge> [ddnet] as always, shipping ancient software, supporting it for an eternity
21:02 <+bridge> [ddnet] @heinrich5991 is there a cmake best practice for not setting a variable if the user is setting it?
21:03 <+bridge> [ddnet] wdym?
21:04 <+bridge> [ddnet] I want CMAKE_OSX_DEPLOYMENT_TARGET to be set to 10.8 if the user doesn't pass anything, if the user does pass something I don't want it to be smaller then 10.8
21:04 <+bridge> [ddnet] check `CMAKE_BUILD_TYPE`
21:05 <+bridge> [ddnet] we set it to `Release` if the user doesn't specify anything
21:05 <+bridge> [ddnet] is that really the best way to handle this? I was sure there'd be some shorthand
21:06 <+bridge> [ddnet] ah, maybe there is something
21:06 <+bridge> [ddnet] but I don't know
21:06 <+bridge> [ddnet] check `set(CACHE` or something
21:08 <+bridge> [ddnet] `set( CACHE STRING )`
21:12 <+bridge> [ddnet] set CACHE indeed seems to be it
21:26 <+bridge> [ddnet] @heinrich5991 one more thing, just because you already dug into this: I need to set rpath on macOS builds, specifically to include @loader_path/../Frameworks
21:27 <+bridge> [ddnet] That should allow us to remove the usage of install_name_tool from our builds
21:27 <+bridge> [ddnet] that would be nice π
21:28 <+bridge> [ddnet] as soon as you tell me a good way of setting rpath while building on macOS π
21:28 <+bridge> [ddnet] I mean I could just pass -Wl,-rpath but that's just ugly, and I have a feeling it'd interfere with the antibot
21:36 <+bridge> [ddnet] there's probably a target setting
21:37 <+bridge> [ddnet] `BUILD_RPATH` or so
21:38 <+bridge> [ddnet] `man cmake-properties` @Learath2
21:40 <+bridge> [ddnet] I know as much, but BUILD_RPATH is only available cmake 3.8 on, not only that but you are already setting it for ANTIBOT=ON.
21:41 <+bridge> [ddnet] I'm fine with requiring cmake 3.8 on non-linux