Guild icon
DDraceNetwork
DDraceNetwork / questions
For newcomers to ask questions and get help. Also check https://wiki.ddnet.org/wiki/FAQ
Between 2022-11-16 00:00:00Z and 2022-11-17 00:00:00Z
Avatar
when is the new season or the reset coming out ? any specific dates?
Avatar
Avatar
Cipy29
same as rocket jump, you need a little delay between jump and rocket, otherwise it doesn't work
thanks, weird interaction, i was sure i could even slam jump+hit together and if it doesnt hit before jump - i was good probably was wrong,
Avatar
Avatar
Cactus
when is the new season or the reset coming out ? any specific dates?
Probably next year june july
13:00
He said with the 10 year anniversary
13:01
Thats what i got told at least
Avatar
Avatar
Cactus
when is the new season or the reset coming out ? any specific dates?
probably when all the features needed for s2 are all coded
13:55
so u wouldnt know when (edited)
13:55
ig u can keep track of #developer to see whats being developed for an estimate
Avatar
aight ty
Avatar
Avatar
Cactus
when is the new season or the reset coming out ? any specific dates?
It's not even been decided yet, let alone put a date on. With the number of features people are wishing for, I don't think it's currently realistic at all.
feelsbadman 2
Avatar
I'm doing my hardest to make some features work, like achievements and icons of them, the other stuff are completely mechanical, maybe half of it are possible to program before 2023, but the rest has to be too much work.
Avatar
At least by 2100, no guarantees before BASED
Avatar
when new koule? why is it not written anywhere what time the map comes out?
Avatar
when I put my bind in F1 it say the .cfg couldnt open
Avatar
someone please
Avatar
What is this color integer (like default 65408 value) in TW? and how to convert ColorRGBA to it?
Avatar
guys, i wanna test a map i build with my friend. I made my own server but we have no idea how he can join me
Avatar
he needs ur ip and server port to join
Avatar
i gave him
Avatar
then in f1 console connect ip:port
Avatar
alright
18:36
we try
18:38
ok, so it says that the server doesnt response
Avatar
there can be a lot of possible issues, most likely your ports are closed or you have 'grey' ip, i recommend not spending time on it and host ur map on this service instead: https://trashmap.ddnet.org/
18:40
Create server there and set it up, then just connect by given ip
Avatar
alright thank you 🙂
👍 1
Avatar
Avatar
Aniak
What is this color integer (like default 65408 value) in TW? and how to convert ColorRGBA to it?
easier to use hex values with $ prefix instead of #
18:52
for example player_color_body $ffffff
Avatar
Oh its possible to set hex color?
Avatar
you may not get exactly the color ur looking for cuz i think colors are automatically made darker or smth not too sure
18:53
yes
Avatar
lol, cool
18:53
but still
Avatar
i can prob check conversion for u in around 30 mins, kinda busy rn
Avatar
I need to convert ColorRGBA, or ColorHSLA to this magic int
18:55
oh no, don't waste thsi time
18:55
I actually found sth, but its kind of magic for me
18:55
int ColorBody = ColorHSLA(m_ColorBody).UnclampLighting().Pack(ms_DarkestLGT7);
18:56
It is in game/server/teeinfo.cpp
Avatar
There are variables in client like player_color_body, when you print it, you get color in all representation, look how he translates it one to another
Avatar
And its weird for me, that only server side convert colors..i mean I couldnt find any piece of such code at client side
Avatar
what exactly are you trying to achieve? if you want to get a number for desired color - you can just play with sliders in tee config and then print value in console with player_color_body
Avatar
Avatar
Anime.pdf
There are variables in client like player_color_body, when you print it, you get color in all representation, look how he translates it one to another
The problem is I cannot find it anywhere xD
18:59
thos macros make some magic, and obfuscate the code (imo)
Avatar
there's 0 code obfuscations for sure, there's even a function to output that as RGBA but that aside, what can't you find?
Avatar
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
Avatar
unsigned Pack(bool Alpha = true) { return (Alpha ? ((unsigned)(a * 255.0f) << 24) : 0) + ((unsigned)(x * 255.0f) << 16) + ((unsigned)(y * 255.0f) << 8) + (unsigned)(z * 255.0f); }
19:02
Its that function?
Avatar
maybe, probably
19:03
ask in #developer
19:03
more related to that channel
19:03
😄
Avatar
I was nnot sure, just didnt want to disrupt devs work
19:04
And thanks for help :)
Avatar
disrupt devs work
kek
Avatar
Avatar
Aniak
And thanks for help :)
np
Avatar
lemme find it again, sec
Avatar
Pack looks confusing but it's simple. Put all components of the color into 1 int. 4 bytes 1 per component
Avatar
@Aniak finally got to the code, you actually kinda did find the function ---- this pretty much transforms from this "magic number" to HSLA, where H = x, S = y, L = z color4_base(unsigned col, bool alpha = false) { a = alpha ? ((col >> 24) & 0xFF) / 255.0f : 1.0f; x = ((col >> 16) & 0xFF) / 255.0f; y = ((col >> 8) & 0xFF) / 255.0f; z = ((col >> 0) & 0xFF) / 255.0f; } and indeed pack transforms from HSLA into "magic number, H=x, S=y, L=z unsigned Pack(bool Alpha = true) { return (Alpha ? ((unsigned)(a * 255.0f) << 24) : 0) + ((unsigned)(x * 255.0f) << 16) + ((unsigned)(y * 255.0f) << 8) + (unsigned)(z * 255.0f); }
20:45
ColorRGBA test{1.0f, 0.0f, 1.0f}; dbg_msg("TESTING", "Color converted: %u", test.Pack()); (edited)
20:45
And the output is
20:45
console: Value: 16711935 console: H: 360°, S: 0%, L: 100% console: R: 255, G: 255, B: 255, #FFFFFF (edited)
20:45
Its nonsense for me
21:02
Theres no conversion from RGBA to magic int?
21:03
I mean ColorRGBA class is only for storing RGBA values to be converted to HSL?
Avatar
Teeworlds colors are packed HSL
21:10
So if you want to go from ColorRGBA to "magic" teeworlds colors you do color_cast<ColorHSLA>(ColorRGBA(1.0f, 0.0f, 1.0f))
Avatar
Yeah, I see now, thanks
21:12
Why don't you want to make ColorRGBA::Pack() ?
21:14
I'm just curious
Avatar
There is a ColorRGBA::Pack it will give you a packed rgba color instead of hsla though
Avatar
class ColorRGBA : public color4_base<ColorRGBA> { public: using color4_base::color4_base; ColorRGBA(){}; };
21:15
this is definition of ColorRGBA
21:15
so it uses base class Pack() function, and so it bases on hsl
Avatar
Avatar
Aniak
console: Value: 16711935 console: H: 360°, S: 0%, L: 100% console: R: 255, G: 255, B: 255, #FFFFFF (edited)
so I get sth like that xd
21:16
I mean, it took that 1.0f which had to mean R(255), but it actually means H(360) (edited)
Avatar
Pack is a generic function, it takes 4 components, normalizes them to 255, shoves them into an int
21:17
It's not "PackIntoTwColor"
21:18
It's just that ColorHSLA::Pack is also the PackIntoTwColor
Avatar
okay, i think I understand now..
21:19
Sorry i just never seen such implementation
Avatar
Not your fault, it's backwards compatibility spaghetti
Avatar
Oh, yeah, I just forgot it's C++ :D
Avatar
How can i use invisible hook line in the game?
Avatar
Avatar
Enbou
How can i use invisible hook line in the game?
in controls there's "hook collisions" - it's the thing you're talking about?
Avatar
Avatar
Lunaris
in controls there's "hook collisions" - it's the thing you're talking about?
I will see the hook line but other players will not
Avatar
Avatar
Enbou
I will see the hook line but other players will not
other players also see that hook line
Avatar
Avatar
Lunaris
other players also see that hook line
How do i hide it from other players? (edited)
Exported 91 message(s)