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-07-13 00:00:00Z and 2021-07-14 00:00:00Z
02:32
$invite
02:33
$commandstats
Avatar
@M1H40S pls use the bot in #bot-cmds not here
Avatar
Using GitHub Copilot to write a โ€œhello worldโ€ app. https://t.co/D3RZW08032
Retweets
824
Likes
4603
Avatar
the bot should be muted in this channel i guess
๐Ÿ‘ 1
Avatar
Avatar
Ryozuki
@M1H40S pls use the bot in #bot-cmds not here
Yes, I realized later. sorry
Avatar
Hello. Is there a stack-allocated array class? What I want is to have a container of max N elements with methods to add/remove elements, as well as const size/contains/indexOf methods. std::array has a fixed size. array<> in base/tl seems to be always dynamically allocated. I'm tired of dealing with C arrays and a separated size counter. https://github.com/ddnet/ddnet/blob/dbc05f6bb03b89d573dcda0e085206d58665d14e/src/game/server/entities/character.h#L93-L94
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/ddnet
17:51
We have a lot of such stuff in the code. E.g. in the character: CEntity *m_apHitObjects[10]; int m_NumObjectsHit;
17:52
It is easy to code such a container and I can do it if we don't have it yet. I just don't want to reinvent the wheel.
Avatar
Not in C++, but there is boost::static_vector, it's not too hard to implement such a type
18:07
if you don't want the hybrid behaviour it's even easier
18:07
if you want the hybrid behaviour I think you can abuse an allocator to get this done
Avatar
Avatar
Learath2
Not in C++, but there is boost::static_vector, it's not too hard to implement such a type
Yes, that is it. And yes it is not hard to implement and this is why I'm so wonder nobody implemented it in DDNet yet.
Avatar
look at the state of the code and tell me that's our biggest problem ๐Ÿ˜„
Avatar
lol what's that
18:32
bottom right
18:32
i just noticed, because i had something bound on LEFT control, and then I was like wait wtf, does right and left control equal, like is there a bug? and then i noticed it wasnt right control, it was ALT GR which I pressed accidently
18:34
its kinda like using CTRL and ALT at the same time, for example @ i can do with ALT GR + Q, or with LEFT control + ALT + Q
18:34
because it works like this it probably gets detected as lctrl
18:34
(because ALT + right ctrl doesnt make an @, its specified to the left one)
Avatar
for me they are different
18:44
have u looked in the source, maybe SDL reports them wrongly?
18:46
atleast i cannot trigger my ctrl bind with it
Avatar
i can, always :D idk about the sdl backend stuff :/
Avatar
maybe its also a linux thing
Avatar
but dont worry, its not your issue
19:09
its also in vanilla 0.7
19:09
no, i am on windows
Avatar
i also cant @ with ctrl + alt only with alt gr
19:10
yes
Avatar
you have to use left ctrl
19:10
ah
Avatar
u are on windows xd
Avatar
Avatar
Deleted User
maybe its also a linux thing
ah you mean it the other way round
Avatar
yeah was bit missleading ๐Ÿ˜„
Avatar
anyways, its probably only happening on GER keyboards (or language setting), and then only on windows
19:11
my guess
Avatar
possible yeah
Avatar
german is always special
19:11
xD
Avatar
apparently its just ralt for me
19:16
i wonder if we can force SDL to just do that on windows
Exported 47 message(s)