Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/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-12-10 00:00:00Z and 2023-12-11 00:00:00Z
Avatar
mark my words
🔖 1
00:38
2024 is the year of linux desktop
👆 1
Avatar
still using windows
Avatar
f2091d2 A Nordrhein-Westfalen - ddnet-maps
Avatar
Ryo in 20 years: 2044 is the year of Linux desktop
Avatar
chillerdragon BOT 2023-12-10 08:36:01Z
Not sure if I find motivation for that today. Got so many things on my todo. If nobody can reproduce it it’s maybe not that bad and I stay outdated until I have time.
Replying to @heinrich5991 ChillerDragon: could you bisect the issue?
08:36
I have no extra skins and dl skins is off for me since it was added
Replying to @Chairn like try without any skin for both version, including downloadedskins fo…
08:37
Maybe mapres I have some of those
Avatar
ChillerDragon BOT 2023-12-10 09:35:23Z
today i had to use git push -fu hihi
Avatar
On CHN2: `` Core was generated by ./DDRace64-Server_sql -f servers/8343.cfg'. Program terminated with signal SIGSEGV, Segmentation fault. #0 malloc_consolidate (av=av@entry=0x7f291d7c5c60 ) at ./malloc/malloc.c:4749 4749 ./malloc/malloc.c: No such file or directory. [Current thread is 1 (Thread 0x7f2918d9c6c0 (LWP 1714471))] (gdb) bt #0 malloc_consolidate (av=av@entry=0x7f291d7c5c60 ) at ./malloc/malloc.c:4749 #1 0x00007f291d68a728 in _int_malloc (av=av@entry=0x7f291d7c5c60 , by...
Avatar
Avatar
Ryozuki
2024 is the year of linux desktop
რილია 2023-12-10 10:16:18Z
if there was a good nvidia drivers, i was using linux millennia ago
Avatar
there are (?)
10:16
xd
10:16
im using a nvidia 3080
Avatar
რილია 2023-12-10 10:17:03Z
i am noob in linux, i don't wanna fry my gpu trying to install it's drivers
10:17
i fried one before
Avatar
god bless ignorance
Avatar
Avatar
Ryozuki
god bless ignorance
რილია 2023-12-10 10:17:58Z
lazy
Avatar
sry i get annoyed when ppl say overly stupid stuff xd
Avatar
რილია 2023-12-10 10:18:14Z
😐
10:18
go fix your blog, it's outdated
Avatar
i wont
10:18
NekoEvil
Avatar
Prevent potential dead lock when using /map chat command in combination with Teehistorian. Closes #7619. I could not reproduce the issue on Windows though. This also means resetting game settings should actually be efficient now, because it only involves iterating over all game settings and directly resetting their value.

Checklist

  • [X] Tested the change ingame (but could not reproduce the dead-lock on Windows)
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested ...
Avatar
ChillerDragon BOT 2023-12-10 10:28:05Z
i didnt install shit
10:28
you turn on linux and it scales right up
10:29
well ok nvidia package
10:29
but installing one package from package manager i wouldnt call "installing drivers" sounds so complicated
10:29
its way less complicated than installing ddnet on windows
Avatar
btw: »-Wno-nullability-completeness« ← what's that for?
Avatar
Avatar
Fussel
btw: »-Wno-nullability-completeness« ← what's that for?
Seems to disable some warnings on macOS
Avatar
pff. mac …
Avatar
Fix too large rounding for some editor color picker buttons. Screenshots (the color has alpha=100, so the incorrect border is visible in the before screenshot):
  • Before:
!screenshot_2023-12-10_11-43-00
  • After:
!screenshot_2023-12-10_11-43-53

Checklist

  • [X] Tested the change ingame
  • [X] Provided screen...
Avatar
another good news: it compiles and runs with c++20 🙂
Avatar
Avatar
ChillerDragon
its way less complicated than installing ddnet on windows
რილია 2023-12-10 11:00:45Z
5 years ago i installed debian on my potato "geforce gt 240, pentium q8400, 4 gig ram" computer. that was my first time, i didn't know shit about linux, it took me a whole day to install the nvidia legacy drivers, trying to add non_free download source for my package manager with vim editor, and every 2 minutes my sceen goes black cus my gpu fan was not working :|. in day 2 everything was lovely, trying to make my sounds going on in the kde environment and learning to work with terminal and basic vim commands. in day 3 i was messing around with my packages to learn from and i broked my graphic driver, after couple of tries to reinstall it, my graphic card was broked because of overheating. i pulled my graphic card out and used debian with only my cpu for 1 year after, it was a good experiment
Avatar
u gotta use linux with modern hardware
Avatar
damn pentium
Avatar
»5 years ago« …
Avatar
i often hear linux is good for old hardware, but i'd say that's not directly true. it might run better than windows on old hardware because it is often more lightweight but drivers are less tested etc.
Avatar
ChillerDragon BOT 2023-12-10 11:02:14Z
debian
11:02
so its 10 years old linux
Avatar
Avatar
Fussel
another good news: it compiles and runs with c++20 🙂
there is no trouble with getting it to compile c++20 the problem is old distros with old glibc
Avatar
there is a problem: spectating doesn't show any tees
Avatar
but idk if u mean ddnet or another thing xd
Avatar
ChillerDragon BOT 2023-12-10 11:02:58Z
isnt that reported already?
11:03
#7569
Avatar
chillerbot BOT 2023-12-10 11:03:15Z
uname -a Linux me-GF65-Thin-10UE 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux I just pulled the 17.4 version. And when i press Q o...
Avatar
yeah pls fix
Avatar
@ChillerDragon he who smelled it, dealt it. Therefore you have introduced this bug and you have to solve it. I give you 10 minutes!
Avatar
was this bug added due to 0.7 code?
11:08
remove 0.7 code!
Avatar
რილია 2023-12-10 11:08:04Z
my next go for linux will be arch 🙂
11:08
i use gentoo btw
Avatar
hi fellas
Avatar
@Ryozuki but why? gentoo isn't written in rust!
Avatar
linux isn’t written in rust
11:11
ddnet isn’t written in rust justatest
11:11
discord isn’t entirely written in rust justatest
Avatar
both linux and ddnet have rust code
Avatar
rusty code != rust code
Avatar
Avatar
Ewan
discord isn’t entirely written in rust justatest
discord backend uses rust
Avatar
ChillerDragon BOT 2023-12-10 11:12:57Z
no bugs in 0.7 code
Avatar
copium
Avatar
Avatar
Ryozuki
discord backend uses rust
notice i said entirely
Avatar
mimimi
Avatar
my efforts at accuracy go unnoticed 😢
11:14
you ever watch zoolander
Avatar
i dont watch many movies
11:16
mostly sci fi (edited)
Avatar
me neither
11:17
i like that there are still good movies and tv i have yet to discover
11:18
you ever listen to music
11:23
leetcode should host aoc sandboxes
Avatar
Avatar
Ewan
my efforts at accuracy go unnoticed 😢
რილია 2023-12-10 11:45:24Z
i see it
Avatar
Please add file naming conventions — currently most of the file names are lower cased words joined without separator but we also have underscore separated names such as base/hash_bundled.cpp, engine/server/name_ban.cpp, game/editor/map_grid.cpp, etc. It is not clear what is the preferred scheme. There is also DDRace.cpp.
12:27
140fcea Avoid using console to reset game settings - Robyt3 d15b1f4 Merge pull request #7621 from Robyt3/Config-Game-Reset-Without-Console - def-
12:31
20d9920 Consistent rounding of editor value/color picker buttons - Robyt3 eb86959 Merge pull request #7622 from Robyt3/Editor-Color-Picker-Button-Rounding-Fix - def-
Avatar
@რილია if u stay long enough in this channel u will become a rust dev
12:36
😬
Avatar
რილია 2023-12-10 12:37:01Z
after mastering c++ i will go and check rust
Avatar
Avatar
Ryozuki
@რილია if u stay long enough in this channel u will become a rust dev
didn't happen with me pepeW (edited)
Avatar
Avatar
Mr.Gh0s7
didn't happen with me pepeW (edited)
Hop on rust. Its blazingly fast 🔥🔥 , thread safe, borrow checker included, FEARLESS CONCURRENCY
Avatar
c052b2f Add 200 € donation by Sweeeeet GM :> - def-
poggers2 7
poggers 7
Avatar
Huge thanks to Sweeeeet GM :>, not sure what your Discord account is though 😄
heartw 7
Avatar
რილია 2023-12-10 12:54:03Z
sweeeet
Avatar
Avatar
რილია
after mastering c++ i will go and check rust
i would say mastering c++ is harder than rust
Avatar
Avatar
deen
Huge thanks to Sweeeeet GM :>, not sure what your Discord account is though 😄
@gnu 😛
Avatar
Avatar
Ryozuki
i would say mastering c++ is harder than rust
რილია 2023-12-10 13:32:00Z
so after mastering c++, i pushed my brain capacity and then i can learn rust with ease feelsamazingman
Avatar
ChillerDragon BOT 2023-12-10 13:39:11Z
@Patiga thanks for twmap you enabled yet another project for me :) i would never have the nerves to build that in C++ https://github.com/ChillerDragon/twmap_6to7
python script using twmap to move doodads from 0.6 positions to 0.7 positions - GitHub - ChillerDragon/twmap_6to7: python script using twmap to move doodads from 0.6 positions to 0.7 positions
Avatar
the only real cpp experts around have over 15 years of experience in it
13:54
most coders haven’t even coded for that long
Avatar
Avatar
რილია
so after mastering c++, i pushed my brain capacity and then i can learn rust with ease feelsamazingman
I would make the bold claim that no one here mastered c++
13:54
very true
Avatar
its rly rly hard
13:54
and i would say nearly impossible
Avatar
i went and saw jason turner the other day
13:55
i could never hope to understand cpp at the level he does
Avatar
there is just so many details so many ubs so many things
Avatar
i really used to enjoy his tweets but i never watched his cpp weekly vids cuz i dont like his Minecraft avatar thing
Avatar
which rust makes a bit more managable
😃 1
13:55
owo
Avatar
rust is a young language anyway
Avatar
not really young anymore xd
Avatar
it will look very very different in like 25 yrs when it is as old as cpp
Avatar
რილია 2023-12-10 13:57:36Z
i love you guys, i thought i am stupid to not understanding the things i reading ❤️
Avatar
most code is just tedium
13:58
the super extra experience really mostly helps in really big picture scenarios like designing systems or in edge cases
Avatar
Avatar
Ewan
it will look very very different in like 25 yrs when it is as old as cpp
are u 25 years old?
Avatar
18
13:59
sweet
Avatar
with 18 you know nothing with 30 you still know nothing
Avatar
u can be the biggest cpp expert, you still make mistakes. awesome human brain
Avatar
depends if u sitting 24/7 into ur room
Avatar
Avatar
Cøke
depends if u sitting 24/7 into ur room
nope, independent of that
Avatar
well u can obsess over things and get 99.99th percentile knowledge but then you lack in other ways
Avatar
Avatar
Ewan
justatest
3 yo when i started the game 😮
Avatar
you will never know enough
Avatar
Avatar
Cøke
3 yo when i started the game 😮
crazy
Avatar
xDD
14:00
coke be like 50
Avatar
რილია 2023-12-10 14:00:43Z
now its scary
Avatar
im young
14:00
28
Avatar
granny
Avatar
why are there 2 testing roles and why do u have both
Avatar
apparently it's when u sub to a map testing thread
14:01
the other Tester role is the real one
14:01
the orange name one
14:02
try react there
14:03
forbidden
14:03
14:03
😄
14:03
not even that is working
14:03
we wait long time for the new roles
14:03
but sadly nobody care
14:03
but whatever
Avatar
never realized map info channel had so many threads
14:04
i pity whoever wrote all that
14:04
read by a total of 2 ppl
Avatar
u would be impressed how much channels the dc have
14:04
😄
Avatar
its like 80% of them just testing
14:04
maybe 85
Avatar
#admin
shush 1
Avatar
hope its done in near future without my help
Avatar
Avatar
Ryozuki
I would make the bold claim that no one here mastered c++
Probably true. I'd guess not even close
Avatar
Avatar
Ryozuki
I would make the bold claim that no one here mastered c++
depends what you call mastering
14:16
mastery
Avatar
nice truism
14:16
i feel like we've made a huge step forward to the definition of mastery (edited)
Avatar
Have you ever stored a type in a container?
14:17
and what do you mean "a type", like just storing int, float rather than values ?
Avatar
Avatar
Chairn
who ?
Anyone here
Avatar
Avatar
Chairn
and what do you mean "a type", like just storing int, float rather than values ?
Yes
Avatar
@Learath2 this doesn't even make sense. containers store ›things‹ that have an address, types do not even have a size
Avatar
Avatar
Fussel
@Learath2 this doesn't even make sense. containers store ›things‹ that have an address, types do not even have a size
This is why Ryozuki's claim of there being no one that has mastered C++ holds some water 😄
Avatar
you can store type_ids in a container, if you mean something like a vector of types, this is a tuple
Avatar
Avatar
Learath2
This is why Ryozuki's claim of there being no one that has mastered C++ holds some water 😄
tbf if you mean with mastering knowing everything the language offers. then you cannot master some languages 😄
14:20
proc macros in rust basically mean infinite potential
Avatar
metaprogramming makes wide use of this stuff, and since c++20 it became usable ^^
Avatar
I would like to welcome you to the world of boost::hana where types and objects are seemingly interchangeable
14:21
Completely powered by template blackmagic that none of us mere mortals can even hope to grasp
Avatar
Avatar
Learath2
Have you ever stored a type in a container?
i did in rust kinda iirc
Avatar
I never quite found a use for it tbf. But the mere possibility and the fact that it's just powered by normal templates is so impressive
Avatar
well idk what u mean exactly
Avatar
Avatar
Learath2
I never quite found a use for it tbf. But the mere possibility and the fact that it's just powered by normal templates is so impressive
you can easily store types in tuples
Avatar
Avatar
Learath2
Have you ever stored a type in a container?
only variadic templates
14:27
parameter pack
Avatar
Avatar
Fussel
you can easily store types in tuples
Yet you told me the mere concept didn't make sense. What gives?
Avatar
container means sth. like vector, map, list (edited)
Avatar
Hana has those too worry not
14:29
It's truly a different way of thinking about what a container can contain
Avatar
Avatar
Ewan
parameter pack
These are also quite full of syntax many people haven't ever experienced. Especially when you add C++17 fold expressions into the mix
Avatar
fold expressions are the bomb
Avatar
is this storing types or entirely different? xd
14:31
i want to understand what does it mean to store a type itself with no value
Avatar
@Learath2 I do know Hana, and every page of its documentiation I read just posed me the question »For what is this of use?«
Avatar
Avatar
Ryozuki
is this storing types or entirely different? xd
This is kinda cheating by using a typeid but yes, that's kinda the idea. Now imagine you could truly just have the types in there
Avatar
well its a rust thing
14:32
every type has a typeid
Avatar
clearly a ›rust thing‹ since type_id doesn't exist in c++
Avatar
Avatar
Fussel
@Learath2 I do know Hana, and every page of its documentiation I read just posed me the question »For what is this of use?«
That I agree with. If someone tells me they've mastered C++ I'd expect them to know all the template blackmagic too
Avatar
neither does std::variant that makes use of it
Avatar
@Fussel do u claim to be a cpp master?
14:36
name all the possible ubs
14:36
poggers2
Avatar
Avatar
Ryozuki
name all the possible ubs
Trolldespair
14:36
Name all women kinda question
Avatar
people have tried listing them but never finished
14:36
cuz you know
Avatar
i was happy with c++ cuz i didnt even know ub existed, now i treat c++ like a minefield assuminf im always doing something bad
Avatar
@Learath2 I don't like the idea of ›mastered‹ at all, but I wrote a whole template driven language parser framework that automatically generates the associated EBNF of that grammar as std::string, I did this on my smartphone and I did at completly offline. It wasn't that difficult, thanks to C++20
Avatar
okay well that’s cool and all but not at all what we are talking about
Avatar
i feel u would need a lot more knowledge for example to make a kernel
14:38
it will require u to know all about memory and how cpp handles around it
14:38
also the possible hidden allocstions whathever
Avatar
kernel is most likely something u need language agnostic expertise for
this 1
Avatar
but also language knowledge definitly
14:38
linus hates cpp
Avatar
that guy hates a lot of things
Avatar
Avatar
Fussel
@Learath2 I don't like the idea of ›mastered‹ at all, but I wrote a whole template driven language parser framework that automatically generates the associated EBNF of that grammar as std::string, I did this on my smartphone and I did at completly offline. It wasn't that difficult, thanks to C++20
Well it is a loosely defined concept
Avatar
it requires u to know what the code does under the hood as in what it compiles to etc
14:39
u definitely can become a python master
14:39
but ill look at u weirdly if u tell me ur a cpp master
Avatar
i wouldn’t call knowing when memory is and isn’t allocated near mastery of the language
14:40
it’s just using it
14:40
one of the parts
Avatar
no u need to know lower level details when ur close to the machine
Avatar
Avatar
Ryozuki
u definitely can become a python master
You can also become a C master. The smaller the language or the more well behaved the language the more possible it is
Avatar
as far as optimizations go if you want something a particular way then you need to be explicit because optimizations change over time and are not always guaranteed
Avatar
Avatar
Learath2
You can also become a C master. The smaller the language or the more well behaved the language the more possible it is
yes, altho c has lots of ub too
Avatar
this is why most pedantic cpp ppl will have u use constexpr noexcept etc
Avatar
Avatar
Ryozuki
yes, altho c has lots of ub too
But the set of things that is defined to begin with is small, so maybe there is hope
Avatar
Avatar
Ewan
this is why most pedantic cpp ppl will have u use constexpr noexcept etc
yes u can be pedantic but the door is open and easier to mix and just go and use old cpp
Avatar
C++ standard is like 10 times the size, and it has sooo many moving parts
Avatar
also unique ptr is not zero cost 🤓 but rust box is
Avatar
its true
14:43
we had this discussion already
Avatar
you should not have to rely on smart pointers usually
Avatar
check backlog
Avatar
It do be true, the overhead is very small but yeah
Avatar
Avatar
Ryozuki
also unique ptr is not zero cost 🤓 but rust box is
could you name these ›costs‹?
Avatar
Avatar
Fussel
could you name these ›costs‹?
You can scroll up like a year or so, we had a nice discussion about it here
14:44
move constructor moves code
14:44
runs
Avatar
no way it was a year
14:45
3 months maybe
Avatar
Avatar
Learath2
https://youtu.be/rHIkrotSwcc?si=VVCUnfIhiQQkBR8w I think we also talked about this cppcon talk
rust box is tho brownbear
Avatar
I was studying so much for the last year that time is diluted for me
Avatar
Avatar
Ryozuki
move constructor moves code
new_pointer = old_pointer, and where is the problem?
Avatar
That runs the move constructor. Which is not equivalent to assigning a pointer to another which is just a MOV
14:49
Thus the abstraction is not 0 cost
Avatar
move ctor should also usually be avoided… code moves and object lifetimes in general are so often over complicated in cpp that some features just ought to be avoided for most cases
14:51
they are a huge bug source
Avatar
There is also exception overhead but I think when we were discussing it we were talking about even without exceptions
Avatar
why am i up at 8 am
Avatar
another proof of no mastery
14:54
so many subtle things
Avatar
Avatar
Ewan
why am i up at 8 am
Are you perhaps a responsible adult now?
Avatar
THE OPPOSITE
Avatar
Avatar
Ewan
move ctor should also usually be avoided… code moves and object lifetimes in general are so often over complicated in cpp that some features just ought to be avoided for most cases
a solution is to use rust
Avatar
u say it like a) it’s just that simple and b) most new projects requiring C++’s speed and low level functionality aren’t already using rust instead
14:57
try applying the “just use rust ideology” to inherited code
Avatar
Avatar
Ewan
try applying the “just use rust ideology” to inherited code
Ryozuki would totally say they should migrate too 😄
Avatar
he’d be the poor sucker porting all the code then
Avatar
Avatar
Learath2
That runs the move constructor. Which is not equivalent to assigning a pointer to another which is just a MOV
›just a MOV‹ would be wrong behaviour. the target has to correctly destruct it's current content (delete)
15:15
← again afk
Avatar
Show localized text "Press a key…" instead of "???" while waiting for a key to be pressed. Render button with green background while waiting for a key to be pressed. Inline unnecessary DoButton_KeySelect function. Fix names of static variables. Screenshots:
  • Before:
!old
  • After:
!new ## Checklist...
Avatar
რილია 2023-12-10 15:18:47Z
im learning c++ for two days now, lets look at the ddnet source again (edited)
Avatar
Avatar
Fussel
›just a MOV‹ would be wrong behaviour. the target has to correctly destruct it's current content (delete)
It's more expensive than just a mov + a destruct too, I just assumed it was an already clean pointer. Whatever, just watch the video if you are curious
Avatar
k sry, didn't want to bother you
Avatar
Avatar
GitHub
Click to see attachment 🖼️
რილია 2023-12-10 15:24:33Z
cooool
Avatar
Avatar
Ewan
he’d be the poor sucker porting all the code then
რილია 2023-12-10 15:30:07Z
what editor do you use for changing the code ?
Avatar
for ddnet?
f3 1
15:30
Qt Creator
Avatar
can i open ddnet if i make a link on website with href="ddnet://server_path"?
Avatar
it doesnt work for me :D
Avatar
how to fix this? 🙂
15:41
fix it
Avatar
Avatar
MilkeeyCat
it doesnt work for me :D
works on my machine!
Avatar
Avatar
wook
works on my machine!
good to know
Avatar
Avatar
wook
works on my machine!
Do u use steam version or self compiled ddnet?
Avatar
o yea u will need steam spwxificiciciicc url iirc
15:59
dont know if this actually helps or not
Avatar
I don't have . desktop in applications directory
16:03
Why doesnt it add this file by default?
Avatar
🤷‍♀️ is it working now?
Avatar
I didn't add file yet, it's tea time
Avatar
don't see an overhead
Avatar
I mean you are doing nothing with it, I'm not exactly surprised
17:01
https://godbolt.org/z/xKr9Yr9fd here is the construction demonstrated within the talk, as you can see t2 clearly involves 2 extra indirect reads
void bar(int p) noexcept; void baz(int *p); void bup(std::unique_ptr<int> &&p) noexcept; void t1(int *p) { if(p) { bar(p); p = 1; } baz(p); } void t2(std::unique_ptr<int> &&p) { if(p) { bar(p.get()); *p = 1; } bup(std::move(p)); }
Avatar
on newest beta or earlier if u append dm8 to dm9 (or other way around) a lot of bugs but also with other maps like winter tiles !screenshot_2023-12-10_18-03-10
Avatar
And you can try the same with passing by value, you'll get another different piece of overhead, it's not that every case has unoptimizable overhead, especially with LTO
Avatar
for me this started working only after update-desktop-database ~/.local/share/applications command
Avatar
Avatar
MilkeeyCat
Why doesnt it add this file by default?
self compiled or from pkg mgr?
Avatar
Avatar
Ewan
self compiled or from pkg mgr?
self compiled
Avatar
then ofc the desktop file won’t be there
17:35
the game isn’t installed
Avatar
რილია 2023-12-10 17:53:42Z
CGameControllerDDRace::~CGameControllerDDRace() = default;
17:53
what is the purpose of making a explicit destructor when the compiler make it by default. and what is the "default" keyword doing here ? (edited)
Avatar
just for clarity
Avatar
iirc u need to when class is virtual iirc
Avatar
რილია 2023-12-10 17:55:05Z
or you make it special with default keyword poggers2
Avatar
Avatar
Ryozuki
iirc u need to when class is virtual iirc
ok idk i forgot c++ imagine doing oop stuff when u can have rust
Avatar
Avatar
Ryozuki
ok idk i forgot c++ imagine doing oop stuff when u can have rust
რილია 2023-12-10 17:56:35Z
i thought you are a C guy
Avatar
im the rust guy
17:56
also C doesnt have classes
Avatar
რილია 2023-12-10 17:57:10Z
i love c, it's simple feelsbadman
Avatar
Avatar
რილია
what is the purpose of making a explicit destructor when the compiler make it by default. and what is the "default" keyword doing here ? (edited)
Avatar
რილია 2023-12-10 17:57:33Z
classes make my head explode
Avatar
it is good to be explicit about your dtors. especially when you have a trivially destructible or movable class and you need to specify a virtual dtor, having a = default or using :: is good for clarity
Avatar
virtual dtors are such a massive trap for beginners
Avatar
რილია 2023-12-10 18:19:16Z
i don't know anything about virtual and dtors
18:19
CGameControllerDDRace::CGameControllerDDRace(class CGameContext *pGameServer) : IGameController(pGameServer)
Avatar
Avatar
რილია
CGameControllerDDRace::CGameControllerDDRace(class CGameContext *pGameServer) : IGameController(pGameServer)
რილია 2023-12-10 18:20:45Z
and what is this, is this a constructor that inherit from a class ?
18:20
brah
Avatar
the statement after the : is explicitly initializing the parent class instance alongside it
18:21
1b03637 Remove unused color argument, use ColorRGBA instead of vec4 - Robyt3 83af5e4 Improve key reader button - Robyt3 079c462 Merge pull request #7624 from Robyt3/Menus-KeyReader-Improvement - def-
Avatar
basically like calling IGameController::IGameController(pGameServer); as the first statement in the ctor
18:22
you need to do this when the parent class marks its ctor as explicit
Avatar
Avatar
Ewan
you need to do this when the parent class marks its ctor as explicit
რილია 2023-12-10 18:23:19Z
and i need to go learn what explicit will do in classes
Avatar
c++ grammar is really stupid and convoluted
18:24
keywords mean different things based on where you use them
18:24
basically just write code until you understand stuff
Avatar
or #1 most ignored advice of all time, just pick up a book 🙃
😃 1
Avatar
რილია 2023-12-10 18:32:31Z
to think of it that c++ made a keyword "explicit" for just constructors in classes for a shitty reason 😂
Avatar
Avatar
რილია
to think of it that c++ made a keyword "explicit" for just constructors in classes for a shitty reason 😂
რილია 2023-12-10 18:33:14Z
this is stupid 😂
Avatar
It can also be used for conversion functions
Avatar
რილია 2023-12-10 18:35:48Z
how much bigger the ddnet code would be if you just used C language ?
18:36
x3 ?
Avatar
No idea
Avatar
Avatar
Learath2
or #1 most ignored advice of all time, just pick up a book 🙃
true but it doesn’t work for some people
18:40
adhd ppl
Avatar
Avatar
რილია
how much bigger the ddnet code would be if you just used C language ?
probably not too much bigger it would just be structured super differently
Avatar
I have the attention span of a goldfish, if I can make it work so can you 😄
Avatar
lol maybe
Avatar
but yeah, not everyone learns well from books, but there is no harm in trying
18:42
they are far far far more efficient than you trying to pattern match in the spaghetti we call ddnet full of bad patterns and bad practices
18:43
unfortunately i have not the attention span
18:43
American public school taught my to lie and cheat
Avatar
Avatar
Learath2
they are far far far more efficient than you trying to pattern match in the spaghetti we call ddnet full of bad patterns and bad practices
რილია 2023-12-10 18:43:44Z
i will add my spaghetti code into ddnet eventually troll
18:45
after my first moded block sv i like to make a ddnet + terraria thing
18:45
teecraft
Avatar
Avatar
რილია
teecraft
რილია 2023-12-10 18:46:47Z
as a client btw
Avatar
chillerdragon: whats the video upload size limit on your site? (edited)
Avatar
5b7c064 Reset history entry along with chat input when using Escape - archimede67 733b46d Merge pull request #7613 from archimede67/fix-chat-input-history - Robyt3
19:08
there are no uploads at all so i guess 0? xd
19:08
@Teero why u askin
Avatar
ChillerDragon: awesome project! glad that twmap helps you :)
19:51
wish i had this when i was running a windows vm on a linux host
20:17
can anyone send me ddnet 17.4
20:17
website downloads dont work for me anymore
Avatar
Avatar
Shyzo
website downloads dont work for me anymore
20:18
Do you get an error message?
Avatar
it just doesnt load. and then it says download failed. check connection. or smth like that
Avatar
where are you
Avatar
link doesnt work for me xD
Avatar
xd
20:19
restart your browser
Avatar
tried a different browser. still doesnt work
20:20
its a problem on my side?
Avatar
The links work for me
Avatar
yeah
20:20
replace casing
Avatar
Try rebooting the system
20:20
Restart the router
Avatar
thats so weird
20:21
will do, ty
Avatar
why do default binds have numpad bound to eye emotes
Avatar
because someone coded it like that
Avatar
i don’t see why it doesn’t make sense anyway
Avatar
Avatar
Ewan
i doubt this applies to anyone here but here's a cool ass post https://leduccc.medium.com/improving-the-performance-of-a-windows-10-guest-on-qemu-a5b3f54d9cf5
this toolset is sick for someone not wanting to use a patched live USB. in this case it's fickle to get a non-disk image to be seen as bootable by qemu (vhd/x) so i want a patched iso https://github.com/AveYo/MediaCreationTool.bat
20:46
Quick_11_iso_esd_wim_TPM_toggle.bat
20:48
send me a file.... megaupload
Avatar
Fixes #6906.

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
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#...
Avatar
Hello ddnet admins & devs So me and a bunch of other people were just wondering about what happened to the account system and if there will ever be one to potentially come. It would be nice to know about the problems and plans surrounding this topic. Especially as it seems like the whole community wants something like this implemented (i. e. the survey that was done in the past in ⁠announcements ). Probably the whole community would like to know about what's actually going on there so that perhaps solutions could be found. Be it by funding and therefore paying the devs if that is the problem or by anything else (depending on how this whole thing turns out), I think many people would be glad to help. Best regards
f3 15
Exported 396 message(s)