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-11 00:00:00Z and 2020-04-12 00:00:00Z
Avatar
@Fexa 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?
Avatar
@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/
06:57
Basically just put the players dict on disk: with Cache('/home/teeworlds/servers/players-cache') as cache: for player, value in players.items(): cache[player] = value And replaced all data['players'].get(name) with cache.get(name). Should've done this much earlier I guess 😄
Avatar
@louis is your GPU intel and your laptop lenovo?
Avatar
@Learath2 what happened to ddnet7 master? Why doesnt it build? Can you fix it?
09:11
what or who caused it?
Avatar
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 ❤️ (edited)
Avatar
@fokkonaut idk, idk, idk, idk
Avatar
Trafalgar Law 2020-04-11 10:02:43Z
@Trafalgar Law master branch is currently broken, needs a fix (that was recently pushed to teeworlds by Ryozuki and to ddnet by deen)
@heinrich5991 . @fokkonaut
Avatar
ddnet7 doesnt have that?
Avatar
it looks like the freetype issue, there is a commit fixing it in both ddnet and teeworlds
Avatar
Can you fix it?
Avatar
[quakenet] deen BOT 2020-04-11 10:48:25Z
done
Avatar
@deen oh wow, awesome optimizations
10:54
thanks!
10:57
ubuntu wavpack version doesnt have WavpackCloseFile?
10:57
Don't merge yet. I want to use this pr to fix several leaks and stuff, if you find something you can report it here. valgrind-out.txt
10:57
10:57
it compiles for me
Avatar
why does ubuntu doesnt install wavpack CI
11:05
libwavpack-dev
Avatar
it should also compile without installing wavpack
11:06
we have a bundled wavpack for that case
Avatar
what version is bundled
11:06
update it to atleast v5 pls
Avatar
no, it's a stripped down old version
11:06
there are no newer versions of the stripped down one
Avatar
why use a stripped one
11:07
search for "tiny"
11:07
because we don't need more functionality than that, I guess
Avatar
we nee dto close the context
11:08
or we are leaking xd
11:09
is there a way to check if a function exists
11:09
i would want to fix it atleast for sane people who install wavpack library
Avatar
it looks like you don't have to free in the tiny library
11:11
(reading the source for a sec)
11:11
@Ryozuki add a line above check_symbol_exists(WavpackOpenFileInputEx wavpack.h WAVPACK_OPEN_FILE_INPUT_EX)
Avatar
does tiny have WavpackGetLibraryVersion
11:11
oh
Avatar
in CMakeLists.txt
Avatar
ok i did it
11:15
Avatar
@Ryozuki can you rebase to master btw, then the CI will at least complete for non-mac
11:17
done
Avatar
@Ryozuki for snapshot storage, add a constructor that calls Init and a destructor that calls PurgeAll. that should fix it
11:35
@heinrich5991 do i remove the calls to init then?
11:35
or maybe not
11:35
i think no
Avatar
not needed, no
Avatar
pushed
11:38
@heinrich5991 github still marks it as a X and it triggers me xd
Avatar
^^
11:38
need a fix for mac CI ^^
Avatar
@heinrich5991 is there a way we could get verbose builds in the CI? I want to see the way the compiler is invoked
Avatar
make VERBOSE=1
11:42
@Ryozuki you started the client at least once and connected to a server?
11:42
and it's ready for merging, right?
11:43
and map sounds works
11:44
[2020-04-11 13:43:23][chat]: *** DDraceNetwork Mod. Version: 0.6.4, 13.0
11:44
is the server not at 13.0.2?
11:49
i guess that sv didnt restart
Avatar
I don't know if we automatically update the servers
11:51
c6731c7 Fix uninitialized m_LastProgramID - Ryozuki cde63e2 Fix TexEx UB - Ryozuki 09b7970 don't check, use dbg_assert - Ryozuki b4f072f some valgrind suppressions - Ryozuki 7d51a09 fix memory leak on sound decoding - Ryozuki 5f565a5 check for WavpackCloseFile - Ryozuki 588f8a8 Fix snapshot storage leak - Ryozuki 58f763c Merge #2128 - bors[bot]
Avatar
@heinrich5991 why does your test fail for me? https://github.com/fokkonaut/F-DDrace/runs/578923569
F-DDrace is a server mod for Teeworlds 0.7 developed by fokkonaut. - fokkonaut/F-DDrace
12:08
Your newly added datafile test in 0.7
Avatar
did you apply the patch that goes with it that fixes the datafile size thing?
Avatar
[quakenet] deen BOT 2020-04-11 12:21:08Z
Ryozuki: were there any server relevant changes? I didn't recompile official servers
Avatar
I'm compiling ddnet for macOS in a docker container, in a linux vm, on a mac 😛
12:28
inception
Avatar
the darwin.toolchain file references darwin15 but that's dependent on the SDK version we are using
12:32
darwin15 is 10.11
12:39
@deen how do you build curl with osxcross?
Avatar
@Learath2 of course
Avatar
The magic scripts that make DDNet run. Contribute to ddnet/ddnet-scripts development by creating an account on GitHub.
Avatar
@deen how did you fix that SSLContextCreate thing btw? you still seem to target osx 10.7 which doesn't have that api
Avatar
you told me to set --without-ssl, that worked
Avatar
heh, didn't work at all for me
Avatar
the make clean might not work
13:28
i always deleted directory to retry
Avatar
gotta love weird clang builtins introduced only for macOS
Avatar
well, clang was mostly developed at apple
Avatar
huh, didn't know
Avatar
they bought chris lattner, who started llvm+clang+clang++ as his phd thesis
13:32
and then he kept developing it there
Avatar
@Deleted User razer laptop intel iGPu
Avatar
[quakenet] ChillerDragun BOT 2020-04-11 13:44:52Z
is there a need for spoof protection in tcp based games?
Avatar
[quakenet] ChillerDragun BOT 2020-04-11 13:45:05Z
cool
13:45
thanks
Avatar
@deen what is the video about?
Avatar
just a chat about his work, compilers, more an overview, nothing really in-depth
13:58
but i liked it anyway, puts a face on a name
Avatar
@louis tried to update your GPU driver?
Avatar
ChillerDragon 2020-04-11 14:07:47Z
oh thanks for sharing the video deen 🙂
Avatar
i will try
Avatar
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
Avatar
@Learath2
16:05
U know code of blue color on teeworlds?
Avatar
which blue? team blue?
Avatar
no
16:07
in binds
Avatar
binds are blue?
Avatar
:I
16:12
11403008
16:13
16776960
16:14
12582656
Avatar
oh, you want the teeworlds color code for blue?
Avatar
its a colors
16:15
yes
Avatar
give me the color in hex and I'll give you the teeworlds code for it
16:16
or r, g, b
16:16
whichever
Avatar
i was find
16:18
what me need
Avatar
there are infinite tones of blue, what kind of blue do you want?
16:19
light blue?
16:19
dark blue?
16:19
very darkblue??
Avatar
I think they found the solution already
16:20
i was find what me need
Avatar
what kind of color code use tw?
16:21
hex? rgb?
Avatar
HSL, with a twist
16:22
ddnet supports colors without a twist too
16:22
you can do player_color_body blue and it'll work
16:22
or player_color_body r0000FF
16:22
I think it was r, might be $ too I don't remember
16:24
@deen is it okay if we bump the min mac os version to 10.8 or 10.9?
16:28
The __isOSVersionAtleast issue stems from you not having compiler_rt built, it works fine with that
16:28
the function works dynamically so there is no problem with statically linking compiler_rt
16:29
that allows us to also get rid of the ugly lazy linking fix
16:29
Actually, I'll make a PR and you can test, see if everything works fine
16:45
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.
Avatar
@Learath2 what do you want to do?
17:02
let the user decide on a value of that, but you want to throw an error if it's lower than 10.8?
17:16
but it has to happen pretty early as that needs to be set before the project call
Avatar
if(CMAKE_VARIABLE VERSION_LESS 10.8) @Learath2
Avatar
ChillerDragon 2020-04-11 17:38:26Z
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
17:39
(might include insults lmao)
Avatar
lowercase the strings maybe
Avatar
ChillerDragon 2020-04-11 17:42:29Z
yea thought about it
17:42
but i think case is interesting to see the mood of the voter
Avatar
maybe normalize case except for all uppercase words?
Avatar
when i try to start a server rn, i get /bin/DDNet-Server: error while loading shared libraries: libantibot.so: cannot open shared object file: No such file or directory
Avatar
that's bad
17:45
where did you get ddnet from?
Avatar
(havent restared my computer since the update, hope that shouldnt help?)
17:45
from the aur
17:45
the non-git package
Avatar
@Rafael Fontenelle ^^
17:45
packaging problems
17:46
(for packaging problems, contact the packager)
Avatar
@heinrich5991 does make install install libantibot?
17:48
did u modify cmake install
Avatar
( @Patiga you can solve the problem by either not compiling with -DANTIBOT=ON or installing libantibot.so
17:48
)
17:48
did not
Avatar
@Learath2 ok
Avatar
dunno how to install libantibot.so, but compiling should be done in a sec
Avatar
@heinrich5991 antibot should be off by default
Avatar
yes, I saw the packager add -DANTIBOT=ON
Avatar
ok, otherwise we coud also enable it and ship the empty one
Avatar
the empty one is compiled if you have -DANTIBOT=ON
Avatar
im also a packager btw
Avatar
ah
17:50
then @Ryozuki
Avatar
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/ddnet
17:51
so there is no install there right?
Avatar
yea, looks like it
Avatar
i think thats why
17:51
its not at all the aur fault more the cmake setup :P
Avatar
pff
17:52
if the packager adds an option and doesn't check it's working, it's also the package's fault
Avatar
well yeah
Avatar
ye, it works *fine without -DANTIBOT=ON (edited)
Avatar
rafael probably didnt check
Avatar
hmm but it also works with -DANTIBOT=ON when i compile it o.o
17:54
ur running it without installing
17:58
i wonder if libantibot.so is a good library name
17:58
its too generic i think @heinrich5991
17:58
libtwantibot might be a better name
18:00
@Patiga update ddnet, i disabled antibot
🤖 2
👌 1
Avatar
I think libtwantibot.so is better, less generic. CMakeLists.txt should have install directives for this library too.
Avatar
@Learath2 you here?
Avatar
oh we don't even require cmake 3.0?
18:55
@heinrich5991 can we?
Avatar
@Learath2 requiring cmake 3.0 on non-linux is a non-issue
Avatar
what ancient version of centos ships with cmake 2.8? 😛
Avatar
CentOS 6, CentOS 7
19:02
CentOS 7 EOL 2024-06-30
Avatar
as always, shipping ancient software, supporting it for an eternity
19:02
@heinrich5991 is there a cmake best practice for not setting a variable if the user is setting it?
Avatar
wdym?
Avatar
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
Avatar
check CMAKE_BUILD_TYPE
19:05
we set it to Release if the user doesn't specify anything
Avatar
is that really the best way to handle this? I was sure there'd be some shorthand
Avatar
ah, maybe there is something
19:06
but I don't know
19:06
check set(CACHE or something
19:08
set(<variable> <value> CACHE STRING <docsting>)
Avatar
set CACHE indeed seems to be it
Avatar
@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
19:27
That should allow us to remove the usage of install_name_tool from our builds
Avatar
that would be nice 🙂
Avatar
as soon as you tell me a good way of setting rpath while building on macOS 😛
19:28
I mean I could just pass -Wl,-rpath but that's just ugly, and I have a feeling it'd interfere with the antibot
Avatar
there's probably a target setting
19:37
BUILD_RPATH or so
19:38
man cmake-properties @Learath2
Avatar
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.
Avatar
I'm fine with requiring cmake 3.8 on non-linux
Avatar
can anyone tell me how the data of quadlayers is stored?
22:10
im sorta stuck again and figured someone here might be able to speed this up
Avatar
hm @Patiga what do you want to know?
Avatar
in the map files each quadlayer points to a data_item (bytes array) for its content, and i dont understand how the content of the data item is constructed
23:13
constructed as in which bytes describe which values
Avatar
Ah, it's just raw CQuads (not very portable now that I think about it)
Avatar
oh i totally missed that one
Avatar
how did anyone think this was a good idea? no serialization whatsoever
23:19
atleast the points are not floats, that definitely would have been a mess
Avatar
thanks tho 👍
Exported 236 message(s)