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-15 00:00:00Z and 2023-04-16 00:00:00Z
Avatar
Avatar
murpi
Do routers typically have UPnP enabled by default nowadays?
I don't think so
08:18
they do
Avatar
Avatar
Ryozuki
ye
it highly depends on which provider
Avatar
i dont use provider routers
08:25
tthey bad
Avatar
Avatar
Ryozuki
i dont use provider routers
I mean ISP
08:33
ah u use a custom router
Avatar
@ReiTW the one they gave me i think went OOM when i torrented, cuz torrent likes to open 200 connections and it couldnt handle it xd
08:34
i bought another and it works charm
Avatar
usually I fix this by not doing torrent
Avatar
lol thats not an option
08:34
torrent or any p2p are awesome
08:34
also i download anime via torrent
08:35
1gb per episode
08:35
max quality
Avatar
i buy legal
08:35
nobo
Avatar
the ones i watch arent available
Avatar
I never torrent, better, I buy
Avatar
your hentai xD
Avatar
i dont watch hentai rly xd
Avatar
only thing I've downloaded was Hokuto No Ken
Avatar
well anyway, torent is really risky for illegal stuff
Avatar
chillerdragon BOT 2023-04-15 08:36:12Z
Classic
Avatar
also torrent can be used for legal things
Avatar
u always also upload the content
Avatar
arch linux offers iso download via torrent, and its way faster
Avatar
classic wut
Avatar
i wish all distros offered that
08:36
cuz their dl servers are always slow
08:36
i can download the arch iso at 70mb/s
Avatar
;~; 70mb/s wtf
08:37
germany just invented the stone axe
Avatar
steam also reaches that speed for me xd
Avatar
My favorite internet service provider, init7, is rolling out faster speeds with their infrastructure upgrade. Last week, the point of presence (POP) that my apartment’s fiber connection terminates in was upgraded, so now I am enjoying a 25 Gbit/s fiber internet connection!
Avatar
I reach 96Mb/s with direct download on arch
08:38
i have 600/600 contract but i could get the 1gb one xd
08:39
oh 25gbit now
Avatar
Avatar
deen
tbh it's useless af
Avatar
Avatar
Ryozuki
i have 600/600 contract but i could get the 1gb one xd
the funny thing is, i especially want ur upload
08:40
thats the biggest shit about DSL 250mbits down.. not good but ok 40mbits up
08:40
like wtf
08:40
why u dont have fiber
Avatar
bcs germany is in the stone age of internet
Avatar
Avatar
Jupstar ✪
thats the biggest shit about DSL 250mbits down.. not good but ok 40mbits up
I don't think that's a technical limitation, just what the ISPs set
Avatar
in spain, its odd to have dsl now
08:41
not the other way around
Avatar
because most people care about high number for down
Avatar
here in france we can have 10gbps but shared
Avatar
yeah but this is such a german problem
Avatar
Avatar
Jupstar ✪
yeah but this is such a german problem
how much do u pay for that
Avatar
Avatar
ReiTW
how much do u pay for that
too much xD
08:42
let me see
Avatar
In terms of fiber optic penetration in homes, Spain has the most in Europe, with more than 70%, only behind Belarus. With 60% and more, there are Sweden and Portugal, while Romania and France touched 50% in 2021, as seen in the graph below.
Avatar
54,95€ apparently
Avatar
Telefónica presents its proposal for a Digital Deal, which aims to be the roadmap for the digitalisation of SMEs, the self-employed and public authorities
Avatar
according to telekom website
Avatar
Avatar
Jupstar ✪
54,95€ apparently
lmao I pay 49€ for 1gb/s down & 400mbps up
Avatar
Avatar
Jupstar ✪
54,95€ apparently
lol
Avatar
they all greedy and bad in ger xd
Avatar
high speed internet is the basic of modern society
08:43
its such a game changer
Avatar
yeah
08:44
i am surrounded by old ppl xD
Avatar
Avatar
Jupstar ✪
54,95€ apparently
If you switch every 2 years between Vodafone and Deutsche Telekom, you should pay around 25 € / month average
Avatar
Avatar
deen
If you switch every 2 years between Vodafone and Deutsche Telekom, you should pay around 25 € / month average
yep, but vodafone has no dsl rights here
08:44
so i am forced to the monopolist
08:44
and i defs dont buy cable internet again
Avatar
I thought Telekom was forced to open their DSL to all competitors
08:45
This is probably Vodafone who don't want to sell you DSL but give you Cable instead?
Avatar
i dunno, i can buy 16mbits from the city
Avatar
Avatar
deen
This is probably Vodafone who don't want to sell you DSL but give you Cable instead?
possible, or they are speed limited? anyway, vodafones cable internet sucks so hard xD
08:46
ping jitter of 10 pre programmed
Avatar
Existing customers are always treated like dirt. Sometimes it helps to call them and say you'll cancel the contract, and they'll reduce price by 50% (and bind you in a new contract for 2 years again)
Avatar
yep
Avatar
time to move to bulgaria where i get 1gbit for 8€ / month xD
Avatar
Avatar
Jupstar ✪
possible, or they are speed limited? anyway, vodafones cable internet sucks so hard xD
It might depend on the age of the telephone cable, but everywhere I lived all DSL providers were possible
Avatar
~1980 probably
08:48
we had make the router as close to the street as possible to even get 250mbits xD
08:52
well i really dunno why they dont have DSL here
08:52
maybe i should call them and ask
Avatar
are u sure they even offer ftth
Avatar
i'd be happy with DSL for now too ^^
08:53
FTTH wont come here soon
08:53
except the city will do it or a compatitor
08:53
but telekom wont do it
Avatar
damn bad
08:54
frozen
Avatar
lmao and the telekom ppl that scam all ppl here she ringed, and said they sell fiber internet (but they obv mean fiber to the cluster, not FTTH) for me this was clear.. but defs scam, bcs in germany we usually only say fiber internet when we mean FTTH
Avatar
well everywhere xd
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
google's speedtest is bad lol
08:57
it changes a lot by which sv it pickss xd
Avatar
with speedtest.net I reach the max
08:57
yea
08:58
ah I don't have 400mbps but 300 up
08:58
Avatar
internet wars
08:59
@snail we need ur 1gb
Avatar
I could have cheated lmao
ReiTroll 2
08:59
BAN 4
Ban 1
ban 1
08:59
not editd
09:00
just our tw server
Avatar
weird to see noby here
09:00
NOBYISBOT
Avatar
sometimes I highly doubt he's american
09:01
he's awake the night, he sleeps the day
Avatar
@noby how is ur gf dealer
Avatar
its friday night
Avatar
i just got home at 330am
Avatar
Avatar
ReiTW
he's awake the night, he sleeps the day
i actually have a sleep cyle now
Avatar
Avatar
Ryozuki
@noby how is ur gf dealer
those are 2 dif ppl
Avatar
Avatar
noby
i actually have a sleep cyle now
hope it won't affect ur human obfuscation skill issou
Avatar
no dw it wont
Avatar
Avatar
Ryozuki
@snail we need ur 1gb
well I moved city
Avatar
implying i only have 1 dealer
Avatar
Avatar
snail
well I moved city
big f
09:02
u went to countryside
09:03
its good but high ping
09:03
justatest
Avatar
Avatar
Ryozuki
weird to see noby here
no u, ive been busy lately pepe
Avatar
nice i even get scamed rn xd
Avatar
feels bad to be deutsch
Avatar
Avatar
Jupstar ✪
nice i even get scamed rn xd
u should consider changing country ReiTroll
Avatar
or move to a big city
09:04
they usually have FTTH more often
09:04
or to a village, they also have it more often xD
Avatar
do u live in a cave
Avatar
kind of
Avatar
only good thing is, houses arent so expensive here while still being a city
09:06
leave the internet
09:06
join the wired
Avatar
xd
Avatar
Avatar
snail
justatest
already seen that logo somewhere
Avatar
u mean pfp?
Avatar
probably
09:07
stole it off google
09:07
kek
Avatar
@snail how does it feel to retire at 67
09:07
troll
Avatar
lmao we'll just continue to fuck up things in france
FEELSBAGUETTEMAN 2
09:07
till they remove it
Avatar
next president will remove it
09:08
monkalaugh
Avatar
Avatar
snail
next president will remove it
RIP rejected was sad af, but they did a new request this thursday
Avatar
they removed the special treatment for cops
09:09
kek
Avatar
isnt that from the football club or is chicken the general animal logo for france xd
Avatar
could have been alot of things, but checkd & it's only a design by a random
Avatar
Avatar
Jupstar ✪
isnt that from the football club or is chicken the general animal logo for france xd
Avatar
The Gallic rooster (French: le coq gaulois) is a national symbol of France as a nation, as opposed to Marianne representing France as a state and its values: the Republic. The rooster is also the symbol of the Wallonia region and the French Community of Belgium.
🏳️ 1
09:13
lel
09:14
yeah ur link is better
Avatar
ALL HAIL CHICKEN
Avatar
chicken is good
09:14
good symbol, and good food
Avatar
Avatar
Jupstar ✪
ALL HAIL CHICKEN
you mean cock🐔 troll
Avatar
here my awesome gimp skills created this for our national french tw squad
Avatar
make the tee blue white red greenthing (edited)
Avatar
ChillerDragon BOT 2023-04-15 09:42:05Z
when i call to clamp in the ddnet code base where is it defined?
09:42
aaa
09:42
``using std::clamp;
09:42
in math.h
09:42
i see
09:42
kthxby
Avatar
Avatar
Jupstar ✪
here my awesome gimp skills created this for our national french tw squad
poggers2
Avatar
The calculation of m_LongestLineWidth was adjusted in bf1e757581e7b37c7de493ae48b074ccb6a9eff5 so it's really the width of the line and not the X position of the end of the line. This caused the background rects of chat messages to be rendered incorrectly. Screenshots:
Avatar
Waste some clock cycles on zero lines code removed :D Downstream client maintainers will love it tho

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
  • [x] Considered possible null pointers and out of bounds array indexing
  • [x] Changed no physics that affect existing maps
  • [ ] T...
Avatar
c7cea0a Fix incorrect chat background rect width calculation - Robyt3 60441b4 Merge #6514 - bors[bot]
Avatar
ChillerDragon BOT 2023-04-15 12:19:24Z
@moderator connect 45.141.57.22:8317 pls
Avatar
ChillerDragon BOT 2023-04-15 12:29:12Z
helo?
Avatar
halo please use #reports :^)
Avatar
ChillerDragon BOT 2023-04-15 12:36:29Z
how to access reports?
Avatar
left mouse button
Avatar
ChillerDragon BOT 2023-04-15 12:38:24Z
spawnblocker left als solved
12:38
irc harrasment is a serious offense jopstr
Avatar
tru
Avatar
Avatar
Jupstar ✪
here my awesome gimp skills created this for our national french tw squad
What's up with the weird blue square and the line?
Avatar
Avatar
Teero
What's up with the weird blue square and the line?
that's my absolutely perfect gimp skills in action
Avatar
ChillerDragon BOT 2023-04-15 12:56:22Z
can one apply for moderator w out discord these days?
Avatar
add matrix bridge
Avatar
ChillerDragon BOT 2023-04-15 13:01:41Z
oh forum is still a thin? nice
Avatar
ChillerDragon are you the moon man
Avatar
chillerdragon BOT 2023-04-15 13:12:20Z
Wot
Avatar
You seem to have no clue what is going on around DDNet
13:16
Ray
Avatar
chiller been around since old ages
13:26
but he is in his cave
Avatar
The Hobbit: The Desolation of ChillerDragon
Avatar
ChillerDragon BOT 2023-04-15 13:44:36Z
spon blioka back on multeasy
13:45
@default ah cmn just because i thought the forum was dead? last time i asked if i can submit maps w out discord the answer was no and i was told everything moved from forum to discord
Avatar
Jupstar ✪ BOT 2023-04-15 13:59:24Z
the forum is dead lets be honest xd
13:59
just because 1 person post stuff once per week xD
13:59
its not active
Avatar
ChillerDragon BOT 2023-04-15 14:09:29Z
multeasymap
14:09
no mod online all day? :c
Avatar
u didnt even properly ping moderators
14:16
so they will never read it
Avatar
ddnet oynarken yanlısıkla çözünürlük degistirdim ve ddnet açılınca karanlık ekran ayarları düzeltmemiyorum fabrika ayarlarına nasıl çeviricem ddnetle kafayı bozdum yardım edin lütfen I accidentally changed the resolution while playing ddnet and when ddnet is opened, I can't fix the dark screen settings
14:19
yardım edin
14:19
plase
Avatar
ChillerDragon BOT 2023-04-15 14:20:47Z
he left
14:20
i did @moderator
Avatar
it doesn't ping
Avatar
I got pinged
Avatar
doesnt show as highlighted on desktop application
Avatar
also hi everyone
Avatar
Avatar
TsFreddie
also hi everyone
wb
14:29
where u been ;~;
Avatar
busy
Avatar
wtf, the game is really weird sometimes... cant show it in the video, but i was in the UI voting a map... suddenly it does this in the background xDD
Avatar
Avatar
ChillerDragon
@default ah cmn just because i thought the forum was dead? last time i asked if i can submit maps w out discord the answer was no and i was told everything moved from forum to discord
Uploading a map is different from applying for a mod
15:12
Moved to #📬submit-maps
15:13
maybe in the future they have a apply-for-mod channel where they send in a google forms link. whenever they need more. (edited)
Avatar
@RoleMentions from the matrix bridge don't work here
15:16
although...
Avatar
ChillerDragon BOT 2023-04-15 15:16:25Z
dicrimination
15:16
how to get rid of spawnblockers without discord then?
Avatar
@ChillerDragon try <@&252523225810993153>
Avatar
ChillerDragon BOT 2023-04-15 15:17:16Z
@Moderator
pingpepe 7
15:17
That worked
Avatar
ChillerDragon BOT 2023-04-15 15:17:24Z
hoh
15:17
yes?
Avatar
ChillerDragon BOT 2023-04-15 15:17:31Z
ok nica ima save that
15:17
thanks
Avatar
cool
Avatar
ChillerDragon BOT 2023-04-15 15:17:37Z
sorri mods
ping 2
15:17
:justatest:
Avatar
now i can see more chillerdragons
Avatar
@TsFreddie yo are you at new work or what did i miss bro
Avatar
Avatar
Jupstar ✪
@TsFreddie yo are you at new work or what did i miss bro
maybe, i forgot how updated this channel were
15:18
i work at here now https://netvios.163.com/
Avatar
looks cool xd
Avatar
ye. but this is still a pretty small company with unjustified expectations for their projects.
Avatar
Is that a game?
15:20
VR Game?
Avatar
but i'm getting paid so it's a million times better than the last company i worked for lol
15:21
they are a VR game publisher for the chinese market.
Avatar
Avatar
murpi
That worked
Wait, did that ping?
Avatar
I got pinged
Avatar
Avatar
Learath2
Wait, did that ping?
Yes
15:21
Ah, a game publisher
Avatar
they do want to make in-house titles so that's why I'm hired
Avatar
Ohnoes
Avatar
What's your role? network again?
Avatar
full stack game development i guess?
🥹 1
Avatar
Avatar
ChillerDragon
@Moderator
poggers2
Avatar
same as the last one tbh
15:22
they just hire like one or two guys and expect to see a full game in 5 months
Avatar
The fact that people can ping roles from matrix sounds concerning
Avatar
#deleted-channel
Avatar
ban abusers maybe
Avatar
Avatar
murpi
#deleted-channel
🧐
Avatar
ChillerDragon BOT 2023-04-15 15:23:18Z
everyone incoming axaxax
Avatar
Avatar
TsFreddie
same as the last one tbh
ah thought u like network designer, bcs u always shared prediction code between multiple clients 😄
Avatar
ye cuz that's the core stuff the game needs
15:24
this company still wants multiplayer games, so i guess it really didn't change a whole lot for me
Avatar
Avatar
TsFreddie
they just hire like one or two guys and expect to see a full game in 5 months
i hope they expect hypercasual quest game from 90s greenthing
Avatar
Avatar
TsFreddie
this company still wants multiplayer games, so i guess it really didn't change a whole lot for me
but are you developing the game, or the engine or both ? 😄
Avatar
gotta love companies with 0 scaffolding to just hire someone and expect to ship a game in less than a year
15:25
we use unity (yes, again)
Avatar
Avatar
TsFreddie
we use unity (yes, again)
ah ok 😄
Avatar
Avatar
TsFreddie
gotta love companies with 0 scaffolding to just hire someone and expect to ship a game in less than a year
rip :/ at least u are through that time now
Avatar
Oh no, another game platform
Avatar
lol the new company still have no accumulated code base tho so I'm building stuff from the ground up again
Avatar
i'm always impressed how many game studios are out there 😄
Avatar
plus VR game is not very well established so I got more stuff to build this time around lol
Avatar
are you at least considered senior now hehe
Avatar
junior title and salary with senior job probably
Avatar
lmao, even tho you outclass them all
Avatar
we do have a technical leader, but he doesn't code that often, just a guy steering everyone. and I'm one of the only two who actually develop games in the companies. so... yeah, i'm probably at the top percentage in terms of experiences and skills lol (edited)
15:32
I'm expecting to switch jobs again one or two years down the line
Avatar
ChillerDragon BOT 2023-04-15 15:33:47Z
!help
15:33
!ping
15:33
!mods
Avatar
chillerbot BOT 2023-04-15 15:33:54Z
@modsersators
Avatar
ChillerDragon BOT 2023-04-15 15:33:57Z
ok nice
Avatar
ok
Avatar
were you paid upfront?
Avatar
wdym upfront
Avatar
like you get x money to do project in x months
15:49
or still monthly
Avatar
nah, I'm an employee, so I just get salary
Avatar
if he got money at all
Avatar
ChillerDragon BOT 2023-04-15 15:50:10Z
!help
Avatar
Hello this is your personal assistence, how can i help?
Avatar
ChillerDragon BOT 2023-04-15 15:50:37Z
wowow
Avatar
Write a poem about teeworlds please
Avatar
In Teeworlds, a world of colors bright, Where tiny creatures battle and fight, The stage is set for endless fun, With guns and grenades, it's never done. The maps are varied, the modes diverse, From capture the flag to deathmatch fierce, Each player brings their unique style, With jumps and dodges, they cover miles. The graphics may be simple, but the gameplay's deep, As teams strategize and their foes they sweep, The tension builds with every shot, As players vie for that winning spot. With clans and tournaments, the community thrives, As players push their skills to new heights, And in this world of tees and balls, Friendships are formed, and rivalries dissolved. So if you're looking for a game to play, Where skill and teamwork are on full display, Join the Teeworlds community today, And experience the joy of fragging your way.
Avatar
actually a nice poem lel
Avatar
ChillerDragon BOT 2023-04-15 15:53:46Z
!help
Avatar
chillerbot BOT 2023-04-15 15:53:46Z
https://github.com/ChillerDragon/ddnet-bot-irc eth0=192.168.178.22 commands: !mods
irc bot for ddnet#developer. Contribute to ChillerDragon/ddnet-bot-irc development by creating an account on GitHub.
Avatar
troll
Avatar
ChillerDragon BOT 2023-04-15 15:54:44Z
jopstr pro promt engineer
Avatar
More preparation to port lineinput and IME from upstream.

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...
Avatar
oh my god robyt3 is still at it
Avatar
Avatar
TsFreddie
oh my god robyt3 is still at it
he's a beast xd
15:56
ChillerDragores: do i get it right. you use IRC because u dont want to use JavaScript matrix, just to use a JavaScript plugin in your IRC?
Avatar
it's been like two years since the IME stuff in teeworlds i think?
Avatar
minimum 😄
15:57
we need more asian contributors
Avatar
sorry i've been captured by money
Avatar
Money money money, must be funny
Avatar
i open up my editor in non work hours, then i that think "do i rly wanna be coding rn in my free time or play games"
15:58
and close the editor
15:58
about 5 times a day
Avatar
we all know that feeling bro
f3 1
Avatar
ChillerDragon BOT 2023-04-15 15:59:58Z
aw shit jopstr
16:00
nah
Avatar
Avatar
Ryozuki
i open up my editor in non work hours, then i that think "do i rly wanna be coding rn in my free time or play games"
ha, I really don't know what games to play so I don't have that problem
Avatar
ChillerDragon BOT 2023-04-15 16:00:22Z
on my desktop i still run ssh to chat xd and run weechat no js in use
Avatar
a mmo, it will suck ur lige
16:00
life
16:00
im addicted to ffxiv
Avatar
ChillerDragon BOT 2023-04-15 16:00:44Z
but on my gaming raspberry pi i run a js standalone client but raspi is fast enough it can run all the js
Avatar
but I watch youtube for like 10 hours during the weekend
Avatar
social life: 100/100
Avatar
I've been trying to turn my personal projects into sellable products. but it's been almost half a year without any progress.
Avatar
its luck or intense click baiting and spamming
16:03
choose your side
Avatar
The one thing I finished is a Unity editor extension. but Unity Asset Store rejected me three times already, every resubmit takes a week cammostripes .
16:04
Unity is like, indirect link is not allowed. And I only had one link which is my discord invite link.
16:05
and they reject me cuz it was discord.gg/code not discord.com/invite/code Catxplosion
16:05
lol what
Avatar
tsfreddies secret discord server
Avatar
Avatar
TsFreddie
it's been like two years since the IME stuff in teeworlds i think?
I'll probably finish porting it to ddnet in the next weeks
Avatar
what even is IME
Avatar
asians typing their letters on a keyboard
Avatar
-j-a-f-a-r-1375 BOT 2023-04-15 17:14:30Z
😍
Avatar
Avatar
Jupstar ✪
asians typing their letters on a keyboard
ohhh
Avatar
a2c9b75 Remove unused CListBox::FilterMatches - Robyt3 fe40048 Remove unnecessary SetRenderFlags calls - Robyt3 f0c295b Add length check in AppendTextContainer - Robyt3 a160364 Add default parameters to Text and TextEx - Robyt3 49a1896 Add STextBoundingBox::Size convenience function - Robyt3 680de35 Add STextBoundingBox::MoveBy convenience function - Robyt3 ea058d9 Replace CharacterCounter with existing pCursor->m_GlyphCount - Robyt3 928d278 Rename DefaultSelectionColor for consistency - Robyt3 a36e815 Merge #6516 - bors[bot]
Avatar
Avatar
Jupstar ✪
In Teeworlds, a world of colors bright, Where tiny creatures battle and fight, The stage is set for endless fun, With guns and grenades, it's never done. The maps are varied, the modes diverse, From capture the flag to deathmatch fierce, Each player brings their unique style, With jumps and dodges, they cover miles. The graphics may be simple, but the gameplay's deep, As teams strategize and their foes they sweep, The tension builds with every shot, As players vie for that winning spot. With clans and tournaments, the community thrives, As players push their skills to new heights, And in this world of tees and balls, Friendships are formed, and rivalries dissolved. So if you're looking for a game to play, Where skill and teamwork are on full display, Join the Teeworlds community today, And experience the joy of fragging your way.
In a world of tees and flags, Where the battle never sags, Teeworlds is the game we play, To fight and win another day. With guns and hooks and bombs in hand, We traverse the maps, a dangerous land, Dodging traps and dodging foes, We aim to be the last one who goes. The tees are small, but fierce and bold, Their colors bright, their stories told, Each one unique, with skills to show, In Teeworlds, they put on a show. The flags are what we fight to take, A prize that's worth the risk we make, We capture them and hold them tight, And score a point to win the fight. In Teeworlds, we find our thrill, A game that tests our strength and skill, We battle hard, we battle true, And in the end, we see it through. So come and join us, if you dare, In Teeworlds, we'll take you there, To a world of tees and flags, Where the battle never sags.
Avatar
too long didnt read
18:47
Avatar
CPlayer copy assignment has gone after adding m_UniqueClientId duh
19:04
making object pool with forward iterator seems to be hard xd
Avatar
#define dbg_assert(tw, twx) assert((tw) && (twx)) template<typename Type, const std::size_t Size> class CObjectPool { std::array<Type, Size> m_Data; std::bitset<Size> m_Used{0}; public: CObjectPool() { Reset(); } template <typename ...TArgs> Type *New(std::size_t ObjectId, TArgs ...Args) { dbg_assert(!m...
20:16
can't figure out how to pass Value() as rvalue
Avatar
Avatar
gerdoe
can't figure out how to pass Value() as rvalue
where do u pass it?
Avatar
in operator*()
Avatar
its a temporary object
Avatar
yeah i understand it
20:26
but i don't know how to make its lifetime longer
Avatar
Avatar
gerdoe
but i don't know how to make its lifetime longer
u can only do that with const_reference
20:28
cpp treats that case different
Avatar
just use rust
Avatar
for mutables its not possible
Avatar
Avatar
Jupstar ✪
for mutables its not possible
huh
Avatar
Avatar
gerdoe
huh
in Value() itself u must return a reference already
20:29
then it would work
Avatar
@Jupstar ✪ can u make a invalid reference in cpp?
Avatar
ofc
Avatar
what a question
Avatar
how would that work
Avatar
Avatar
Jupstar ✪
in Value() itself u must return a reference already
how i supposed to tho
Avatar
u have a gun, ofc u can shoot urself xD
Avatar
Avatar
Ryozuki
just use rust
rewrite ddnet in rust pls
20:30
i beg you
Avatar
zwelf has worked on that
Avatar
Avatar
Ryozuki
how would that work
simply destroy the object
Avatar
Avatar
gerdoe
https://godbolt.org/z/z971ojEhx ended up with this
what is that? new (sizeof(Type), &m_Data[ObjectId]) Type(std::forward<TArgs>(Args)...);
Avatar
constructing object on &m_Data[ObjectId] address
20:34
with size sizeof(Type)
Avatar
Avatar
k2d222
what is that? new (sizeof(Type), &m_Data[ObjectId]) Type(std::forward<TArgs>(Args)...);
cpp metaprogrammation
Avatar
wow ok never seen that XD looks like mallocs
Avatar
placement new
20:35
I know how they are different syntactically, and that C++ uses new, and C uses malloc. But how do they work, in a high-level explanation? See What is the difference between new/delete and malloc/...
Avatar
that syntax is ugly imo not as bad as function pointers though
Avatar
good enough
20:36
anyway question is open xd
20:36
how to prolongate Value()'s lifetime if its just kind of alias of m_pPool->Get(m_Id))
20:37
and actually appears to be (Type *) which is T for iterator
20:37
so pointer can be nulled
Avatar
Avatar
k2d222
that syntax is ugly imo not as bad as function pointers though
use rust
20:41
sry i woke up troll today
20:41
well its night already
Avatar
Avatar
gerdoe
and actually appears to be (Type *) which is T for iterator
why do you need the iterator class to be generic? what is the role of T?
Avatar
sometimes i think that your vocabulary fits in { 'use', 'rust' } xd
Avatar
function pointer types exist in rust
Avatar
Avatar
k2d222
why do you need the iterator class to be generic? what is the role of T?
cuz i don't want to make another class to write const iterator
20:42
compiler does it for me
Avatar
myhandler::<extern "C" fn () -> c_void>(sdadasdsa)
Avatar
since your iterator class is nested in CObjectPool you already have access to the Type template parameter
Avatar
thanks cap
Avatar
fn add(x: i32, y: i32) -> i32 { x + y } let mut x = add(5,7); type Binop = fn(i32, i32) -> i32; let bo: Binop = add; x = bo(5,7);
Avatar
ah ok sorry
20:43
learn to read
Avatar
its last thing to solve xd
20:44
then i can just replace new statements in ddnet code and delete old macros
Avatar
Avatar
gerdoe
its last thing to solve xd
why do u need the reference in the for loop
Avatar
i don't need
Avatar
are the dummies real objects?
Avatar
for (auto &pPlayer : m_apPlayers) kind of
Avatar
mh ok
Avatar
isnt auto kind of another footgun
20:46
its like the bad kind of type inference
20:46
auto &x, auto x
20:46
what if x is a reference already
20:46
weird stuff
Avatar
m_apPlayers is array of pointers
Avatar
yeah im not talking about ddnet
20:46
cpp in the general sense
Avatar
Avatar
Ryozuki
what if x is a reference already
let does the same
Avatar
cpp is like python after rust
20:47
same feeling after switching between cpp and python
Avatar
even for cpp this was an insult
Avatar
it is xd
Avatar
Avatar
Jupstar ✪
let does the same
hmm idk
Avatar
use c instead
Avatar
rust type inference is way better
20:48
and it fits with the algebraic data types it has
20:48
c++ doesnt have real sum types
20:49
ADT are like a basic feature any modern language needs
20:49
In computer programming, especially functional programming and type theory, an algebraic data type (ADT) is a kind of composite type, i.e., a type formed by combining other types. Two common classes of algebraic types are product types (i.e., tuples and records) and sum types (i.e., tagged or disjoint unions, coproduct types or variant types).Th...
20:49
Two common classes of algebraic types are product types (i.e., tuples and records) and sum types (i.e., tagged or disjoint unions, coproduct types or variant types)
Avatar
anyway @gerdoe for what u programmed i dont really see a chance
Avatar
xd sry for my ted talk
Avatar
i'd rewrite it a bit probably or dont use a refernce in the for loop
Avatar
Avatar
Ryozuki
xd sry for my ted talk
its good 😉
Avatar
Avatar
Jupstar ✪
anyway @gerdoe for what u programmed i dont really see a chance
its okey the main thing that it needs to be done xd
Avatar
Since it's always pointer don't return reference in the operator overload
20:54
Simply return T
20:54
But honestly the solution is a bit weird
20:54
Maybe don't iterate over raw pointers at all
20:55
References on raw pointers
20:55
I dunno xd
20:55
As function parameter sometimes useful
Avatar
CObjectPool should imitate iterating over CPlayer *m_apPlayers[MAX_CLIENTS] so thats why iterator is added
21:00
actually if auto &pPlayer : m_apPlayers and auto pPlayer : m_apPlayers is the same i can just walk through code and replace it
Avatar
Avatar
gerdoe
actually if auto &pPlayer : m_apPlayers and auto pPlayer : m_apPlayers is the same i can just walk through code and replace it
Yes. But in your case it's more dangerous
21:01
T& would be a pointer to a temporary even in the for loop
21:01
So a future dev might accidentally do this
Avatar
compiler prevents it anyway
Avatar
u can do that T m_value; // ... reference operator*() { m_value = Value(); return m_value } but don't i guess, it looks fishy af
Avatar
if the warning is on
Avatar
Avatar
k2d222
u can do that T m_value; // ... reference operator*() { m_value = Value(); return m_value } but don't i guess, it looks fishy af
and not thread safe
Avatar
don't think so error: cannot bind non-const lvalue reference of type 'Dummy*&' to an rvalue of type 'Dummy*'
Avatar
Avatar
gerdoe
don't think so error: cannot bind non-const lvalue reference of type 'Dummy*&' to an rvalue of type 'Dummy*'
what exactly did u do
21:03
i mean in the for loop after replacing the references in the iterator with T
Avatar
Avatar
gerdoe
don't think so error: cannot bind non-const lvalue reference of type 'Dummy*&' to an rvalue of type 'Dummy*'
ah oopsie another one error: cannot bind non-const lvalue reference of type 'Dummy*&' to an rvalue of type 'CObjectPool<Dummy, 128>::iterator<Dummy*>::value_type' {aka 'Dummy*'} 122 | for(auto &d : Dummies) { | ^~~~~~~
Avatar
i think u get me wrong
21:03
reference operator*() { return Value(); } gets T operator*() { return Value(); } (edited)
21:04
u cannot return a reference anyway
21:04
the way objectpool is built
Avatar
ah fair
21:05
but T is always Type *
Avatar
yes
Avatar
yeah got it
21:05
so programmer can't get auto &a : abc working in that case anyway
Avatar
maybe if the objectpool is built differently
21:07
but i think as is, u cant
21:08
u could maybe do it rust like and iterate over Optional<Dummy&> its basically the same as nullptr then
21:08
but even then the for loop stays a problem with auto&
Avatar
are those draggers not predicted clientside?
21:18
it seems like it
Avatar
Yo, did you guys fix the staggering issue on ddnet mapping tool when saving? It feels nice now, but I don't have an indicator now whether I saved or not 😄
Avatar
another bug that became a feature
Avatar
chillerdragon BOT 2023-04-15 21:38:57Z
lmao
21:41
Now make a text "Map Saved!" appear, when saving and it's a feature lol (edited)
Avatar
does someone know how do i get rainbow commands and other shits in lan servers?
Avatar
similar to block servers? I think block servers have server side configurations, but I can be wrong here, if you use another client, it can also have configurations like that too
Avatar
ye, like kog servers have a rcon commands that can make players rainbow, explosive etc xD
21:44
i've been trying to figure it out so hard
Avatar
@deen Also a good HUD feature would be to be able to see the name tags better by fading out other players' texts that are not near the middle point of the camera and be customizable by changing the visibility
21:45
Wanted to make an issue of it on Github, but I'm lazy and nobody would react to this other than you anyway xd
Exported 501 message(s)