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 2022-01-21 00:00:00Z and 2022-01-22 00:00:00Z
Avatar
On the one hand variables called "Dummy" would tell us whether the current action refers to the currently inactive tee ("dummy"). On the other hand, these variables could tell us whether the current action refers to the main connection to the server, or the secondary one. The latter use case is now renamed to "Client", with the choices CLIENT_MAIN, CLIENT_DUMMY (and CLIENT_CONTACT). Perhaps better names could be found, especially since Client also refers to the engine client ...
05:15
instantly reminded me of system.h comments. was that tool once used for teeworlds?
Avatar
never heard of it
06:59
but this looks like it existed since 2003 so its possible someone used it
07:00
@Discord Mod
✅ 1
07:00
holy shit they never stop
07:00
discord should get their ass working on this
Avatar
[quakenet] ChillerDragon BOT 2022-01-21 09:33:04Z
This doc tool is some AI trained on Magnuses code ;D
09:33
Sorry for repost but does one know if its possible in the client to figure out who hit who. Like nade hits from other clients
09:40
TOCTOU races are such a PITA to avoid
Avatar
yeah xd
09:44
@Learath2 u cant event prevent it on macos
09:44
cuz no api xd
09:44
macOS before version 10.10 (Yosemite)
09:44
well before that version
09:44
idk if thats ancient or not
Avatar
Idk how they fixed it but, TOCTOU is very annoying to fix most of the times
09:45
I guess they use something like openat?
Avatar
Instead of telling the system not to follow symlinks, the standard library first checked whether the thing it was about to delete was a symlink, and otherwise it would proceed to recursively delete the directory.
09:45
by not following symlinks
09:45
it will just delete the symlink
09:45
its explained there
09:46
To prevent such attacks, std::fs::remove_dir_all already includes protection to avoid recursively deleting symlinks, as described in its documentation:
>
This function does not follow symbolic links and it will simply remove the symbolic link itself.
Avatar
That's not the issue. They already had that but it's not enough
Avatar
This function currently corresponds to openat, fdopendir, unlinkat and lstat functions on Unix (except for macOS before version 10.10 and REDOX) and the CreateFileW, GetFileInformationByHandleEx, SetFileInformationByHandle, and NtOpenFile functions on Windows. Note that, this may change in the future.
Avatar
Ah, yep, openat
Avatar
Removes a directory at this path, after removing all its contents. Use carefully!
09:47
xd
09:48
@Learath2 man im trying to figure out how to render sprites
09:48
30 mins and still dont know xdd
09:48
this quad container stuff is driving me insane
09:48
xd
09:48
im implementing #pr-3401-hud-visuals with the image from voxel
Avatar
That makes 2 of us. I wanted to render some tees. I looked around for an hour, than I just got bored
Avatar
i got everything setup even the custom assets for it
09:49
i just need to render the stuff in the hud
09:49
xd
Avatar
Try to ignore the details. Don't we have a gfx api or rendertools api call to render a sprite?
Avatar
my first thought for the case of preventing privilege exploitation of that function would be to block access to editing the folder/symlink/whatever before checking it and then release it afterwards, but as someone who is not a low level programmer i dont know how practical/effective/possible that is of a strategy
Avatar
Avatar
ds273
my first thought for the case of preventing privilege exploitation of that function would be to block access to editing the folder/symlink/whatever before checking it and then release it afterwards, but as someone who is not a low level programmer i dont know how practical/effective/possible that is of a strategy
This would be the naive approach, it comes with a couple drawbacks but it would indeed work
09:51
If you allow locking files you'll inevitably have badly behaving programs that fail to drop their locks, happens on windows all the time
Avatar
lol yeah i'm familiar with that in the sm64 TASing scene the emulator we used to use for TASing wouldn't close its access to the movie files after opening them, so while you'd be able to edit them you couldn't delete them without closing the emulator lol
Avatar
@Learath2 omg
10:02
i got it to render
10:02
👍 2
10:02
my biggest achievement
10:02
xddd
10:02
Graphics()->RenderQuadContainerAsSprite(m_HudQuadContainerIndex, 0, 40.0, 40.0);
10:02
the key
Avatar
Looks good
Avatar
Jupstar ✪ BOT 2022-01-21 10:21:51Z
@deen: ok one last round:I just disabled rendering in all places CGraphics_Threaded::Render*That shoots my FPS from around 700-800 up to 3500So i guess that would then be a CPU benchmark xDSince your CPU should be stronger than mine you should probs have around 4k-7kAtleast worth a try to see if the GPU is the problem here I guess xd
10:22
Generally the map renders at around 2k FPS, when i join it on my local server without any other player
Avatar
Took from upstream https://github.com/teeworlds/teeworlds/commit/5d44714e9206e2b12d5fa4b0af9ac80c30dd19b6#diff-597779b4eb51af9adfedd04b8a235afff01091a4ba741daa604cb5cbeda4e3daR1306-R1321 Fixes client freezes if the server sends funny ticks

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 if it works standalone, system.c especially
  • [ ]...
Avatar
Jupstar ✪ BOT 2022-01-21 10:41:23Z
Edit: @deen: ok one last round:I just disabled rendering in all places CGraphics_Threaded::Render* (except RenderText) That shoots my FPS from around 700-800 up to 3500So i guess that would then be a CPU benchmark xDSince your CPU should be stronger than mine you should probs have around 4k-7kAtleast worth a try to see if the GPU is the problem here I guess xd
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
Avatar
ur msg is repeated btw
10:43
xd
10:43
and looks like some newlines arent there
Avatar
Jupstar ✪ BOT 2022-01-21 10:43:52Z
dont you want to take the chance and just add a new HUD thats called for ddnet onlyI guess the hearts and shields aren't useful The freeze timer could just get smth like ninja thing from 0.7 (@Ryozuki)
unknown.png
Avatar
the hud i added is only called for ddnet but i didnt remove the hearts
Avatar
Jupstar ✪ BOT 2022-01-21 10:44:20Z
yeah the bridge sucks xD (@Ryozuki)
and looks like some newlines arent there
Avatar
since the image i got shows no freeze seconds
10:44
god this bridge is aswful
10:44
10:44
ur quote repeats the image
10:44
and fills all the space
10:44
lmao
10:44
come back to discord pls :D
Avatar
Jupstar ✪ BOT 2022-01-21 10:45:10Z
starting wednessday i dont really have time anyway xd
10:46
job?
Avatar
Jupstar ✪ BOT 2022-01-21 10:46:47Z
yeah xd
10:46
im in solo
10:47
it works!!!!
10:47
xd
Avatar
Jupstar ✪ BOT 2022-01-21 10:47:19Z
who draw that btw?
10:47
its on discord
10:47
xd
Avatar
Jupstar ✪ BOT 2022-01-21 10:47:31Z
ravie's enemy xd
10:47
i added it to ur assets thing too
Avatar
Jupstar ✪ BOT 2022-01-21 10:47:54Z
looks really goo
10:47
good
Avatar
btw ur assets stuff could be made extendable way more easiily
Avatar
Jupstar ✪ BOT 2022-01-21 10:47:58Z
so clean
Avatar
Jupstar ✪ BOT 2022-01-21 10:48:13Z
i already improved it alot by using templates
Avatar
it has like 4 empty new structs and stuff
Avatar
Jupstar ✪ BOT 2022-01-21 10:48:17Z
deen forced me xD
Avatar
i found it funny
Avatar
Jupstar ✪ BOT 2022-01-21 10:48:32Z
i hate UI work bro
Avatar
oh dawg bro
Avatar
Jupstar ✪ BOT 2022-01-21 10:48:41Z
i just hate tw's ui concept
10:48
we dont have a "focus, unfocus" event and stuff like that
Avatar
Jupstar ✪ BOT 2022-01-21 10:48:57Z
would make so much stuff so much easier xD
Avatar
its cuz its immediate mode
Avatar
Jupstar ✪ BOT 2022-01-21 10:49:17Z
yeah
Avatar
thats a nice feature! unstead of shield / heart (edited)
11:02
(spectating another)
Avatar
if these new UI items are going to replace hearts/shields on ddrace mode servers, I feel they could benefit from being shown a bit bigger, more like the size of the hearts/shields (they're currently a little bit smaller). maybe that's just me though
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
What about vertical placement near left edge? Like vertical toolbar. Or just go with hearts removal, so everything moves up
Avatar
Making it swap depending on gamemode would be nice
11:32
off for gamemodes like fng, hearts / shields for vanilla, displayed power ups for ddrace like above
Avatar
Avatar
Skeith
Making it swap depending on gamemode would be nice
@Ryozuki @heinrich5991 a GAMEINFO flag would probably be the best, so the client knows when to use DDraceHUD
11:42
I suggest GAMEINFOFLAG2_DDRACEHUD
11:43
We would probably need a bar or something for freeze then, because shields are currently used to determine the rest time of beint frozen
11:49
and of course ddrace hud should only work if server sends a ddnetcharacter
Avatar
Avatar
fokkonaut
and of course ddrace hud should only work if server sends a ddnetcharacter
well, i think doesnt matter actually, just the gameinfoflag
Avatar
Hetzner is increasing server costs due to rising energy costs in germany
11:53
Can u ppl pls just allow nuclear reactors again?
Avatar
Avatar
Learath2
Hetzner is increasing server costs due to rising energy costs in germany
tell to the smart ppl that decided to shutdown nuclear reactors for coal mines
11:53
xdd
Avatar
Avatar
Learath2
Can u ppl pls just allow nuclear reactors again?
Wtf? No, we can build some next to your house if you like them that much
Avatar
Avatar
fokkonaut
Wtf? No, we can build some next to your house if you like them that much
I'm completely okay with that. You can build them in my garage aswell
11:56
learath biggest trol
Avatar
Do you think reactors just randomly leak radiation?
Avatar
Modern reactor designs dont even melt down during catastrophic failure
Avatar
then lets place some around your house
Avatar
As I said I'm completely okay with that. I was not kidding
11:58
It's an absolutely insane proposition when we have a lot of land far away from the middle of the city, but if you think I wouldn't be okay living next to one you are very mistaken
11:59
Oh, I have an idea, how about you live next to a coal or LNG power plant
Avatar
the coal mines kill way more ppl in average
11:59
even hydro energy
Avatar
There are entire towns in turkey with people that are born with cancer due to living next to coal power plants
12:00
BORN with cancer, not getting cancer
12:00
good video
Avatar
Don't come at me with "live next to a reactor than" when living next to other baseload alternatives are literally incompatible with human life
Avatar
Jupstar ✪ BOT 2022-01-21 12:01:58Z
i thought they use water energy for their servers (@Learath2)
Hetzner is increasing server costs due to rising energy costs in germany
12:02
why should it increase
12:02
also green energy is the cheapest still
Avatar
They probably can't get all their energy needs from renewables. Most companies that say they use 100% green energy actually use non green energy but at peak contribute back to the grid green energy to make up for it
Avatar
Jupstar ✪ BOT 2022-01-21 12:04:08Z
we just need better batteries
Avatar
The LNG and natural gas crisis is hitting all the countries, it's getting sooo expensive with gasprom limiting output and island nations snatching up all the LNG
Avatar
Jupstar ✪ BOT 2022-01-21 12:04:15Z
that dont rely on lithium
12:04
but natrium
Avatar
If you can make better batteries fine by me. But we can literally make nuclear reactors right now
Avatar
Jupstar ✪ BOT 2022-01-21 12:05:11Z
thats true
12:05
but i thought especially water pump reactors or whatever they use dont have so much disadvantages
Avatar
I see molten salt batteries, solid state lithium chemistries and oxygen based battery ideas since like I was at the start of highschool
Avatar
Jupstar ✪ BOT 2022-01-21 12:05:50Z
but ofc require quite alot of space
12:05
they are expensive
12:06
not like you just build them
12:06
they need 10 years to be built
12:06
and they aren't very modular
Avatar
water pump reactors probs require a dam built, these break and killed already more people than nuclear reactors
Avatar
Jupstar ✪ BOT 2022-01-21 12:06:28Z
solarpanels can go anywhere
Avatar
They just don't ever get there. Idk whether it's neolibs not seeing value in it or the tech not being there but these batteries are just not being made :/
Avatar
Jupstar ✪ BOT 2022-01-21 12:07:03Z
bro its germany (@Ryozuki)
water pump reactors probs require a dam built, these break and killed already more people than nuclear reactors
12:07
land of engeneering
12:07
have some trust
Avatar
yet ur ppl dont trust ur engineering to make nuclear reactors
Avatar
Jupstar ✪ BOT 2022-01-21 12:07:48Z
when a nuclear reactor explodes, then the land is wasted for hunderets of years
12:07
if water floods stuff, its gone for maybe 1-2 years
Avatar
Non-hybrid geothermal and tidal generation look very promising as renewable baseloads, but they are both so far away from being economically viable
Avatar
yet more floods happened and more ppl died
Avatar
Jupstar ✪ BOT 2022-01-21 12:08:46Z
anyway, in europe nuclear reactors are very expensive and take an insane amount of time to built
12:08
so it's unlikely it will happen now anyway
Avatar
i hope they complete the research on fusion reactors (not fission)
12:09
it would be epic
Avatar
Jupstar ✪ BOT 2022-01-21 12:09:07Z
also i think its good that germany tries something the rest of the world doesnt want to
Avatar
Long time to build is because of lack of political will
Avatar
Jupstar ✪ BOT 2022-01-21 12:09:14Z
then we'll see if it works or not
Avatar
Avatar
Jupstar ✪
also i think its good that germany tries something the rest of the world doesnt want to
what is it
Avatar
Look at china making insane engineering projects happen in mere months
Avatar
coal mines?
Avatar
Jupstar ✪ BOT 2022-01-21 12:09:30Z
in germany every siungle person can delay it by years (@Learath2)
Long time to build is because of lack of political will
12:09
by protesting
Avatar
@Learath2 china actually is building the largest wind turbines
12:09
because its more efficient if they are giant
Avatar
Jupstar ✪ BOT 2022-01-21 12:10:12Z
well trying to solve the energy problem without nuclear energy and coal (@Ryozuki)
what is it
Avatar
China might be an authoritarian hellhole but after seeing them no one can tell me we cant make huge engineering feats
Avatar
Jupstar ✪ BOT 2022-01-21 12:10:39Z
if it works, germany takes the lead again, if it wont work, we doomed xDDD
Avatar
Is germany basing their entire baseload around hydro energy?
Avatar
Avatar
fokkonaut
We would probably need a bar or something for freeze then, because shields are currently used to determine the rest time of beint frozen
Would be ideal, since the hearts are useless in FNG but the shields are still used
Avatar
Jupstar ✪ BOT 2022-01-21 12:11:30Z
mostly wind in the northsea probs in future
12:11
and alot on land
12:11
in south solar is fine too
Avatar
I thought you still operated massive natural gas plants
Avatar
Jupstar ✪ BOT 2022-01-21 12:11:44Z
since solar is so fucking cheap
12:12
gas will probs stay as a side step
Avatar
Avatar
Skeith
Would be ideal, since the hearts are useless in FNG but the shields are still used
What were the shields used for in fng btw?
Avatar
freeze timer
Avatar
Hm, maybe when we add a bar fng can use that too
Avatar
The stars popping out of you shows it, but the shields help a bit as well
Avatar
Jupstar ✪ BOT 2022-01-21 12:14:51Z
btw @Ryozuki and @Learath2 i think we already discussed the problem with uranium, we'd need other reactor types anyway
12:15
the current one will just suck the rest uranium in a few years and then rip
Avatar
Avatar
Skeith
Would be ideal, since the hearts are useless in FNG but the shields are still used
With gameinfoflags, servers would be able to tell the client to either show hearts and shields or the ddrace hud. Default Hearts and shields
Avatar
Avatar
Jupstar ✪
the current one will just suck the rest uranium in a few years and then rip
Asteroid minimg
12:17
monkalaugh
Avatar
Jupstar ✪ BOT 2022-01-21 12:18:40Z
xD
12:18
just shoot the nuclear waste into space
Avatar
Oh god no
12:19
One launch failure and we pepper earth with nuclear waste
Avatar
Jupstar ✪ BOT 2022-01-21 12:19:19Z
its just funny
12:19
i think some ppl think, its easy as that
12:19
just take it and send to space xD
Avatar
I'm honestly completely okay with burying it underground in a lead+reinforced concrete structure
Avatar
Jupstar ✪ BOT 2022-01-21 12:20:18Z
just get on board with the nuclear waste and steal the car (@Avolicious)
Avatar
Avatar
Jupstar ✪
just get on board with the nuclear waste and steal the car (@Avolicious)
Driving around in space, sounds funny 🙂
Avatar
Jupstar ✪ BOT 2022-01-21 12:21:11Z
i bet the future humans will spent around 2 times the energy they got from nuclear power plants to eleminate the nuclear waste somehow again xD (@Learath2)
I'm honestly completely okay with burying it underground in a lead+reinforced concrete structure
Avatar
The earth is massive, why would they ever dig up our small nuclear waste graveyard?
Avatar
Jupstar ✪ BOT 2022-01-21 12:22:22Z
bcs nothing remains untouched
12:22
the earth changes
12:22
in 1000 years it might become a problem
Avatar
So they will need that small useless hole we dug in bumfuck nowhere finland?
Avatar
In 20 years we gone from nothing to everyone having internet etc
12:23
In 1000 thinks will change a lot
12:23
Years
Avatar
Jupstar ✪ BOT 2022-01-21 12:23:35Z
internet
12:23
wow
Avatar
Its actually p big ngl
Avatar
Even in 1k years, why would they ever want to dig up the waste :D
12:24
I understand that the world changes but why would you ever unearth sealed nuclear waste?
Avatar
Jupstar ✪ BOT 2022-01-21 12:24:33Z
bcs it gets into water for example?
12:25
why do you thing that all nuclear waste is sealed so well?
12:25
most is just in some random mine
12:25
bcs they had no better idea
Avatar
I gueeesss it's perceivable that it could maaybe start leaking but these structures we engineer with expected lifetimes far above the 1k years we are talking about here
Avatar
Jupstar ✪ BOT 2022-01-21 12:26:13Z
well we talk about 1 million years anyway
12:26
until then earthquakles probs destroyed most of these caves
Avatar
Avatar
Jupstar ✪
why do you thing that all nuclear waste is sealed so well?
I'm not talking about the idiocies of the past. If we are going to throw it like that I'm also against it
12:26
We know a lot more nowadays, and we can engineer structures resistant to all kinds of situations
Avatar
Jupstar ✪ BOT 2022-01-21 12:27:17Z
i think its more likely we use fusion power in 20-30 years than better nuclear energy, but lets wait and see xD
12:27
ok both is nuclear energy
12:27
but you know what i mean
Avatar
20-30 years is on the lower end from what I've read, but hopefully we'll have fusion by then. It'd be great
Avatar
Jupstar ✪ BOT 2022-01-21 12:30:34Z
that will defs change the world alot
12:30
the next step for society xd
12:31
intel 100 ghz using 1 terrawatt/h
Avatar
I doubt our processing power is limited by power consumption at this point :D
Avatar
Jupstar ✪ BOT 2022-01-21 12:32:53Z
yeah but we just create supra conductors locally xd
12:33
the cooling probs expensive xD
Avatar
Avatar
Learath2
I'm honestly completely okay with burying it underground in a lead+reinforced concrete structure
dumb
12:38
sorry, but imo u have a very wrong picture of this
Avatar
Avatar
fokkonaut
sorry, but imo u have a very wrong picture of this
Because?
Avatar
Because that ruins the planet even more, and it will leak through, just because it takes your, or a few human lifetimes doesnt mean the problem is solved
12:39
anyways, the world is fucked
12:40
so i would not be surprised about this staying non-solved
12:40
There are some theories about producing real green energy, without side effects, but those cost a lot and people are afraid to invest before getting the results
Avatar
Omg, please stop writing about energy. Hetzner now wrote me an email that they have to raise the current rate because energy gets more expensive in germany now
The current dramatic rise in energy prices in Germany is leading to a significant increase in costs. Energy costs play a particularly important role for servers.
>
Since the calculation of these servers does not allow any leeway to absorb this coverage gap, we are unfortunately forced to make a price adjustment. Depending on the server, the prices will only be raised as far as necessary.
>
- Hetzner 21.01.2022
Thanks @Learath2 & Jupstar 😄 coincidence, i doubt it
(edited)
Avatar
It will leak through? It WILL. Are you god or do you have some numbers? As far as I'm aware modern nuclear waste containment structures are engineered rated for multiple thousands of years
Avatar
and what happens in multiple thousands of years?
12:41
the whole world is one radioactive sphere
Avatar
Jupstar ✪ BOT 2022-01-21 12:41:35Z
@Avolicious: that was the begin of our talk too :D
Avatar
Avatar
Avolicious
Omg, please stop writing about energy. Hetzner now wrote me an email that they have to raise the current rate because energy gets more expensive in germany now
The current dramatic rise in energy prices in Germany is leading to a significant increase in costs. Energy costs play a particularly important role for servers.
>
Since the calculation of these servers does not allow any leeway to absorb this coverage gap, we are unfortunately forced to make a price adjustment. Depending on the server, the prices will only be raised as far as necessary.
>
- Hetzner 21.01.2022
Thanks @Learath2 & Jupstar 😄 coincidence, i doubt it
(edited)
scroll to the top bro
Avatar
great 👍
Avatar
Jupstar ✪ BOT 2022-01-21 12:41:39Z
learath also got an email
Avatar
Avatar
Ryozuki
scroll to the top bro
Fuck, why do you get emails faster than me 😦
Avatar
Avatar
Avolicious
Omg, please stop writing about energy. Hetzner now wrote me an email that they have to raise the current rate because energy gets more expensive in germany now
The current dramatic rise in energy prices in Germany is leading to a significant increase in costs. Energy costs play a particularly important role for servers.
>
Since the calculation of these servers does not allow any leeway to absorb this coverage gap, we are unfortunately forced to make a price adjustment. Depending on the server, the prices will only be raised as far as necessary.
>
- Hetzner 21.01.2022
Thanks @Learath2 & Jupstar 😄 coincidence, i doubt it
(edited)
Omg, please stop writing about Hetzner
Avatar
Received it after your talk
Avatar
(sarcastic)
Avatar
It starts eroding a bit? Just because they are rated to stay completely intact for multiple thousands of years doesnt mean it instantly dumps it's contents afterwards
Avatar
what about nuclear fusion? why do you want nuclear fission so bad?
Avatar
Jupstar ✪ BOT 2022-01-21 12:44:14Z
it solves all problems
Avatar
Because fusion is like atleast 5 decades away?
Avatar
Aha, and why do you want fission so bad if we can also use other methods in this timespan?
12:45
Germany at least will not re-activate any nuclear power plants
12:45
and thats very good
12:45
it will reactivate the coal mines
Avatar
Chinas record breaking fusion experiment still was at a whopping -60% efficiency
Avatar
Jupstar ✪ BOT 2022-01-21 12:45:57Z
lmao this is an endless debate
Avatar
Just because something isnt as efficient as other methods doesnt mean they are bad
Avatar
Avatar
fokkonaut
Aha, and why do you want fission so bad if we can also use other methods in this timespan?
Other methods such as pumping millions of tons of co2 in the air?
Avatar
Jupstar ✪ BOT 2022-01-21 12:46:07Z
i kinda doubt hetzner pays so much more energy tbh
Avatar
Nah, coal mines ofc are also not good
12:46
and germany will also break the coal mining
Avatar
Jupstar ✪ BOT 2022-01-21 12:46:21Z
but i hope they use the money to built 100% green energy
Avatar
Avatar
fokkonaut
Just because something isnt as efficient as other methods doesnt mean they are bad
I said -60% you put in 100 energy to start the fusion, the fusion generates 40 energy
Avatar
And you know what @Learath2, these debates were happening 30 years ago already. It's sad that the most people dont care.
Avatar
Jupstar ✪ BOT 2022-01-21 12:46:49Z
btw we also have another problem
Avatar
Avatar
Learath2
I said -60% you put in 100 energy to start the fusion, the fusion generates 40 energy
Ah, you mean it that way
Avatar
It's a literal net loss of energy and this is like the PEAK fusion generator humanity ever made
Avatar
Jupstar ✪ BOT 2022-01-21 12:47:14Z
independent of what energy we will use, just building all the power plants will also generate alot of CO2, bcs we dont shutdown what we have now
12:47
i think like 60% of our budget goes to that
Avatar
i think its senseless to discuss this here btw^^
12:47
humanity and the earth are fucked, no matter what
12:48
and i am happy i dont live a few generations further
12:48
they will have to deal with many problems that we are just pushing back (edited)
Avatar
Jupstar ✪ BOT 2022-01-21 12:48:15Z
i doubt humans will die out bcs of this, but there will be useless wars again xD
Avatar
thats not what im saying
Avatar
Avatar
Jupstar ✪
i doubt humans will die out bcs of this, but there will be useless wars again xD
probably, look at russia and ukraine
Avatar
Jupstar ✪ BOT 2022-01-21 12:49:17Z
anyway fokko, dont be so pessimistic, we should just try and see
Avatar
Yea, but if nobody tries, lol..
Avatar
Jupstar ✪ BOT 2022-01-21 12:49:29Z
if we then fuck up we've to accept it anyway
12:49
yeah bcs we always debating that's true :D
Avatar
And thats a false pov imo, i dont want to accept things where i did not put 1 cent into
12:49
its sad
Avatar
Jupstar ✪ BOT 2022-01-21 12:49:59Z
that's also why i'm not against germanys way, if it works, china will follow
Avatar
thanks
Avatar
Jupstar ✪ BOT 2022-01-21 12:50:14Z
bcs doesnt want to loose against anybody
12:50
china ^
Avatar
yea, china is a fucked part of the world anyways
12:50
i mean its working
12:50
but its fucked
Avatar
Jupstar ✪ BOT 2022-01-21 12:51:12Z
they defs dont like to accept that a democratic land did better than them
12:51
btw jupeyy why u not on disocrd anymore?
Avatar
Imo nuclear reactors push away the problem the longest. Please gimme a call when you find a solution that pushes it away more or entirely removes the problem within this decade
Avatar
votez lfi
troll 1
Avatar
thats probably not possible, but as you say, "push away the problem the longest", this is not my mentality
Avatar
Jupstar ✪ BOT 2022-01-21 12:52:22Z
bcs chillerdragon invited me here, and in discord i get so many tags about GL drivers not working xD (@fokkonaut)
btw jupeyy why u not on disocrd anymore?
Avatar
I'll go make some food, need a break from all the nuclear haters
Avatar
Avatar
iParano
votez lfi
Mdr
Avatar
i dont like that at all
Avatar
Avatar
Jupstar ✪
bcs chillerdragon invited me here, and in discord i get so many tags about GL drivers not working xD (@fokkonaut)
XD
Avatar
Avatar
fokkonaut
i dont like that at all
xddddddd
Avatar
pushing away problems is just stupid imo
12:53
@iParano stop laughing come gores
Avatar
Avatar
fokkonaut
@iParano stop laughing come gores
im at work u dummkopf ❤️
Avatar
u dummkopf
12:54
:D
Avatar
Avatar
Learath2
I'll go make some food, need a break from all the nuclear haters
New photos? kek
Avatar
Not making anything interesting, just a grilled cheese
Avatar
grilled on your reactor? :P
troll 1
Avatar
iparano xDDDDDDDD
Avatar
stalker
Avatar
nononono
Avatar
yeyeye
Avatar
im on your side actually )
Avatar
❤️
🏳️‍🌈 1
12:59
troll
13:00
bigger icons and no health
Avatar
Jupstar ✪ BOT 2022-01-21 13:01:19Z
i like it
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
very very nice
Avatar
Ye
Avatar
@Ryozuki Shields can spawn only when frozen
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
thats cool, but i feel like shields should still be displayed
Avatar
to see precisely when you unfreeze (edited)
Avatar
shields are not precise
13:07
i want to add a loading bar kinda type
Avatar
who uses shield to know when unfreeze?
Avatar
They are not xdd
Avatar
without shield icons you dont see if you hit freeze if
Avatar
but i need the graphics
13:07
if youre getting hooked from above, to unfreeze under freeze
Avatar
@bencie btw with stars around u you can know too when unfreeze
Avatar
then i actualyl look at shield icons
Avatar
actually stars are more accurate
13:08
u will see 64 stars if ur frozen 64 seconds
13:08
it looks funn
13:08
funny
Avatar
Avatar
bencie
then i actualyl look at shield icons
really? xd
Avatar
Avatar
Ryozuki
@bencie btw with stars around u you can know too when unfreeze
i never look at stars, but now that you mentioned it thats actually really useful
13:08
i never noticed :DDD (edited)
Avatar
Avatar
iParano
really? xd
yeah lol
13:09
a freeze bar coulda ctually look really cool
Avatar
Avatar
fokkonaut
I suggest GAMEINFOFLAG2_DDRACEHUD
.
13:11
gotta remember this
Avatar
Do we need every symbol shown? It would be clean with only used/active symbols
Avatar
i like that theyre all shown
Avatar
me too
13:20
but i want to add the freeze timer
13:20
its the thing missing
Avatar
Could be an option to only show active powerups
Avatar
more settings = bad
13:21
we should try to avoid them
13:21
right @heinrich5991
13:21
monkaS
Avatar
Avatar
Ryozuki
bigger icons and no health
How did you implement it? Via gameinfo flag?
Avatar
@fokkonaut no i just added a return to the health render
Avatar
I would have removed lower right points, totally unused, instead of shields (edited)
Avatar
but im adding the flag rn
13:22
@Ryozuki maybe add a flag for both: Hearts and shields and one for the ddrace hud; if both are active, render the ddrace hud below the hearts and shields
13:23
and defaultly only send the ddracehud on ddnet
Avatar
anyway thats for later
Avatar
i can say in my mod definitely both would be usefull at the same time
Avatar
@Learath2 I heard™ that focusing on nuclear for 2050 is too late anyway, it's mainly a future investment
13:47
i.e. building new nuclear reactors now
Avatar
You are assuming the usual european speeds of building stuff
Avatar
it has to be built in europe 😉
Avatar
If we had actual political will we could do them much faster
Avatar
but you mean you could accelerate it a bit without sacrificing other stuff
Avatar
projects that span longer than a political term is not a thing politicians care much to speed
13:49
imo
Avatar
You could accelerate a lot if the government gets involved in the process and the people don't get in the way because they agree
Avatar
i wonder if my wording makes sense xd
Avatar
China could do it in 5 years back in 2015, as far as I'm aware they only got better at it since then
13:52
They also get it made for very cheap because state monopoly
Avatar
the kurzgesagt video claims that it's also lack of knowledge on how to build these things
13:53
so unless you let china build them in your country, it might be hard to do so
Avatar
knowledge about nuclear reaction stuff is still kept hidden or smth?
13:53
cold war stuff
13:53
?
13:53
xd
Avatar
I'm not particularly against china building them, but the only reason we are so bad at this is because we ignored them after the chernobyl disaster
13:54
Events like this really make me question how much good democracy does in extremely niche fields like this
13:55
What does the average person know about the risk profile of a nuclear reactor?
Avatar
the reason why we're bad at building nuclear reactors isn't really relevant in the discussion of whether they'd help
Avatar
Or the risk profile of a covid vaccine, in another niche field
Avatar
@Learath2 in spain, most politicians are "allied" by energy companies, so it wouldnt be a surprise in germany is kinda the same, and these energy companies probably run coal and dont want nuclear
13:56
s / by / to
Avatar
Avatar
heinrich5991
the reason why we're bad at building nuclear reactors isn't really relevant in the discussion of whether they'd help
True, so you are saying we just don't have the technology anymore? It is possible that we fell too far behind to make them anymore
Avatar
the energy companies in germany got a lot of money because the state forced them to close the nuclear plants IIRC
Avatar
In that case we can pay china. Their state monopoly is much more efficient than any private company anyway and they are always happy to knock off a couple million for political leeway
Avatar
Avatar
fokkonaut
thats probably not possible, but as you say, "push away the problem the longest", this is not my mentality
unrelated to nuclear energy or not, pushing problems away the furthest sounds like a good strategy to me
Avatar
Jupstar ✪ BOT 2022-01-21 14:36:04Z
thats what oy would say xd
14:36
solving problems sounds good
Avatar
solving the problem is even better, but lacking that option, this sounds good
Avatar
Jupstar ✪ BOT 2022-01-21 14:36:56Z
mh ok
14:36
accepted
14:37
since this is such a complicated problem
14:37
but someone also has to test new things out, else we'll never know what the best way could potentially be
Avatar
Avatar
heinrich5991
solving the problem is even better, but lacking that option, this sounds good
but we dont lack that option xD
Avatar
Jupstar ✪ BOT 2022-01-21 14:38:13Z
well we just dont really know
14:38
but yeah we have options
14:38
carbon capture will also be important some day
14:38
we also need to suck the CO2 out again
Avatar
Avatar
fokkonaut
but we dont lack that option xD
Oh, so do you have the battery technology that'll make baseload renewables a possibility?
14:41
Fwiw if either batteries get feasible or tidal energy generation makes a massive technological leap, I'd ofc prefer those aswell. I propose nuclear because 2 decades passed and we still don't have a response to replace baseload coal/gas/nuclear
Avatar
Jupstar ✪ BOT 2022-01-21 14:42:36Z
batteries are expensive, but investing more money usually also improved it in the long term goal
Avatar
I heard™ that carbon capture is worse in every way than just not emitting the carbon
Avatar
Jupstar ✪ BOT 2022-01-21 14:42:40Z
especially ones that don't need lithium
14:42
yeah the first goal is not emitting it ofc (@heinrich5991)
I heard™ that carbon capture is worse in every way than just not emitting the carbon
Avatar
@fokkonaut what is that option?
Avatar
Jupstar ✪ BOT 2022-01-21 14:43:05Z
but trees are sadly pretty uneffective
14:43
nature generally isn't built to work so fast
14:43
so we just throw even more energy to it xdd
Avatar
Lithium and Cobalt mining is absolutely devastating for nature too, they are also horrible socioeconomically
Avatar
apparentyl std::filesystem is also affected by this, but it's allowed by the c++ standard (?!)
14:45
go is also affected, python not
Avatar
Avatar
heinrich5991
apparentyl std::filesystem is also affected by this, but it's allowed by the c++ standard (?!)
That'd be so C++, just avoiding the issue by leaving it UB
14:46
I guess technically for C++ it depends on the vendor of the stdlib/compiler
Avatar
Jupstar ✪ BOT 2022-01-21 14:46:29Z
https://en.wikipedia.org/wiki/Sodium-ion_battery since they are more heavy than lithium, they could especially be good for stationary stuff :D
The sodium-ion battery (NIB) is a type of rechargeable battery analogous to the lithium-ion battery but using sodium ions (Na+) as the charge carriers. Its working principle and cell construction are almost identical with those of the commercially widespread lithium-ion battery types, but sodium compounds are used instead of lithium compounds. S...
Avatar
Hm, does this not make std::fs pretty much useless? It's quite silly that they've made this decision
Avatar
Jupstar ✪ BOT 2022-01-21 14:55:11Z
when will someone invent a new type of operating system that focuses on security and speed
14:55
i want to see my no ring, direct memory access OS
14:55
actually the way thinking about kernels could be rethought too
14:56
ok there will still be some kind of core kernel, but everything is more direct
Avatar
Avatar
Jupstar ✪
i want to see my no ring, direct memory access OS
Direct memory access, no rings?? You are looking for TempleOS
Avatar
Jupstar ✪ BOT 2022-01-21 14:56:40Z
since no userspace
14:56
in a secure manner ofc :D
Avatar
Have you looked at micro-kernel architectures? I quite like them
Avatar
Jupstar ✪ BOT 2022-01-21 14:57:14Z
yeah but they are slow
Avatar
Well in your ringless architecture there wouldn't be context switches, so you can have very performant micro-kernels 😄
Avatar
Jupstar ✪ BOT 2022-01-21 14:58:49Z
yeah exactly
14:59
that's why it might work in this case
14:59
maybe i should have said, current ones are usually slow
14:59
isnt windows also micro kernel?
Avatar
Btw, "slow" also depends on the application. Nintendo's game consoles have been running micro kernel architectures since the nintendo ds
15:01
Apparently what the NT kernel does is called a "hybrid kernel"
Avatar
Jupstar ✪ BOT 2022-01-21 15:07:27Z
test
15:07
true, i just think this is a big chance for rust bcs this is what rust can do while not trading for performance microsoft developed smth like this in c# as something experimental i think let me find it https://en.wikipedia.org/wiki/Singularity_(operating_system) but i doubt it could beat a well written one in rust
Singularity is an experimental operating system developed by Microsoft Research between July 9, 2003, and February 7, 2015. It was designed as a high dependability OS in which the kernel, device drivers, and application software were all written in managed code. Internal security uses type safety instead of hardware memory protection.
15:07
i think the bridge died
15:07
lmao
Avatar
C# kernel? How? I thought C# wasn't even compiled, what does it run on?
Avatar
Jupstar ✪ BOT 2022-01-21 15:08:28Z
nah its not a c# kernel in that sense
15:08
its really just an abstraction, so fuse everything into one big mess
15:09
i also dunno if they aimed to be performaned, but i think they wanted to eleminate the way of seperting userspace from kernel
Avatar
It could be quite interesting especially in applications where extreme performance is wanted like servers
15:13
I do wonder how much benefit can be had nowadays though. In the past things like in-kernel webservers were tested and they were indeed very efficient, but with modern syscalls and things like futexes, I wonder how much performance we can get from avoiding the remaining context switches
Avatar
Jupstar ✪ BOT 2022-01-21 15:13:17Z
i think just for research this might already be interesting, rethinking stuff sometimes also helps develop better stuff generally, e.g. other kernels could profit (maybe)
15:14
yeah sure linux is already insanly fast maybe completly new processors would profit from it
Avatar
I was just about to say that ^^
Avatar
Replaces the magic numbers -1/0/1 for left/center/right Based on the work done in upstream: @BearR added alignment enums https://github.com/teeworlds/teeworlds/commit/04ee8b20a1b3aa2239c791ac14c58ed95fe4a442 @TsFreddie renamed them https://github.com/teeworlds/teeworlds/commit/67651e81227d1e5b2c4d53f169f49194a0d83aeb

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configurati...
Avatar
for this thing here it would be really cool if it would be possible/not too much work to only show the icons needed for map?
15:29
or do i misunderstand the feature a bit? XD
Avatar
b770bc6 Use ETextAlignment enum for UI - ChillerDragon 390e54f Merge #4625 - bors[bot]
Avatar
There are two ways used to initialize flag enums. Can we pick one and enforce it? ddnet/src/engine/textrender.h Lines 11 to 23 in 390e54f enum { TEXTFLAG_RENDER = 1, TEXTFLAG_ALLOW_NEWLINE = 2, TEX...
16:30
vote for proper namespaced enums!!!
16:30
imagine being in 2022
16:31
using the enum type on the function signature would make life easier for new and old coders
Avatar
does enum class allow values outside the specified ones?
Avatar
do u mean that if a func takes a EMyEnum it accept e.g the magic value 4?
Avatar
no, if it allows EMyEnum::FLAG1 | EMyEnum::FLAG2
Avatar
declares a scoped enumeration type whose underlying type is int (the keywords class and struct are exactly equivalent)
Avatar
whether they're still essentially ints
Avatar
the underlying type is int
16:33
so i guess yes
16:33
but idk
Avatar
"I guess" is bad in C++
16:33
might be UB ^^
16:34
You need to write your own overloaded operator| (and presumably operator& etc.). Flags operator|(Flags lhs, Flags rhs) { return static_cast<Flags>(static_cast<char>(lhs) | static_cast<char>(rhs)); }
16:34
@heinrich5991 found it
16:34
i think
16:34
Say I have such a class: enum class Flags : char { FLAG_1 = 1; FLAG_2 = 2; FLAG_3 = 4; FLAG_4 = 8; }; Now can I have a variable that has type flags and assign a value 7 for exampl...
16:35
Conversion of an integer to an enumeration type (scoped or not) is well-defined as long as the value is within the range of enumeration values (and UB otherwise; [expr.static.cast]/p10). For enums with fixed underlying types (this includes all scoped enums; [dcl.enum]/p5), the range of enumeration values is the same as the range of values of the underlying type ([dcl.enum]/p8). The rules are trickier if the underlying type is not fixed - so don't do it :)
16:36
Bitmask flags are a ubiquitous pattern in C & C++ code. In the ‘old days’, they were typically defined as: #define FLAGS_NONE 0x0 #define FLAGS_DO_A_THING 0x1 #define FLAGS_DISABLE_A_THING 0x2 #define FLAGS_OPTIONAL_FEATURE 0x4 HRESULT MyFunction(int flags); Since C/C++ preprocessor defines tend to have a lot of potential hazards, over time deve...
16:36
i love how c++ looks so ugly
16:38
enum FLAGS_FOR_MYFUNCTION { FLAGS_NONE = 0x0, FLAGS_DO_A_THING = 0x1, FLAGS_DISABLE_A_THING = 0x2, FLAGS_OPTIONAL_FEATURE = 0x4 }; constexpr inline T operator~ (T a) { return static_cast<T>( ~static_cast<std::underlying_type<T>::type>(a) ); } constexpr inline T operator| (T a, T b) { return static_cast<T>( static_cast<std::underlying_type<T>::type>(a) | static_cast<std::underlying_type<T>::type>(b) ); } constexpr inline T operator& (T a, T b) { return static_cast<T>( static_cast<std::underlying_type<T>::type>(a) & static_cast<std::underlying_type<T>::type>(b) ); } constexpr inline T operator^ (T a, T b) { return static_cast<T>( static_cast<std::underlying_type<T>::type>(a) ^ static_cast<std::underlying_type<T>::type>(b) ); } constexpr inline T& operator|= (T& a, T b) { return reinterpret_cast<T&>( reinterpret_cast<std::underlying_type<T>::type&>(a) |= static_cast<std::underlying_type<T>::type>(b) ); } constexpr inline T& operator&= (T& a, T b) { return reinterpret_cast<T&>( reinterpret_cast<std::underlying_type<T>::type&>(a) &= static_cast<std::underlying_type<T>::type>(b) ); } constexpr inline T& operator^= (T& a, T b) { return reinterpret_cast<T&>( reinterpret_cast<std::underlying_type<T>::type&>(a) ^= static_cast<std::underlying_type<T>::type>(b) ); } HRESULT MyFunction(FLAGS_FOR_MYFUNCTION flags);
16:38
the modern way
16:38
monkalaugh
Avatar
chillerdragon BOT 2022-01-21 21:07:41Z
Monthly reminder to buy some more Bitcoin …
Avatar
don't do it
21:09
especially not by advice from random people on the internet
Avatar
@heinrich5991 why would you call chillerdragon random? wtf
Avatar
I don't know chillerdragon well enough to take investment advice from him
Avatar
buy eth so mine goes up in value
Avatar
Avatar
chillerdragon
Monthly reminder to buy some more Bitcoin …
i hope no one listened to you last month
Avatar
BUY THE DIP ♿ ♿
Avatar
hey it's not investment advice but I did make almost 3k euros just buying random dips 😄
21:21
the trick is to actually not hold on to it 😄
Avatar
(remember to pay taxes if you hold bitcoin or similar for less than a year, in DE. can't speak for other countries)
Avatar
49bc150 Refactor: Distinguish between two concepts previously called "Dummy" - heinrich5991 4435e17 Fix a few bugs in dummy handling - heinrich5991 d2bf8d6 Rename Client to Conn (suggestion by deen) - heinrich5991 623d8af Merge #4623 - bors[bot]
Avatar
[quakenet] ChillerDragon BOT 2022-01-21 21:43:23Z
(I am not a registerd financial advisor)
21:43
lul
21:44
why would you hold bitcoin less than a year? diamond hands
21:45
@ZombieToad grep irc logs and plot my advises on a btc chart
Avatar
when would you sell though?
Avatar
[quakenet] ChillerDragon BOT 2022-01-21 21:45:33Z
when im 60 and want to buy a house
Avatar
then your advice can't really be evaluated until then
Avatar
[quakenet] ChillerDragon BOT 2022-01-21 21:46:59Z
Im just letting ya guys now that btc is still a thing had a 3 months down trend and 10% drop today so its nice opportunity to take the dip in case anyone of yo forgot that btc is still a thing
Avatar
I'll buy a massive amount of bitcoin and if it goes down I'll sue you for my losses
Avatar
[quakenet] ChillerDragon BOT 2022-01-21 21:48:49Z
yikes
Avatar
thanks for the official financial advice chiller :3
Avatar
[quakenet] ChillerDragon BOT 2022-01-21 21:49:00Z
fak
Avatar
[quakenet] ChillerDragon BOT 2022-01-21 22:03:04Z
btw i take the grep logs and plot on btc graph back i just did it :D
Avatar
Avatar
Jupstar ✪
Edit: @deen: ok one last round:I just disabled rendering in all places CGraphics_Threaded::Render* (except RenderText) That shoots my FPS from around 700-800 up to 3500So i guess that would then be a CPU benchmark xDSince your CPU should be stronger than mine you should probs have around 4k-7kAtleast worth a try to see if the GPU is the problem here I guess xd
~2000 fps
Avatar
@Jupeyy didn't work, I thought maybe it's because it uses the E cores, not P cores.

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSa...
Avatar
Avatar
Ryozuki
enum FLAGS_FOR_MYFUNCTION { FLAGS_NONE = 0x0, FLAGS_DO_A_THING = 0x1, FLAGS_DISABLE_A_THING = 0x2, FLAGS_OPTIONAL_FEATURE = 0x4 }; constexpr inline T operator~ (T a) { return static_cast<T>( ~static_cast<std::underlying_type<T>::type>(a) ); } constexpr inline T operator| (T a, T b) { return static_cast<T>( static_cast<std::underlying_type<T>::type>(a) | static_cast<std::underlying_type<T>::type>(b) ); } constexpr inline T operator& (T a, T b) { return static_cast<T>( static_cast<std::underlying_type<T>::type>(a) & static_cast<std::underlying_type<T>::type>(b) ); } constexpr inline T operator^ (T a, T b) { return static_cast<T>( static_cast<std::underlying_type<T>::type>(a) ^ static_cast<std::underlying_type<T>::type>(b) ); } constexpr inline T& operator|= (T& a, T b) { return reinterpret_cast<T&>( reinterpret_cast<std::underlying_type<T>::type&>(a) |= static_cast<std::underlying_type<T>::type>(b) ); } constexpr inline T& operator&= (T& a, T b) { return reinterpret_cast<T&>( reinterpret_cast<std::underlying_type<T>::type&>(a) &= static_cast<std::underlying_type<T>::type>(b) ); } constexpr inline T& operator^= (T& a, T b) { return reinterpret_cast<T&>( reinterpret_cast<std::underlying_type<T>::type&>(a) ^= static_cast<std::underlying_type<T>::type>(b) ); } HRESULT MyFunction(FLAGS_FOR_MYFUNCTION flags);
this kind of code isn't complicated, nor is it ugly imho, but it's still the kind of code you would write as a library writer. But if you needed to use bitmasks, and don't feel comfortable writing a macro that expands on a lot of overloaded symbols (like shown in that blog), then you should use something like namespace FeatureFlag { enum Flags : uint32_t { debugAllocator = 0x1, debugLogging = 0x2, }; }; So that you can do FeatureFlag::debugAllocator, otherwise if you don't rely on bitmasks you should prefer to use static_cast, or some equivalent. Like I use c++ template <typename EnumType> constexpr auto Idx(EnumType const & v) { return static_cast<typename std::underlying_type<EnumType>::type>(v); } template <typename EnumType> constexpr typename std::underlying_type<EnumType>::type & Idx(EnumType & v) { return reinterpret_cast<typename std::underlying_type<EnumType>::type &>(v); } (edited)
23:03
Exported 545 message(s)