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-02-24 00:00:00Z and 2023-02-25 00:00:00Z
Avatar
anyone know how to be able to use the &XXXXXX color format in your commands
Avatar
I’m genuinely not sure
01:25
im hearing reports that “&” syntax isn’t working & I’m just using a color cast to RGBA from the HSLA color that exists in g_Config. I hadn’t even heard of using & for it until now so maybe it’s only supposed to work on certain colors? (edited)
01:26
i used the ui_color handling as a reference for that implementation, iirc
01:30
they cited the player color as something that does work with this syntax, though. this is probably what I’m looking for. i just don’t get how & is related to bitpacking the number
Avatar
Avatar
heinrich5991
you want RUST_BACKTRACE=1, generally btw
Using full when using color eyre will show u code snippets
Avatar
e13116b Increase size of DB server - def-
08:44
61bf48c Add chat message constants from upstream, remove redundant comments - Robyt3 284f332 Use em dash for client messages in chat like on upstream - Robyt3 5411150 Fix client crash when echoing client message to chat - Robyt3 931ea6d Merge #6351 - bors[bot]
08:48
00a3ac1 Retry faily pip3 install - def-
08:52
4a41262 Different mirror for chinese pip - def-
Avatar
Avatar
Ewan
anyone know how to be able to use the &XXXXXX color format in your commands
I don't think we have &. It should be $
Avatar
Avatar
heinrich5991
@Jupstar ✪ I spot a bug already ^^
hi, is this fixed btw? if so it was probs unrelated to the skins, but they still fail quite often
Avatar
Avatar
Learath2
I don't think we have &. It should be $
does this only work with the hex triplet? i can't get it to have non-FF opacity
Avatar
Been a while since I coded it. I think $FF000080 should work
15:44
anything longer than 6 digits is just black
Avatar
I can take a look later
Avatar
that would be nice thanks
16:06
oh actually
16:06
let me test something first
16:07
yeah i was just testing whether or not it worked on recent vanilla ddnet and still doesn't work
Avatar
Avatar
Ewan
that would be nice thanks
Took a quick look, apparently I didn't implement it. So if you want alpha you'll have to use decimal
16:10
Packed teeworlds colors that is
16:11
that color format is garbage (edited)
16:11
😃
Avatar
Too late, I'm already crying
Avatar
may as well add that though
16:11
for the time being ill use decimal format
Avatar
Should be easy enough to add though if you want, just one more branch in src/engine/shared/console.cpp:L60 for len 5 and 9
Avatar
would be simpler to tack onto an existing pr tbh
16:17
to ddnet
Avatar
We had this discussion before already
16:35
Guess your OpenAI is less intelligent than mine
17:24
lmaoo
17:24
the lose a children
17:24
If you drag an emoji family with a string size of 11 into an input with maxlength=10, one of the children will disappear.
Avatar
XDDDDDDDDDDD
17:25
throw the kid out into the void
Avatar
This is gold xD
17:25
I'm stealing it
Avatar
LOL wth
Avatar
In addition to values in $RGB and $RRGGBB format, also support the $RRGGBBAA format for color variables.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps ...
Avatar
thanks robyt
Avatar
thanks robyt
19:19
hmmmm
Avatar
Yeah, turns out there are rust tests for this function
Avatar
ChillerDragon BOT 2023-02-24 19:30:08Z
d
Avatar
Codeberg is founded as a Non-Profit Organization, with the objective to give the Open-Source code that is running our world a safe and friendly home, and to ensure that free code remains free and secure forever.
Avatar
thanks robyt
20:05
you're so amazing 🤭
Avatar
Only create text containers in OnRender and not in OnMessage, to hopefully prevent text containers from being created while the window is being resized, which causes an assertion failure due to non-empty text containers.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Consi...
Avatar
he prob wants u to respond to his review
Avatar
when can tee take off christmas hat?
Avatar
Avatar
Ryozuki
Using full when using color eyre will show u code snippets
full is not about the hidden frames, but something else?
Avatar
idk, i just know it told me that
21:58
with color eyre
21:58
and it showed me snippets
21:58
i thought it was cool
21:58
snippets of the call sites
Avatar
Hi! On 90% of servers i get stuck at this part and then afrter a few minuites it says i have too weak connection to join, any ideas how to fix (i have good internet connection xd)
Avatar
Verify on ger10.ddnet.org
22:11
Might take a few refreshs
Avatar
ah! ty :D
Avatar
f5221ca Mark ColorRGBA/ColorHSLA functions as const - Robyt3 cd15b93 Remove unnecessary temporary variables - Robyt3 aace33f Support 4 and 8 digit RGBA color values in console - Robyt3 c3a0a5e Merge #6357 - bors[bot]
Exported 80 message(s)