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 2021-04-28 00:00:00Z and 2021-04-29 00:00:00Z
02:50
nouis
Avatar
what kinda value is the color "value" of player_color_body? (edited)
07:05
can i convert that value into hex or decimal?
Avatar
yes, F1, player_color_body gives you the hex value
07:27
it's HSL put into a single integer I think
07:29
i tried so many different color codes and none of it gave me the right color
07:29
i tried hex, decimal, rgb and hsl into an integer
07:30
i kinda think that the value is an own value
Avatar
its brightness is just clamped
Avatar
so there is no answer what the color "value" means in teeworlds?
Avatar
also for hue you need to convert a 360 degree to a 0-255 range.
Avatar
yo somebody help me? how to add member to 'CConfig'?
Avatar
i did that
Avatar
value is brightness
07:32
but in teeworlds it is clamped
Avatar
so how can i convert hex/decimal into that weird teeworlds value?
Avatar
what do you want
07:33
give me an HSV maybe
Avatar
to set my body color with the command in the console
07:33
but idk what number the value represents
07:34
then why not just set it in the settings page
07:34
then print the number
07:34
and use that
Avatar
i also tried that but the color was not the color i set it to
07:34
and yes i converted the procentage to 0-255
Avatar
did you use this?
Avatar
im trying to figure out what that value means the whole time
Avatar
its not decimal
Avatar
it is
Avatar
then why doesnt it set it to the right color?
Avatar
0x84 = 132, 132 / 255 * 360 = 186 degree
Avatar
this is what i get when i use the decimal 14364987
07:38
it should be red
Avatar
it is decimal in the sense of a 32bit integer. you need to convert it into hex then read 8bits at a time
Avatar
@Learath2 reply from Hetzner:
Dear client,
>
I'm afraid, we do not offer larger Prefixes in our Cloud than /64.
>
If you require any further help, please do not hesitate to contact us.
Avatar
Avatar
TsFreddie
it is decimal in the sense of a 32bit integer. you need to convert it into hex then read 8bits at a time
and how do i do that?
Avatar
Avatar
TsFreddie
Click to see attachment 🖼️
like that
07:41
read the hex
07:42
84 is hue, FF is sat, 00 is brightness
07:42
if you want it in reverse then just starts from hex
07:43
say if you want a 250 degree which should be purple.
07:44
do 250 / 360 * 255 = 177 teeworlds hue value. convert that to hex B1 then, assuming you want lowest brightness and highest sat, then the hex value should be B1FF00, convert that to decimal 11665152 which is the value you want.
07:45
if you starts from teeworlds hue value (shown in the settings), just don't do the /360 part.
07:45
and, as always, you can always just copy the Value in player_color_body
Avatar
why can't it just be in normal decimal or hex like every other thing in programs
Avatar
it is pretty normal for me. other than the min max value is off
Avatar
im assuming i cant just pick a color that i like and convert it into teeworlds language
Avatar
in teeworlds or in other programs?
07:49
you can just pick a color in teeworlds and use that
07:49
if you pick color from outside world, the only limitation is brightness which must be above 50% iirc.
Avatar
so in teeworlds the color brightness is 50-100%?
07:50
0 is 50% and 255 is 100%
Avatar
oh i didnt knew that
Avatar
for hue 0 is 0degree and 255 is 360 degree
Avatar
A few updates ago I was able to place unused switch layer tiles (I used the three spawn tile indices). These were the only ones that were placable. Now EVEN THESE got removed. Could we please get them back or could we get allowed to place all switch indices when UNUSED is activated? My mod relies on it, I am using switch layer because it has so many options with delay and number.
Avatar
Avatar
Comrade
@Learath2 reply from Hetzner:
Dear client,
>
I'm afraid, we do not offer larger Prefixes in our Cloud than /64.
>
If you require any further help, please do not hesitate to contact us.
You have a cloud server, hm I wonder if it's different for my dedicated
09:00
finally got console working for teams justatest
Avatar
@TsFreddie you are going so fast 🙂
09:03
probably need to put the commands behind votes. but now i need to make votes for teams.
Avatar
Q: Why are you making this? 😛
Avatar
🤔 i actually don't know
09:05
was making a 1v1 server for our fng players. but got side tracked
Avatar
I mean it's a very cute idea, but I think it's only interesting to us developer folk seeing that it is actually possible to create new gameworlds and gamecontrollers 😄
09:07
(I wasn't really sure these were (atleast trivially) possible because of all the spaghetti we have lying around)
Avatar
i squashed them and made lasagna instead.
09:09
but the end goal is probably just to eliminate pvp players fighting for empty servers.
09:11
and i probably need a mega map that has all standard and fng maps in it which makes me question myself why am I doing this too.
Avatar
Hm, you also want to load multiple maps into memory>
09:14
?
Avatar
justatest maybe
Avatar
Or are you going to shove all of it into one huge map and teleport people?
Avatar
teleport should be fine tbh
09:14
showothers would work more nicely
Avatar
multiple maps I tried before, it's actually very unpleasant 😄
Avatar
if i want multiple maps, i should've just get rid of teams and make a proxy server that connect multiple servers or something
Avatar
in the end i might just host one map per server.
09:23
mega map is much cooler tho
Avatar
do mega map
Avatar
does separate gameworlds and gamecontroller allow for easier multithreading?
Avatar
Good question, I'd think so
09:25
but only god knows how threadsafe the code is since no one thought about this usecase
Avatar
oops, didn't make any thread consideration while coding this.
Avatar
Avatar
Learath2
but only god knows how threadsafe the code is since no one thought about this usecase
if only tw was made in rust monkalaugh
Avatar
I'm sure it does things like accessing the gamecontext all willy nilly 😄
Avatar
"fearless concurrency" BASED
Avatar
well not really fearless until all variables are atomic 😄
Avatar
i dont think its worth anyway
09:26
unless we go further than 64p
09:26
the bottleneck is the network anywasy
Avatar
Oh god, I debugged something awful last week
Avatar
also our vps only have 2 cores?
09:27
idk
Avatar
I had 2 threads accessing a float that I thought was atomic, they kept producing some values that were so far out that I thought it was garbage data
Avatar
👀 if i don't need showothers, i can change to more than 64p pretty easily with my current setup.
Avatar
Apparently they were both writing at the same time...
Avatar
(i think)
09:27
or c
09:28
man its so long since u dont touch c++ code
Avatar
@TsFreddie sure, you can also just not send tees outside of your team
Avatar
@Learath2 do u find ugly the coat and cin stuff too?
09:28
i find it rly ugly idk why
09:28
for printing
09:28
c++ is an abomination BASED
Avatar
Also I get to remove tons of team related stuff in entities which cleaned up the code pretty significantly i would say.
09:30
Magic
Avatar
@Learath2 c++ inline string secret_function(int __val) { const bool __neg = __val < 0; const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; const auto __len = __detail::__to_chars_len(__uval); string __str(__neg + __len, '-'); __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); return __str; } peak c++ beutifulness
Avatar
I mean remove all the cancer inducing __ and you get something that's much less awful 😛
Avatar
wonder who wrote it?
09:31
its in the std
09:31
I still don't get why they use so many __
09:32
We have namespaces in C++, this ain't C
Avatar
for fun
Avatar
@Learath2 they use __ cuz
09:33
the reason variables are beginning with __ is macros. If user defines isNegative macro, it will get overwritten in the std, however user is forbidden to define macros starting with __ , as the wise people of reddit comment section suggested.
Avatar
Ah macros, true
Avatar
rust macros must be called with a ! at the end
09:34
i guess this is how they avoid this
Avatar
The segment of code you sent reminded me of a talk
09:36
Not really related very closely, just reminded me of it 😛
09:37
it's the __to_chars_len that made me think of it. Maybe it indeed is part of <charconv>
Avatar
Just realized I haven't gone out for so long I don't remember where is my key.
09:38
Avatar
@Ryozuki well it's a demand issue which caused a supply issue which is not really easy to solve at all
Avatar
from $162M to $1781M*
09:38
in earnings
Avatar
Avatar
Learath2
@Ryozuki well it's a demand issue which caused a supply issue which is not really easy to solve at all
yeah
09:39
but most ppl thought it was a shortage due to covid restricting commerce and stuff
Avatar
From what I gather there are like 2 companies that produce chips this thin and they are TSMC and Samsung
Avatar
but its actually ppl buying too much
Avatar
Avatar
Ryozuki
but its actually ppl buying too much
I also have to wonder if it has sth to do with people using bots to buy all the stock
Avatar
there is also a crypto boom
09:40
when it crashes we will be able to buy gpus at rly low price
09:40
PepeA
Avatar
It used to be that there would be more physical stock at physical retailers where people couldn't just ask for 50 cards, so normal consumers got their cards and the demand levelled out when scalpers had no one to sell to
09:41
this gpu
09:41
doesnt cost 1750
09:41
its msrp is like 600 iirc
09:41
market is crazy
Avatar
I have a gtx1080 lying around doing nothing
Avatar
Avatar
Learath2
I also have to wonder if it has sth to do with people using bots to buy all the stock
yeah, but a sell is a sell the company profits whoever buys it
Avatar
This ps5 doesn't cost 800e 😛
Avatar
Avatar
Ryozuki
yeah, but a sell is a sell the company profits whoever buys it
Which is why companies actually have no reason to ever fix this 🙂
Avatar
Avatar
Learath2
Which is why companies actually have no reason to ever fix this 🙂
they have a reason to upper they supply
09:43
because they will be able to sell more
Avatar
They will make more to sell more, but they don't care that people have to pay 2 times the msrp
Avatar
they already planning an expansion but it takes lot of time
Avatar
Found my key. I'm out. Brb
Avatar
Avatar
Learath2
They will make more to sell more, but they don't care that people have to pay 2 times the msrp
the company doesnt sell at 2 times msrp, the company sells at msrp
09:43
its the scalpers
09:43
so they dont profit 2x times
09:44
they just sell all their stock
09:44
monkalaugh
Avatar
Avatar
Ryozuki
they already planning an expansion but it takes lot of time
TSMC is building a new 2.5b$ plant in arizona, Samsung is building a 10b$ plant in texas. Both scheduled to finish around 2024 😄
Avatar
i have this gpu, i bought it at 250€ more or less
09:45
i would sell my gpu if my cpu had an integrated gpu
Avatar
Avatar
Ryozuki
the company doesnt sell at 2 times msrp, the company sells at msrp
I know, I literally meant what I said, they don't care that YOU pay 2x msrp. The only reason they want to make more is to sell more
09:46
(It might be profitable to keep it juuuust at the edge of demand btw, if you don't satisfy all the demand more scalpers will buy and you can get a nice sweet wad of extra cash from all the scalpers holding the bag at the very end)
Avatar
I'm back
Avatar
Do we still need Novice Perm since I notice that most Perm servers are empty while there are many normal novice servers? Those selected maps in perm servers are not enough, shall we put normal map pools in perms? Those perm servers are wasted. Also, I am stuck in finding empty servers with low ping as they are full of novices (usually 6 out of 8 are novice, but only 1~3players in each). It would be very nice to restrict numbers of novice servers(maybe 4 out of 8? I think half is a lot since the game has entered steam for half a year and most players are no longer newbie).
Avatar
Wouldn't it make more sense to have perma novice servers in the future? When most players move to harder maps, we still want to keep some novice servers around for the newcomers
11:22
for chn servers I can reduce them to half
11:22
for other locations we have no problem to just run more normal servers when none are empty
Avatar
I see. That makes sense, but no longer pertain for now. You can pick randomly in a day and find out perm servers no longer have players
11:23
I suggest we can make novice type as perm type which can not vote to others and others can not vote to novice
11:24
Selected maps seem not enough for them. They are playing in normal novice
Avatar
but the normal novice maps are too hard for real newcomers
11:25
that's why we have the special selection of perma novice
Avatar
Just right this moment, type "Novice" in searching bar, only normal novice servers have players because even newbies choose servers where there are many players.
11:27
I think this is reasonable. They should be playing toghther to have fun as newcomers can not play on theirselves
Avatar
ok, I'll reduce perma novice by half globally
Avatar
I have been observing for days to have this suggestion. I just can not find players in perm servers with those limited maps. Newcomers grow quickly as we expect
Avatar
but the empty perma novice servers don't hurt, except on CHN
11:30
and if we get another bunch of new players, the perma novice servers are usefl
Avatar
I see 🙂
Avatar
I agree with both of you, perma is underplayed for sure. Cutting them in half would be a good idea.
11:33
Maybe we should explain better how to vote / what the best maps to play for beginners are. If possible... I don't think having perma servers alone accomplishes that. Though, to be fair, I don't know how the new player experience is currently, so maybe that's already handled. (edited)
Avatar
Selected maps should be list in order of stars instead of alphabetics. Also, most of the time, I wish it is globally listed in order of stars.. Is there any advantage of lexicographical order?
11:49
I use search function in vote to achieve that (type 2/5 would selected every 2 stars map which is good). Not a big deal but this can be great if hard coded with tabs. I guess not many people know this
Avatar
It's the name of the servers, Perma doesn't really mean anything to anyone 😛
12:14
It's technically something like "Beginner" and it should probably be the initial filter on the client instead of "Novice"
f3 6
Avatar
deen is fearing some locations will be totally empty if we use a different filter on first startup
Avatar
better solution is to do something like "Tutorial maps" but don't add that to the filter, just something new players will see
18:47
and they will probably be drawn towards it
Avatar
people likes to go to servers with more players
Avatar
maybe we stop approving novice maps that are not noob-friendly 🙃
18:57
or make yet another category
Avatar
no one would play it though, so goes against what you're saying
18:58
only noobs would play it
Avatar
make category filters into tabs
19:00
no
Avatar
more like column
19:00
unless that's what you mean
Avatar
put perma in a standalone tab
Avatar
a difficulty column that has a custom sort for difficulty
19:01
any non-matched difficulty names are pushed to the bottom, alpha order
Avatar
That's actually not a bad idea.
19:01
But we then need to deal with a three way sort
Avatar
for servers that implement the difficulty value
19:01
meh, really simple
19:01
check full string match first
19:01
then sort alpha
Avatar
The two key sort is already quite confusing for some pkayers
19:02
Visually
Avatar
i think there shouldn't be a limit on it, and there should be support for selecting what to sort first
19:03
i understand that's more difficult though
Avatar
my web tw browser does two key sort based on the order you clicked the tab. But that's a bit confusing too.
19:04
Avatar
maybe numbers or labels
19:06
to remove all sort
Avatar
@Iza @TsFreddie you can give color settings with $
22:16
$rrggbb I think
22:16
in hex
Avatar
Fails with this message on any client version when playing, so the problem is probably the recording: [2021-04-29 00:31:51][client]: dropped weird message 'invalid' (0), failed on '(type out of range)'
Avatar
@Learath2 when can we move teams state to ddnetplayer? sucks with 128p support otherwise xd
Exported 233 message(s)