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 11/14/2023 12:00AM and 11/15/2023 12:00AM
Avatar
What's an easy way to flip the image-data with lodepng? I used lodepng_decode32_file but it doesn't return all the necessary info to flip it. So I'm trying to use lodepng_load_file and then lodepng_decode right now. I just thought I would ask while doing so.
Avatar
heinrich5991 11/14/2023 3:05AM
you can flip it by hand after loading it
Avatar
yeah that's what I am doing rn.
3:09AM
well... I made zogtib write a the function to flip it >:), but he said that it'd require some extra info (the bytes per pixel)
3:12AM
I could just hardcode it to only use 32-bit images and segfault for others but I don't think that's a good idea
Avatar
heinrich5991 11/14/2023 3:14AM
well, you gotta know how many bytes per pixel it is for doing anything with it ^^
Avatar
ikr that's why I'm trying to use lodepng_decode instead. It assigns a LodePNGState which has LodePNGInfo
Avatar
heinrich5991 11/14/2023 3:17AM
do you read the comments btw?
Avatar
yeah
Avatar
heinrich5991 11/14/2023 3:17AM
/*Same as lodepng_decode_file, but always decodes to 32-bit RGBA raw image.
3:18AM
this means it's always doing 4 bytes per pixel
Avatar
hmm. Even if the image isn't 32-bit?
Avatar
heinrich5991 11/14/2023 3:19AM
/*Same as lodepng_decode_file, but always decodes to 32-bit RGBA raw image. (edited)
3:19AM
so yes
Avatar
ok :) thanks for the help
Avatar
It looks so strange
nouis 3
Avatar
Avatar
Mʎɹ シ
It looks so strange
M-Client
7:56AM
Matodor Client 😮
Avatar
Macho Client troll
feelsbadman 1
Avatar
cyberFighter 11/14/2023 9:16AM
is it possible to make a layer not get selected by ctrl + right click
Avatar
361f312 Update russian.txt - ByFox213 6d1654a Merge pull request #7454 from ByFox213/master - def-
Avatar

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 (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/#using-ad...
Avatar
Historic agreement on chat control proposal: European Parliament wants to remove chat control and safeguard secure encryption.
11:35AM
@heinrich5991 !
11:36AM
Today the EU Parliament decided on an alternative version of chat control - one that fortunately does not deserve this name anymore: After huge opposition against the surveillance methods included in the CSA Regulation (see 'Opposition against chat control' below), the EU Parliament has decided to uphold every citizen's right to privacy and underlined the importance of upholding our democratic values. We in Europe must not follow autocratic regimes like China and Russia by monitoring all our citizens. Patrick Breyer, Member of the EU Parliament and part of the CSAR negotiations says: "Under the impression of massive protests against the looming indiscriminate chat control mass scanning of private messages, we managed to win a broad majority for a different, new approach to protecting young people from abuse and exploitation online. As a pirate and digital freedom fighter, I am proud of this breakthrough. The winners of this agreement are on the one hand our children, who will be protected much more effectively and in a court-proof manner, and on the other hand all citizens, whose digital privacy of correspondence and communication security will be guaranteed." "Even if this compromise, which is supported from the progressive to the conservative camp, is not perfect on all points, it is a historic success that removing chat control and rescuing secure encryption is the common aim of the entire Parliament. We are doing the exact opposite of most EU governments who want to destroy digital privacy of correspondence and secure encryption. Governments must finally accept that this highly dangerous bill can only be fundamentally changed or not be passed at all. The fight against authoritarian chat control must be pursued with all determination!"
11:39AM
A huge win for our privacy rights is also that the EU Parliament has decided to "clearly exclude so-called client-side scanning".
11:43AM
“shouldn’t this have been published a few months ago?” yeah, probably. I even considered submitting it to the AoC contest. time is a real beast. The title is clickbait. I did not design and implement a programming language for the sole or even primary purpose of leaderboarding on Advent of Code. It just turned out that the programming language ...
Avatar
a bit yes
11:55AM
with fully idiomatic enterprise style rust
11:56AM
maybe i should make a library
Avatar
Anyone in here tried https://github.com/authzed/spicedb ? If so, whats your experience? (edited)
Avatar
its in go so its bad
12:15PM
(its a joke)
Avatar
Actually I just like that it is zanzibar inspired. But zanzibar is too expensive for my use-case
Avatar
An authorization library that supports access control models like ACL, RBAC, ABAC for Golang, Java, C/C++, Node.js, Javascript, PHP, Laravel, Python, .NET (C#), Delphi, Rust, Ruby, Swift (Objective-C), Lua (OpenResty), Dart (Flutter) and Elixir
12:17PM
is this about authorization?
12:17PM
i looked a bit only at this
12:18PM
obviously i only used the rust library
12:18PM
but they have like a lang to declare the things
12:18PM
Avatar
Seems also interesting
Avatar
it is
12:19PM
what lang u using
Avatar
ye i did that before i discovered my beloved rust
Avatar
Avatar
Ryozuki
what lang u using
I am searching for a language independent solution, because some parts are written in rust, others in golang, c++ and python. Some parts also use JavaScript
Avatar
well this looks independent as in the client lib has lot of impls
12:20PM
idk
12:20PM
In Casbin, the policy storage is implemented as an adapter(aka middleware for Casbin). To keep light-weight, we don't put adapter code in the main library (except the default file adapter). A complete list of Casbin adapters is provided as below. Any 3rd-party contribution on a new adapter is welcomed, please inform us and I will put it in this list:) For details of adapters, please refer to the documentation:
12:20PM
12:21PM
it certainly has quite the ecosystem
Avatar
hello im doing this issue
12:30PM
When using s to OP_SCALE a envelope my muzzle memory expects ESC to stop scaling. Instead it currently exits the editor and right click is used to stop OP_SCALE. Does not seem intuitive.
12:30PM
and its pretty simple
12:31PM
but
12:31PM
i have a question regarding how to do it well
12:32PM
Like the issue is that i want the combination "in OP_SCALE mode and pressed ESC" to have priority over "pressed ESC" (edited)
Avatar
f0c6a60 Update translation stats - def-
Avatar
c97c39a Update Belarusian translation for 17.4 - AlehKushniarou a329417 Merge pull request #7455 from AlehKushniarou/update-belarusian-17.4 - def-
Avatar
I think what I'd like to do is to move s_Operation or similiar to a new member variable of CEditor
12:56PM
So when we enter editing states like OP_SCALE we can check for it in different functions
Avatar
i love simple macro_rules in rust
1:15PM
sometimes they make it so magical
1:15PM
i love macros specially to reduce boilerplate in test code
1:17PM
macro_rules! jit_struct { ( $($x:expr),* $(,)? ) => { crate::values::JITValue::Struct { fields: vec![$($x), *], debug_name: None } }; } macro_rules! jit_enum { ( $tag:expr, $value:expr ) => { crate::values::JITValue::Enum { tag: $tag, value: Box::new($value), debug_name: None, } }; } assert_eq!(result, [jit_enum!(0, jit_struct!(jit_struct!(20u32.into(), 21u32.into(), 22u32.into(), 23u32.into())))]);
cammostripes 1
1:17PM
ez
Avatar
I have a fork of ddnet and a pull request waiting for some1 to look at it
1:38PM
but i also wanna make a new pull request for another issue
1:38PM
can i re-use the same fork?
1:38PM
im github nob
Avatar
Avatar
axel
can i re-use the same fork?
I saw in your current PR, you're using your master branch. It's better if you create a new branch for each PR.
Avatar
oh ok makes sense
1:40PM
but then i can just create a new branch for this new issue and leave old on master?
Avatar
Jupstar ✪ 11/14/2023 1:41PM
Yes
Avatar
Avatar
axel
but then i can just create a new branch for this new issue and leave old on master?
Sounds good, but don't forget to remove the commits you made in master in your new branch.
Avatar
Avatar
furo
Sounds good, but don't forget to remove the commits you made in master in your new branch.
heinrich5991 11/14/2023 1:42PM
no, wait until your PR is approved
Avatar
Avatar
furo
Sounds good, but don't forget to remove the commits you made in master in your new branch.
u mean the merge commits?
Avatar
heinrich5991 11/14/2023 1:42PM
or rejected
1:42PM
ah
1:42PM
nvm
1:42PM
for the new PR, the commits of your old PR shouldn't be in it
Avatar
oh yeah sure
Avatar
https://github.com/ddnet/ddnet/issues/7435 Now escape and right click should behave the same and fixes issue

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 existin...
Avatar
Generate git commit message from git-status. Will generate a commit message like "Added: file1.py file2.py file3.py Modified: file4.py file5.py Deleted: README.md Renamed: test.txt-&gt...
4:11PM
Generate git commit message from git-status. Will generate a commit message like "Added: file1.py file2.py file3.py Modified: file4.py file5.py Deleted: README.md Renamed: test.txt-> test2.txt". Put this in your .gitconfig.
4:11PM
i found my ok replacement
Avatar
is that useful?
Avatar
ws-client BOT 11/14/2023 4:33PM
<ChillerDragon> github also does that with your default commit messages. Usually also fast to type and not very informative. But it would still be cool for non code repos.
4:33PM
<ChillerDragon> like map repos. All my commits in those repos are "Add Multimap" "Add Kobra" anyways so there its nice
4:35PM
<ChillerDragon.> But a full on alias is bloat. The time it takes me to to write git commit-status it the same as git commit -m "Add file"
4:36PM
<ChillerDragon.> would be nice if it was just git commit and it prefills the default text in your editor like github does it.
4:36PM
<ChillerDragon.> im sure git offers a hook for that
Avatar
Avatar
Ryozuki
Generate git commit message from git-status. Will generate a commit message like "Added: file1.py file2.py file3.py Modified: file4.py file5.py Deleted: README.md Renamed: test.txt-> test2.txt". Put this in your .gitconfig.
heinrich5991 11/14/2023 4:37PM
doesn't sound very useful, this information is already in the commit
4:37PM
more interesting is the "why", as usual
Avatar
yeah
4:42PM
but u also put ok or stupid commit comments
4:42PM
when u dont bother
4:43PM
so i just use this now
4:43PM
xd
Avatar
Avatar
Ryozuki
i found my ok replacement
Jupstar ✪ 11/14/2023 4:49PM
4:49PM
no u
kek 2
Avatar
use copilot
Avatar
heinrich5991 11/14/2023 4:56PM
remove 100% cpu (edited)
4:56PM
ez
Avatar
♿
think_bot 5
nobyisthebiggesttroll 1
Avatar
chillerdragon BOT 11/14/2023 5:25PM
When merge https://github.com/ddnet/ddnet/pull/7453 @heinrich5991 ?
Getting rid of some of the casts. Road to moddable ddnet with gamecontroller support. Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with...
5:26PM
Still two more prs to go before I can start creating a ddnet mod. I am itchy
Avatar
cyberFighter 11/14/2023 5:30PM
among sus
Avatar
Turkish kids yesyes
Avatar
@Jupstar ✪ maybe ill do it with nasm
5:49PM
if i dont feel lazy
5:49PM
and idk whether to call c methods
Avatar
Avatar
Ryozuki
@Jupstar ✪ maybe ill do it with nasm
Jupstar ✪ 11/14/2023 5:52PM
yeah why not, u'll learn smth new
Avatar
Avatar
Ryozuki
and idk whether to call c methods
Jupstar ✪ 11/14/2023 5:58PM
I never joined aoc , so no idea what u even need lol
5:59PM
I assume the challenges are similar to code wars
5:59PM
well christmas themed
Avatar
Jupstar ✪ 11/14/2023 5:59PM
Ez
6:00PM
you can join ddnet leaderboard with code 677828-82ec4df2
6:00PM
Avatar
Doesn't aoc start on Decmeber 1st?
Avatar
heinrich5991 11/14/2023 6:31PM
yes, it does
Avatar
ah I was confused but it appears that you can join a leadboard in advance :)
6:34PM
I'm haven't made up my mind if I want to take part though. I am still feel newbie and that I would ask zogtib for help 😜
6:35PM
Well time to go full Jupstar mode and tryhard learning 8 hours min a day ^^
Avatar
ChillerDragon BOT 11/14/2023 6:37PM
you doing aoc in vulkan?
Avatar
Jupstar ✪ 11/14/2023 6:38PM
les go aoc in compute shaders
6:38PM
why not
6:53PM
8e2c3b4 Notify author that map filename must match channel name and about the 2-week grace period. - murpii 5dc0b57 Change voice channel permission on join/leave to allow streaming in hidden voice channel - murpii 92736b3 Merge pull request #64 from murpii/pr_update_testing - murpii
Avatar
A browser interface to the Rust compiler to experiment with the language
8:09PM
does this make sense?
8:11PM
use std::sync::atomic::{AtomicUsize, Ordering}; const COUNT: AtomicUsize = AtomicUsize::new(0); fn main() { assert_eq!(COUNT.fetch_add(1, Ordering::Relaxed), 0); assert_eq!(COUNT.fetch_add(1, Ordering::Relaxed), 1); // 0 }
8:11PM
second assert is 0 too
Avatar
A collection of lints to catch common mistakes and improve your Rust code.
Avatar
Jupstar ✪ 11/14/2023 8:22PM
there was smth similar in this weird rust quiz
8:22PM
explaining it
8:23PM
but 100% not intuitive xd
Avatar
ChillerDragon BOT 11/14/2023 8:29PM
@Robyt3 @heinrich5991 ddnet mods not wanting teams is such a non problem to me. I do not understand it. Can someone explain to me how my pr relates to what a mod want or not? Did we not agree on that a mod wants a controller and we want to get rid of the casts?
8:30PM
i fakin created a issue first to avoid discussion later on. The issue got super side tracked to the moon. Then heinrich agreed on removing the casts. And now we start from zero again with some unrelated discussion.
8:30PM
The teeworlds code base has this concepts of gamemodes and multiple game controllers that get instantiated depending on sv_gametype. Sadly ddrace/ddnet removed this moddability by hardcoding the dd...
8:30PM
Yea, these casts should go away.
8:32PM
Not having a way to create a controller is a real problem if you want to have a ddnet mod and keep merging upstream.
8:33PM
Teams are not a problem omg. Teams that are not in the way. Nice to have in every possible mod. Opt in and not active unless uses/activated.
8:33PM
how can you argue that the possibly unwantness of teams jusitfys not merging a pr that enables controllers?
8:35PM
Would mixins be cool? Yea probably. But can we just get in the controller support again to restore teeworlds codebase functionality?
8:36PM
This mindset annoys me. I create a pr solving a issue or adding a feature and as feedback i get: "wont merge because does not include a totally different feature"
Avatar
Jupstar ✪ 11/14/2023 8:36PM
if u ask me, teams are shitty implemented in ddnet anyway
8:36PM
xdd
Avatar
Avatar
ChillerDragon
i fakin created a issue first to avoid discussion later on. The issue got super side tracked to the moon. Then heinrich agreed on removing the casts. And now we start from zero again with some unrelated discussion.
heinrich5991 11/14/2023 8:49PM
the casts should go away. but not necessarily in the way of moving ddnet teams to the generic gamecontroller
Avatar
Avatar
Jupstar ✪
les go aoc in compute shaders
sounds fun (at least at first owo )
Avatar
Avatar
Ryozuki
use std::sync::atomic::{AtomicUsize, Ordering}; const COUNT: AtomicUsize = AtomicUsize::new(0); fn main() { assert_eq!(COUNT.fetch_add(1, Ordering::Relaxed), 0); assert_eq!(COUNT.fetch_add(1, Ordering::Relaxed), 1); // 0 }
heinrich5991 11/14/2023 8:49PM
yes. use static instead
8:50PM
const is like typing out the constant each time @Ryozuki
Avatar
i know
8:50PM
just found it curious
Avatar
@Jupstar ✪ what happens if the shader doesn't terminate for a while? will it time out?
Avatar
Avatar
Patiga
@Jupstar ✪ what happens if the shader doesn't terminate for a while? will it time out?
Jupstar ✪ 11/14/2023 8:51PM
depends i guess, afaik windows kills processes where the GPU hangs after 2 seconds
8:51PM
linux like 5 seconds, but i assume u can also disable that
8:52PM
and probably also where the display hangs, not the GPU itself
8:52PM
so offscreen maybe there is no real timeout
Avatar
maybe we'll get some task which can be done nicely with gpu ^^
8:53PM
kinda doubt it
Avatar
Jupstar ✪ 11/14/2023 8:53PM
smth with a huge loop xd
Avatar
ChillerDragon BOT 11/14/2023 8:53PM
@heinrich5991 whats your solution then
8:54PM
@heinrich5991 and what is the issue of moving it to the generic controller?
Avatar
Avatar
Jupstar ✪
smth with a huge loop xd
maybe some game of life stuff ^^
Avatar
Avatar
ChillerDragon
@heinrich5991 whats your solution then
heinrich5991 11/14/2023 8:54PM
I don't have a solution
Avatar
Avatar
ChillerDragon
@heinrich5991 and what is the issue of moving it to the generic controller?
heinrich5991 11/14/2023 8:55PM
I tried to explain it in the PR
Avatar
ChillerDragon BOT 11/14/2023 8:55PM
then at least explain the problem
8:55PM
i did not understand it at all
8:55PM
could you try again please?
8:56PM
is he typing?
8:56PM
omg
8:57PM
@heinrich5991 i dont want this to take weeks .-. dont afk on me pls
Avatar
heinrich5991 11/14/2023 8:58PM
I'm not available 24/7
Avatar
ChillerDragon BOT 11/14/2023 8:58PM
just gimme a quick live chat
Avatar
heinrich5991 11/14/2023 8:58PM
not right now
8:58PM
I don't seem to have the answers you need readily available
Avatar
@hcirnieh
9:48PM
i nede lehp
Avatar
heinrich5991 11/14/2023 9:50PM
ask
Avatar
i aws kingjo
Avatar
are you drunk
Avatar
nuo
10:43PM
7c15514 Use Escape to cancel OP_SCALE envelope - apelsin21 f726fbf Merge pull request #7456 from apelsin21/exit_OP_SCALE - Robyt3
Avatar
c70d21d Bump aiohttp from 3.8.5 to 3.8.6 - dependabot[bot]
11:53PM
Bumps aiohttp from 3.8.5 to 3.8.6. Release notes Sourced from aiohttp's releases. 3.8.6 Security bugfixes Upgraded the vendored copy of llhttp_ to v9.1.3 -- by :user:Dreamsorcerer Thanks to :user:kenballus for reporting this, see https://github.com/aio-libs/aiohttp/security/advisories/GHSA-pjjw-qhg8-p2p9. .. _llhttp: https://llhttp.org (#7647) Updated Python parser to comply with RFCs 9110/9112 -- by :user:Dreamorcerer Thanks to :user:kenballus for...
11:53PM
[ddnet/ddnet-discordbot] New branch created: aiohttp-3.8.6
Exported 205 message(s)
Timezone: UTC+0