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 2023-04-19 00:00:00Z and 2023-04-20 00:00:00Z
Avatar
by int do you just mean decimal
00:02
you can do 0xE01F1F to decimal but you get 14688031
00:02
the number the game uses is 49408
Avatar
Is it perhaps some x-bit?
00:05
16-bit or something
Avatar
well it doesnt have a consistent # of characters
00:06
so i dont really know how to go about figuring out what it is
Avatar
Did you ask GPT to figure it out?
00:12
Also why ask a bot. Isn't it in the code? Shouldn't the math be either in the command player_..._color or when you pick the hex color in the settings?
00:14
Somewhere the value gets set
00:14
Or it gets converted when you get it
00:14
There are no other options
Avatar
@tela the number is just a decimal representation of the bits of hsl values put together, and to enter hex values I think you use $ instead of &
Avatar
Avatar
Ravie
@tela the number is just a decimal representation of the bits of hsl values put together, and to enter hex values I think you use $ instead of &
ah thanks, you're right it's $, don't know where I got & from. Using & does appear to take a value but it's just always gray, dunno what it's expecting there
a decimal representation of the bits of hsl values put together
can you explain a bit more about that? I'd like to find a way to have a hex value, and convert it to this format without using the game
Avatar
Avatar
tela
what is that color format up top? I thought for a while it was just decimal but it isn't
The first one is classic teeworldss colors. 3 byte packed hsl
Avatar
Avatar
tela
ah thanks, you're right it's $, don't know where I got & from. Using & does appear to take a value but it's just always gray, dunno what it's expecting there
a decimal representation of the bits of hsl values put together
can you explain a bit more about that? I'd like to find a way to have a hex value, and convert it to this format without using the game
Going from hex rgb to tw colors you first need to go from rgb to hsl, let's talk about normalized hsl (components out of 1.0), then the value is (h * 256 << 16 + s * 256 << 8 + l * 256)
Avatar
alignment, packing, ur mom
16:40
i hate em all
16:41
aPES_GaCrazy
16:41
i love how llvm makes a c api but doesnt add all you can do there with the cpp api
16:41
okaymaam
Avatar
Rust, datafiles, stickers in discord I hate em all
Avatar
18797f4 Update frontpage video - snailx3
Exported 23 message(s)