Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2023-12-23 00:00:00Z and 2023-12-24 00:00:00Z
Avatar
chillerdragon BOT 2023-12-23 00:34:38Z
Yes that much is obvious from the screenshot. But why? What are you wiresharking?
Replying to @Bota I pulled libtw2 and tried to build wireshark plugin
00:35
What you did looks good. No idea what the issue is. Maybe wrong rust version. Not sure if anyone ever tried to build that on windows you can try pinging Heinrich but he will read this eventually anyways I think
Replying to @Bota how i do that. I dont know rust
Avatar
what toolchain are you using? msvc mangles symbol names differently from gcc and clang so it would expect different function names
Avatar
don't forget the world depends on #7691
Avatar
Some people were tired of having to re-enter practice mode, teleport back to where they were, and situate their weapons/solo status when hitting a kill tile in practice mode. The game will now resc...
Avatar
@mbvxoxo give me another idea
Avatar
the world depends on monotonic buffer resource
07:23
@tela what macos ver u on
Avatar
@Ewan if its for me i would merge it but i want atleast another one to agree
07:33
nobody looking at it
Avatar
i gave my 🦭 of aproval
07:33
i love seals
07:33
some ppl say my dog looks like a seal
07:33
but seals are just water dogs
07:34
give me an idea
07:36
@Ewan did u see deen comment on my pr
07:36
should i make CHeap thread safe
Avatar
the old way isnt and this isnt
Avatar
that would be sick for when i have another go at async skins
Avatar
but whats the point if the 🍎 is holding me back
Avatar
i think when i do it again i will just batch them and not try and have them load in the bg with the game xd
07:36
no matter how i do that i will still get micro stutters
07:37
bcs it has to wait to upload to the gpu at an irregular time
Avatar
Avatar
Ryozuki
but whats the point if the 🍎 is holding me back
maybe it isn't
07:37
depends on how deen feels about dropping compilation host support for already very old macos (edited)
07:38
who is Shereef Marzouk
07:39
why u ask
Avatar
Avatar
Ewan
depends on how deen feels about dropping compilation host support for already very old macos (edited)
but the ci on gh is using macos-latest iirc XD
Avatar
Avatar
Ryozuki
why u ask
he's (c) at the top of ddracechat.cpp
07:39
maybe other files
07:39
never heard the real name before
Avatar
Avatar
Ryozuki
but the ci on gh is using macos-latest iirc XD
i'm sure you can still run the binary compiled by latest macos on <14
Avatar
Avatar
Ryozuki
should i make CHeap thread safe
Why?
Avatar
Avatar
Ewan
who is Shereef Marzouk
Greyfox
Avatar
@Learath2 read deen comment
07:45
Avatar
as long as CHeap doesn't have bad single thread perf because it's thread safe. which i can't see happening anyway
Avatar
did u check my pr yet
07:46
https://en.cppreference.com/w/cpp/memory/monotonic_buffer_resource Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related c...
07:46
cheap is rarely used too
07:46
only for localisation and another thing
Avatar
I think it should be made thread safe at the point of use. That's how most containers are unless they are specifically crafted to be threadsafe usually locklessly
Avatar
apparently macos comes with gcc 13 in github ci?
07:46
can se use that?
07:47
GitHub Actions runner images. Contribute to actions/runner-images development by creating an account on GitHub.
Avatar
Avatar
Learath2
I think it should be made thread safe at the point of use. That's how most containers are unless they are specifically crafted to be threadsafe usually locklessly
i see
Avatar
Do we even use it from multiple threads ever anyway?
07:49
07:49
those are the uses i found
07:49
is the serverbrowser MT?
07:50
07:50
is the console execution queue mt?
Avatar
i believe so
07:51
dont take my word for it
Avatar
in macos
07:51
CXX=/usr/bin/g++-13 would work?
Avatar
Config using it now might explain some of the bizarre new bugs
Avatar
github macos containers have gcc 13
Avatar
maybe in the ci it might work
07:52
idk what they use
Avatar
Clang/LLVM 14.0.3 Clang/LLVM (Homebrew) 15.0.7 - available on $(brew --prefix llvm@15)/bin/clang GCC 11 (Homebrew GCC 11.4.0) - available by gcc-11 alias GCC 12 (Homebrew GCC 12.3.0) - available by gcc-12 alias GCC 13 (Homebrew GCC 13.2.0) - available by gcc-13 alias
Avatar
unrelated q but why is my chat command's pResult->NumArguments() only saying there is 1 arg when in fact there are 2
Avatar
// execute config file if(pStorage->FileExists(CONFIG_FILE, IStorage::TYPE_ALL)) { pConsole->SetUnknownCommandCallback(SaveUnknownCommandCallback, pClient); if(!pConsole->ExecuteFile(CONFIG_FILE)) { const char *pError = "Failed to load config from '" CONFIG_FILE "'."; dbg_msg("client", "%s", pError); pClient->ShowMessageBox("Config File Error", pError); PerformAllCleanup(); return -1; } pConsole->SetUnknownCommandCallback(IConsole::EmptyUnknownCommandCallback, nullptr); }
08:00
@Learath2 i see this but where is the callback called on execute file? xD
Avatar
Look for a findcommand somewhere in executeline
Avatar
Avatar
Ewan
unrelated q but why is my chat command's pResult->NumArguments() only saying there is 1 arg when in fact there are 2
i guess it's always reporting as 2 when it's 3 or more
Avatar
is it not delimiting args by space after the actual name of the command?
08:01
do i have to do that myself
Avatar
Avatar
Ewan
is it not delimiting args by space after the actual name of the command?
What does your arg string look like?
08:02
If you have an r it won’t split anymore
Avatar
but i dont see where a thread is started
08:02
an actual 'r'
Avatar
When you register a command you give a definition of it’s arguments
08:03
Something like “sss” for a command that takes 3 strings e.g.
08:03
i didn't realize that actually did anything 😃 (edited)
Avatar
r means rest, so it’ll give you all the rest of the string at that point
Avatar
we should speak british english
08:04
colour
08:05
now that i have lot of free time its time to do prs
08:05
and redeem myself as a ddnet dev
Avatar
(if macos doesnt hold me back)
Avatar
holidays moment
08:05
anyone here ever rent a macos vps
Avatar
i have a m1 myself
Avatar
oh yeah i forgot
08:05
lucky
Avatar
from work
08:06
@Learath2 did u check ewan pr
08:06
feel free to merge it
08:07
do u know what version of clang supports pmr
Avatar
can CConsole::CResult::GetFloat ever return NaN
Avatar
15? 16? 17?
Avatar
well with brew u can get llvm 17
08:09
so
08:14
08:15
i made it so u can /tp x y
08:15
/tp or /tp playername or /tp x y
Avatar
@Learath2 why on gentoo i have gcc 12
08:16
and not 13
08:17
omg
08:17
i have it in eselect
08:17
nvm
Avatar
i will make pr
Avatar
of what
Avatar
The thing i just sent
Avatar
Avatar
Ewan
can CConsole::CResult::GetFloat ever return NaN
NaN should not be possible
Avatar
However you can get, HUGE_VAL on overflow and 0 on underflow
08:19
We don’t check or catch either 😄
Avatar
wow awesome
Avatar
Oh now that I take a look at it we don’t check for invalid either, so you should get a 0 on things that can’t be converted to float too 🙃
08:20
Teeworlds moment
Avatar
i will parse it myself then
Avatar
/Users/runner/work/ddnet/ddnet/src/base/math.h:6:10: fatal error: algorithm: No such file or directory 6 | #include <algorithm>
08:20
tf why g++ 13 fails
Avatar
was planning to prepend with + or - for relative coords anyway so i couldn’t use getfloat
Avatar
Avatar
Ewan
was planning to prepend with + or - for relative coords anyway so i couldn’t use getfloat
It should handle negatives just fine, no?
Avatar
not what i mean
08:21
10 = absolute 10 +10 = current pos + 10 -10 = current pos - 10
Avatar
Aha, yeah can’t do that with float
08:22
or i could be more explicit and use tildes like minecraft
08:22
but doesn't seem needed
08:22
it's just ~ vs +/-0
08:23
but uhh actually can you place things at negative coords in a map 😅 i feel like i've seen it before
08:23
in which case i would have to use a tilde or smth else
08:23
need to know real map boundaries
08:26
sounds like what i want is the entity clipping rectangle?
Avatar
ok i surrender
08:27
fck macos
08:27
i hate ci driven development
Avatar
this also means i cant modernize other parts
08:34
cuz macos
08:34
imagine saying u support c++17 but not rly
Avatar
i was about to say smth
08:36
but it would piss u off
08:36
😬
08:38
go for it
Avatar
Voxel really did rq :(. He was cool. Hope he comes back. Although he did say ddnet wasn't as fun anymore couple of times.
Avatar
life is not daijoubu
08:40
08:40
i love this meme
Avatar
why do all our artists rq xd
Avatar
I still can’t believe he left because Ryozuki preached rust. It’s like getting angry at a priest for reading the bible
Avatar
we already have too few
Avatar
Avatar
Learath2
I still can’t believe he left because Ryozuki preached rust. It’s like getting angry at a priest for reading the bible
i dont think its just that
08:41
he was frustrated with maps too
08:41
he said all new maps were unfun or smth
Avatar
Avatar
Jupstar ✪
we already have too few
i guess artists arent as keen to open source art as devs are for free software
08:42
we are more selfless
Avatar
it's just bcs they are paid bad in RL
Avatar
as dev u get a new job after 1 sec xD
Avatar
I think artists want more recognition than programmers tbh
Avatar
...anyways
Avatar
ye programmers stay in the shadows
08:43
normal ppl dont know john carmack
Avatar
well he was not paid to be an artist afaik
08:44
idk what ravie does
Avatar
db manager
Avatar
i mean as job
08:44
idk
Avatar
guys what are the actual map boundaries
Avatar
Avatar
Ryozuki
idk what ravie does
He is a professional edgelord. Gets paid to have unwoke opinions
Avatar
let's say for entities
08:45
i just need a number rn to test this
Avatar
Plays the accordeon
Avatar
-i16 +i16??
08:45
idk
08:45
xd
08:46
omw
Avatar
where SHORT_MAX macro xd
08:46
feelsbadman
Avatar
i just said it randomly idk tbh
Avatar
Avatar
Ewan
guys what are the actual map boundaries
I doubt there is any if you remove the death border, you just go out until floats become very inaccurate and bizarre things happen
08:46
Teeworlds farlands
Avatar
k what is the death border
Avatar
i think its 20 tiles away from the map size
Avatar
or smth like that
Avatar
can maps go negative
08:47
on either x or y
Avatar
Avatar
Learath2
Teeworlds farlands
basically if it goes to negative after hitting float limit, it wont render theorically
Avatar
Avatar
Cellegen
basically if it goes to negative after hitting float limit, it wont render theorically
u sometimes dont make sense xd
Avatar
ig i should ask if maps can exist outside of quadrant 4
Avatar
Avatar
Cellegen
basically if it goes to negative after hitting float limit, it wont render theorically
It shouldn’t, float overflow works differently
Avatar
float loses accuracy as it goes further from 0 iirc
Avatar
so it would just reset (as in if its 64 or 128) hitting limit (edited)
Avatar
so its not about not being able to render
Avatar
float overflow is a myth
Avatar
You’ll get stuck at HUGE_VAL
Avatar
just use float128
😬 1
08:48
big boi float
Avatar
is huge val also for negatively huge numbers
08:48
tending towards - infinity
Avatar
HUGE_VAL + d == HUGE_VAL forall d > 0 iirc
08:48
HUGE_VALF Expands to positive float expression that indicates overflow HUGE_VAL Expands to positive double expression that indicates overflow, not necessarily representable as a float HUGE_VALL Expands to positive long double expression that indicates overflow, not necessarily representable as a float or double
Avatar
Avatar
Ryozuki
i think its 20 tiles away from the map size
i guess i will use placeholders for now. i need to know how to get this info tho
Avatar
A 64-bit floating point type (specifically, the “binary64” type defined in IEEE 754-2008).
08:54
@Learath2 did u know arm uses 16 byte align
08:54
macos
Avatar
Avatar
Ryozuki
@Learath2 did u know arm uses 16 byte align
I did not know it as fact, but I’d guess it given thumb instructions are 16b
Avatar
ah wait
08:55
its 16 for > 128bit
08:56
@cmpxchg on x86_64 supports u128 integers. However @alignOf(u128) reports 8, and without align(16) on the u128, the code segfaults at runtime. This alignment is reported by LLVM as the "ABI al...
While fixing various bindgen bugs related to long double, int128, (rust-lang/rust-bindgen#1370, etc). I realized that the following Rust program, in my x86_64 Linux machine: #[repr(C)] struct Foo {...
08:56
ok wait this is unrelated
08:56
xdd
08:56
but this shit came up at work
08:56
when making the compiler
08:57
okay i added relative modes
08:57
i still need to know if maps can exist outside quadrant 4
08:57
so i can reserve -X.X for non relative purposes
08:57
absolute
08:57
sdiffjsd
Avatar
but ye 64bit arm is 16
09:02
tbh it would be easy to just make it ~+ or ~- instead
09:08
im going with tildes for now
Avatar
ur a tilde
09:18
rude
Avatar
Avatar
Ewan
Click to see attachment 🖼️
Ngl, but this seems more unpractical to use than current tp
Avatar
yea i too love zooming in and inching towards the exact tenth place offset i need
09:45
???
09:45
it exists for a different purpose
09:45
also can be bound...
Avatar
The only real application I see tp this it's if I wanted to go far to some direction to save me like 2 secs of dezooming. Otherwise most of tp needs too much precision for me to somehow guess the exact coordinates
Avatar
well then i didnt make this for you
09:52
i think it would be quite helpful
Avatar
Talking about tp, something that could really be useful is not falling just after tp (already happens when using it with spec)
Avatar
how else would it work
09:53
i guess it wouldn't be hard to put the player in a limbo state but i dont want to mess with prediction code
Avatar
Avatar
Ewan
well then i didnt make this for you
^^ I was just giving my opinion. I'm sorry to hurt you? Idk. If you receice some positive feedback I'd like to know the use of it, because I can't really come up with anything other than fast travel to far distances
Avatar
have you ever played a map and wanted to test a setup on the fly or something
09:54
you can iterate on starting coordinates for the setup using this without just tapping a and d until your fingers bleed
Avatar
Oh, ok I see what you mean
Avatar
it seems like you don't really play the game because it's really really common for me to be playing with other people & all of the sudden coordinates matter a lot
Avatar
You want to use it to repeat a setup
Avatar
or i guess you have a radically different playstyle
Avatar
Avatar
Ewan
it seems like you don't really play the game because it's really really common for me to be playing with other people & all of the sudden coordinates matter a lot
Well, I usually just accomplish whatever I try eithouth needing 99999 attempts
09:56
Ok I ll stop the beef here, but y I see
Avatar
i just got trolled hard by vec4
10:15
spent about 30 min trying to figure out why i get sent out of bounds & subsequently killed only when my bounds checking is on
10:15
std::clamp(BaseY, Boundaries.y + 32.f, Boundaries.y + Boundaries.h - 32.f)
10:15
and i was doing it like that
10:15
but .h is the same as .x.... it's h for HSL
10:16
i needed .l (length)
Avatar
TBH we could likely remove the color aliases at some point since we use ColorRGBA in most places
10:21
i have sort of a niche need atm robyt
10:21
i am bounds checking /tp coordinates from my video up there but this requires getting the game layer & saving its boundaries
10:22
i don't want to do it every time the command is called but making it static would not be good because it would persist after a map change if it's only set once (edited)
10:22
should i check if the map changed inline or make it a member of CGameContext, and make it stick out like a sore thumb
Avatar
Avatar
Ewan
i am bounds checking /tp coordinates from my video up there but this requires getting the game layer & saving its boundaries
Doesn't seem very expensive to calculate the boundaries. Do you mean something like width+201?
10:27
i suppose i will just do it every frame 😃
Avatar
CCollision keeps track of the game layer size, so if you wanted a cache then that would be the place, but just for width+201 it's not really worth it
10:27
I'd say profile first if it's an issue, otherwise it's premature optimization
10:27
10:28
this is all it is
10:28
i think it should be fine
Avatar
@Ewan u can finally get dev role
10:30
10:30
trolled again!
Avatar
these are issues from 2020
10:30
all of them complaints from heinrich
10:30
heinrich singlehandedly stopping progress. nice
Avatar
And somehow we have two issues about the same thing
Avatar
i really have not heard anyone but heinrich complain about that approach
Avatar
If it generates lots of server messages then it's bad for the servers
10:32
The comment in #2221 explain a case in one map where it happens
Avatar
Note I've already incorporated the conflicts from #2218, but that's not to say I incorporated #2218 in it's entirety.
Avatar
what exactly is the issue rn?
Avatar
Avatar
Robyt3
The comment in #2221 explain a case in one map where it happens
can u eli5
Avatar
kill will act like /r right? /r only works if u stand still somewhere, right?
Avatar
yes exactly
Avatar
then i dont see a problem with your design
Avatar
the only place that you can get softlocked or repeatedly teleported without interfering has been removed in my pr
Avatar
If you stand on a speeder and it moves you into a kill tile
Avatar
then speeders shouldn't be safe
Avatar
I only skimmed the comments
Avatar
Avatar
Robyt3
If you stand on a speeder and it moves you into a kill tile
but /r only works if u stand still
10:37
so this cant even happen
Avatar
Then the comments still need to be "addressed" by extensive testing and explanation that this cannot happen
Avatar
if not, then i'd claim that /r is bugged
10:38
yeah, the approach that heinrich wants is pretty overcomplicated tho. better try to make it easier by restricting it to our case
Avatar
It could be possible to have a velocity of vec(0, 0) temporarily while inside a speeder
Avatar
Avatar
Robyt3
It could be possible to have a velocity of vec(0, 0) temporarily while inside a speeder
well then stand still and dont press any key
10:40
for 2 ticks
10:40
xdd
Avatar
Allows you to explicitly specify which coordinates to teleport to in the /tp and /teleport commands Syntax for the complete command is as follows /tp; teleport to the origin of your spectating perspective /tp arg'; teleport to this player /tp arg1 arg2; teleport to these coordinates (arg1 is x, arg2 is y) can also specify relative coordinates, like minecraft. these are all valid 10 (absolute 10.00) ~10 (current position + 10.00) ~+10 (current position + 10.00) `...
Avatar
but pressing /r after died or not dieing, when you expect it defs sounds more unintuitive
Avatar
Avatar
GitHub
Click to see attachment 🖼️
@Ewan Can you avoid some of the unrelated style changes in your PR? Looks like you used clang-format-15 instead of 10 (edited)
Avatar
Avatar
Ewan
then speeders shouldn't be safe
it’s literally just like gravity
Avatar
Avatar
Robyt3
@Ewan Can you avoid some of the unrelated style changes in your PR? Looks like you used clang-format-15 instead of 10 (edited)
i’d like to but idk how to set it up with my ide
10:42
i will have to manually apply style changes inplace with the cli otherwise
Avatar
You could simply not stage, commit and push those changes owo
Avatar
err we must not be talking about the same thing
10:43
anyway why does ddnet not use 15
10:43
quite annoying
Avatar
Because the format looks trash
Avatar
can’t you specify further
Avatar
maybe we could invest some day in a definition about which tiles actively affect gameplay. would be intersting, e.g.:
  • air tiles
  • tele out
  • tune zones are all passive
Avatar
Interfacing with clang-format is black magic
Avatar
it’s literally just a file
10:44
and you write the rules you want
10:44
ez as pie
Avatar
But I wish someone would do it of course
Avatar
just ping deen, he fixes clang-format for you
Avatar
He also didn't know how to get lines not to break
Avatar
well sorry if you don’t agree but subjecting every contributor to use an old version of clang format when they do any more than 3 line changes doesn’t exactly seem logical
Avatar
Ideally clang-format would either preserve our line lengths or at least not do something as stupid as the format I linked above
Avatar
you can give it an explicit max line width
Avatar
@Ewan u can take over #7034
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 add...
Avatar
Avatar
Ewan
well sorry if you don’t agree but subjecting every contributor to use an old version of clang format when they do any more than 3 line changes doesn’t exactly seem logical
The version and format should be upgrades yeah, but contributions shouldn't contain unrelated changes either
Avatar
then u can use format 15 xd
Avatar
should just cut your losses imo
10:47
impose clang format 15 changes on all ddnet source
10:47
without trying to preserve current style
Avatar
I could agree with all previous clang-format decisions so far, but this is completely illogical formatting so I won't support it
Avatar
right well it's definitely not hard to write your own'
10:47
rules
Avatar
he have our own rules
10:48
we
10:48
sadly clang-format seems to have changed some things
Avatar
it does not help that clang format 10 is not even in my pkg mgr
Avatar
yep, but even clang-format15 should be pretty close. what even is your issue rn? does it create such a huge diff?
Avatar
im finding so much stuff
10:49
prepare
Avatar
#7034 only changed 300 lines
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 add...
Avatar
mainly my problem is we are talking about whitespace here but now i have to build an old version of this tool from source because nobody took the time to modernize the CI
10:50
you could also consider having the CI in-place apply the proposed changes that make the build fail
Avatar
yeah that's silly
10:50
hey ryo want another ddnet chore
10:51
ask in llvm server how to fix that bs
10:51
clang-format channel has seen enough of my face
Avatar
ryo will tell you exactly one thing: use rust
10:51
and then i'll tell him, yeah but sometimes rustfmt also breaks, very annoying
10:52
don't know what constant to use for these buffers
10:52
max console string length or whatever it's called seems absurd
10:52
not rly trying to allocate 8kb per arg
Avatar
32 seems enough I guess
Avatar
do u even need these tmp vars?
Avatar
i suppose not
Avatar
Doesn't look like it (edited)
Avatar
changing real quick
Avatar
Also GameLayer -> pGameLayer
Avatar
o yea thx
Avatar
Boundaries probably doesn't need to be static
10:54
Would also have the wrong name for that
10:54
oh yeha
10:54
s_
10:54
s
10:54
asjkbfkj
Avatar
You are calculating the values every time, so you don't need static
10:55
One vec4 isn't very expensive to create/destroy either
Avatar
my thinking was it helps to not allocate 4 floats again but i'm using aggregate init so w/e
Avatar
Avatar
Ewan
it does not help that clang format 10 is not even in my pkg mgr
It’s in none of ours either, you just install it once and it’s done
Avatar
it's a real thorn in my side is all im saying
Avatar
% clang-format --version Debian clang-format version 18.0.0 (++20231122111257+b3a9e8f7c0af-1~exp1~20231122111413.1710) 😏
Avatar
yea i was gonna say
10:56
surely debian has it
Avatar
clang-format-15, what is that?
Avatar
Avatar
Ewan
it's a real thorn in my side is all im saying
there's not even a clang-format executable option in my ide so i really will have to manually inplace every comit
Avatar
Avatar
Ewan
mainly my problem is we are talking about whitespace here but now i have to build an old version of this tool from source because nobody took the time to modernize the CI
You don’t have to, this is a common hurdle so there are prebuilt versions of it. Everyone and their mothers uses this one https://github.com/muttleyxd/clang-tools-static-binaries
static-linked versions of clang tools for Linux, Mac OS X and Windows, available in AUR as clang-format-static-bin - GitHub - muttleyxd/clang-tools-static-binaries: static-linked versions of clang ...
Avatar
the vscode workspace also directly makes it easy to use if u add it to PATH
10:57
😏
Avatar
Anyway, yeah we should bump up to clang-format15 soon, if only we can figure out how to get rid of the ugly linebreaks
Avatar
Some findings i found with clangd and clang tidy The explicitly defaulted function declarations enable more opportunities in optimization, because the compiler might treat explicitly defaulted functions as trivial.

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 p...
Avatar
I usually just do python3 scripts/fix_style.py before committing
Avatar
well theoretically we should simply use clang-format default values but i guess most ppl here would go on rampage
10:58
I DONT CARE aslong as i dont have to do anything manually
10:59
then i go on rampage
Avatar
Avatar
Jupstar ✪
well theoretically we should simply use clang-format default values but i guess most ppl here would go on rampage
It’s nasty. Idk what sort of brain worms do the people that make the style guide for clang format have
10:59
Just 0 sense of aesthetics
Avatar
i write so much code inline and let the formater do it's job xD
Avatar
ewan@machine /x/ddnet-practice-tp-coords (tp-coords)> clang-format-10 -i -style=file **/*.cpp **/*.h exec: Failed to execute process '/usr/bin/clang-format-10': the total size of the argument list and exported variables (6kB) exceeds the operating system limit. feelsbadman
Avatar
if ... {bla} else {blam} whatever; ENTER
Avatar
check my pr thanks
Avatar
Avatar
Learath2
I usually just do python3 scripts/fix_style.py before committing
i do ./scripts/fix_style
Avatar
or CTRL+S
11:00
xd
Avatar
Avatar
Jupstar ✪
or CTRL+S
yes i use ur workspace
Avatar
Avatar
Ewan
ewan@machine /x/ddnet-practice-tp-coords (tp-coords)> clang-format-10 -i -style=file **/*.cpp **/*.h exec: Failed to execute process '/usr/bin/clang-format-10': the total size of the argument list and exported variables (6kB) exceeds the operating system limit. feelsbadman
Use the included script, it fixes the glob issue
Avatar
yea it works
Avatar
Avatar
Ryozuki
yes i use ur workspace
based
Avatar
swagular.
Avatar
@Jupstar ✪ check my pr, theorically it enabled more optimization oportunities
11:01
default the world
Avatar
it did Not Work
Avatar
nice, 1ns better frame times
11:01
i take that
Avatar
brb killing myself
Avatar
also i found some interfaces that did not have a virtual destructor xd
Avatar
Avatar
Ewan
brb killing myself
thats good
Avatar
yea well they dont like whitespace changes
Avatar
Avatar
Jupstar ✪
well theoretically we should simply use clang-format default values but i guess most ppl here would go on rampage
this is why rustfmt is best
11:02
u dont argue about style
11:02
u dont lose time
Avatar
clang-format would benefit from some backcompat
11:04
but this sort of thing only happens after several versions of neglect
11:04
so i can't say i rly think it's a huge deal
Avatar
clang-format also AFAIR profiles
Avatar
LLVM profile
Avatar
so u say i want "google-like style"
Avatar
that's --style=google
11:05
or basedonstyle in your file
Avatar
maybe one is close to ours
Avatar
yea i always just use the llvm one in my own code
Avatar
btw did anyone check if the dockerfile still works
11:09
never used docker in my life
11:10
can't say i regret it
11:12
lmfao
11:13
hmmmm
11:13
this is a tricky thing to test here
11:13
trying to figure out exactly what would be considered out of bounds with the kill tile's hitbox
11:14
should i hardcode something or just round it to the next whole tile
Avatar
You want to make sure the tee stays in bounds, right? Would be the easiest to make the checks a bit stricter so you don't need a lot of additional logic.
Avatar
i just added 1 real coordinate (not 'display' coord)
11:16
works fine
11:16
though for some reason my bounds checking is screwing me over again
11:16
i didn't test this super thoroughly owo
Avatar
꧁༒SkyHaziel༒꧂ 2023-12-23 11:27:39Z
Can someone help me with a resolution problem I have with my ddnet?
Avatar
wrong channel
11:28
#questions
Avatar
꧁༒SkyHaziel༒꧂ 2023-12-23 11:28:46Z
oh sry
Avatar
i forgot to transpose the game layer tile int coords to float coords
11:35
*32
Avatar
the pr is winning now
11:48
i think adding some sort of 'limbo' state after a tp or rescue would satisfy both heinrich's and devinci's issues
11:48
where the tee is there but it's just not moving
11:48
and any movement input would make it move again
11:50
style check is failing after using the script so i really don't know
Avatar
ChillerDragon BOT 2023-12-23 11:50:45Z
touching physics :justatest:
Avatar
yea im not thrilled either
11:51
it'd need to interact with other entities so it'd have to put the whole team in limbo
Avatar
maybe it's not the move
Avatar
Avatar
Ewan
style check is failing after using the script so i really don't know
It's a different style check that failed now
11:51
src/game/server/ddracechat.cpp:#include "game/mapitems.h"
11:52
Should use <> instead
Avatar
oh that's clangd's fault
11:52
bleh
11:52
being able to dry-run the build-unrelated ci checks would be nice
Avatar
i just added a method to IConsole & CConsole and it's undefined reference to vtable for IConsole
12:06
you don't use anything like IDL do you justatest
Avatar
ChillerDragon BOT 2023-12-23 12:43:03Z
@Ewan you can dry run the ci? its a bunch of py scripts just run those
12:43
i have a shell script called ddlint that basically runs all of the CI stuff at once locally
12:43
Crap tools. Don't even bother looking. Contribute to ChillerDragon/crools development by creating an account on GitHub.
12:53
when upstream
Avatar
ChillerDragon: what is ctidy
13:06
clang-tidy? why do u call it ctidy
Avatar
ChillerDragon BOT 2023-12-23 13:29:06Z
Crap tools. Don't even bother looking. Contribute to ChillerDragon/crools development by creating an account on GitHub.
13:29
ah ye its another script
Avatar
ChillerDragon BOT 2023-12-23 13:29:31Z
yea not sure if i can recommend my infrastructure for it
13:29
just wanted to show you that you can basically copy paste all the commands from the github actions into one script and then run it locally just fine
Avatar
i might just get one of those local gha runners
Avatar
ChillerDragon BOT 2023-12-23 13:30:12Z
omg they the worst
Avatar
probably low overhead
Avatar
ChillerDragon BOT 2023-12-23 13:30:19Z
fakin microsoft
13:30
just run native
13:30
its like 4 commands
Avatar
Avatar
Jupstar ✪
Could you explain why it was done like that? I mean i understand that this makes sense, in a way that it doesn't break any logic. But it's kinda weird xd
basically, since you can have something like let param = match x.parse() { Ok(p) => p, Err(e) => { eprintln!("Error in param: {e}"); continue; } }
Avatar
heinrich why u think it should be a separate command
Avatar
you can model continue as ! which can be converted into any arbitrary type, thus the two branches of the match can return the same type
Avatar
Avatar
Ewan
heinrich why u think it should be a separate command
no perf gain at all + it was already multifunctional + more work to make it behave differently
Avatar
seems to be still mostly useless, as explained in the blog post :/
Avatar
Avatar
Ewan
i might just get one of those local gha runners
It's extremely finnicky to get working and it's slow. Can't recommend unless you are a container veteran and have a beastly pc
13:41
i don’t understand what he means
13:41
tbh Heinrich i have seen 2 other ppl implement this on their own and many more expressing their desire for it
13:42
i don’t think your fundamental disagreement but unwillingness to actually code it yourself should stand in the way of what many players want
13:42
my implementation is brief, non-intrusive, works and fills the need that most ppl have
Avatar
Also, small changes to CEditorObject. Previously only CMapView methods were used, but we should instead use the components methods by iterating over them in case we add more editor components.

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 pointer...
Avatar
Avatar
Bota
how i do that. I dont know rust justatest
I'll try to see where the error comes from. please report an issue on github
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
do we use it in threads?
Avatar
Avatar
Learath2
NaN should not be possible
strtod e.g. returns NaN if you input "nan" with any case
Avatar
Avatar
heinrich5991
strtod e.g. returns NaN if you input "nan" with any case
Oh yes, I totally forgot you could explicitly ask for a nan while focusing on the error states
Avatar
Avatar
Ewan
it does not help that clang format 10 is not even in my pkg mgr
you can keep it unformatted and ask someone else to format it
Avatar
i dealt with it
Avatar
What would you think about fostering the open-source spirit of DDNet/Teeworlds and requiring all future communities that are included to be open-source? The KoG case is special IMO and should be grandfathered in for now, while also nudging them to be open-source in the future.
Avatar
of course fokkonaut instantly responds
Avatar
Avatar
Cellegen
so it would just reset (as in if its 64 or 128) hitting limit (edited)
no, you would get stuck either at some big value if addition always rounds down to the same number, or you'll get stuck at infinity which is a valid value for floating points
Avatar
Avatar
Learath2
HUGE_VAL + d == HUGE_VAL forall d > 0 iirc
that sounds like infinity
Avatar
Avatar
Chairn
that sounds like infinity
yep, HUGE_VAL is defined as infinity on my machine
Avatar
Avatar
GitHub
Click to see attachment 🖼️
tricky
Avatar
Avatar
GitHub
Click to see attachment 🖼️
@Ryozuki 😬
14:13
gog sorce
Avatar
Avatar
cyberFighter
of course fokkonaut instantly responds
Its stupid
Avatar
it could be a good idea if all popular game modes but ddrace weren’t closed
Avatar
noby will not have a community, bombay wont be official, blockZ cant be hosted on ddnet, and much more
Avatar
fng as well
Avatar
Avatar
fokkonaut
Its stupid
u have instant alarm + notification when an issue has the words "mods" and "open-source"?
14:15
i misread
14:15
xdd
Avatar
then 1 year of "special case" handling for kog
Avatar
yea that’s straight up ridiculous
Avatar
I'm pretty sure we can get noby to open his sources. the only reason not to do it was laziness so far, AFAIK
Avatar
all of this makes it very stupid to really force this
Avatar
what’s the gain anyway
Avatar
Pushing tw open sourceness
Avatar
Avatar
Ewan
what’s the gain anyway
longevity of the game
Avatar
if ppl want to keep ripping each other off in their shitty block clients then let them
Avatar
pushing open-sourceness in an open-source game
Avatar
one must imagine sisyphus happy
14:16
block srvs i mean xd
Avatar
@heinrich5991 even if it's lazyness from noby or whatever, i think with this approach communities will kinda lose their purpose (indicating official servers etc)
Avatar
tbh it’s not necessarily against the spirit of teeworlds to have a closed game. it would be non permissive otherwise
Avatar
as a closed src mod cant be a community and therefore is on the black market of servers
Avatar
Something broke the rcon console:
Avatar
well the point is to make you want to go oss
Avatar
Avatar
murpi
Something broke the rcon console:
LOL
Avatar
Avatar
Ewan
well the point is to make you want to go oss
I understood that
14:19
anyway Heinrich can u respond to smth
Avatar
I just dont think it should be enforced
Avatar
anythgng rly
14:19
waiting 2 sleep
Avatar
new incremental mod added to ddnet where you gain lines in the rcon
Avatar
I'm a fan of having discussion on github, discussions here will be forgotten
Avatar
True
Avatar
@fokkonaut has been the only one to actually comment on the issue I opened
Avatar
well I responded to both of ur reviews
Avatar
Avatar
cyberFighter
u have instant alarm + notification when an issue has the words "mods" and "open-source"?
yes
Avatar
Avatar
Ewan
anyway Heinrich can u respond to smth
in both of the PRs I recently commented on, there's a comment by me that is more recent than a comment of yours, I think
Avatar
watching ddnet repo would destroy my inbox
Avatar
Avatar
heinrich5991
in both of the PRs I recently commented on, there's a comment by me that is more recent than a comment of yours, I think
i blame this on the gh mobile app
14:21
i get no notifications and i had to manually refresh to see it
Avatar
Avatar
murpi
Something broke the rcon console:
Is that with nightly? Doesn't happen to me there. Which operating system?
Avatar
Avatar
Robyt3
Is that with nightly? Doesn't happen to me there. Which operating system?
Yes, nightly. I can't reproduce it. :/ Only restarting the client helped
14:28
Win11 64bit
Avatar
Maybe something not initialized correctly
Avatar
idk what im looking at anyway
Avatar
Avatar
murpi
Yes, nightly. I can't reproduce it. :/ Only restarting the client helped
Was this after joining a server or did you do something else like logout or clear the console?
Avatar
Avatar
murpi
Yes, nightly. I can't reproduce it. :/ Only restarting the client helped
Clearing the console seems to fix that, don't know what causes it though
Avatar
Avatar
Robyt3
Was this after joining a server or did you do something else like logout or clear the console?
I connected a dummy, that's all. (wasn't authed on my primary tee)
14:31
I never clear my console, but I did logout via bind
14:32
I used bind kp_1 "rcon_login <name> <accesskey>; rcon show_ips 1; rcon status; rcon dump_antibot; rcon logout" to be more precise
Avatar
discuss with me fellas
Avatar
Reported by @murpii: !DDNet_UjLn7tA8OX Happened when using bind to login and logout of rcon while on dummy but not authed in rcon with main tee. Doesn't seem easy to reproduce. Maybe a variable is not initialized properly. Clearing the console fixes it according to Skeith.
Avatar
ChillerDragon BOT 2023-12-23 15:00:39Z
ayo once i said we need https://mclo.gs/ for ddnet
Easily paste your Minecraft logs to share and analyse them.
15:01
i started with syntax highlight and probably will rq there but its kinda public and ready to use already
Avatar
xD
15:04
such a chillerdragon feature
15:21
what the hell
15:21
Test
15:21
this is what i was trying to send
15:21
discord's not letting me for some reason
15:22
i super over-engineered it the first time
15:22
i liked the logic i thought it was clever
15:27
maybe one of my variable names is on some anti-injection blacklist
Avatar
Avatar
GitHub
Click to see attachment 🖼️
kog should definitly not be a exception and removed
Avatar
ChillerDragon BOT 2023-12-23 15:34:05Z
removed from wat wowo
Avatar
chillerdragon BOT 2023-12-23 15:34:25Z
a
15:34
wowo
Avatar
ChillerDragon BOT 2023-12-23 15:34:37Z
hot discussion foss
Avatar
ChillerDragon BOT 2023-12-23 15:34:50Z
Uwun
Avatar
i open my pc and put the same on gh in 5 mins
Avatar
so its not lost
15:35
i always said we shouldnt give visibility to closed source
15:36
we also shouldnt offer kog help with discord commands
15:36
a bot should silently delete the msg and send a private dm
15:36
its rly annoying
15:36
i ofc would change my mind if kog becomes fully open source, web and all
15:37
btw unique deserves more to be in the community list
🔥 1
15:37
we are fully open source, web too
Avatar
MilkeeyCat BOT 2023-12-23 15:37:30Z
open source btw
Avatar
no pfp, fock feelsbadman
Avatar
Avatar
Ryozuki
we are fully open source, web too
very true
15:38
tim has not been responding to my msgs
Avatar
he is sadly not much into tw lately
15:39
life
Avatar
usa servers db is not properly set up
15:39
idk since when
Avatar
ChillerDragon BOT 2023-12-23 15:39:37Z
ddnet is not open source
Avatar
but i turned race servers off about a month ago
Avatar
ChillerDragon BOT 2023-12-23 15:39:44Z
it links spyware blobs
Avatar
Avatar
Ewan
but i turned race servers off about a month ago
still waiting for him to fix
Avatar
Avatar
ChillerDragon
ddnet is not open source
ddnet is open-source
15:40
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
15:40
where is the code for this dylib
Avatar
that is not discord code
Avatar
ChillerDragon BOT 2023-12-23 15:40:55Z
where is the code
Avatar
is any open source code which relies on Microsoft’s CRT closed?
Avatar
all of DDNet code is open source. you can also (and by default) build without linking to closed source code
15:41
The GNU GPL is not Mr. Nice Guy. It says no to some of the things that people sometimes want to do. There are users who say that this is a bad thing—that the GPL “excludes” some proprietary software developers who “need to be brought into the free software community.” But we are not excluding them from our community; they are choosing not to enter. Their decision to make software proprietary is a decision to stay out of our community. Being in our community means joining in cooperation with us; we cannot “bring them into our community” if they don't want to join.
Avatar
on linux, at least
Avatar
ChillerDragon BOT 2023-12-23 15:41:26Z
ddnet.org ships code that is not public doesnt it?
15:41
or ships binaries
15:41
compiled by valve and discord
Avatar
ddnet.org and steam ship binaries that are not open-source, yes
Avatar
ChillerDragon BOT 2023-12-23 15:41:55Z
i dont like that
15:42
wouldnt call that foss
Avatar
feel free to be this specific
15:42
but calling ddnet non-open source seems wrong to me
Avatar
ChillerDragon BOT 2023-12-23 15:42:32Z
i am specific
Avatar
no:
ddnet is not open source
Avatar
ChillerDragon BOT 2023-12-23 15:43:17Z
out of context xd
Avatar
lot of projects deliver the compiled software via a paywall but they host the full source code on a public site
15:43
that is still open and free software
Avatar
xd
Avatar
ChillerDragon BOT 2023-12-23 15:43:31Z
irc newlines be like
15:43
i followed up with why its not foss 1s after
Avatar
tw should have used AGPL
Avatar
pls no
15:44
exclusive licenses are evil
15:44
excluding*
Avatar
but that is incorrect. ddnet.org/steam builds of ddnet are not open source
15:44
ddnet itself is very much open source
Avatar
GPL is the most user respecting license
Avatar
ChillerDragon BOT 2023-12-23 15:44:35Z
except the scripts repo :p
Avatar
Avatar
Ryozuki
we also shouldnt offer kog help with discord commands
What's this referring to?
Avatar
ChillerDragon BOT 2023-12-23 15:44:40Z
and anitbot axaxax
Avatar
Avatar
murpi
What's this referring to?
$kog
Avatar
KoG registration and login
First and foremost: DDNet and KoG aren't affiliated. You are not required to log-in on a DDNet server. If you need help on a server related to KoG, join their Discord server by clicking on the link below.
Avatar
and the other
15:44
which spams a wall
15:44
dont promote this
Avatar
Avatar
Ryozuki
GPL is the most user respecting license
no, it just prevents specific ppl to use it
Avatar
ChillerDragon BOT 2023-12-23 15:44:58Z
but i mean it is embracing closed source software by using discord and steam api @heinrich5991
Avatar
send a private dm and delete the message
Avatar
ChillerDragon BOT 2023-12-23 15:45:12Z
and forcing that onto all users that download ddnet from official channels
Avatar
Avatar
Jupstar ✪
no, it just prevents specific ppl to use it
no, it ensures users have the freedoms everyone should have
15:45
fully owning a software u use
Avatar
that downlad ddnet binaries from ddnet.org
Avatar
ChillerDragon BOT 2023-12-23 15:45:30Z
yes
Avatar
Avatar
Ryozuki
fully owning a software u use
that is the case with other OS licenses too
15:45
one could argue, even more
Avatar
Avatar
Ryozuki
which spams a wall
implement it in a sane way, I think it'd be accepted
Avatar
no because there will be devs using propietary licenses
Avatar
I see it as hard to do though
15:46
u have to be pragmatic in this world
Avatar
then remove license all together
15:46
that is pragmatic
15:46
you are just playing the game without breaking any rules
Avatar
that requires us to overthro goverments and copyright laws which is impossible
15:46
u are not being realistic
Avatar
Avatar
Ryozuki
and the other
The 'other' no longer exists
Avatar
while this license is
Avatar
Avatar
Ryozuki
that requires us to overthro goverments and copyright laws which is impossible
but it's governments and copyright laws that also have to protect your license in order to work
Avatar
Avatar
Jupstar ✪
but it's governments and copyright laws that also have to protect your license in order to work
yeah u cant change the game, u play the game smart
Avatar
so you are stabilizing the rights of companies
Avatar
its what copyleft does
15:47
tf are u saying
Avatar
well your opinion
Avatar
yes its mine
15:47
i use agpl everywhere now
Avatar
good for you
15:47
sadly zwelf uses it too
Avatar
sad
Avatar
zwelf understands
15:48
he is also pretty based
15:48
he required the wiki to use a plugin which doesnt directly load the yt videos
15:48
for privacy reasons
15:48
i admire him
Avatar
i think his ddnet physics have the potential to be used for a next gen ddnet
15:48
but with AGPL it doesnt have my support at least
15:49
that would be a step backwards compared to the cpp project
15:49
with agpl its even better
15:49
i hope he makes it rly good
15:50
this is how gpl thrives
15:50
why gcc had so much impact
Avatar
ryo we trade reviews?
Avatar
and now clang is the "better" compiler
Avatar
Consider GNU C++. Why do we have a free C++ compiler? Only because the GNU GPL said it had to be free. GNU C++ was developed by an industry consortium, MCC, starting from the GNU C compiler. MCC normally makes its work as proprietary as can be. But they made the C++ front end free software, because the GNU GPL said that was the only way they could release it. The C++ front end included many new files, but since they were meant to be linked with GCC, the GPL did apply to them. The benefit to our community is evident.
Avatar
or llvm generally
Avatar
sadly llvm has made things like NVVM be born
15:50
its toxic af
Avatar
only thing i still use gcc is to get most perf
Avatar
i dislike llvm license the most
15:51
Consider GNU Objective C. NeXT initially wanted to make this front end proprietary; they proposed to release it as .o files, and let users link them with the rest of GCC, thinking this might be a way around the GPL's requirements. But our lawyer said that this would not evade the requirements, that it was not allowed. And so they made the Objective C front end free software.
Avatar
nu obj c wat
15:52
xxxxxx'
Avatar
The public domain (PD) consists of all the creative work to which no exclusive intellectual property rights apply. Those rights may have expired, been forfeited, expressly waived, or may be inapplicable. Because no one holds the exclusive rights, anyone can legally use or reference those works without permission. As examples, the works of Willia...
15:53
the best logo
15:53
😏
15:53
agpl logo is cooler xd
15:53
ill add this logo in my web
Avatar
add vulkan logo
Avatar
bcs vulkan API is royalty-free and fast af 😏
15:58
that's how true kings live
15:58
😏
Avatar
u all so religious
Avatar
@heinrich5991 pls dont ask me to remove comments
Avatar
i hope to one day be as passionate about something as you are about rust and vulkan
Avatar
Avatar
Ryozuki
@heinrich5991 pls dont ask me to remove comments
on wiki?
15:59
or wat
Avatar
its totally legit to say some private mods want monetary gain
Avatar
Avatar
Ewan
i hope to one day be as passionate about something as you are about rust and vulkan
if you are not religious about cpp, why don't you try rust? 😉
Avatar
Avatar
Ewan
or wat
What would you think about fostering the open-source spirit of DDNet/Teeworlds and requiring all future communities that are included to be open-source? The KoG case is special IMO and should be gr...
Avatar
i did try rust
Avatar
for over 1 week xd
15:59
too much brain power involved
Avatar
Avatar
Ryozuki
its totally legit to say some private mods want monetary gain
the "you" sounded to me like addressing Kaffeine
Avatar
ChillerDragon BOT 2023-12-23 15:59:56Z
@Ryozuki i am suprised you with your agpl user rights whatever idiology are not bothered by discord
Avatar
Avatar
Jupstar ✪
for over 1 week xd
cpp flows thru my fingers naturally
Avatar
and now you're telling him that he's doing it for possible monetary gain
Avatar
Avatar
Ewan
cpp flows thru my fingers naturally
😂
Avatar
and that's telling others what their intentions are
16:00
which is not nice
Avatar
ok my you was like in 3rd person
16:00
as in the person doing a privative mod
Avatar
can you replace it with "one"?
16:00
then it's clear
Avatar
ur so pedantic sometimes
Avatar
why do u want to control what he saysa
16:00
it does not even reflect on u
16:01
let it go
Avatar
because I want the discussion to go somewhere. insults or things perceived to be insults help make the discussion go nowhere
Avatar
Avatar
Ewan
cpp flows thru my fingers naturally
i've to admit, i much more rare need to open the rust "spec" (or google about rust behavior) than cpp behavior
16:01
even tho i code in cpp for 10 years
Avatar
This change silently corrupts maps with unknown future items instead of crashing. That seems like a downgrade. IMO, it should either show an error or try to re-add the future map items as well.
Originally posted by @heinrich5991 in https://github.com/ddnet/ddnet/issues/7693#issuecomment-1868297260 The same also applies to the editor, which was already doing what the tools are also doing now.
Avatar
code in my brain is cpp
Avatar
ChillerDragon: its true im sad i have to use discord, but i dont want to be invisible socially and i need to talk to friends i cant be like stalkman, but yeah it may be idiotic but i still want agpl
Avatar
ChillerDragon BOT 2023-12-23 16:02:08Z
i see
16:02
thats fair
Avatar
sad that drug dealers have ruined name of all the good open chat softwares
Avatar
ChillerDragon BOT 2023-12-23 16:02:39Z
like which
Avatar
Avatar
Ryozuki
ChillerDragon: its true im sad i have to use discord, but i dont want to be invisible socially and i need to talk to friends i cant be like stalkman, but yeah it may be idiotic but i still want agpl
the EU might help with that 🙂
Avatar
ChillerDragon BOT 2023-12-23 16:02:54Z
i am yet to discover good chat software @Ewan wat would u consider good?
Avatar
Avatar
heinrich5991
the EU might help with that 🙂
how so
Avatar
Avatar
Ewan
sad that drug dealers have ruined name of all the good open chat softwares
that doesn't sound like drug dealers, but rather someone trying to use drug dealers to fight against open chat software
Avatar
telegram, signal
Avatar
ChillerDragon BOT 2023-12-23 16:03:10Z
they suck ass
Avatar
telegram is goated
Avatar
ChillerDragon BOT 2023-12-23 16:03:20Z
telegram and signal are shit af
Avatar
i know my views are probably impossible but its nice to have some ideals
Avatar
ChillerDragon BOT 2023-12-23 16:03:24Z
telegram is closed src
16:03
signal is literal spyware
Avatar
Avatar
Ryozuki
how so
not discord specifically, but the dma forces some messengers to interoperate
Avatar
ChillerDragon BOT 2023-12-23 16:03:33Z
bound to your phonenumber
Avatar
telegram is open-source
Avatar
ChillerDragon BOT 2023-12-23 16:03:42Z
everything?
Avatar
open client
Avatar
open client
Avatar
ChillerDragon BOT 2023-12-23 16:03:47Z
isnt serrvers closed
Avatar
Avatar
Ewan
sad that drug dealers have ruined name of all the good open chat softwares
well vulkan is bad because it doesn't enforce me to write correct code, BUT it , IMO, makes 10000 more sense than OpenGL. It's much more clear to me what happens under the hood with it.
Avatar
@heinrich5991 i think google play store doesnt allow GPL apps
Avatar
ChillerDragon BOT 2023-12-23 16:03:54Z
thats not open source then
Avatar
idk if they allow MIT
Avatar
ChillerDragon BOT 2023-12-23 16:04:05Z
binding a chat protocol to a phone number is fucked
16:04
and should be illegal
Avatar
Avatar
Ryozuki
@heinrich5991 i think google play store doesnt allow GPL apps
apple does not, not sure about google
Avatar
@Ewan join the vulkan force today not tomorrow
Avatar
I think they're working on it, ChillerDragon
Avatar
idek opengl
Avatar
ChillerDragon BOT 2023-12-23 16:04:29Z
signal?
Avatar
yes
Avatar
ChillerDragon BOT 2023-12-23 16:04:34Z
thats amazing i didnt know that
16:04
holy
16:04
there might be hope
Avatar
i think phone numbers should be more abundant so they not used anymore to identify someone
Avatar
i only do 2d greaphics usuauaully
Avatar
or just change phone number system
Avatar
Avatar
Ewan
idek opengl
16:04
vk has cool logos
Avatar
XD
Avatar
it's awesome
16:05
5599de3 Use CEditorComponent methods instead of only CMapView - archimede67 8f3d09e Merge pull request #7698 from archimede67/use-editor-components - Robyt3
Avatar
good argument
16:05
rust has only ugly logos
16:05
vulkan has cool logos
Avatar
golang has worst logos
Avatar
rust has some cute logos
16:05
ok not logos
Avatar
ChillerDragon BOT 2023-12-23 16:05:35Z
binding contacts/chats/2fa to some weird small device and a contract is such an unstable concept
Avatar
who is this asshole
Avatar
i want to flush him down a toilet
Avatar
Avatar
Ryozuki
rust has some cute logos
but not the crap crab
Avatar
Avatar
Jupstar ✪
vulkan has cool logos
does vulkan have waifus?
Avatar
@Jupstar ✪ u know there is a unsafe rust pet
Avatar
ChillerDragon BOT 2023-12-23 16:06:09Z
lmao @Ewan xd
Avatar
meet corro, the unsafe rust pet
16:06
Avatar
kek
Avatar
ChillerDragon BOT 2023-12-23 16:06:43Z
16:06
nimrocks
16:06
how did he create a black version
16:06
looks even cooler
Avatar
Avatar
Jupstar ✪
Click to see attachment 🖼️
i like more the one with text
16:07
"forging ahead"
16:07
or smth
16:07
Avatar
i like the other more 😄
Avatar
@Jupstar ✪ 🤝
Avatar
when vulkan 1.4
Avatar
vulkan is already too bloated 😬 we need new API
Avatar
@Jupstar ✪ but thanks to vulkan extensions u can easily add features right
Avatar
Avatar
Ryozuki
@Jupstar ✪ but thanks to vulkan extensions u can easily add features right
yeah, and validation layers etc. but they add like 3 new extensions per month xD
Avatar
stonks
16:11
@heinrich5991 @Jupstar ✪ i think a override on a virtual with default is still virtual right?
Avatar
Avatar
Ryozuki
@heinrich5991 @Jupstar ✪ i think a override on a virtual with default is still virtual right?
from my understanding yes
Avatar
and default also still implements the destructor chain
Avatar
how would you mark it non-virtual then?
Avatar
i made this changes with clangd suggestions
Avatar
Avatar
heinrich5991
how would you mark it non-virtual then?
override only works on virtual functions
Avatar
Avatar
Ryozuki
i made this changes with clangd suggestions
just remove the const stuff
Avatar
Avatar
Jupstar ✪
override only works on virtual functions
is there a difference between marking child class functions as virtual or not (e.g. if they're further derived)?
Avatar
i agree with heinrich, even tho i'd argument from different perspective xd
Avatar
override also makes it a error if the overriden signature doesnt match, while virtual doesnt and ucan get nifty bugs (edited)
16:12
override is safer and better
Avatar
Avatar
Ryozuki
override also makes it a error if the overriden signature doesnt match, while virtual doesnt and ucan get nifty bugs (edited)
I think override and virtual do different things
Avatar
you can't finalize a virtual function
Avatar
Avatar
heinrich5991
is there a difference between marking child class functions as virtual or not (e.g. if they're further derived)?
no, u can always override, until u used final
Avatar
not having anything to do with each other (edited)
Avatar
yeah as long as its not marked final
16:13
u can override i think
Avatar
override simply overrides any virtual fn, already implemented or not
Avatar
In a member function declaration or definition, override specifier ensures that the function is virtual and is overriding a virtual function from a base class. The program is ill-formed (a compile-time error is generated) if this is not true. override is an identifier with a special meaning when used after member function declarators: it's not a reserved keyword otherwise.
16:13
see
16:13
it ensures
Avatar
yes
Avatar
Avatar
heinrich5991
not having anything to do with each other (edited)
you are overriding the vptr what else you mean?
Avatar
ensures that the function is virtual and is overriding a virtual function from a base class
Avatar
ah, it makes it virtual
16:14
perfect 🙂
Avatar
i also agree with jupstar gh comment
16:15
we should use refs wherever possible
16:15
so const matters
16:15
xd
Avatar
well heinrich will say that it's less clear as func arguments
16:16
but anyway, let's not trigger this discussion again xD
Avatar
its cuz cpp doesnt require u to do & right
16:16
xd
Avatar
yes
Avatar
also does cpp optimize refs better
16:16
?
16:16
since it knows its not null
16:17
we should also do noalias 😬
Avatar
dunno, i guess it's about the compiler
Avatar
rust in cpp
Avatar
yeah, if cpp would have move by default, it would be less of a pain
Avatar
@heinrich5991 > There are advantages to keeping your code private, like discovering vulnerabilities but keeping them under wraps for personal benefit >> "discovering vulnerabilities but keeping them under wraps for personal benefit" does not sound like a benefit to the community at large at all. Sorry, I edited it my comment too late :| Edit: I changed it again so it makes more sense xD (edited)
Avatar
@Ryozuki when do you start working for discord and add @ aliases so i can ping u with @rust 😏
16:23
chiller once had it, sad it was removed
16:23
xd
Avatar
Avatar
Jupstar ✪
yeah, if cpp would have move by default, it would be less of a pain
No
Avatar
Avatar
Ewan
No
well that would at least eliminate the problem with const ref vs implicit copy
16:24
and many times you want a const ref as function parameter
16:24
but anyway this alone wont work anyway
16:25
there's a reason why rust kinda feels like the opposite syntax wise than cpp xD
Avatar
when u move u deal with lifetimes
Avatar
stuff u need to type out in rust, u dont need to do in cpp and vise versa (edited)
Avatar
Avatar
Ewan
when u move u deal with lifetimes
just avoid it if u want to stay sane
16:25
you do not need those 4 bytes
16:25
const ref is the way tho
Avatar
Avatar
Ewan
just avoid it if u want to stay sane
how do you want to approach insane gores, if u want to stay sane xd
Avatar
i hate gores
Avatar
ok ddnet calls it insane too
16:27
when nightmare category
Avatar
insane is enough tbh
16:28
tho 50pts for a 5* is not nearly enough
Avatar
ChillerDragon BOT 2023-12-23 16:28:15Z
we could also add a "free" category and shift stuff
Avatar
all those pts are the difference between 20k and 30k players nowadays
16:28
the gap should be higher
Avatar
ChillerDragon BOT 2023-12-23 16:28:36Z
so novice becomes free and moderate novice and hard moderate and insane hard and insane is free for harder stuff
16:28
categories are fine as is
Avatar
ChillerDragon BOT 2023-12-23 16:28:52Z
xd ofc they are
Avatar
gonna make some eggs
Avatar
ChillerDragon BOT 2023-12-23 16:28:58Z
egg
Avatar
novice moderate brutal insane nightmare godlike supreme king SSGSSJ2 Ultra instinct
16:30
my unbiased list
Avatar
uninstall
Avatar
stronghold 4 release in half an hour! (edited)
16:32
everyone in? 🙂
Avatar
atomic
Avatar
Avatar
heinrich5991
stronghold 4 release in half an hour! (edited)
ohh
Avatar
thread-safe
Avatar
lets do towers
Avatar
i am so excited
Avatar
Avatar
heinrich5991
everyone in? 🙂
are u srs
16:34
i am actually in
16:35
ger10
16:35
stormwind
Avatar
Who will post the first stronghold 4 tower justatest
Avatar
lets do a dev team
16:35
😬
16:35
we wont pass 😬
Avatar
fine by me
16:37
u want to voice?
Avatar
Avatar
heinrich5991
yep, HUGE_VAL is defined as infinity on my machine
On all implementations that support infinities iirc
Avatar
learath are u in
Avatar
Avatar
Learath2
On all implementations that support infinities iirc
that seems really irrelevant. all machines I know of support IEEE754
16:39
I'm sure we rely on IEEE754 somewhere more than "supporting infinities" somewhere
Avatar
where's my team
Avatar
Avatar
Ryozuki
stormwind
dont see it
Avatar
im on 45.141.57.22:8336
Avatar
45.141.57.22:8336 is an official DDNet server. https://ddnet.org/connect-to/?addr=45.141.57.22:8336/
Avatar
Avatar
Ewan
learath are u in
Am outside
Avatar
come on in
Avatar
whats going on vc
17:09
@cyberFighter yo
17:10
ill do a little trolling
Avatar
hi
Avatar
got trolled by cf himself
Avatar
whats so special about stronghold 4
Avatar
numbero 4 is kinda exciting
Avatar
the final
Avatar
as if we needed the fourth one
17:12
troll
Avatar
Avatar
gerdoe
whats going on vc
playing stronghold 4
Avatar
@Ewan
17:52
ingame (edited)
Avatar
what’s up
17:52
I have been waiting on my brother to exit his friend’s house for like 15 minutes
Avatar
Reduce duplicate code. Replace clampf function with NormalizeColorComponent function that convert color component from float to unsigned char. Use size_t instead of int.

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 ...
Avatar
@Robyt3 come voice
Avatar
does windows 11 have different emojis tf?
Avatar
win10 has black outlined so seems yep
Avatar
1 liner cast from pointer to integer of different size

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...
Avatar
@Robyt3 come voice
Avatar
in which update ninja was removed to frozen tee?
Avatar
u mean the katana?
Avatar
Avatar
-StormAx
in which update ninja was removed to frozen tee?
are you gonna fork it
Avatar
ima gonna add oldshcool mode (edited)
Avatar
so, does someone know?
Avatar
Avatar
-StormAx
in which update ninja was removed to frozen tee?
16.2.2? I think when the HUD was added?
Avatar
@Cøke ingame
Avatar
Ya, just checked, it was 16.2.2
Avatar
Avatar
Skeith
Ya, just checked, it was 16.2.2
yep
19:39
thanks
Avatar
No problem
Avatar
was fun but missed @Learath2
💀 1
Avatar
ChillerDragon BOT 2023-12-23 20:33:18Z
17:35:53 bridge | <ryozuki> we wont pass 😬
20:33
same
Avatar
ChillerDragon BOT 2023-12-23 20:33:27Z
gg
Avatar
gg
Avatar
was funny run, happy end disney couldn't have written this story better (edited)
20:34
"funny run"
20:34
😏
20:34
insider
Avatar
ChillerDragon BOT 2023-12-23 20:34:51Z
xd
Avatar
the last sweaty moments
😃 3
20:42
the hammer was so close to freeze xD
Avatar
enjoying your holiday ryo
Avatar
thanks
Avatar
@Ryozuki first time i heard you 😬
Avatar
normal
21:11
i dont talk much
Avatar
i usually also don't talk much, but today dunno
Avatar
same about u
Avatar
i fell out of my role
21:12
u showed ur gores skill
21:12
its so easy to notice
21:12
the only gores part
21:12
gj
Avatar
xdd insane gores skills
21:12
i suck hard at them
21:12
they filler parts in ddnet
Avatar
#include <stdio.h> main(t,_,a) char * a; { return! 0<t? t<3? main(-79,-13,a+ main(-87,1-_, main(-86, 0, a+1 ) +a)): 1, t<_? main(t+1, _, a ) :3, main ( -94, -27+t, a ) &&t == 2 ?_ <13 ? main ( 2, _+1, "%s %d %d\n" ) :9:16: t<0? t<-72? main( _, t, "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#;\ #q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/+k#;\ q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){nl]!/n{n#'; \ r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\ \ n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c ;;\ {nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\ #'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/") : t<-50? _==*a ? putchar(31[a]): main(-65,_,a+1) : main((*a == '/') + t, _, a + 1 ) : 0&#60;t? main ( 2, 2 , "%s") :*a=='/'|| main(0, main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry") ,a+1);}
21:20
merry C christmas
21:20
(try to run it)
Avatar
smells like 1. Xmas.c, winner of the 1988 International Obfuscated C Code Contest (udel.edu) 279 points by evah 3 hours ago | flag | hide | 40 comments
Avatar
indeed
21:22
u got some nice memory
21:22
or google
21:22
xd
Avatar
let's test gpt xd
21:23
gpt 3 too weak
21:23
sadly no gpt-4 xd
Avatar
BlaiZephyr | meloƞ 2023-12-23 21:41:52Z
/_/\ ( o.o ) >^,^< meow!
Avatar
i'm getting worse in cpp #7697 @Ryozuki ur fault 😬
Avatar
Some findings i found with clangd and clang tidy The explicitly defaulted function declarations enable more opportunities in optimization, because the compiler might treat explicitly defaulted func...
Avatar
too much rust
Avatar
it's funny how much stuff you can forget. i dunno if i remember anything useful from university anymore xD
Avatar
anyway
21:46
c++ requiring so much complexity
21:47
is a plus for rust
21:47
in rust u dont deal with virtual destructor shenanigans
Avatar
yeah cpp is very complicated indeed u only notice it if u havent used it for a bit
21:48
but i think it's still important to know that rust kinda still has vptr, just not stored into the object, but into the dyn ...
Avatar
but dinamic dispatch is rarer in rust
Avatar
but u kinda never have to think about it
Avatar
BlaiZephyr | meloƞ 2023-12-23 21:49:07Z
can we have a dev channel that simply links every single message that mentions rust? 🙂
Avatar
and idk it feels much simpler
21:49
in rust this shenanigans are actually called
21:49
"object safety"
21:49
trait is object safe if it has the following qualities (defined in RFC 255): All supertraits must also be object safe. Sized must not be a supertrait. In other words, it must not require Self: Sized .
21:49
Avatar
Avatar
BlaiZephyr | meloƞ
can we have a dev channel that simply links every single message that mentions rust? 🙂
you want to have a dev channel that copies the exact same content as this channel? rust
Avatar
Avatar
Jupstar ✪
you want to have a dev channel that copies the exact same content as this channel? rust
BlaiZephyr | meloƞ 2023-12-23 21:50:23Z
fair enough
Avatar
Avatar
Ryozuki
in rust this shenanigans are actually called
not only that. i'd say it even makes more sense like that. u can have POD data structures and still implement traits on it
21:52
this is huge struggle with cpp xd
21:52
u can ofc create a POD and put is as member field into your inherited class
21:52
but not enforced = u'll forget it the other day
Avatar
yea the necessity for wrapper classes in cpp is a huge turnoff
22:12
it has relatively limited metaprogramming capabilities
Avatar
merry christmas
Avatar
BlaiZephyr | meloƞ 2023-12-23 23:08:39Z
Avatar
c31f82a Refactor graphics SetColor functions - Robyt3 47ccdd0 Merge pull request #7702 from Robyt3/Graphics-SetColor-Refactoring - def-
23:41
when having cl_nameplates_strong set to 1 and locking spectate on a person, i`d personally like to see the nameplate for the person i am spectating in terms of: for who does the spectating tee has strong/weak.
Avatar
chillerdragon BOT 2023-12-23 23:42:12Z
@Scrumplex again new launcher?
23:42
How many rebrands and forks does it need watafak
Avatar
what new launcher
23:57
Our boi scrumplex is being called by name at 6:28
23:58
One of our more famous contributors hehe being GitHub showcased in a 25k clicked video o.0
Exported 1,083 message(s)