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-05 00:00:00Z and 2023-04-06 00:00:00Z
Avatar
is there a way to ensure drawing of a rect is clipped inside of its parent scroll region’s corner radius (edited)
01:18
so i can avoid this
Avatar
Avatar
Ewan
is there a way to ensure drawing of a rect is clipped inside of its parent scroll region’s corner radius (edited)
IGraphics::ClipEnable Or smth like that
03:02
unfortunately this does not consider corner radius
Avatar
I think we can only have rectangular clips. Properly handling round corners probably requires some feature that's not available in gl1
👍 1
Avatar
Avatar
Anime.pdf
#developer rule #1: don't mention windows as usable operating system
why that, no bugs giga_chad
06:41
(don't ban me)
Avatar
Avatar
Ewan
unfortunately this does not consider corner radius
Oh oke
Avatar
i just reduced both radii
Avatar
Avatar
Anime.pdf
#developer rule #1: don't mention windows as usable operating system
Linux users when they’re in a room with windows (edited)
Avatar
Avatar
Ewan
i just reduced both radii
technically it’s wrong but not wrong enough to be super noticeable
Avatar
the world is wrong
13:24
even in llvm
13:25
i depend on C for malloc
13:25
god help me get liberated from C
Avatar
But doesn't it depend on the os
Avatar
@Jupstar ✪ making raw sys calls via llvm-ir is a big bother
13:29
idk how actually but its possible probs
13:30
even rust, uses libc for the bare ops
13:30
such as malloc
13:30
i think golang doesnt depend on libc
Avatar
Let's create a new os
Avatar
but they had bugs due to this
13:30
cuz its not easy to do
Avatar
maybe a different sort of wrong
13:43
but still wrong
13:43
previously i had the outer rect at 10.0 radius & the inner ones at 5.0, with 5.0 margins
13:44
i've halved the radii but not the margins
13:44
which is a no-no for uniformity's sake
13:45
but it is better than this
13:45
pretty much anything is better than that
14:06
i believe it was already posted here though
Avatar
this is making me cringe pretty hard
Avatar
Nani
Avatar
Avatar
Ewan
this is making me cringe pretty hard
what is
14:14
this girl or guy knows more c than u
Avatar
the contents of this post
14:14
and probably true
14:14
but that doesn't mean their delivery isn't obnoxious
Avatar
truth hurts
Avatar
I rarely see new projects written in c anymore (edited)
Avatar
she is quite a big contributor
14:15
The Dark Arts of Advanced and Unsafe Rust Programming
14:16
"Master's Thesis: You Can't Spell Trust Without Rust"
14:16
lmaoo true
Avatar
Xd
14:16
The rust gang
Avatar
i wonder if was her who wrote the pointer provenance thing
14:17
i forgot
14:17
it was a interesting blog
14:17
yep
14:19
and now i got derailed on what iw as doing
Avatar
oh I know that furry
14:28
what does this mean
14:28
the ramp
Avatar
that's an error lol
14:29
a bug
14:29
fucked up format on a float
14:30
unrelated q, it's kinda hard to tell with the config macros. how big are config strings & are they malloc'd or static size
14:30
for sizeof() purposes
Avatar
static size, every MACRO_CONFIG_STR defines the length
14:31
so sizeof works
14:32
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
Avatar
its from tune velramp_curvature 0 xd, but it also makes you very glitchy and move at like 5 fps i wonder why though
Avatar
do you want to know what the ramp is used for or why it looks like that
14:43
this is the use float DisplaySpeedX = VelspeedX / 32; DisplaySpeedX *= VelocityRamp(VelspeedLength, m_pClient->m_aTuning[g_Config.m_ClDummy].m_VelrampStart, m_pClient->m_aTuning[g_Config.m_ClDummy].m_VelrampRange, m_pClient->m_aTuning[g_Config.m_ClDummy].m_VelrampCurvature); (edited)
Avatar
Avatar
Ewan
do you want to know what the ramp is used for or why it looks like that
why its 5 fps movement
Avatar
idk what u mean
14:44
under what circumstances is it going 5 fps
Avatar
well if u have ramp curvature at 0 and start moving/jumping around
Avatar
why do u have it at 0
Avatar
so i would see what happens
14:45
just curious
Avatar
in the curvature function return 1.0f / powf(Curvature, (Value - Start) / Range); i'd assume having Curvature at near-zero makes the exponent way more expensive
14:47
and this is being called every frame
Avatar
I love how most arguments against C boil down to "I invoked UB, it did something unexpected, send hewp"
15:12
Just from how this line is written I can tell this person isn't a C enjoyer struct Meow* p_cat = (struct Meow*)malloc(sizeof(struct Meow));
Avatar
struct Meow *p_cat = malloc(sizeof *p_cat); is how any C enjoyer would put it
15:17
All someone has to do is strip the build of -Werror -Wall -Wpedantic and you’ll be off to the races in committing multithreading, read-only, and hardware register crimes.
No sane C developer goes without at least -Wall
15:18
I honestly have grown tired of these articles that just hold it wrong and say it's bad. We are here to code, not pentest compilers. Yes if you don't use the safeties provided by the compiler you can make mistakes, who would have guessed
Avatar
Learath you should start your own blog then praising C
Avatar
I would do a better job as a critique, there are things that are bad about C, no need to slander it
Avatar
Though I did enjoy the actual idea in this article, yes C as an FFI isn't the greatest thing ever. I did not enjoy the articles it linked to
Avatar
llvm/source/llvm-project-16.0.0.src/llvm/include/llvm/ADT/SmallVector.h:298: llvm::SmallVectorTemplateCommon::const_reference llvm::SmallVectorTemplateCommon<std::optional<mlir::TypeConverter::SignatureConversion::InputMapping>>::operator[](llvm::SmallVectorTemplateCommon::size_type) const [T = std::optional<mlir::TypeConverter::SignatureConversion::InputMapping>]: Assertion `idx < size()' failed. Aborted constant pain in life
Avatar
i fixed this but foudn smth even better
16:36
error: 'llvm.getelementptr' op expected as many dynamic indices as specified in 'rawConstantIndices'
16:37
imagine having docs kek
Avatar
yeah fix llvm pls
Avatar
are there enums for mouse buttons in the UI
17:16
all ui mouse button fns take raw ints
Avatar
no, there's no enum for UI mouse buttons yet
👍 1
Avatar
Hey can i change map from downloadmaps? like "sv_map downloadedmaps/testmap.map"
Avatar
Avatar
Daniel
Hey can i change map from downloadmaps? like "sv_map downloadedmaps/testmap.map"
well u can edit the storage.cfg add_path <path>/downloadedmaps (edited)
18:06
and then change_map testmap
Avatar
Highlight 0XF game type

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/dd...
Avatar
Avatar
Jupstar ✪
well u can edit the storage.cfg add_path <path>/downloadedmaps (edited)
mhh not optimal solution for TaterClient 😄 i will look forward it but thanks ❤️ (edited)
Avatar
Avatar
GitHub
Click to see attachment 🖼️
should add gametype register for highlightings xd
Avatar
Allman for every developer
Avatar
kernighan & ritchie
18:41
clang-format google preset
Avatar
Avatar
Dragere
Click to see attachment 🖼️
agreed
Avatar
Avatar
Chairn
Allman for every developer
calling ryozuki
Avatar
I use a modified form of K&R
18:42
K&R, no huddled else and no opening brace on function definitions
Avatar
kind of trolling troll
Avatar
i kind of agree with the pic
18:54
k&r works nice in rust
18:54
the holy grail is just rustfmt anyway
Avatar
I bet you just defer to clippy, weak willed
Avatar
no need for names
Avatar
Avatar
Learath2
I bet you just defer to clippy, weak willed
no, for formatting its rustfmt
18:54
clippy is warnings
Avatar
clippy with pedantic warnings as errors
18:55
base rust format config
18:56
#![forbid(unsafe_code)] #![deny(missing_docs)] #![deny(warnings)] #![deny(clippy::nursery)] #![deny(clippy::pedantic)] #![deny(clippy::all)]
Avatar
Avatar
Ryozuki
llvm/source/llvm-project-16.0.0.src/llvm/include/llvm/ADT/SmallVector.h:298: llvm::SmallVectorTemplateCommon::const_reference llvm::SmallVectorTemplateCommon<std::optional<mlir::TypeConverter::SignatureConversion::InputMapping>>::operator[](llvm::SmallVectorTemplateCommon::size_type) const [T = std::optional<mlir::TypeConverter::SignatureConversion::InputMapping>]: Assertion `idx < size()' failed. Aborted constant pain in life
I once did a wrapper class for vector, so it throws an exception what the index, size and type of vector was for these kind of pains
Avatar
Avatar
ReD
I once did a wrapper class for vector, so it throws an exception what the index, size and type of vector was for these kind of pains
hack llvm for that
19:06
but i found the solution
Avatar
Avatar
Learath2
agreed
no, missing @noby 's coding style
Avatar
and the assert rly didnt made it easier
19:07
its cuz i was returning a value while the function signature had no return value (edited)
19:07
or smth like that
19:07
in the generated MLIR code
Avatar
who can come race on multeasy map
💀 6
19:17
why
Avatar
Avatar
alpis
who can come race on multeasy map
This is where we talk about the develoupment of the game. If you're looking for someone to play with, feel free to request in #looking-for-group
Avatar
Avatar
alpis
who can come race on multeasy map
good idea asking for racing on multeasy in #developer
Avatar
Avatar
Gewinum
good idea asking for racing on multeasy in #developer
i already told him that
Avatar
i wanted to joke but as you can see my sense of humour is trash
Avatar
sorry my bad
19:35
LOL
Avatar
no its alright
Avatar
I created Papers, Please in 2013 specifically for desktop computers with mouse control. Now, here, in 2022, desktop computers no longer exist and all computing is done via handheld mobile telephone. Time to update this dinosaur. These thousands of words and megabytes of images will cover some bits of porting the game from big desktop to little p...
Avatar
Closes #4638.

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
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/...
20:23
85485d2 highlight game type - 0xfaulty bf443dd Merge #6496 - bors[bot]
Avatar
guys anyone help me pls
23:45
i am playing on phone i cant join ger 10 white list servers
23:45
why this proplem
Avatar
Avatar
7mzom alonso
i am playing on phone i cant join ger 10 white list servers
did you whitelist
23:45
on mobile
Exported 153 message(s)