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 2019-04-11 00:00:00Z and 2019-04-12 00:00:00Z
Avatar
2eab795 Implement color_to_rgb - def- 92a0dc8 Merge #1618 - bors[bot]
Avatar
94f3d97 Remove unmaintained Android code (fixes #1575) - def- 279eeed Merge #1614 - bors[bot]
Avatar
hi devs, could anyone make a brief review of a little change of DDNet client? I doubt it is okay to PR as it is now
Avatar
show me a link 🙂
Avatar
wrote pm, hope you received it
Avatar
This is a reworked attempt at a rewrite of the prediction code (#464), to allow for more client side prediction. It doesn't fix the duplication of server code, but the client code should otherwise be cleaner. This includes separating prediction code out of gamecore/gameclient, and a refactor of the rendering of predicted characters. There is also prediction for some new things, and some other changes:
  • prediction of laser, shotgun, ninja, fng hammer, pickups and ddrace tiles (freeze/unfr...
Avatar
well i tried to convert some color to hsl
09:23
its like a bright orange
09:23
bright gray-orange
09:24
and the result i got was a very strong bright purple
09:28
Please help
Avatar
@Alexander always consider them as 6 digit hex
09:42
so it's 0DFF51 and the split up is 0D FF 51
Avatar
so add a 0?
Avatar
at the start
09:42
that's how numbers work 😄
09:43
yeah
09:43
okay im going to try again
Avatar
25 € = 025 € but does not equal 250 €
Avatar
yeah unless there is a point
Avatar
again, if you are doing this in code, these conversions are unnecessary
Avatar
What do you mean
09:49
Also I got the orange color i wanted
Avatar
if you are doing this in code, converting to hex, doesn't really apply, the data is in bits, so if you are doing some form of conversion, you are probably going back an front from strings
09:52
which is a waste
Avatar
279d6e6 No duplicate () on rank - def- 0a286b1 File score: report file opening errors - def- cde3781 Merge #1616 - bors[bot]
Avatar
All im doing is making a javascript converter which will let a user input a TW color and the color will be placed on an image of a tee and simulate the teeworlds tee body
09:54
TeeAssembler
Avatar
well show me the code you use to get to the r g b values
Avatar
I'm not using a code, im using chrome developer tools
09:54
let me send a screen recording
Avatar
I don't get it, aren't you coding something to get from teeworlds color codes to hsl values?
Avatar
Yeah
Avatar
so can you show me?
Avatar
But then i convert the hsl color to hex and put it in ddnet console with command color_from_rgb FF8652 just to make sure how close it is (edited)
09:59
I didn't start coding the converter with javascript yet because I want to convert it manually and then make a converter (edited)
Avatar
the thing is converting it manually and converting it programatically will be different
Avatar
how so
Avatar
I mean sure you can code it the same way you convert it by hand
09:59
but that's really wasteful
10:00
the act of splitting the number into three 2 digit hex numbers is just bitshifts and bitmasking to get 3 bytes
Avatar
But you can't really start coding something you don't know how to do without a code
Avatar
(1 byte for H, 1 byte for S, 1 byte for L)
10:01
Well true, but just knowing how something is done doesn't usually come with information about how said thing works
10:02
e.g. did you think about what it meant to split the number into 3 2 digit hex numbers? or were you just going to represent it as hex and split it using string manipulation?
Avatar
yeah i thought about it
Avatar
It's not supported in C and we only checked using a C compiler.
Avatar
Son comes back home soaking wet from the rain. Dad: what were you doing out there? Son: collecting responses. Dad: ok, have a REST
😄 1
Avatar
@deen i just merged your minor CFileScore fix and now it worked fine. how? xD
11:45
lets hope it stays like that
Avatar
demos use the score format that the client had on the last server he joined. the demo needs to know when the client had time score or normal score, because it can also change during gameplay if the server sends the msg to change score format.
Avatar
the hookthrough is still not 100% fixed, if you pick the game layer tile it works fine and doesnt destroy game tiles but if you pick the front layer tile, it still destroys game layer tiles because the front layer hookthrough automatically creates a game tile
16:38
sad day
Avatar
#reddit
Avatar
seems like we dont have a reddit channel for garbage like that. u have to abuse #off-topic for it
Avatar
its not reddit this
16:45
and ur garbage
Avatar
Fix enum name for VOTE_MUTES break out earlier in mutes loop. And using goto to make the code more readable o.O
Avatar
ChillerDragon 2019-04-11 18:22:06Z
@Ryozuki tyin to bring more goto to ddnet codebase :p
Avatar
ChillerDragon 2019-04-11 19:07:42Z
yo any hardware gurus here?
19:08
I know more cores gud and all. But paying + 2.4k to get the worst single core power? That doesnt make any sense to me
19:08
i guess many applications need single core power still
19:08
or am i missing something? For me the cheapest version looks like the most poerfull
Avatar
u are buying a dedicated?
19:09
go get a cheap vps
Avatar
ChillerDragon 2019-04-11 19:09:42Z
imac pro
19:09
dont talk to me more
Avatar
ChillerDragon 2019-04-11 19:10:08Z
i didnt say buy i was just thinking about the cpu multi coring in general
19:10
sam with my debian10 laptop
19:10
i have hilariously many cores but i guess speed sucks
19:10
imo would be fine if the price would not increase that much with cores
Avatar
why are u buying a xeon
19:11
thats used for servers
Avatar
ChillerDragon 2019-04-11 19:11:13Z
i am buying nothing
Avatar
just buy a i7 or i9
19:11
i dont get what u want then xd
Avatar
ChillerDragon 2019-04-11 19:11:36Z
i am looking at prices and wonder why ppl pay loads of money for more cores with lower speed
Avatar
more cores best specially on servers
Avatar
ChillerDragon 2019-04-11 19:12:00Z
even if speed is lower?
Avatar
ChillerDragon 2019-04-11 19:12:05Z
why?
Avatar
usually web connectins and such
19:12
use threads
19:12
but i dont know much
19:12
anyway more cores is better
Avatar
ChillerDragon 2019-04-11 19:12:49Z
ok i get the web part and server should never be blocking etc
19:13
but i guess for desktop especially for gaming you never want a core to be maxed out and get a performance drop somewhere
19:13
idk if accurate
19:13
fast google
Avatar
ChillerDragon 2019-04-11 19:13:59Z
ddg
Avatar
back in time
19:14
all ways single thread
19:14
but now not
19:14
was*
Avatar
ChillerDragon 2019-04-11 19:14:38Z
thes pros and cons are obvious
Avatar
ChillerDragon 2019-04-11 19:14:46Z
useless af
Avatar
what u do u want more lol
19:14
those are the reasons
Avatar
ChillerDragon 2019-04-11 19:15:19Z
i want to know if tw runs faster on 2.4k cpu high core cpu or on 0dollar low core cpu
Avatar
wow this is cheaper than i thought
19:15
and it has shitload of ghz
19:15
16 threads
Avatar
ChillerDragon 2019-04-11 19:16:15Z
5GHz looks good to me
Avatar
ChillerDragon 2019-04-11 19:16:19Z
but what is base speed?
Avatar
3.60 GHz
Avatar
ChillerDragon 2019-04-11 19:16:40Z
also fine
Avatar
ChillerDragon 2019-04-11 19:16:56Z
imo this proccessor looks way better than the iMac Pro one
Avatar
Max Memory Size (dependent on memory type) 128 GB
19:16
this is good too
19:17
xD
19:17
128gb ram
Avatar
ChillerDragon 2019-04-11 19:17:23Z
128gb ram is for trolls
Avatar
like having and hdd as ram
Avatar
ChillerDragon 2019-04-11 19:17:28Z
yy
Avatar
but super perfomant
19:17
xd
Avatar
ChillerDragon 2019-04-11 19:17:47Z
you can actaully use ram as normal drive
19:17
xd
19:17
128
Avatar
y but its slow
19:17
rly slow
19:18
oh wait
19:18
dont u mean the other way around
Avatar
ChillerDragon 2019-04-11 19:18:11Z
no i mean if u have 128 ram you can unplug other drives
19:18
ye
19:18
not swap xd
Avatar
ChillerDragon 2019-04-11 19:19:32Z
it was some sort of hilarious wet dream of my owning this iMac pro one day but i feel like it is useless af and has zero power
19:19
just costs a shit ton of money
Avatar
i also have wet dreams of having this @ChillerDragon
Avatar
ChillerDragon 2019-04-11 19:22:01Z
ye but its the same shit right?
19:22
2.6GHz
Avatar
ChillerDragon 2019-04-11 19:22:11Z
sounds bad imo
Avatar
32 threads bro
19:22
32
19:22
32
19:22
32
Avatar
ChillerDragon 2019-04-11 19:22:16Z
idc
Avatar
u stupid
19:22
u can turbo it to 4.4
Avatar
ChillerDragon 2019-04-11 19:22:30Z
thats what im trying to find out here
19:22
but what does that actually mean
19:22
turbo?
19:22
can it hold it 24/7 ?
Avatar
overclock
Avatar
ChillerDragon 2019-04-11 19:22:50Z
ah
Avatar
ChillerDragon 2019-04-11 19:22:59Z
so i need better cooling etc probably
Avatar
Unlocked & Overclockable1: Yes Base Clock Speed (GHz): 2.6 Intel® Turbo Boost Technology 2.0 Frequency2 (GHz): 4.2 Intel® Turbo Boost Technology 3.0 Frequency3 (GHz): 4.4
19:23
L3 Cache: 24.75 MB
19:23
i dont know much about cache
19:23
but i guess it s gud
Avatar
what will you even do with that many cores?
Avatar
ChillerDragon 2019-04-11 19:25:44Z
i mean i can find some use cases
Avatar
@Learath2 compile ddnet in 1 ms
Avatar
ChillerDragon 2019-04-11 19:25:57Z
im sure some programms can scale as many threads and cores as u want
Avatar
ChillerDragon 2019-04-11 19:26:00Z
ye like make
19:26
but i think most of the time you live with limitations of ur bad single core speed
Avatar
it depends on the program using multithreading correctly
Avatar
sure, if you are rendering/encoding video, doing cad work, compiling huge programs every day, it is useful
19:26
and also to flex
19:26
who doesnt like that
19:26
if u have moneyz
Avatar
can someone accept
19:27
me
19:27
to forum
19:27
Avatar
ChillerDragon 2019-04-11 19:27:10Z
?
19:27
accept?
Avatar
ye u need to be accepted by admin
19:27
cuz spam
Avatar
ChillerDragon 2019-04-11 19:27:23Z
lel
Avatar
but no one uses forum
Avatar
ChillerDragon 2019-04-11 19:27:31Z
agree flex is nice and also looking at htop
19:27
but i prefer actual performance
Avatar
i only want to submit skin (edited)
Avatar
I would, but I'm not logged in on this computer
19:27
gimme a minute
Avatar
ChillerDragon 2019-04-11 19:27:52Z
nobo
Avatar
no one will use it anyway
Avatar
ChillerDragon 2019-04-11 19:27:59Z
Pyraq spammer
Avatar
nah dont worry im already waiting 3
Avatar
it cant get worse (edited)
Avatar
ChillerDragon 2019-04-11 19:28:18Z
lel
19:28
it can
Avatar
@Ryozuki im gonna use it
19:28
and if someone says
19:28
pyraq nobo default
19:28
im gonna say
19:28
no u download skin
Avatar
ChillerDragon 2019-04-11 19:28:35Z
xd
Avatar
so u will be just a nobo
Avatar
ChillerDragon 2019-04-11 19:28:43Z
u
Avatar
not if me say
19:28
u
Avatar
@Pyraq when did you start playing teeworlds?
19:29
that was like
19:29
long time ago
19:29
it was like
19:29
5 minute session
19:30
hold up let me see the date headbot gave me ddnet link
Avatar
ChillerDragon 2019-04-11 19:30:23Z
-.-lol how to copy sym links ?
19:31
or wait
Avatar
@Pyraq activated your forum account btw
Avatar
just make a new one
Avatar
25/01/2019
19:31
yeah i see it
Avatar
ChillerDragon 2019-04-11 19:31:17Z
can i provide a include dir while building ddnet?
Avatar
thanks lear
Avatar
that's a long time ago? 😛
Avatar
ChillerDragon 2019-04-11 19:31:24Z
my compiler searches in wrong directory
19:31
mean the long time ago one when i first downloaded teeworlds
19:31
it wasnt ddnet
Avatar
@ChillerDragon copy symlink
Avatar
oh, i see
19:31
xd
Avatar
and that date i sent it was the date i installed ddnet (edited)
Avatar
ChillerDragon 2019-04-11 19:31:59Z
do u think thats nicer?
19:32
than providing correct path to include to make?
19:38
19:38
bro are yo kiddin me
19:38
why doesnt it find it -.-
Avatar
[quakenet] <Learath2> why aren't you using base/hash.h? we even choose the proper implementation
Avatar
ChillerDragon 2019-04-11 19:40:20Z
when?
19:40
my fork is a few weeks old i think
19:40
maybe a month
Avatar
[quakenet] <Learath2> heinrich5991 added it 7-8 months ago
Avatar
ChillerDragon 2019-04-11 19:41:38Z
then i should have it
Avatar
[quakenet] <Learath2> ca8fcc823cabb769760d39f0b93d0de23552cfc4
Avatar
ChillerDragon 2019-04-11 19:42:12Z
have same problem on latest ddnet
19:42
so it is not chillerbot
19:42
in general since my compiler is fucked it would be good to know how to tell make to use /usr/local/include
19:43
/Users/chillerdragon/Desktop/git/ddnet/src/base/hash_ctxt.h:8:10: fatal error: 'openssl/md5.h' file not found #include <openssl/md5.h>
Avatar
unfuck ur compiler
Avatar
ChillerDragon 2019-04-11 19:43:13Z
well on ddnet it is md5
Avatar
install openssl
Avatar
ChillerDragon 2019-04-11 19:43:21Z
bro i have open ssl installed
19:43
in /usr/local/include
Avatar
why there
19:43
dude
Avatar
ChillerDragon 2019-04-11 19:43:30Z
where everything is installed
19:43
where would you install it?
19:43
but compiler only looks in some weird Xcode folders to include libs
Avatar
u installed it manually?
19:44
on usr/include/
Avatar
ChillerDragon 2019-04-11 19:44:07Z
no with package manager
Avatar
[quakenet] <Learath2> he is on macos
Avatar
ah shitos
19:44
well i cant help u
Avatar
ChillerDragon 2019-04-11 19:44:30Z
thats why i didnt mention macOS :p
Avatar
[quakenet] <Learath2> because of the quite stupid decisions apple takes with their os, the packages need to end up in local
Avatar
[quakenet] <Learath2> as god forbid you update the old versions that mac os has a hard dependency on
Avatar
ChillerDragon 2019-04-11 19:44:54Z
i should be able to tell make where to include stuff tho
Avatar
[quakenet] <Learath2> anyways, show me the output of cmake
Avatar
ChillerDragon 2019-04-11 19:45:06Z
the cache?
Avatar
[quakenet] <Learath2> what cache
Avatar
ChillerDragon 2019-04-11 19:45:33Z
cmakecache?
19:45
or wdym
Avatar
[quakenet] <Learath2> the output of cmake, you know when you execute "cmake .." in your build directory, it gives you some output
Avatar
ChillerDragon 2019-04-11 19:45:56Z
oh only that
19:46
-- Checking for module 'libcurl' -- No package 'libcurl' found -- Checking for module 'freetype2' -- Found freetype2, version 22.1.16 -- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) -- Checking for module 'ogg' -- Found ogg, version 1.3.3 -- Checking for module 'opus' -- Found opus, version 1.2.1 -- Checking for module 'opusfile' -- Found opusfile, version 0.10 -- Checking for module 'pnglite' -- No package 'pnglite' found -- Checking for module 'sdl2' -- Found sdl2, version 2.0.8 -- Checking for module 'wavpack' -- Found wavpack, version 5.1.0 -- ** DDNet ** -- Target OS: mac 64bit -- Compiler: /usr/bin/g++ -- Build type: Release -- Dependencies: -- * Curl found -- * Dmg tools not found -- * Freetype found -- * Glew found -- * GTest not found -- * Hdiutil not found -- * Ogg found -- * OpenSSL Crypto found -- * Opus found -- * Opusfile found -- * Pnglite not found (using bundled version) -- * PythonInterp found -- * SDL2 found -- * Wavpack found -- * Zlib found -- To run the tests, you have to install GTest -- Configuring done -- Generating done -- Build files have been written to: /Users/chillerdragon/Desktop/git/ddnet/build
19:46
see nothing interesting there
Avatar
don't paste it here wtf
19:46
irc
Avatar
ChillerDragon 2019-04-11 19:46:37Z
xd
Avatar
that will spam irc for the next hour
Avatar
ChillerDragon 2019-04-11 19:46:39Z
sorri
19:46
lemme check how it looks in irc
Avatar
@Pyraq i was wondering why you think the admins are full time online next to their normal live xD
Avatar
ChillerDragon 2019-04-11 19:47:41Z
i dont see a problem?
Avatar
@ChillerDragon bot has a ratelimit
19:47
it cant send that many messages
19:48
in one row
19:48
or it will get ban for spam
Avatar
[quakenet] <ChillerDragon> oh?
19:48
[quakenet] <Ryozuki> uh?
19:48
[quakenet] <Ryozuki> eh?
19:48
[quakenet] <ChillerDragon> so it will send them slowly?
19:48
[quakenet] <ChillerDragon> with delay
19:48
[quakenet] <Ryozuki> yes it did
19:48
[quakenet] <Learath2> hmm, I don't know cmake well enough but I think heinrich5991 forgot to add the include dirs if crypto is found
19:48
[quakenet] <ChillerDragon> ah it ratelimits the bot but not me -.- mi much wowo brain
19:49
[quakenet] <Ryozuki> just switch to a good OS with a good distro
Avatar
ChillerDragon 2019-04-11 19:49:28Z
u
19:49
i wanna support all os
19:49
for mi bot
Avatar
[quakenet] <Ryozuki> test
19:49
[quakenet] <Ryozuki> im bold
19:50
[quakenet] <Learath2> why do we even allow formatting here? :P
19:50
[quakenet] <Ryozuki> :(((
19:50
[quakenet] <Ryozuki> keep it
19:50
[quakenet] <Ryozuki> its good
Avatar
ChillerDragon 2019-04-11 19:50:54Z
dont think so
Avatar
weechat emoji support???
monkaS 1
Avatar
ChillerDragon 2019-04-11 19:51:21Z
i think apple fucked that up not heinrich
Avatar
[quakenet] <Learath2> ChillerDragon can you try something
Avatar
ChillerDragon 2019-04-11 19:51:33Z
sure
19:51
i feel like slowly loosing my apple fanboism
Avatar
[quakenet] <Learath2> what is L1604 in CMakeLists.txt?
Avatar
ChillerDragon 2019-04-11 19:52:20Z
Avatar
[quakenet] <Ryozuki> why are u a apple fanboi
19:52
[quakenet] <Ryozuki> its overpriced hardware
Avatar
ChillerDragon 2019-04-11 19:52:28Z
i used to be the biggest
19:52
i liked the products
Avatar
[quakenet] <Learath2> your Cmakelists look old
19:53
[quakenet] <Learath2> can you find CONF_OPENSSL?
19:53
[quakenet] <Ryozuki> git fetch upstream && git merge upstream/master && git push
19:53
[quakenet] <Ryozuki> e.e
Avatar
ChillerDragon 2019-04-11 19:53:13Z
cde378118434803d5b774fd7a6cf90cd21934456
19:53
ChillersMacBookPro:ddnet chillerdragon$ git remote -v origin https://github.com/ddnet/ddnet (fetch) origin https://github.com/ddnet/ddnet (push)
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/ddnet
19:53
fresh pull
19:53
no fork
Avatar
[quakenet] <Learath2> oh, nvm it's my eyes that are broken
Avatar
ChillerDragon 2019-04-11 19:54:14Z
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/ddnet
19:54
ah
Avatar
[quakenet] <Learath2> I meant L1614
Avatar
ChillerDragon 2019-04-11 19:54:44Z
yy
19:54
crypto found
19:54
i have latest so i have same as u ^^
Avatar
[quakenet] <Learath2> can you add target_include_directories(${target} PRIVATE ${CRYPTO_INCLUDE_DIRS}) below that?
Avatar
ChillerDragon 2019-04-11 19:55:17Z
sure
19:55
oh
19:55
thats actually looks good
Avatar
[quakenet] <Learath2> remove your build folder, create a new one, run cmake, try compiling
Avatar
ChillerDragon 2019-04-11 19:56:22Z
lal
19:56
build
19:56
i was so sure apple fucked this up
19:56
but i mean they somehow did tho
Avatar
[quakenet] <Learath2> not their fault in this case :P
Avatar
ChillerDragon 2019-04-11 19:57:02Z
if they would use usr/local/include as well it would still build
Avatar
[quakenet] <Learath2> anyways, you still should use hash.h and not openssl directly
Avatar
ChillerDragon 2019-04-11 19:57:20Z
why
19:57
i guess i am if it is that old
Avatar
[quakenet] <Learath2> it compiles without openssl aswell
Avatar
ChillerDragon 2019-04-11 19:58:07Z
ChillersMacBookPro:build chillerdragon$ git show ca8fcc823cabb769760d39f0b93d0de23552cfc4 commit ca8fcc823cabb769760d39f0b93d0de23552cfc4 Author: heinrich5991 <heinrich5991@gmail.com> Date: Tue Jun 5 21:22:40 2018 +0200 Use more secure hash function for map downloads
Avatar
[quakenet] <Learath2> uses libtomcrypt if openssl isn't present
Avatar
ChillerDragon 2019-04-11 19:58:23Z
are u goind to make a pr ?
19:58
for the fix`?
Avatar
[quakenet] <Learath2> yeah
Avatar
ChillerDragon 2019-04-11 19:58:34Z
nice
19:58
ima fix it my self in mi fork
Avatar
Seems like an oversight. I'm guessing it compiled fine on most configurations because openssl include directory ends up being in /usr/include but on macOS when installed with brew/macports the directory ends up in /usr/local/include.
Avatar
@n000b i didnt say that
20:07
although i guess im a bit impatient
Avatar
ChillerDragon 2019-04-11 20:09:35Z
xd
20:13
a1dd2e4 Fix non destructive drawing with hookthrough shortcut - 12pm 0251038 Merge #1625 - bors[bot]
Avatar
@Pyraq yes you are. You have to wait atleast a few days before any useful reaction on your post i guess. So prepare yourselfmonkaS
Avatar
ChillerDragon 2019-04-11 20:22:04Z
@deen idk i also saw this confusables the first time. Somehow my build folder was untracked because of it after building on macOS
20:22
might be a macOS thing
Avatar
b342048 Actually add crypto includes to the target - Learath2 32551d2 Merge #1626 - bors[bot]
Exported 391 message(s)