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-10 00:00:00Z and 2019-04-11 00:00:00Z
Avatar
Can I change my text entities(cl_text_entities) size/scale somehow ? May be it is not relevant place to ask such questions so sorry for this.
Avatar
not cool( thx, @jao
Avatar
how would it help?
Avatar
they are way too big for me. Just wanted to have them smaller since I can nicely see them even with huge zoom out
00:13
@jao , ofc it depends on ppi and resolution but it would be nice to have possibility to scale them up
Avatar
[quakenet] <eeeee> deen: funny enough teewebs started as an online demo viewer, but then i was too lazy to make the necessary ui changes
Avatar
00226e9 M DeepDrag, M Just deep fly, M drg5 - ddnet-maps
Avatar
@Rafael Fontenelle On Arch if you're using the AUR you should definitely set MAKEFLAGS="-jXX" in /etc/makepkg.conf
06:20
but not too high if you plan to compile some large-scale projects and have a low amount of memory
06:21
@Rafael Fontenelle for a from-scratch build ninja and make should be nearly identical with the same parallelization
Avatar
@heinrich5991 thanks for the reviews
Avatar
@deen for the color stuff, should we maybe handle those in the console? Something like a victim
Avatar
didn't know how victim is handled
08:39
but yes, that would be nicer, and I wanted to do something like that in a next step
08:45
but we have other color formats in there as well for the UI
08:45
i thought maybe just unify everything and store it as an RGB number actually, since they are converted to RGB on every frame anyway...
Avatar
also, not just console, it's a config setting, so it should work consistently when you set it in your config file
Avatar
Rafael Fontenelle 2019-04-10 09:44:44Z
@deen I saw the change in the README, thanks.
Avatar
xD
Avatar
Rafael Fontenelle 2019-04-10 09:45:24Z
But if I set the flag only in my /etc/makepkg.conf, other users won't take benefit of it. Maybe I should use the a in-between value for the flag (don't know if 8 is too much) in the PKGBUILD (edited)
Avatar
In the PKGBUILD you can't know what the user prefers
09:53
they might have a system with 500 threads, but limited RAM, so they want 1 thread
09:53
or they might be doing something on the side
09:53
everyone who uses the AUR should b e aware of /etc/makepkg.conf
09:55
and if you set it to 8 in the PKGBUILD then you overwrite what the user willingly set in makepkg.conf
Avatar
Rafael Fontenelle 2019-04-10 10:04:09Z
Good point
Avatar
Will wait for:
  • Enable dragging demo file into client to play it directly
  • Explain game tiles and entities in editor (fixes #1600)
  • Console command "color_from_rgb" (fixes #1581)
Avatar
@Ryozuki hi
Avatar
@snail hi
Avatar
fick dich
Avatar
ᶰ°Konͧsti 2019-04-10 12:22:04Z
lol rude
12:22
@jao ban him
Avatar
@deen well the config files are just line by line executed
Avatar
01ffde2 Console command "colors" (fixes #1581) - def- bd4e371 color -> color_from_rgb - def- f0cce17 Merge #1597 - bors[bot]
14:11
[ddnet/ddnet-web] New branch created: pr-12.1
15:38
cca80da Enable dragging demo file into client to play it directly - def- 7c0f4c9 Address reviewer comments - def- 5d79c41 Merge pull request #1603 from def-/pr-demo-open - def-
15:38
eda16ac Explain game tiles and entities in editor (fixes #1600) - def- 05fe697 Add jao's explanations for telegun - def- bdb5793 Improve game tile explanations a bit - def- 2d69935 Add explanations for TILE_THROUGH_CUT/ALL/DIR - def- ed34dcf Merge pull request #1602 from def-/pr-explain-tiles - def-
15:38
fc5810f Version 12.1 - def- 93b8864 Merge pull request #1612 from def-/pr-12.1 - def-
15:58
Avatar
help, i have a server on linux and use file based records. on the one map it works just fine, but on the other map the records file wont get created. if i create it manually it still doesnt work, any idea why?
16:19
edit: on the other map it also doesnt save anymore
16:27
725578c Version 12.1 - def- efd4665 Merge pull request #77 from ddnet/pr-12.1 - def-
Avatar
64fa08f fix non-working escapes - Ryozuki
Avatar
@fokkonaut check the log?
Avatar
which?
Avatar
of your server
Avatar
i wonder why checkinstall is not available on buster (unstable) but yes on stable and sid
16:52
easy way to package ddnet for me
16:52
but i cant do it xD
16:55
sent a mail to debian poggers (edited)
Avatar
sometimes i need copy text from f1 and i got idea what if i will copy from console. so i turn on "show console" restart tw trying copy smth from console(just mouse and ctrl+c) and back to tw and then i cant join to server because tw crash.
Avatar
I was wondering why i have to connect dummy each time i change my map on trashmap servers
18:15
Since i restart it a lot i was wondering if it is an client/server settjng.
18:35
monkaS
Avatar
@ChillerDragon emacs nobo
Avatar
look what’s on top @Ryozuki
Avatar
shudup
Avatar
Huh, no QtCreator?
Avatar
notepad++ 3rd
18:46
xD
18:47
@jao intellij is paid
18:47
and its 4th
Avatar
ᶰ°Konͧsti 2019-04-10 18:47:35Z
@deen as i often told i had problems with sdl2 using 10+ clients, it seems to work fine with opengl3 enabled :O
Avatar
so not bad
Avatar
sublime is also "paid"
18:48
"Emacs is on the bottom because this isn't a stack rank of people's favorite operating systems"
18:48
xD
Avatar
intelij is not paid
18:51
actually
18:51
there's free version and "pro"
18:51
for java
18:51
but jetbrains got tools for nearly everything
18:51
idk if they only mean the java one
18:51
well i use clion for c++ and i love it
18:51
for free due to student license
Avatar
the Java one ise called "InteliJ"
18:52
for C/C++ "JetBrains CLion"
18:52
etc
Avatar
INtelliJ is specifically for java
Avatar
where is clion on the ranking
Avatar
it doesnt appear which is weird
18:53
i find clion way better than vs
Avatar
me either
Avatar
vscode best
Avatar
but clion has no free version
18:53
i think
Avatar
yea, it doesn't. probably only for open-source projects
18:53
if you join to their partnership program
Avatar
ChillerDragon 2019-04-10 19:03:42Z
@Ryozuki you know that the emacs navigation is integrated in every standard unix terminal?
19:03
so it is much more widley used than vim
Avatar
@deen idk what you mean by check the logs, in the server log is just "player x finished in xx min"
19:13
i cant find the problem
Avatar
vim is best
Avatar
@fokkonaut my guess is that the DDNet-Server.exe doesn't have permissions to create files
Avatar
it does, it can create my account files aswell and this doesnt seem to be the problem because i created a record manually to try this out and it couldnt write into it
Avatar
try to give full permissions on records directory
Avatar
will do when im back home
19:21
this might actually be it
Avatar
I can confirm that we don't log failures
19:21
so I tried taking away permissions from records directory and get the same problem as you and no error
Avatar
maybe i forgot to change permissions from root to my user
19:22
i will inform you about the result tomorrow
Avatar
sigh, the file score stuff doesn't use any tw related functions for opening files
19:22
no wonder there re no errors reported, will fix it
Avatar
okay :)
19:23
then i will merge that to my repo manually and have a look where it fails
Avatar
@deen there is also a bug that 2 (( and )) appear for the rank IIRC on filebased records
19:25
when /rank
19:25
and they dont get automatically loaded when you join
19:25
iirc
Avatar
yea i fixed that for myself
Avatar
pls make a pr
19:26
if u can
Avatar
dunno if it conflicts with sql
19:30
wait
19:30
its this:
Avatar
quick pr from mobile xd
Avatar
ChillerDragon 2019-04-10 19:42:55Z
mobile lol
19:43
@fokkonaut do we have that fix in ddnet++ it looks faimilar to me
Avatar
yes i made it ages ago to ddpp
Avatar
ChillerDragon 2019-04-10 19:44:16Z
ah nice
19:44
as u can see ddnet++ > ddnet xd
Avatar
blockddrace > ddnet++ (edited)
Avatar
ChillerDragon 2019-04-10 19:44:46Z
traitor o.O
19:46
@ChillerDragon
Avatar
ChillerDragon 2019-04-10 19:47:01Z
u
Avatar
you should go through blockddrace commits and check some stuff is also unfixed in ddpp yet
Avatar
ChillerDragon 2019-04-10 19:47:32Z
pr it nobo
19:48
tomorrow maybe
Avatar
blockddrace is trash
19:50
you dont even know it
Avatar
same as block
19:51
just different name
Avatar
not sure if I should really start fixing the FileScore code
19:56
we never touched it since it's totally unused in official servers
Avatar
ChillerDragon 2019-04-10 19:57:05Z
ye but mostly used on unofficial servers
19:57
you can also promote ddnet++ for filescore supprot :p
Avatar
Suggestion: When on fng gamemode (or noby fng) when you try to disconnect while frozen, show a confirmation dialog.
Avatar
because other fng servers dont put a dummy when someone rage quits
20:14
you just go away like peace idiots
20:14
also suggestion: console option for color_to_rgb to convert from tw colors to rgb or hex (edited)
Avatar
@deen i would be very thankful if you'd fix file Score (edited)
20:16
@Deleted User false
20:19
@Alexander will do it now
Avatar
Colored ping 👌
Avatar
@deen Thanks
20:30
Also if you could
20:30
show me somehow
20:30
how to convert the tw colors using javascript
20:30
i really really really need it
Avatar
i was talking to PeX ingame, and he still uses TWTD and he claims he can't join RUS servers with his client while he can when he uses the ddnet client. anyone got any idea how that is possible?
Avatar
ye tell him to use ddnet
troll 1
Avatar
i told him
20:44
i also explained to use inp_mouseold then
Avatar
@Alexander try reading ConColorFromRgb and doing those calculations
Avatar
Colors (Page 1) — Development — Teeworlds Forum — Everything Teeworlds!
20:47
and descriptions by HMH here: https://forum.ddnet.tw/viewtopic.php?t=5876
Avatar
okay i read that first post before
20:56
but the description by hmh looks very... descriptive and im pretty sure it will help me understand
Avatar
b92607e fix no score when joining when using file based score - fokkonaut 15658b3 removed brackets - fokkonaut 6de90cb Merge #1615 - bors[bot]
Avatar
@deen sorry for pinging you but can you help me a bit How do I do the math formula f(l) = trunc(l/2) + 128
22:45
im like so confused
22:45
what is f, what is l
22:46
oh shit
22:46
nvm i got it
22:46
...
Avatar
such an idiot
22:46
l is supposed to be luminosity
22:46
all i did was split luminosity by 2 and added 128
22:46
but the truncate part got me like wtf
Avatar
well i cant really convert my color (edited)
22:56
@Learath2 sorry for bothering you
22:56
but can you help
Avatar
[quakenet] <Learath2> sure, what are you trying to do again?
Avatar
convert tw color 13026816 to hsl
Avatar
tw color is almost already hsl
22:57
i think we just add to the L
Avatar
well that almost is fucking me up
Avatar
let me take a look at the code
Avatar
what im trying to do is make a javascript converter for my TeeAssembler
22:57
im following these instructions
22:58
so
22:58
13026816 to hexadecimal is B9FE0B
22:58
and then seperate it like this: B9 FE 0B
22:59
B9 to decimal is 185, FE to decimal is 254 and 0B is 133
Avatar
only the 133 needs adjusting
Avatar
how so
Avatar
133/2 = 66,5; truncate that you get 66, add 128, thats 194
Avatar
thats right
23:00
so what now
23:00
i get a pure white color
Avatar
I don't
23:01
what are you plugging this into?
Avatar
css hsl
23:01
or this
23:02
hue is degrees
23:02
saturation and luminosity is percent
Avatar
well the values you get are out of 255
23:02
256*
23:03
lemme try something
Avatar
oh apparently hmh had it wrong in that post though
Avatar
0.5f+(v&0xff)/255.0f*0.5f
Avatar
what i did was get 194 out of 256 and 254 out of 256
23:05
and i got some okay values
23:05
but the hue was a problem because idk if i need to get it out of 256 or 360 because degrees
23:05
and both had a weird color
23:06
okay so can you explain that code pls
23:06
And im really sorry that you have to explain this to an idiot
Avatar
v&0xff just says take the rightmost byte of v
23:06
so the last two hex digits
Avatar
thats luminosity
23:07
0B or 133 in decimal
Avatar
divide it by 255, divide that by two, add it to 0.5
Avatar
@Learath2 do you know whether we did any recent android builds or whether that is literally dead code?
Avatar
@heinrich5991 haven't heard of a half decent android build in the last 2-3 years i think
Avatar
133 / 255 , then / 2 and then + 0.5 is 0.76078431372 so 0.7 i guess?
Avatar
iirc it still worked to spectate 😛
23:09
@Alexander yes, but remember that's normalized between 0 and 1
Avatar
so 70
Avatar
so you need to re scale it
23:10
more like 76, that 6% is important in getting the right colour 😛
Avatar
am i doing 0.7 out of 1 or what
Avatar
0.76 out of 1 yeah
23:10
or 76%
Avatar
oh i see
23:10
0.76
23:11
so 2 decimal places
23:11
hey
23:11
this is pretty good
23:11
looks more like it and not some crappy teal color (edited)
23:11
Thank you learath
Avatar
well did you get it right?
Avatar
imma try this again
23:12
just in case
Avatar
H and S are also out of 255 btw, you should properly scale those aswell
Avatar
255 or 256
Avatar
i fucked something up like everything fucked my brain
23:18
HOW DID I GET 280
Avatar
while scaling 76?
23:20
H and S
23:20
i have 185 for H
Avatar
185/255 = x/360
23:20
solve for x
Avatar
261?
Avatar
I guess
Avatar
and then for S
23:23
254/255 = x / ?
23:24
100?
Avatar
I guess saturation is also a percentage
Avatar
yeah
23:25
okay so i got 261 99 76
23:25
converted to hex its #B085FE
23:25
and putting that in tw color_from_rgb
23:25
doesnt do the same thing
Avatar
first of all, is the colour close enough or are you totally off?
Avatar
close
23:26
23:27
23:27
kind of
Avatar
what's the tw colour for that?
Avatar
13026816
Avatar
you sure you got that correct in hex?
Avatar
ofc not
23:30
13026816 to hexadecimal is B9FE0B and then seperate it like this: B9 FE 0B B9 to decimal is 185, FE to decimal is 254 and 0B is 133 133 / 255 -> / 2 -> + 0.5 is 0.76 for L
23:31
185, 254, 76
Avatar
@Alexander It's C6C600
Avatar
which gets you #9d1ce3 that looks closer
Avatar
i got that before but idk
Avatar
you dk what?
Avatar
i dont know how i got c6c600
Avatar
wym? just convert from decimal to hex
23:33
I mean if you are doing this in code there is no point converting anything
23:33
you just do the math
Avatar
nvm i was just using some converter
Avatar
@Alexander if you have anything to ask ask soon because I might fall asleep soon 😛
Avatar
in a sec
Avatar
ab9912c Rcon console: Don't show duplicates - def- b91530e Console: Can't deallocate temp entries, so don't even try - def- 933f938 Merge #1619 - bors[bot]
Avatar
well i did this and i got something close
23:40
but its okay
23:40
thanks
23:42
Good night
Avatar
good night
Avatar
also im just gonna put this here
23:46
9D1DE2 198/255 = x/(360 OR 100) 0 / 255 -- 0 0/2 -- 0 0 + 0.5 -- 0.5 0.5 * 100 -- 50 H = 279 S = 77 L = 50 I wrote it down in notepad
23:47
it needs a bit of clarification
23:47
but its okay
Avatar
[quakenet] <Learath2> careful pasting multiple lines here, the channel is connected to irc
Avatar
[quakenet] <heinrich5991> shrug
Exported 343 message(s)