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 10/23/2023 12:00AM and 10/24/2023 12:00AM
Avatar
am i doing smth wrong ? justatest
Avatar
where'd u get this
Avatar
your distro needs multiarch support to run a 32 bit binary if the system is 64 bit
Avatar
tried both linux download just in case but both make the same errors
Avatar
get the x86_64
Avatar
so it also does this on 64 bit?
1:16AM
well what is ur host
Avatar
i'm using weird oracle cloud linux machines (edited)
1:16AM
might be related
Avatar
it could be arm
1:16AM
uname -a
Avatar
Linux je-ten-supplie 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
Avatar
yeah it's arm
1:17AM
you'd have to build from source. given ddnet even supports arm yet, which idk about
Avatar
aight sounds like a fun challenge
Avatar
Avatar
Ewan
your distro needs multiarch support to run a 32 bit binary if the system is 64 bit
didn't see ubuntu justatest
1:17AM
yea
1:17AM
good luck
Avatar
it's kinda weird cause the server was working when i got it from apt tear
Avatar
actually i remember now that ddnet uses a universal binary on mac so it should support arm
Avatar
o i'll try it xd
Avatar
Avatar
Gwendal
it's kinda weird cause the server was working when i got it from apt tear
aarch64 build may be packaged for apt arm repos
1:22AM
just not on ddnet website
Avatar
i'm stupid for not seeing it wtf
Avatar
but u want to not use apt cuz it's older right
1:23AM
πŸ˜ƒ
Avatar
dmg file justatest
Avatar
why downloading mac build justatest
Avatar
because it's written arm ?! justatest i am so clueless idk what i am doing
Avatar
Avatar
Gwendal
i'm stupid for not seeing it wtf
The only option is to emulate an x86-64 environment
Avatar
no it's not LOL
1:26AM
git clone https://github.com/DDNet/DDNet git checkout 17.3 cmake -B build -S . cmake --build build --parallel --config Release ./build/DDNet-Server (edited)
1:26AM
that is how u build from source
1:26AM
required build tools are cmake and rust, and u will also need all compile time dependencies
1:27AM
sudo apt install build-essential cargo cmake git glslang-tools google-mock libavcodec-extra libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfreetype6-dev libglew-dev libnotify-dev libogg-dev libopus-dev libopusfile-dev libpng-dev libsdl2-dev libsqlite3-dev libssl-dev libvulkan-dev libwavpack-dev libx264-dev python rustc spirv-tools
Avatar
yea i was trying to figure out which arguments i should put on cmake following this https://github.com/ddnet/ddnet#building-on-linux-and-macos
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
1:27AM
yea saw it
1:27AM
thanks :))
Avatar
Avatar
Gwendal
yea i was trying to figure out which arguments i should put on cmake following this https://github.com/ddnet/ddnet#building-on-linux-and-macos
if you wanted to add compile opts u would do like this git clone https://github.com/DDNet/DDNet git checkout 17.3 cmake -B build -S . -DOPT1=true -DOPT2=true cmake --build build --parallel --config Release ./build/DDNet-Server (edited)
Avatar
python moment
Avatar
btw, because you're on ARM. You also need to pass these two options to cmake -DCMAKE_CXX_FLAGS="-fsigned-char" -DCMAKE_C_FLAGS="-fsigned-char", if I remember correctly :)
Avatar
nice ^^
Avatar
i'm not sure i understand everything that is happening but it looks really cool
1:35AM
what is DOPT1 and DOPT2 btw ?
Avatar
Avatar
furo
btw, because you're on ARM. You also need to pass these two options to cmake -DCMAKE_CXX_FLAGS="-fsigned-char" -DCMAKE_C_FLAGS="-fsigned-char", if I remember correctly :)
owo
Avatar
Avatar
furo
btw, because you're on ARM. You also need to pass these two options to cmake -DCMAKE_CXX_FLAGS="-fsigned-char" -DCMAKE_C_FLAGS="-fsigned-char", if I remember correctly :)
thanks, i put em owo
Avatar
Avatar
Gwendal
what is DOPT1 and DOPT2 btw ?
example
Avatar
XDD im stupid omg
Avatar
like all these
Avatar
ahem...
1:37AM
yeye xd
1:37AM
i was trying to find these options in that list u just sent and was like "wtf this guy gave me" xddd
1:37AM
if ur only running a server u can turn off a lot of stuff
1:38AM
will make build faster and maybe a smaller executable
1:38AM
but it doesn't rly matter
Avatar
yea i thought about it, but realized i would take more time to understand what i can disable or not
1:39AM
default is fine
Avatar
it worked owo
Avatar
congratulations
Avatar
thanks, it's all you and @furo
1:42AM
indeed the server looks different from the 15.9 i was using 2 days ago xd
1:45AM
2023-10-23 01:44:45 I register/6/ipv6: registering... 2023-10-23 01:44:45 I register/6/ipv4: registering... 2023-10-23 01:44:45 I register/7/ipv6: registering... 2023-10-23 01:44:45 I register/7/ipv4: registering... 2023-10-23 01:44:45 I http: https://master1.ddnet.org/ddnet/15/register failed. libcurl error (7): 2023-10-23 01:44:45 E register/6/ipv6: error response from master 2023-10-23 01:44:45 I http: https://master1.ddnet.org/ddnet/15/register failed. libcurl error (7): 2023-10-23 01:44:45 E register/7/ipv6: error response from master 2023-10-23 01:44:45 I register/7/ipv4: registering... 2023-10-23 01:44:46 I register/6/ipv4: registering... This is weird cause the server actually is registered ?
Avatar
Avatar
Gwendal
2023-10-23 01:44:45 I register/6/ipv6: registering... 2023-10-23 01:44:45 I register/6/ipv4: registering... 2023-10-23 01:44:45 I register/7/ipv6: registering... 2023-10-23 01:44:45 I register/7/ipv4: registering... 2023-10-23 01:44:45 I http: https://master1.ddnet.org/ddnet/15/register failed. libcurl error (7): 2023-10-23 01:44:45 E register/6/ipv6: error response from master 2023-10-23 01:44:45 I http: https://master1.ddnet.org/ddnet/15/register failed. libcurl error (7): 2023-10-23 01:44:45 E register/7/ipv6: error response from master 2023-10-23 01:44:45 I register/7/ipv4: registering... 2023-10-23 01:44:46 I register/6/ipv4: registering... This is weird cause the server actually is registered ?
It failed to register on IPv6, you can disable it with sv_register ipv4 if you want.
Avatar
Avatar
furo
It failed to register on IPv6, you can disable it with sv_register ipv4 if you want.
Thanks worked owo
Avatar
@Jupstar βœͺ thanks for the looking at the code owo (edited)
Avatar
morning
Avatar
morning 🍡
Avatar
morning
7:38AM
my mom used the last of my good coffee
7:39AM
well
7:39AM
she left some but it wasn’t even enough for a double shot
7:39AM
and we’re out of milk
7:39AM
oh my god.
Avatar
cyberFighter 10/23/2023 7:43AM
hi
Avatar
Avatar
Ewan
and we’re out of milk
cyberFighter 10/23/2023 7:43AM
rest in peace
Avatar
Have any of you heard of the "Visitor Pattern"?
8:20AM
I never knew it had a name πŸ˜„
Avatar
Hello i have tried repeatedly to add this β€œAuto Verify” feature to my client but to no avail It doesn't show any errors but it doesn't work feelsbadman https://github.com/sjrc6/TaterClient-ddnet/blob/master/src/game/client/components/verify.cpp
8:37AM
I created the gconfig and added that to cmakelists.txt as well: components/verify.cpp components/verify.h The rest of the steps are in gameclient.h
Avatar
well plz tell us the error (edited)
9:10AM
oh nvm
9:10AM
u said no errors
9:10AM
plz debug and make sure that the auto verify code is actually being run
9:10AM
if it's a component i have a hunch that you added the object definition in gameclient.h but never actually added it to the client's list of components as is also required in gameclient.cpp
9:11AM
u will see a long long list of m_SomeComponent
9:12AM
that's my caveman explanation i'd have to look at the code to be any more specific
Avatar
Avatar
Learath2
Have any of you heard of the "Visitor Pattern"?
serde is built upon that
9:12AM
This trait represents a visitor that walks through a deserializer.
9:14AM
maybe ill invent a random data format and implement the serde traits
9:14AM
can be a good way to learn the ins of serde (edited)
Avatar
@Ewan so u want to be a mod
9:21AM
to mute my rust speech
9:21AM
gigachad
Avatar
that's exactly wy
Avatar
i knew it
Avatar
i hate rust with a blazing passion
9:24AM
i will mute all your rust speech so fast
Avatar
Avatar
Ewan
u will see a long long list of m_SomeComponent
bro u saved my life
9:30AM
owo owo owo owo thxx β™₯
Avatar
please give me the textures of the copy love box
Avatar
map extract is very easy to use
9:39AM
drag and drop
Avatar
Avatar
Ewan
map extract is very easy to use
I don't understand how to use it at all
Avatar
and how to download the map
Avatar
well i would say get it from heinrich's archive but i'm not finding it
9:45AM
i just happened to have it in my downloaded maps
9:45AM
which is at C:\Users\user\AppData\Roaming\DDNet\downloadedmaps on Windows
Avatar
Okay, thanks, you're the only one who explained it clearly.
Avatar
Extra tools are available for running some non-gaming-related tasks, like map optimization by mappers, or debugging and testing by developers. These tools must be run from command-line interface (e.g. Command Prompt on Windows or Terminal on Linux) either by adding their containing directory to the PATH variable or by running directly from the c...
Avatar
How can I output the UUID of the system in the client?
Avatar
don't remember the exact fn
10:05AM
wdym the system
10:05AM
CUuid &id; // idk where u want to get this from char aBuf[UUID_MAXSTRSIZE]; FormatUuid(id, aBuf, sizeof(aBuf));
Avatar
Uuid of the system?
10:07AM
That makes less than 0 sense
Avatar
I want to make access to my client by UUID to block those who violate the usage rules
Avatar
Avatar
Learath2
Uuid of the system?
Just UUID, I misspoke a little bit (edited)
Avatar
make and store a UUID in the settings. this will be purged on a settings change tho, so it will not work for persistent stuff like bans
Avatar
People will just change the uuid
Avatar
u can try and formulate some sort of unique identifier based on system info but it would not be worth it
Avatar
How can I do adequate blocking then? For example, so that only reinstalling the OS will help
Avatar
it will not be simple
owo 1
10:12AM
this is a problem ddnet has already and wants to solve
10:12AM
the most popular idea for a solution is an accounts system... and look where we are
10:13AM
the best/simplest you can do is probably implement some sort of simple auth using some web service + oauth or something, so people will have to use burner emails if they want to cheat
10:13AM
and emails are getting harder to make. especially in batches
10:13AM
so that would probably suffice for small-time rule-breakers
Avatar
Thank you very much, I'll try to think of something
Avatar
Avatar
Ewan
the best/simplest you can do is probably implement some sort of simple auth using some web service + oauth or something, so people will have to use burner emails if they want to cheat
also this will need to be supported server-side if you want it to be immune to client mod bypasses
10:16AM
so it will not work on ddnet or kog or whatever servers unless they choose to implement your auth method. which is pretty far fetched
10:16AM
it's a hard problem to solve
Avatar
What is the DDnet team doing at the moment? An account system? New official server tags?
Avatar
but if you can auth with some server you host only for the sake of authenticating the client + the client is responsible for blocking abusers from joining servers based on the response from said server, it would still work well enough to deter small time offenders (edited)
10:17AM
but once someone patches this out it's over. they will just share the exe
Avatar
Avatar
Sedonya
What is the DDnet team doing at the moment? An account system? New official server tags?
nothing really πŸ˜ƒ
10:17AM
a lot of talk
Avatar
Avatar
Ewan
nothing really πŸ˜ƒ
brownbear
Avatar
everyone wants to do it their own way and nobody with the knowledge has made an implementation that people are onboard with
10:18AM
i'd do it but i know next to nothing about cryptography/security so there would probably be huge holes in the logic
10:18AM
also i have a hard time even finishing client mods
10:18AM
so
Avatar
I'd love to do what I can, but my knowledge is still a bit lacking
Avatar
yea man just keep doing ur thing
10:18AM
code and learn
10:18AM
then u will be a genius.
10:19AM
speaking of which i would quite like to have async skins and assets, but this baggage i've introduced in my pr is really not cool
10:19AM
i thought it was justified but it's basically as much work to just roll a new implementation with a custom job for each instance... like...
10:19AM
iif it had worked out like how i'd initially envisioned it, maybe not. but there are so many more parameters for init/precautions you have to take when using this mass file loader thing that i don't even think it's worth it
Avatar
I have so many cool ideas for a client, and I've gotten even more from my client's small community <3
Avatar
i love to hear that
10:20AM
as long as what you're doing is kosher i think it's awesome
Avatar
Most importantly I would like to make support for custom skins on weapons, partials, etc. Same as skins, only more so
Avatar
yeah i think voxel had a similar idea
10:22AM
would be cool
10:22AM
but you'd want the infrastructure for it
Avatar
I'd also like to make support for sound sets, instead of people just replacing the default files (edited)
Avatar
that would be cool. but personally i'd rather those features just be in ddnet itself you know xd
Avatar
Everyone wants to do their own thing, but usually the DDnet team will just add your nickname to the news list
10:25AM
Avatar
yea but at least u get to be purple xd feelsbadman
10:28AM
sedonya the problem is that now every new feature that ddnet comes out with, your users are gonna also want. that makes a lot of work for you
10:28AM
unless you structure your code very intelligently most big updates are goiing to be a lot of dealing with merge conflicts
10:29AM
i don't even have an official client and i already have this problem. a few ppl use my hacked together status bar thing + i have to backport ddnet features and make windows builds every so often
Avatar
The info says to get dev you have to send a PR. But nowhere does it say that it must be useful. They didn't accept what I did to my mod - color, that counts too feelsbadman
10:30AM
My server is the most popular of the unofficial ones
Avatar
is yours the fng server?
Avatar
My main server is S-DDR, but I also have a godfng server as well
10:32AM
s-ddr doesn't show up in my browser
10:32AM
is it block?
Avatar
Avatar
Ewan
is it block?
yes
Avatar
And since a good antichit is only given to official servers, we have them allowed. Thanks to what we have collected almost all DDnet bots, which makes the official servers cleaner owo
10:34AM
I'm strongly against cheats, but it's easier to allow them than to run through every application and only ban half of the noticeable cheaters
Avatar
@Ewan have u still not contributed to ddnet?
Avatar
ddnetters dont like the way i code
10:34AM
or think
10:34AM
my features are stupid
10:34AM
i could always pick up some mundane issue if i wanted to become purple i guess
10:35AM
ya fuck it let's become purple
Avatar
well it wont be useful if ubecome blue
10:35AM
but pruple is cooler
10:35AM
i might become blue
Avatar
its already set
Avatar
i'm afraid there aren't enough USA players on here to vouch for me tho
Avatar
its ok u will get it
Avatar
Why do all roles have color and wiki contr are the only ones like suckers
Avatar
Avatar
Ryozuki
its ok u will get it
i hope so
10:36AM
most of usa is in tee cafe
10:36AM
or cool ddracers discord
Avatar
Avatar
Sedonya
Why do all roles have color and wiki contr are the only ones like suckers
wiki gives the icon
Avatar
Avatar
Ewan
most of usa is in tee cafe
what is that
Avatar
a server
Avatar
Avatar
Ryozuki
wiki gives the icon
That explains everything
Avatar
Avatar
Ewan
a server
infclass?
Avatar
no sry tee cafe is a discord server
10:37AM
okay
Avatar
that i was in at one point, but left and now can't find an invite to πŸ˜‚ (edited)
Avatar
send link
10:37AM
i wanna check
Avatar
@Skeith hey u got tee cafe invite?
10:38AM
this is the only american mongrel online rn i bet
Avatar
i got it
Avatar
#welcome
Avatar
sry for ping skeith
Avatar
is it even active
Avatar
i am not sure
10:38AM
usually i just have a hunch that ppl are there
10:38AM
a certain set of ppl playing in team but not using text chat
10:38AM
so i assume they're in voice. and if they're not in cool ddracers, i assume they're in tee cafe
Avatar
ok i alreayd left got bored
10:39AM
consider it is 4:39 for me rn
10:39AM
nobody's gonna be up except for weirdos like me
10:39AM
and skeith
10:40AM
i'm trying to flip flop my sleep schedule rn. my espresso machine got me into this mess, it can get me out
10:40AM
when i first got it i drank 1 drink from it and the damage was already done. went to bed at 4 am and it's been this way for about a week
10:40AM
my caffeine sensitivity really went up when i stopped drinking it so regularly
10:43AM
i also promised my mom i'd go to the store and get some stuff but i lost track of time and the store closed. so now i'm just gonna go as soon as it opens
Avatar
Buy coffee?
10:45AM
the coffee i get you can only buy online
10:45AM
at least in my area
10:45AM
i usually get the sugar shack blend. it's delicious https://vividcoffee.com/shop
10:45AM
also cheaper
10:46AM
that
10:46AM
i am bored so i will stream
Avatar
Pretty cheap, I guess
Avatar
not really
10:47AM
it's just cheaper than the regional blends they have
Avatar
Avatar
Ewan
i am bored so i will stream
link ^^
Avatar
I thought Twitch or YouTube xd
Avatar
γ‚’γƒͺヂン 10/23/2023 11:39AM
hi devs, can someone with gpu knowledge assist me in my stupidity please? right so uhh, there is this thing called vertex buffer and the gpu draws triangles using it, i can also attach uniform buffer for camera/lighting/etc but can i update vertex buffer? like what if i want to draw arbitrary triangles each frame (lets say about mm <250-500 of them)? and if i can update vertex buffer how slow is that? or am i doing the wrong way??? please i can't find any answers to my dumb questions πŸ˜”
Avatar
generally if you want to update your vertices you have to rebuild your vertex buffer, and it's okay to do so. if you hit performance issues, then you may want to think about other approaches that minimize cpu->gpu memory transfer. how many vertices are we talking about?
11:42AM
so you said <500, that's not too much
Avatar
γ‚’γƒͺヂン 10/23/2023 11:42AM
not that much, i am thinking of developing a small 2d game for my phone
11:42AM
and uhh, i also went for implementing my own graphics πŸ‘
Avatar
gl on that πŸ™‚ its very challenging but can also be very rewarding πŸ™‚
Avatar
Avatar
γ‚’γƒͺヂン
and uhh, i also went for implementing my own graphics πŸ‘
gigachad pepeW
Avatar
Avatar
k2d222
generally if you want to update your vertices you have to rebuild your vertex buffer, and it's okay to do so. if you hit performance issues, then you may want to think about other approaches that minimize cpu->gpu memory transfer. how many vertices are we talking about?
γ‚’γƒͺヂン 10/23/2023 11:43AM
thanks for answering heartwheartwheartw
❀️ 1
Avatar
Avatar
γ‚’γƒͺヂン
thanks for answering heartwheartwheartw
Did u check my game?!?!
Avatar
γ‚’γƒͺヂン 10/23/2023 11:43AM
which one
Avatar
If it deserves to be called a game
Avatar
@γ‚’γƒͺヂン u use rust right
yes 1
Avatar
γ‚’γƒͺヂン 10/23/2023 11:44AM
with wgpu
Avatar
i know ur using opengl but if u want to learn vulkan https://vulkano.rs/
Avatar
Avatar
MilkeeyCat
Yo, i recently made a game. It was my first time using opengl and c++ pepeW (i had to do it for uni). If you have nothing to do id be very happy if you could check the code and how fukcing bad it is, maybe i had to use x instead of y or smth. :D https://github.com/MilkeeyCat/diagonals (edited)
.
Avatar
they got a lot of tutorial
Avatar
Avatar
γ‚’γƒͺヂン
not that much, i am thinking of developing a small 2d game for my phone
Jupstar βœͺ 10/23/2023 11:45AM
In integrated gpus u could in theory have another advantage that the memory does not require a copy
11:46AM
With opengl i always found rebuilding the whole buffer faster than updating it. So pre allocation not worth it
f3 1
Avatar
Avatar
Ryozuki
i know ur using opengl but if u want to learn vulkan https://vulkano.rs/
γ‚’γƒͺヂン 10/23/2023 11:46AM
i wanna make a game for my phone because google play is filled with powerconsuming garbage so i need a crossplatform compilation and wgpu says it can compile on pretty much any platform
Avatar
Avatar
MilkeeyCat
Did u check my game?!?!
γ‚’γƒͺヂン 10/23/2023 11:47AM
is this the continuation of your opengl adventures?
Avatar
Avatar
MilkeeyCat
Yo, i recently made a game. It was my first time using opengl and c++ pepeW (i had to do it for uni). If you have nothing to do id be very happy if you could check the code and how fukcing bad it is, maybe i had to use x instead of y or smth. :D https://github.com/MilkeeyCat/diagonals (edited)
@γ‚’γƒͺヂン yea
11:48AM
Thats final result and i dont touch graphics
11:48AM
Ever
11:48AM
pepeW
Avatar
γ‚’γƒͺヂン 10/23/2023 11:48AM
you know, implementing graphics from scratch is a hard milestone, so you should be proud that you were able to do it πŸ‘
11:49AM
lets see if it compiles on my machine
Avatar
γ‚’γƒͺヂン 10/23/2023 11:51AM
hmm
11:51AM
imgui
11:51AM
seems interesting
Avatar
no imgui!
11:51AM
evil sinful library
11:51AM
wasteful
Avatar
γ‚’γƒͺヂン 10/23/2023 11:51AM
w
11:51AM
whay
11:51AM
its cool
11:51AM
and fast
11:52AM
and its rlly easy to define ui in code
Avatar
Avatar
Ewan
evil sinful library
I liked it feelsbadman
Avatar
Avatar
γ‚’γƒͺヂン
and its rlly easy to define ui in code
Btw press space, only then u can click on cells
Avatar
@γ‚’γƒͺヂン u use rust
11:53AM
so use egui
11:53AM
egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native - GitHub - emilk/egui: egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
Avatar
γ‚’γƒͺヂン 10/23/2023 11:53AM
i know about egui
Avatar
egui is rust imgui
Avatar
γ‚’γƒͺヂン 10/23/2023 11:53AM
yeah yeah
11:53AM
i used it
11:53AM
a lot
Avatar
Avatar
MilkeeyCat
I liked it feelsbadman
dear imgui is fine
11:54AM
for an imgui library
11:54AM
but it's not a good type of ui imo
Avatar
γ‚’γƒͺヂン 10/23/2023 11:54AM
wait
11:54AM
isnt egui and imgui the same thing?
Avatar
Time to back to demo stuff pepeW
Avatar
Avatar
MilkeeyCat
Btw press space, only then u can click on cells
γ‚’γƒͺヂン 10/23/2023 11:56AM
im still struggling to compile it πŸ˜…
Avatar
Avatar
γ‚’γƒͺヂン
im still struggling to compile it πŸ˜…
pepeW
11:56AM
Works on my machine
Avatar
γ‚’γƒͺヂン 10/23/2023 11:56AM
is it for windows?
Avatar
No
11:57AM
:p
11:57AM
Did u use --recursive?
Avatar
γ‚’γƒͺヂン 10/23/2023 11:57AM
ok that means the problem is me
11:58AM
it's not able to find glm for some reason..
Avatar
γ‚’γƒͺヂン 10/23/2023 12:00PM
k fixed it
12:00PM
cmakefiles is borked
Avatar
A gg
Avatar
γ‚’γƒͺヂン 10/23/2023 12:02PM
-add_subdirectory(dependencies/glm) +include_directories(dependencies/glm)
12:02PM
this fixed it for me
12:02PM
you might want to look into this issue
Avatar
Maybe i was changing stuff between commits and fucked everything up
12:03PM
justatest
Avatar
γ‚’γƒͺヂン 10/23/2023 12:03PM
?xd
Avatar
Its between 2 players
12:04PM
No one can take it
Avatar
γ‚’γƒͺヂン 10/23/2023 12:04PM
oh
12:04PM
hold uyp i thought this was a different game
Avatar
XD
Avatar
Avatar
MilkeeyCat
Maybe i was changing stuff between commits and fucked everything up
add_subdirectory will add a cmake project in said dir include_directories will add all the headers in that directory to the global include paths (so you can use it with <example.h>)
12:11PM
typically you would want to do target_include_directories(project PRIVATE dir) in order to avoid polluting the global include paths
12:11PM
same for linking libraries but for different reasons
Avatar
Avatar
γ‚’γƒͺヂン
i wanna make a game for my phone because google play is filled with powerconsuming garbage so i need a crossplatform compilation and wgpu says it can compile on pretty much any platform
Jupstar βœͺ 10/23/2023 12:11PM
Will you also make it look nice? Xd
Avatar
γ‚’γƒͺヂン 10/23/2023 12:12PM
i will try my best <3
Avatar
Jupstar βœͺ 10/23/2023 12:12PM
I'm something of an artist myself
Avatar
γ‚’γƒͺヂン 10/23/2023 12:12PM
oh if you're talking about the art then yes of course
Avatar
Avatar
γ‚’γƒͺヂン
i will try my best <3
Jupstar βœͺ 10/23/2023 12:13PM
I always find it hard to make it not look like trash but be very energy efficient. E.g. cool shaders will cost resources. Gifs etc. Are resolution and often framerate dependent so that kinda sucks too ^^
Avatar
Avatar
γ‚’γƒͺヂン
oh if you're talking about the art then yes of course
Jupstar βœͺ 10/23/2023 12:13PM
Are you an artist?
Avatar
γ‚’γƒͺヂン 10/23/2023 12:14PM
not that much, i'm bad at any form of art, but if i take my time....
Avatar
Avatar
Jupstar βœͺ
I always find it hard to make it not look like trash but be very energy efficient. E.g. cool shaders will cost resources. Gifs etc. Are resolution and often framerate dependent so that kinda sucks too ^^
γ‚’γƒͺヂン 10/23/2023 12:14PM
im probably gonna leave post proc. out because of that
12:15PM
post processing is not always better
12:15PM
sometimes you can create a picture that looks beautiful even without 1000x bloom
Avatar
Avatar
Ewan
add_subdirectory will add a cmake project in said dir include_directories will add all the headers in that directory to the global include paths (so you can use it with <example.h>)
I know that πŸ™‚
12:16PM
congratulations
Avatar
But somehow there was add_sybdirectories pepeW
Avatar
idk how much c/cpp u know so i just want to help whenever i can
Avatar
γ‚’γƒͺヂン 10/23/2023 12:16PM
btw for anyone looking for phone games, i can recommend "slice & dice"
Avatar
I know basically 0
monkalaugh 1
12:17PM
😎
Avatar
Avatar
γ‚’γƒͺヂン
btw for anyone looking for phone games, i can recommend "slice & dice"
γ‚’γƒͺヂン 10/23/2023 12:17PM
really good and really optimized
Avatar
Avatar
Patiga
hey
heinrich5991 10/23/2023 12:20PM
I can't quite put my finger on it, but somethings seems off πŸ€”
Avatar
is this the rare heinrich5991 joke
Avatar
Avatar
Learath2
Have any of you heard of the "Visitor Pattern"?
heinrich5991 10/23/2023 12:21PM
emulating pattern matching in languages that don't support it
Avatar
Avatar
heinrich5991
I can't quite put my finger on it, but somethings seems off πŸ€”
here ya go :) trivia: did you know, that... 1. the sunbeams on dm1 are colored with envelopes to make them less bright? 2. the sun is transparent and the beams are actually quite chaotic and leave a hole in the middle of the sun? its not as bad as here, but once you know, you'll see it every time 🫠
Avatar
heinrich5991 10/23/2023 12:25PM
the sun is transparent and the beams are actually quite chaotic and leave a hole in the middle of the sun?
thank you for ruining dm1 for me
Avatar
Avatar
Patiga
here ya go :) trivia: did you know, that... 1. the sunbeams on dm1 are colored with envelopes to make them less bright? 2. the sun is transparent and the beams are actually quite chaotic and leave a hole in the middle of the sun? its not as bad as here, but once you know, you'll see it every time 🫠
Jupstar βœͺ 10/23/2023 12:25PM
What r u working on now? Porting ddnet to godot?
Avatar
the original :) its more subtle than I remember
Avatar
Avatar
Jupstar βœͺ
What r u working on now? Porting ddnet to godot?
yea, was curious how long that would take
12:26PM
maybe its just procrastination for my bachelor thesis πŸ™ƒ
Avatar
Jupstar βœͺ 10/23/2023 12:26PM
And what is your current time
Avatar
wdym with current time?
Avatar
Jupstar βœͺ 10/23/2023 12:27PM
Time spent
Avatar
my fourth day on it, maybe 4 h each day? I didn't actually track the time
Avatar
Jupstar βœͺ 10/23/2023 12:29PM
And did u write custom shaders or only use godot one
Avatar
its actually the third time I have now reimplemented drawing tw/ddnet maps xd: blender, twgpu, godot
12:29PM
I'll need to write a custom shader for quads + envelopes I think
Avatar
Jupstar βœͺ 10/23/2023 12:30PM
So it does support tile maps?
Avatar
Avatar
Patiga
its actually the third time I have now reimplemented drawing tw/ddnet maps xd: blender, twgpu, godot
Jupstar βœͺ 10/23/2023 12:30PM
And every time different approach xd
happy 1
Avatar
yes, but its very different, large maps take quite some time to process
12:30PM
not super long, but like 10 seconds I think, haven't tested much yet
Avatar
Jupstar βœͺ 10/23/2023 12:30PM
Every method has advantages and disadvantages ^^
Avatar
yea ^^
12:31PM
the whole map construction is done with rust bindings tho ^^
12:31PM
they work quite well
Avatar
Jupstar βœͺ 10/23/2023 12:31PM
Hardest part might be to integrate the border extension
12:31PM
If u plan that
Avatar
yeaaa :/
12:31PM
not sure yet how to do that
12:32PM
with Godot I could test the perf difference between raycasting tilemaps and doing them the 'native' godot way
12:32PM
but thats for another day I think
12:33PM
I was honestly hoping I would have mipmaps by now, but there are some confusing things along the way
12:33PM
I'm honestly not sure if I'll even get mipmaps for the tilemaps
12:33PM
would suck
Avatar
Jupstar βœͺ 10/23/2023 12:33PM
Well Godot supports gles2 right?
Avatar
Jupstar βœͺ 10/23/2023 12:34PM
I assume they don't use texture arrays
Avatar
they are atlasses I think
12:34PM
I checked the box for a 1 pixel separation between segments of the atlas
Avatar
Jupstar βœͺ 10/23/2023 12:34PM
Ah
Avatar
but that kinda makes me worried about the mipmaps, that always sounded a bit clunky
12:36PM
btw, is your Rust renderer public yet? if not, could I maybe get access to it? I'd like to take a look into its workings :)
Avatar
Jupstar βœͺ 10/23/2023 12:36PM
I can later push the current state
12:36PM
Do u only want the front end?
Avatar
I wanna see the rendering code
Avatar
Jupstar βœͺ 10/23/2023 12:37PM
Like the vulkan stuff or just higher level stuff?
Avatar
both would be nice :)
12:38PM
is it structured like the ddnet rendering code?
Avatar
Jupstar βœͺ 10/23/2023 12:39PM
Ok. U can get both, but I'm still in a brainstorming phase for the vk backend, so it's not really final.. wont matter too much for tile rendering. But like everything around it xd
Avatar
Avatar
Jupstar βœͺ
Hardest part might be to integrate the border extension
(hmm, if I have sufficient trust in the renderer, I might just be able to just extend all borders by like 100 or 200 tiles and call it a day πŸ€”)
Avatar
Avatar
Patiga
(hmm, if I have sufficient trust in the renderer, I might just be able to just extend all borders by like 100 or 200 tiles and call it a day πŸ€”)
Jupstar βœͺ 10/23/2023 12:39PM
Sadly this will contain bugs tho
12:39PM
I'd really love to do that for ddnet
12:40PM
But e.g. aim maps use single tiles for backgrounds(by abusing the auto extend)
tear 1
Avatar
Avatar
Jupstar βœͺ
Ok. U can get both, but I'm still in a brainstorming phase for the vk backend, so it's not really final.. wont matter too much for tile rendering. But like everything around it xd
doesn't really matter that it's not final. because its just a rendering challenge which I've already poured some thoughts into and I think I'll learn some stuff from seeing how someone does it who knows what they are doing ^^
Avatar
Avatar
Jupstar βœͺ
But e.g. aim maps use single tiles for backgrounds(by abusing the auto extend)
the aim maps seem to all use a 2x2 tile background, must be some other map series
Avatar
Jupstar βœͺ 10/23/2023 12:43PM
Yeah ok but 2x2 doesn't make it better
12:44PM
If they are 1000 tiles
12:44PM
Visible for over 1000 tiles*
Avatar
they aren't extended at the borders though
Avatar
Avatar
Patiga
they aren't extended at the borders though
Jupstar βœͺ 10/23/2023 12:45PM
what? how that
Avatar
maybe we just fade to black at the borders of a map :D
12:45PM
Avatar
Jupstar βœͺ 10/23/2023 12:45PM
ah
12:45PM
keep in mind that extending is not related to game layer
12:45PM
the 2x2 will extend directly (after the 2x2 tiles ^^)
12:46PM
for the rest of the map
12:46PM
what i want to say is: you cannot ujst extend them by 200-300.. u need to extend them over the whole visible area
12:47PM
they don't use parallax afaik
Avatar
Avatar
Patiga
Click to see attachment πŸ–ΌοΈ
I'm not in entities here, those are the 2x2 tiles, the layers have an empty border
12:47PM
but yea
12:47PM
the issue will be there on maps that use that specific nieche
12:48PM
eh, those edges sure are annoying
12:48PM
maybe I'll fall back to the raycasting in the end, because I won't have to worry there xd
Avatar
Jupstar βœͺ 10/23/2023 12:49PM
did u even solve this on twgpu? cant remember
Avatar
I started with Godot because I hoped for faster development, and being actually able to develop a small app that could easily run on mobile phones
Avatar
Jupstar βœͺ 10/23/2023 12:50PM
i guess once u are fluent in godot this is true πŸ˜„
Avatar
Avatar
Jupstar βœͺ
did u even solve this on twgpu? cant remember
I did raytracing: a signgle quad always covering the entire viewport. the tilemap uploaded as a texture. then I map the screen coordinates to the tilemap coordinates, clamp to the limits of the tilemap and sample the tilemap and the tile array texture right after
Avatar
its obviously true
12:51PM
godot provides lot of things out of the box
12:51PM
its a engine xd
Avatar
Jupstar βœͺ 10/23/2023 12:51PM
i'd say it's 99% true
12:51PM
fun follow
12:51PM
he posts blender and godot stuff
Avatar
Jupstar βœͺ 10/23/2023 12:51PM
a big engine always has the disadvantage that it doesn't let you integrate easily into every aspect of it
Avatar
Smooth scrolling in console is already implemented yea?
Avatar
Jupstar βœͺ 10/23/2023 12:52PM
somewhere there is an abstraction that limits you
12:52PM
stupid twitter
12:53PM
nice hack
Avatar
Jupstar βœͺ 10/23/2023 12:53PM
xd
12:53PM
look
12:53PM
this guy is insane
12:53PM
this is godot
Avatar
Jupstar βœͺ 10/23/2023 12:55PM
neat
Avatar
very cool
12:55PM
but how's the perf
Avatar
Jupstar βœͺ 10/23/2023 12:55PM
i mean godot will be quite optimized for PBR, so most light effects will be fast
Avatar
A procedural textures authoring and 3D model painting tool based on the Godot game engine - GitHub - RodZill4/material-maker: A procedural textures authoring and 3D model painting tool based on the...
Avatar
Jupstar βœͺ 10/23/2023 12:57PM
more interesting would be use of raytracing
Avatar
Jupstar βœͺ 10/23/2023 12:57PM
i feel like unreal engine currently has a monopoly on public avaialable engines
Avatar
godot can only improve
12:58PM
its currently in a nice place also relogic is a sponsor
Avatar
Jupstar βœͺ 10/23/2023 12:58PM
oh yeah, terraria is a sponsor
12:58PM
it must be good for 3d
12:58PM
😬
Avatar
i just showed u 3d godot
12:58PM
xd
12:59PM
the joke is that godot 2 sucked hard
12:59PM
but 4 is nice
Avatar
Jupstar βœͺ 10/23/2023 12:59PM
yeah was just a joke xd
Avatar
but the meme lives on
Avatar
the pog thing about godot being open source is these tools
12:59PM
popping up everywhere
Avatar
@Jupstar βœͺ I'm a bit unsure how I should implement the envelopes. does a envelope-values-1d-texture which the quads sample from in the vertex shader sound bad to you in any way? Godot doesn't really tell me how I should update my own gpu buffers (It doesn't actually provide me with non-const-sized-gpu-buffers I think, but 2d-textures-used-as-1d-textures could fill that gap)
Avatar
and the physics addons etc
1:00PM
We're moving to Godot and made a free little jam game over the last 3 weeks. Featuring: Dancing Duelists, 🎡πŸͺ©a BUMPIN' Deckbuilding Autobattler🀑✨ Play it hereπŸ‘‡https://t.co/xvGDy9ReUF
Likes
1833
Retweets
310
Avatar
Jupstar βœͺ 10/23/2023 1:01PM
ah SSIL is their GI method, then indeed i wonder about performance and how well it looks compared to unreal πŸ˜„
Avatar
wats SSIL xd
1:02PM
it also says SGDFI
1:02PM
Signed distance field global illumination (SDFGI) is a novel technique available in Godot 4.0. It provides semi-real-time global illumination that scales to any world size and works with procedurally generated levels. SDFGI supports dynamic lights, but not dynamic occluders or dynamic emissive surfaces.
Avatar
Avatar
Patiga
@Jupstar βœͺ I'm a bit unsure how I should implement the envelopes. does a envelope-values-1d-texture which the quads sample from in the vertex shader sound bad to you in any way? Godot doesn't really tell me how I should update my own gpu buffers (It doesn't actually provide me with non-const-sized-gpu-buffers I think, but 2d-textures-used-as-1d-textures could fill that gap)
Jupstar βœͺ 10/23/2023 1:03PM
uff, tbh i have no idea. using textures sounds like a hack, but if godot doesn't give u anything better i guess u have no other choice?
1:03PM
my fear with sampling stuff is that drivers can always override its behavior πŸ˜„
Avatar
Avatar
Ryozuki
wats SSIL xd
Jupstar βœͺ 10/23/2023 1:04PM
Screen-space indirect lighting (SSIL): The SSIL quality and number of blur passes can be adjusted in the Project Settings. By default, SSIL rendering is performed at half resolution (and then linearly scaled) to ensure a reasonable performance level. Not available when using the Forward Mobile or Compatibility backends.
1:04PM
What is global illumination?: Global illumination is a catch-all term used to describe a system of lighting that uses both direct light (light that comes directly from a light source) and indirect ...
Avatar
what does unreal use?
Avatar
Jupstar βœͺ 10/23/2023 1:05PM
i dunno they call it lumen or smth
Avatar
ah, thanks for the brain storming/a bit rubber-ducking, I'll try some stuff out
Avatar
Jupstar βœͺ 10/23/2023 1:05PM
i don't think there is anything comparable
1:07PM
@Ryozuki the most important thing in UE5 is Nanite.. so their GI etc. has to integrate with that technology
1:07PM
that's why u can't really compare it to anything else i think. it's simply a new approach
Avatar
copy the aproach
1:08PM
😬
Avatar
Jupstar βœͺ 10/23/2023 1:08PM
true xd
Avatar
Avatar
Ryozuki
its currently in a nice place also relogic is a sponsor
i am incredibly surprised they don't have more sponsors. i guess you have to be more explicitly linux-oriented to get support from all the big names which usually sponsor oss projects like this
Avatar
smth rly weird happening
1:13PM
im compiling a project with rust
1:13PM
i OOM
1:14PM
i just added a bench binary
1:14PM
odd stuff
1:14PM
ill use less jobs
Avatar
Avatar
Ewan
i am incredibly surprised they don't have more sponsors. i guess you have to be more explicitly linux-oriented to get support from all the big names which usually sponsor oss projects like this
Jupstar βœͺ 10/23/2023 1:14PM
linux foundation decided to sponsor https://github.com/o3de/o3de
Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations wit...
Avatar
maybe smth rly big in there
Avatar
Jupstar βœͺ 10/23/2023 1:15PM
instead of godot
1:15PM
for WHATEVER reason xd
Avatar
probably some quarrel
1:15PM
wrong license or wrong philosophy or they don't like a top contributor
Avatar
did u use it
Avatar
Avatar
Ryozuki
did u use it
Jupstar βœͺ 10/23/2023 1:16PM
no, i just heard it's amazons game engine, which makes sense since many contributors have amazon in their name
Avatar
well its cool to have alternatives and its open source
Avatar
Jupstar βœͺ 10/23/2023 1:17PM
yeah, idc too much tbh πŸ˜„
1:17PM
godot profited most of the unity problems... at least from the open source engines
Avatar
amazon's got their fingers in everything
Avatar
@γ‚’γƒͺヂン it builds for me even without that glm line at all (edited)
1:31PM
thonk
Avatar
Avatar
MilkeeyCat
@γ‚’γƒͺヂン it builds for me even without that glm line at all (edited)
Jupstar βœͺ 10/23/2023 1:34PM
r u under linux?
1:35PM
& do u inlcude glm headers with #include <glm/...>
Avatar
Jupstar βœͺ 10/23/2023 1:35PM
then it's quite likely that the /usr/includes is already in the path, that's why u dont need it
Avatar
i still didnt install right drivers feelsbadman
Avatar
Jupstar βœͺ 10/23/2023 1:35PM
it might not compile under windows then tho
Avatar
Avatar
MilkeeyCat
i still didnt install right drivers feelsbadman
Jupstar βœͺ 10/23/2023 1:35PM
whats your problem with your drivers?
Avatar
theyre bad (edited)
Avatar
Jupstar βœͺ 10/23/2023 1:36PM
nvidia?
Avatar
yea
1:36PM
i install neuvau or whatever the hell
Avatar
Jupstar βœͺ 10/23/2023 1:36PM
rip
1:37PM
it's probably better to use zink globally xd
1:37PM
then u have the power of mesa, while u have the driver of nvidia
1:37PM
assuming u install the nvidia drivers at some point
1:38PM
and no i have never tested that, but would be a funny experiment
1:38PM
with AMD drivers on KDE i had no real issues
Avatar
Avatar
Jupstar βœͺ
& do u inlcude glm headers with #include <glm/...>
yea i do, and i also have this line include_directories(dependencies)
1:38PM
and dependencies folder has glm, i though that has to work
1:38PM
:p
Avatar
Jupstar βœͺ 10/23/2023 1:39PM
i guess u have glm installed over a package manager
Avatar
if i remove it from dependencies folder it should work anyways
1:39PM
right?
1:39PM
if i have it installed
Avatar
Jupstar βœͺ 10/23/2023 1:40PM
yes
Avatar
ok it does feelsbadman
1:40PM
i dont remember installing it
Avatar
Jupstar βœͺ 10/23/2023 1:41PM
i can't remember installing any of the 7000 packages out of 7100 packages on my system xdd
Avatar
Avatar
Ryozuki
ill use less jobs
heinrich5991 10/23/2023 1:48PM
would be nice if there was a better solution to this
1:48PM
I also run into this sometimes
Avatar
Avatar
Ewan
nobody's gonna be up except for weirdos like me
Joke's on you, I have to go to the DMV again today
1:51PM
pepeW
Avatar
yo I have a logical question. if I have an array of 2d vectors and I chose one of them at random. How would I figure out the nearest vector to the left and to the right side?
Avatar
Avatar
MilkeeyCat
@γ‚’γƒͺヂン it builds for me even without that glm line at all (edited)
ok i fixed and now it has a release poggers
Avatar
heinrich5991 10/23/2023 1:55PM
wdym by "left" and "right"?
1:56PM
just with a lower/higher x coordinate?
Avatar
Avatar
heinrich5991
would be nice if there was a better solution to this
Jupstar βœͺ 10/23/2023 1:56PM
buy more ram xd
1:57PM
i ran out of memory on 32GB lately, when compiling something on arch
Avatar
Avatar
heinrich5991
wdym by "left" and "right"?
Sry for the poor quality ethernet port broke on my PC. The green vector is the randomly selected ones and the red ones are the ones that I want
Avatar
Avatar
Skeith
Joke's on you, I have to go to the DMV again today
my condolences
Avatar
anybody knows whats the name of this color scheme? xd (edited)
Avatar
not off the top of my head
2:00PM
solarized maybe
2:00PM
(dark)
2:00PM
nvm
Avatar
ive already seen it but cant remember the name feelsbadman
Avatar
Avatar
MilkeeyCat
anybody knows whats the name of this color scheme? xd (edited)
Gruvbox, I guess
πŸ‘ 1
Avatar
not dissimilar to mabakor
Avatar
Avatar
Teero
Sry for the poor quality ethernet port broke on my PC. The green vector is the randomly selected ones and the red ones are the ones that I want
Jupstar βœͺ 10/23/2023 2:01PM
so u basically want to see if the dot product is positive or negative?
Avatar
yep
Avatar
Jupstar βœͺ 10/23/2023 2:01PM
or how should i interpret that?
2:01PM
or the angle?
2:02PM
but left and right in 3d is really weird
2:02PM
u kinda want a projection of the vector first? but into which direction?
2:03PM
a single red vector does not create a plane
2:03PM
or the x y plane? xd
Avatar
Avatar
Teero
Sry for the poor quality ethernet port broke on my PC. The green vector is the randomly selected ones and the red ones are the ones that I want
heinrich5991 10/23/2023 2:03PM
what jupstar says, I'm still not sure what you mean by left and right
2:03PM
why is the gray one not left or right?
Avatar
I only want the nearest ones So the nearest one on the left and the nearest one on the right (edited)
Avatar
Jupstar βœͺ 10/23/2023 2:04PM
what if it's above it?
Avatar
The vectors are normalised
Avatar
Jupstar βœͺ 10/23/2023 2:05PM
well the problem is simply, left and right doesn't work like that in 3d xD
Avatar
It's 2d bro
Avatar
Avatar
Teero
Sry for the poor quality ethernet port broke on my PC. The green vector is the randomly selected ones and the red ones are the ones that I want
Jupstar βœͺ 10/23/2023 2:06PM
this img is 2d too?
Avatar
Jupstar βœͺ 10/23/2023 2:06PM
my brain has hard time parsing that xD
Avatar
The colors are for what I want and what I have xd
2:06PM
I have the green
2:06PM
I want the red
Avatar
Jupstar βœͺ 10/23/2023 2:06PM
well in 2d simply check the x coordinate?
Avatar
Its a circle
Avatar
heinrich5991 10/23/2023 2:06PM
then select the vector with the minimum distance that has a higher x coordinate?
Avatar
Avatar
Jupstar βœͺ
well in 2d simply check the x coordinate?
Well no
Avatar
heinrich5991 10/23/2023 2:07PM
how is the grey one not closer than the left red one?
Avatar
Closer by angle
2:07PM
The length doesn't mean anything
Avatar
Jupstar βœͺ 10/23/2023 2:07PM
i c
2:08PM
so sin & cos are ur friends here
2:09PM
In mathematics, a unit circle is a circle of unit radiusβ€”that is, a radius of 1. Frequently, especially in trigonometry, the unit circle is the circle of radius 1 centered at the origin (0, 0) in the Cartesian coordinate system in the Euclidean plane. In topology, it is often denoted as S1 because it is a one-dimensional unit n-sphere.If (x, y)...
Avatar
But taking angle diffs are annoying asf
2:10PM
since there are always 2 answers
Avatar
Jupstar βœͺ 10/23/2023 2:11PM
but u know which vector is closer to 1, 0
2:12PM
ok i am thinking too mathematically rn anyway, u probably need a very fast approach
2:13PM
i bet u can somehow abuse the dot product for this
Avatar
Just getting the closest vector is easy but I need 2 of em
2:14PM
Ah wait I have an idea
Avatar
Avatar
Teero
Just getting the closest vector is easy but I need 2 of em
Jupstar βœͺ 10/23/2023 2:14PM
yeah but if u know one, and its coordinate, u just need to seek out for another that as coordinates that are on the other side (edited)
2:15PM
and u can search for the closest vector of red to green, instead of green to red
Avatar
@Voxel were u planning to submit a pr for #7312? i was looking for stuff to knock out and it seems pretty ez but if u had plans then i'll find something else
Avatar
heinrich5991 10/23/2023 2:22PM
Everything is going to hell and nobody seems to care
Avatar
Jupstar βœͺ 10/23/2023 2:23PM
that yellow website is also the hell xDD
Avatar
heinrich5991 10/23/2023 2:24PM
The whole webpage/SQL database architecture is built on a premise (hope, even) that nobody will touch your data while you look at the rendered webpage.
I also struggled with that one while writing a website
Avatar
Avatar
heinrich5991
The whole webpage/SQL database architecture is built on a premise (hope, even) that nobody will touch your data while you look at the rendered webpage.
I also struggled with that one while writing a website
Jupstar βœͺ 10/23/2023 2:25PM
why is that a problem? i dont understand.. bcs scriptlanguages? security reasons?
Avatar
heinrich5991 10/23/2023 2:25PM
you display a resource that a user can edit
2:25PM
multiple users might open the same page, get presented the same data
2:25PM
one user changes field a, the other field b
2:26PM
if you naively just update everything when the users submit, one of these changes is going to be lost (edited)
Avatar
Jupstar βœͺ 10/23/2023 2:26PM
mh yeah
Avatar
Jupstar βœͺ 10/23/2023 2:35PM
@Teero found a solution?
Avatar
yea I think I did
2:35PM
Gotta test first
Avatar
Jupstar βœͺ 10/23/2023 2:41PM
i think u could do it with a fast cross product(using z achsis for 90°) and using the dot product xd
2:42PM
and it involves no sin, cos or sqrt
Avatar
This is an excellent blog post. He put into decent words everything I've been thinking for years
Avatar
thing about this post is i've read so many like it that i'm not sure if i've read this one specifically before
2:51PM
you'd think i'd remember the yellow
2:51PM
lmfao this troll dark mode
Avatar
Avatar
Learath2
This is an excellent blog post. He put into decent words everything I've been thinking for years
Jupstar βœͺ 10/23/2023 2:55PM
having dealt with the javascript(typescript) universe a bit i can ensure you, it's even worse than u think xD
Avatar
Avatar
Ewan
@Voxel were u planning to submit a pr for #7312? i was looking for stuff to knock out and it seems pretty ez but if u had plans then i'll find something else
uh yea sure u can do that
Avatar
Jupstar βœͺ 10/23/2023 2:55PM
i swear these frameworks are always broken af, and never gonna be fixed. they slow, they tend to not work after a while
Avatar
wish the world was made in rust
2:56PM
justatest
Avatar
Avatar
Jupstar βœͺ
having dealt with the javascript(typescript) universe a bit i can ensure you, it's even worse than u think xD
You know whats even scarier to me? I know a couple people going into the industry right around now and they actually don't see an issue with it
Avatar
im just hoping wasm can finally do DOM and we get rid of js
Avatar
Avatar
Learath2
You know whats even scarier to me? I know a couple people going into the industry right around now and they actually don't see an issue with it
It seems to be getting more and more normal
Avatar
Avatar
Ryozuki
wish the world was made in rust
heinrich5991 10/23/2023 2:57PM
static linking is also a tradeoff, unfortunately
Avatar
Avatar
Learath2
You know whats even scarier to me? I know a couple people going into the industry right around now and they actually don't see an issue with it
well this is what they are taught by their professors
Avatar
Avatar
Learath2
It seems to be getting more and more normal
Jupstar βœͺ 10/23/2023 2:57PM
yeah it's sad tbh. i always hate the debugging session that lead to nowhere except you saying" probably a framework problem and not in my code"
Avatar
Avatar
Ewan
well this is what they are taught by their professors
heinrich5991 10/23/2023 2:58PM
I don't think that comes up in lectures
Avatar
Jupstar βœͺ 10/23/2023 2:58PM
u don't even know if that's true but u cannot really expect anything else.. they are basically not reproducable etc
2:58PM
that's also one of the issues i see with CSS. there are 20000 ways to do the same
Avatar
Avatar
Jupstar βœͺ
yeah it's sad tbh. i always hate the debugging session that lead to nowhere except you saying" probably a framework problem and not in my code"
Since I have a very obsessive personality, I do end up all the way inside the framwork for these bugs to confirm it's definitely not my fault
Avatar
Jupstar βœͺ 10/23/2023 2:58PM
and nobody understands why it works xD
Avatar
Avatar
Learath2
Since I have a very obsessive personality, I do end up all the way inside the framwork for these bugs to confirm it's definitely not my fault
Jupstar βœͺ 10/23/2023 2:59PM
well depends on the framework size i guess, but that's actually a good thing to do xd
Avatar
Avatar
heinrich5991
I don't think that comes up in lectures
no way to know if this is true as i'm not in any kind of cs or ce course, but i think the general sentiment of doing things faster as opposed to 'correctly' would really shine through
3:00PM
if that's what the industry is doing, there are bound to be a certain number of people who think this way. and a portion of those ppl would be professors or colleagues
Avatar
Avatar
Ewan
if that's what the industry is doing, there are bound to be a certain number of people who think this way. and a portion of those ppl would be professors or colleagues
heinrich5991 10/23/2023 3:00PM
this is far weaker than the initial statement
3:00PM
"there are also professors who think this is okay"
Avatar
Avatar
Ryozuki
im just hoping wasm can finally do DOM and we get rid of js
javascipt is like, the only language im fluent in LOL
Avatar
Avatar
Jupstar βœͺ
well depends on the framework size i guess, but that's actually a good thing to do xd
It delays results though. Which is all that matters to bean counters and the new generation. A working MVP immediately that they tell themselves they will definitely improve on but never do
Avatar
Avatar
Voxel
javascipt is like, the only language im fluent in LOL
english owo
Avatar
Who cares if one of our dependencies is pulling in a version of mongodb and another pulling in another making our bundle double the size. MVP needs to be out yesterday, why are you wasting time debugging that?
Avatar
Avatar
Teero
english owo
yes thats what language i speak
Avatar
Avatar
Learath2
It delays results though. Which is all that matters to bean counters and the new generation. A working MVP immediately that they tell themselves they will definitely improve on but never do
but well, it makes a bit of sense to want a working mvp to get money flowing rather than waiting to have that perfect software u may never reach while wasting funds
3:04PM
its all a balance i guess
3:04PM
and it depends a lot on how much ucan wait as a company
3:04PM
today Ryozuki the capitalist
3:04PM
tomorrow the comunist (edited)
Avatar
Avatar
Ryozuki
but well, it makes a bit of sense to want a working mvp to get money flowing rather than waiting to have that perfect software u may never reach while wasting funds
Money is a perverse incentive, it's almost always in conflict with good engineering
Avatar
yeah
3:05PM
thats why free software is so good
3:05PM
u can sense the dedication
3:05PM
and the true craftsmanship
3:05PM
kek
Avatar
Avatar
Learath2
Money is a perverse incentive, it's almost always in conflict with good engineering
ddnet justatest
Avatar
Avatar
Ryozuki
thats why free software is so good
heinrich5991 10/23/2023 3:06PM
unfortunately it often isn't 😦
Avatar
if ppl got paid to program for ddnet then i bet itd be cooler
Avatar
depends
Avatar
Avatar
heinrich5991
unfortunately it often isn't 😦
well there is lots
Avatar
Avatar
Ryozuki
ddnet justatest
I never said no money incentive implies good software πŸ˜„
Avatar
but good free software is usually better than the counterpart
3:08PM
i like to believe blender is good
3:08PM
xd
Avatar
Blender is excellent. If only their competition didn't have war chests the size of a small countries budget marketing their products
Avatar
Avatar
Voxel
if ppl got paid to program for ddnet then i bet itd be cooler
heinrich5991 10/23/2023 3:09PM
hats!
3:09PM
or loot boxes or whatever we call them these days
Avatar
We should cave and sell capes and colored names and hats
Avatar
Avatar
heinrich5991
or loot boxes or whatever we call them these days
today its battlepass
3:10PM
every game has it
3:10PM
valve created it
3:10PM
i been playing diabl o4
3:10PM
diablo 4
3:10PM
it has battlepass xd
Avatar
im at that point of tiredness that i'm hallucinating phone dings
Avatar
go sleep
3:11PM
no
3:11PM
can't
Avatar
i go get coffee
Avatar
Sleep
Avatar
Can i have twerking twinbop for $9.99
Avatar
i need to fix my sleep schedule
Avatar
btw i got a rice cooker and i can say they are nice
3:11PM
best way to lazy cook
Avatar
yea it was a game changer
3:11PM
when i got mine
3:11PM
suddenly i can make good dinner in 30 mins
3:11PM
set up rice, halfway thru its cooking throw some chicken in the air fryer, basically 0 maintenance food
3:11PM
and it's good
Avatar
i dont have air fryer
3:12PM
but well i dont want one
Avatar
they're great (edited)
Avatar
do air fryer not use oil
Avatar
they can
3:12PM
most stuff doesn't need it
Avatar
so its like cooking chicken on a pan with almost no oil?
Avatar
but some recipes advise u drizzle oil on there
Avatar
its what i do
3:12PM
non stick pans
Avatar
yea they are without oil in nature
Avatar
i see
3:13PM
is it healthier?
3:13PM
xd
Avatar
well it has less oil than most other methods so yea
3:13PM
it's just hot air
Avatar
i see maybe i get one
Avatar
it's sorta like microwave if it didn't make most food either too chewy or too hard in the worst ways possible
Avatar
what would ddnet battlepass even be like for an open source game
Avatar
air fryers are really nice
3:15PM
if u want good tasting unhealthy food 🀣
3:17PM
trolled
3:17PM
speaking of im gonna go throw something in
3:17PM
me hungry
Avatar
Avatar
Voxel
what would ddnet battlepass even be like for an open source game
sprays mabye idk. Would need to add them first though
Avatar
i threw in chicken nuggets
3:19PM
not great but it's what we have
3:19PM
i nuke some broccoli too
Avatar
i mean whats stopping ppl from making clients that bypass the payment system
Avatar
the server
3:21PM
they would undoubtedly need to be on the same page about who paid
Avatar
accounts justatest
Avatar
which to do with any integrity would require accounts yea
Avatar
implement fortnite dances for tees
3:22PM
ppl keep telling me that
3:22PM
id love to but why
Avatar
just a joke
Avatar
Avatar
Voxel
i mean whats stopping ppl from making clients that bypass the payment system
heinrich5991 10/23/2023 3:23PM
what's stopping people from teleporting in maps? the same thing
Avatar
i mean the thing is i thought u meant battlepass as in "custom skins or weapons n stuff"
Avatar
heinrich5991 10/23/2023 3:26PM
that's still the same thing: other people won't see your cool skins by default unless you pay up
Avatar
just implement a system for weapon skins as we have for player skins and sell those πŸ€‘πŸ€‘
Avatar
heinrich5991 10/23/2023 3:26PM
similar to other games
3:27PM
people can ofc show themselves other skins
3:27PM
but that doesn't seem to have the same effect on people
Avatar
Avatar
heinrich5991
that's still the same thing: other people won't see your cool skins by default unless you pay up
i dont think ppl care about if others see them. why do you think ppl play with skins not on any database
Avatar
Avatar
Voxel
i dont think ppl care about if others see them. why do you think ppl play with skins not on any database
heinrich5991 10/23/2023 3:28PM
I estimate that less than 10% of the people do that
3:31PM
ppl are gonna fork ddnet to bypass these payment systems
3:32PM
betterdiscord exists
Avatar
it wouldn't work on official servers tho
Avatar
i dont think ppl care
Avatar
no it would actually like not be possible
Avatar
i wouldnt
Avatar
yeah but the majority won't which is the point
Avatar
Jupstar βœͺ 10/23/2023 3:32PM
don't use or read this code. Contribute to Jupeyy/dd-pg development by creating an account on GitHub.
3:33PM
@Patiga do u want to compile it too?
3:33PM
or just look through the code
Avatar
don't use or read this code kek
Avatar
Jupstar βœͺ 10/23/2023 3:33PM
it's a mess
Avatar
just look through the code
3:33PM
thanks! :)
Avatar
Avatar
Voxel
betterdiscord exists
heinrich5991 10/23/2023 3:34PM
doesn't matter, you see people paying for discord nitro
Avatar
betas
Avatar
this project is huge o.o
Avatar
Jupstar βœͺ 10/23/2023 3:36PM
yes
3:36PM
it has grown quite a bit already
3:36PM
and still i am only at like 40% vanilla xd
Avatar
tf is this trying to be the image splitter thing
Avatar
Avatar
Voxel
tf is this trying to be the image splitter thing
Jupstar βœͺ 10/23/2023 3:37PM
don't use or read this code. Contribute to Jupeyy/dd-pg development by creating an account on GitHub.
Avatar
holy shit you're about to get sued
Avatar
Jupstar βœͺ 10/23/2023 3:37PM
here are the splitters xD
Avatar
"only 40%"
3:38PM
so you are basically reimplementing the entire ddnet codebase? or what is the project? ^^
Avatar
Jupstar βœͺ 10/23/2023 3:38PM
i'd say i reimplement teeworlds, but keep racing in mind
3:38PM
but i didn't really implement any ddnet physics related stuff yet
Avatar
rustworlds?
Avatar
Jupstar βœͺ 10/23/2023 3:39PM
xd
3:39PM
for voxel our rust fan
Avatar
mine is still better because i made it myself....
3:40PM
and also reorganized everything
Avatar
you are crazy @Jupstar βœͺ :D
f3 1
Avatar
Avatar
louis
rustworlds?
its gonna be a metaverse type thing where it shills rust everywhere like its the next blockchain update or smth
3:44PM
rust is a strong modern language with amazing features centered around safety and security πŸ€“
Avatar
Avatar
Voxel
its gonna be a metaverse type thing where it shills rust everywhere like its the next blockchain update or smth
Jupstar βœͺ 10/23/2023 3:46PM
if u want serious WASM support u have like c++ or rust as choices
Avatar
what do you think about an option in settings which allow to sync main tee color and dummy thonk
Avatar
Jupstar βœͺ 10/23/2023 3:46PM
so why waste time using c++ again
Avatar
Avatar
Jupstar βœͺ
@Teero found a solution?
I have no idea
Avatar
Avatar
MilkeeyCat
what do you think about an option in settings which allow to sync main tee color and dummy thonk
i think copy/paste color code button would be nice
Avatar
Avatar
Jupstar βœͺ
so why waste time using c++ again
because ddnet used c++ and how else was i supposed to make updates
Avatar
Avatar
Jupstar βœͺ
if u want serious WASM support u have like c++ or rust as choices
rustworlds.io???
Avatar
Avatar
Jupstar βœͺ
i think u could do it with a fast cross product(using z achsis for 90°) and using the dot product xd
Jupstar βœͺ 10/23/2023 3:48PM
@Teero try this
3:49PM
u take the cross product of green then u take the cross product of any vec, and the dot product with green the closer the dot product is to 1 the closer the vec with the cross products of the "any" vec and green vec u can see if it's left or right
3:50PM
if the dot product of these cross products is positive its left, else right
3:50PM
i think xdd
Avatar
convert to polar and sort by angle
Avatar
Avatar
louis
rustworlds.io???
Jupstar βœͺ 10/23/2023 3:50PM
xdd the next io game
3:51PM
i wanted to give him a solution without sin, cos etc.
Avatar
Avatar
Voxel
because ddnet used c++ and how else was i supposed to make updates
Jupstar βœͺ 10/23/2023 3:52PM
i dunno, i find rust not MUCH harder than cpp
Avatar
didnt know in ddnet there's fav skin feature xD
3:52PM
seems tricky
Avatar
Avatar
MilkeeyCat
didnt know in ddnet there's fav skin feature xD
Jupstar βœͺ 10/23/2023 3:53PM
but did u know u can skip the main menu 😬
3:54PM
i bet nobody here knows all features of ddnet
Avatar
Avatar
Jupstar βœͺ
but did u know u can skip the main menu 😬
i read about it before
Avatar
Avatar
Jupstar βœͺ
i dunno, i find rust not MUCH harder than cpp
i guess but thats because i i only know how to copypaste other code from ddnet to make things (edited)
Avatar
Avatar
Voxel
i guess but thats because i i only know how to copypaste other code from ddnet to make things (edited)
Jupstar βœͺ 10/23/2023 3:54PM
xddd
Avatar
Avatar
Voxel
i guess but thats because i i only know how to copypaste other code from ddnet to make things (edited)
"ddnet in a nutshell", as zogtib would say xD
Avatar
Jupstar βœͺ 10/23/2023 3:58PM
that's why i introduced a clear hierarchy
Avatar
ddnet's the Most Fun to program idk why
Avatar
Jupstar βœͺ 10/23/2023 3:58PM
to prevent this from happening again in such a mess style
Avatar
ddnet is not fun to write code for πŸ’€
Avatar
i tried finding other open source games but none are rly good looking
Avatar
Jupstar βœͺ 10/23/2023 3:59PM
0ad
Avatar
Avatar
Jupstar βœͺ
i think xdd
Can't think rn Gonna screenshot that and think about it tmrw. thx
Avatar
@Jupstar βœͺ did u feel job dev burnout yet
Avatar
Avatar
Teero
Can't think rn Gonna screenshot that and think about it tmrw. thx
Jupstar βœͺ 10/23/2023 4:04PM
it's ez to understand if u visualize what i'm doin xd
Avatar
Avatar
Ryozuki
@Jupstar βœͺ did u feel job dev burnout yet
Jupstar βœͺ 10/23/2023 4:04PM
want my honest or my humble answer?
Avatar
Avatar
Jupstar βœͺ
it's ez to understand if u visualize what i'm doin xd
brain is split in half
Avatar
yeah
4:05PM
i feel like today has been rly stressful for me xD
Avatar
Avatar
Ryozuki
yeah
Jupstar βœͺ 10/23/2023 4:05PM
such a programmer answer to my question xD
4:05PM
I SEE "OR"
Avatar
Avatar
Voxel
i tried finding other open source games but none are rly good looking
have you seen mindustry? its neat :)
Avatar
Avatar
Ryozuki
i feel like today has been rly stressful for me xD
Jupstar βœͺ 10/23/2023 4:07PM
question is, was it stressful but u still did a lot? or was it stressful and u still didnt achieve anything
Avatar
Avatar
Patiga
have you seen mindustry? its neat :)
i tried playing that but dropped out of it
Avatar
heinrich5991 10/23/2023 4:07PM
ozu laser is also supposedly good ^^
f3 1
Avatar
Avatar
Patiga
have you seen mindustry? its neat :)
don't lure him away from tw pepeW
Avatar
in Veloren you probably have the most freedom, since could influence the direction where the game is going
Avatar
Avatar
Teero
don't lure him away from tw pepeW
Jupstar βœͺ 10/23/2023 4:08PM
mindustry only makes fun for 1 day anyway xD
βœ… 2
f4 1
Avatar
Avatar
Teero
don't lure him away from tw pepeW
I like to encourage coding :D
Avatar
veloren is cool but barebones for sure
Avatar
Avatar
heinrich5991
ozu laser is also supposedly good ^^
you meant osu right? or
Avatar
unfortunately i couldnt really make my character a cute girl so i didnt play for too long
Avatar
true, but visually its nice. zooming out is amazing
Avatar
Avatar
Jupstar βœͺ
question is, was it stressful but u still did a lot? or was it stressful and u still didnt achieve anything
i did a lot i think but the stress lingers
4:10PM
the problem with me is i think im someone who gets too involved in stuff
Avatar
Avatar
Ryozuki
i did a lot i think but the stress lingers
Jupstar βœͺ 10/23/2023 4:10PM
could simply be a bad day or week if u start doing less, then u in the burn out
Avatar
so im also then the one on the receiving end if something is not that ok
4:10PM
because i talk a lot
4:10PM
xd
Avatar
Avatar
louis
veloren is cool but barebones for sure
veloren was the case study for what i meant by "none looked fun"
Avatar
Avatar
Ryozuki
because i talk a lot
there is an easy fix for that
Avatar
ryozuki tried to reccomend but it looked boring and grindy
Avatar
i just mentioned it
4:11PM
it looks boring indeed
Avatar
Jupstar βœͺ 10/23/2023 4:11PM
i played it for 1 day xd
Avatar
its hard to make nice gameplay loops
πŸ‘ 1
Avatar
Jupstar βœͺ 10/23/2023 4:11PM
but it is boring after a while
Avatar
u need game designers for that not engineers
Avatar
Jupstar βœͺ 10/23/2023 4:11PM
but beautiful xd
Avatar
dw it's boring. I liked to find exploits in it though
Avatar
Jupstar βœͺ 10/23/2023 4:11PM
the zooming is epic xd
f3 2
4:11PM
i did it like every 5 minutes
4:11PM
just to do it (edited)
Avatar
it really is addicting
Avatar
Avatar
Voxel
you meant osu right? or
heinrich5991 10/23/2023 4:13PM
apparently osu lazer
4:13PM
didn't remember where the z goes ^^
Avatar
i dont rly like osu justatest
Avatar
fun times xD
Avatar
Jupstar βœͺ 10/23/2023 4:14PM
ghosy the minecraft king also pro in other survival games
πŸ‡Ί 1
4:14PM
xdd
Avatar
Avatar
heinrich5991
ozu laser is also supposedly good ^^
iirc server is not open source
4:15PM
@Jupstar βœͺ u didnt answer
4:15PM
a yes to an OR question means yes to both
Avatar
Avatar
Mr.Gh0s7
fun times xD
me when cyberfighter forces me to grind in xpanic
Avatar
Avatar
Ryozuki
a yes to an OR question means yes to both
Jupstar βœͺ 10/23/2023 4:17PM
no xD
4:17PM
it means at least one condition is true
4:17PM
tell me honest then
Avatar
Jupstar βœͺ 10/23/2023 4:18PM
i never really took my job serious enough to call it burnout, but i guess u could say that is already some kind of burnout xD i find my job rather boring
Avatar
Avatar
Jupstar βœͺ
i never really took my job serious enough to call it burnout, but i guess u could say that is already some kind of burnout xD i find my job rather boring
i guess my problem is i think of it now as i depend on it
4:19PM
before i lived alone iwas like ye idc
Avatar
Jupstar βœͺ 10/23/2023 4:19PM
oh yeah
Avatar
but now i have the little fear of losing my job and since i live alone it can be a problem
Avatar
Jupstar βœͺ 10/23/2023 4:19PM
i can certainly believe that is one problem
4:20PM
i currently luckely have no money problem
Avatar
its mainly what stresses me out when smth troublesome happens
Avatar
Jupstar βœͺ 10/23/2023 4:20PM
so i feel rather safe
Avatar
i mean i also have savings
4:20PM
and i get daily offers on linkedin
4:20PM
i think im safe
4:20PM
but u never know xd
Avatar
Jupstar βœͺ 10/23/2023 4:20PM
anyway
4:20PM
i can ensure u it's normal
4:21PM
i had serious burnouts in the past. then u really can't work on anything anymore
Avatar
Avatar
Jupstar βœͺ
so i feel rather safe
safe? rust refere
Avatar
Avatar
Jupstar βœͺ
i had serious burnouts in the past. then u really can't work on anything anymore
ic
Avatar
Avatar
Voxel
safe? rust refere
Jupstar βœͺ 10/23/2023 4:23PM
yeah thanks rust, our lord and savior
Avatar
read my bio
4:24PM
"Now i am become Rust, Destroyer of Unsafe code"
Avatar
Jupstar βœͺ 10/23/2023 4:24PM
amazing
Avatar
yea yea
4:24PM
im immovable
Avatar
Jupstar βœͺ 10/23/2023 4:25PM
@Voxel good, nice we get closer
4:25PM
now the opposite
Avatar
Avatar
Ryozuki
iirc server is not open source
heinrich5991 10/23/2023 4:25PM
apparently there's a third-party server impl: https://github.com/osuAkatsuki/bancho.py
A community-driven osu! server in modern python. Contribute to osuAkatsuki/bancho.py development by creating an account on GitHub.
Avatar
Jupstar βœͺ 10/23/2023 4:25PM
u can move
Avatar
heinrich5991 10/23/2023 4:25PM
(TIL)
Avatar
Avatar
Voxel
im immovable
like rust variables, immutable by default
Avatar
Jupstar βœͺ 10/23/2023 4:25PM
xd
4:26PM
voxel is pinned
Avatar
mutable by default is a mistake
4:26PM
like null pointers
Avatar
Jupstar βœͺ 10/23/2023 4:26PM
yeah
4:26PM
generally if it exists, it should exist
Avatar
null pointers are only good for niche optimization, that u dont need to care about
Avatar
Jupstar βœͺ 10/23/2023 4:26PM
less Option = less code to check for
Avatar
btw if u know a value wont ever be 0
4:27PM
and u have a option
4:27PM
use Option<NonZerou64>
4:27PM
then it will occupy same space as a u64
Avatar
Jupstar βœͺ 10/23/2023 4:27PM
ez
Avatar
use std::mem::size_of; assert_eq!(size_of::<Option<core::num::NonZeroU64>>(), size_of::<u64>());
Avatar
Jupstar βœͺ 10/23/2023 4:27PM
ez optimizations
4:28PM
maybe i can actually use it in one place
Avatar
heinrich5991 10/23/2023 4:28PM
that abstraction is unfortunately a bit annoying to work with
4:28PM
and it only works for 0
Avatar
@heinrich5991 check this hack
4:30PM
GitHub CI Status nonmax on crates.io nonmax docs
4:30PM
it works
4:30PM
/// Creates a new non-max if the given value is not the maximum /// value. #[inline] pub const fn new(value: $primitive) -> Option<Self> { match core::num::$non_zero::new(value ^ $primitive::MAX) { None => None, Some(value) => Some(Self(value)), } }
4:30PM
xd
4:31PM
they do the complement
Avatar
Avatar
Jupstar βœͺ
voxel is pinned
to what
Avatar
heinrich5991 10/23/2023 4:31PM
that comes with a perf penalty, unfortunately
4:31PM
rust might eventually support that without the perf penalty, I think
4:32PM
it's currently implemented in nightly, I think
Avatar
Avatar
heinrich5991
that comes with a perf penalty, unfortunately
yeah but i think its rly small
Avatar
Avatar
heinrich5991
rust might eventually support that without the perf penalty, I think
i think the argument was that its rly rare to use this
4:32PM
to support it
4:35PM
Exclusive provides only mutable access, also referred to as exclusive access to the underlying value. It provides no immutable, or shared access to the underlying value.
4:35PM
lol
4:35PM
async related
Avatar
Avatar
Voxel
to what
Jupstar βœͺ 10/23/2023 4:35PM
so u cannot be moved
4:36PM
immoveable
Avatar
yea thats what i said
Avatar
heinrich5991 10/23/2023 4:36PM
hmm, interesting
Avatar
Avatar
Voxel
im immovable
Jupstar βœͺ 10/23/2023 4:36PM
just what u wanted xd
Avatar
voxel is a Pin<Box<dyn Error>>
Avatar
and how does this benefit you
Avatar
Jupstar βœͺ 10/23/2023 4:36PM
Types that pin data to its location in memory.
Avatar
Avatar
Ryozuki
voxel is a Pin<Box<dyn Error>>
ew what the fuck?
4:36PM
rust dyns in fng?
4:36PM
f3
Avatar
Jupstar βœͺ 10/23/2023 4:36PM
😬
Avatar
Feature gate: #![feature(exclusive_wrapper)] This is a tracking issue for the Exclusive wrapper struct. This structure can be used to upgrade non-Sync objects into Sync ones, by only offering mutab...
4:38PM
i wish u could remove only the embed image
4:38PM
but keep text
Avatar
you mean the pfp?
Avatar
heinrich5991 10/23/2023 4:38PM
rustc_layout_scalar_valid_range_{start,end}
4:38PM
just the summary text
Avatar
Avatar
heinrich5991
rustc_layout_scalar_valid_range_{start,end}
heinrich5991 10/23/2023 4:39PM
that's what's used to implement the niches @Ryozuki
Avatar
heinrich5991 10/23/2023 4:39PM
interesting, Option<File> is also 4 byte
Avatar
rust feels like one of those things where you HAD to have been programming since 2017 with it (before it blew up) to make anything in it
Avatar
Jupstar βœͺ 10/23/2023 4:40PM
i'd say the opposite
4:40PM
it's slowly getting usable
4:40PM
for a wider range of ppl
Avatar
Avatar
heinrich5991
that's what's used to implement the niches @Ryozuki
ah it can only be used in compiler code yet
4:42PM
#![allow(internal_features)] #![feature(rustc_attrs)]
4:42PM
requires this
Avatar
heinrich5991 10/23/2023 4:42PM
File uses -1 as the niche on linux πŸ™‚
Avatar
oh yea i found the linux github page yesterday
4:45PM
some of the prs are so golden
Avatar
heinrich5991 10/23/2023 4:46PM
linux isn't developed on github AFAIK
4:46PM
so it'd just be a mirror
Avatar
yes but everything is mirrored yes
Avatar
heinrich5991 10/23/2023 4:46PM
i.e. the PRs aren't getting looked at
Avatar
aafee68 stop/pause sound previews - dobrykafe 697bd89 stop sound preview in more places - dobrykafe c304b3e extract CEditor::OnDialogClose - dobrykafe 35e5c11 stop sound preview in more places - dobrykafe fec7e89 Merge pull request #7356 from dobrykafe/pr-editor-stop-sound-preview - Robyt3
Avatar
Hi looking to build DDNet client on windows, any guide available other than the really limited one on the GitHub ?
Avatar
heinrich5991 10/23/2023 5:25PM
there's also one in the forums
5:25PM
I think it might be outdated though
5:25PM
if you have problems, post them
Avatar
Linux does not use pull requests at all
5:40PM
They use a mailing list and patches
Avatar
bro u gotta mail your update?? πŸ’€
Avatar
Old ppl
5:42PM
i can only imagine you storing your changed code in an usb stick and physically mailing it to linus
Avatar
oh yea
5:43PM
forgot emails were a factor
Avatar
idk physical mail sounded more fitting for such a niche
Avatar
it’s tha way
Avatar
how to build a portal in ddnet?
Avatar
portal?
5:47PM
there are teleports already
Avatar
Portal like in Minecraft?
Avatar
Avatar
Ewan
there are teleports already
I can't find
Avatar
you should redirect mapping questions to #mapping
Avatar
Im not sure if this is the right channel but I have a quick question to someone who knows cryptography. Is AES-GCM still a save solution to encrypt passwords? Or is there a newer and better mode/algorithm?
Avatar
Jupstar βœͺ 10/23/2023 6:24PM
encrypt passwords for?
6:24PM
a database? a packet?
Avatar
a database
Avatar
Jupstar βœͺ 10/23/2023 6:25PM
then it was never a secure solution
6:25PM
xD
6:26PM
not??
Avatar
Jupstar βœͺ 10/23/2023 6:26PM
what you want is a hash function i guess
6:26PM
with a salt
Avatar
nono it has to be recoverable
Avatar
Jupstar βœͺ 10/23/2023 6:26PM
no
Avatar
Previously you were able to write up to 512 characters in the chat box, but when you would send it, it would be truncated to 256.

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 af...
Avatar
Jupstar βœͺ 10/23/2023 6:27PM
nobanhammer
6:27PM
I want to see them later.
Avatar
nope
6:27PM
ur asking for bad practises
Avatar
no
Avatar
we dont do that here
Avatar
Oh for your own passwords?
Avatar
altho we do c++
Avatar
Like as in a password manager?
Avatar
Avatar
Ryozuki
altho we do c++
And rust?
Avatar
good
Avatar
I need to store them so I can see tham later.
6:28PM
y es
Avatar
surely for his own
6:28PM
Sure
Avatar
Jupstar βœͺ 10/23/2023 6:28PM
yeah yeah, i also store your paypal password with symmetric encryptions
Avatar
Avatar
Trexic
Im not sure if this is the right channel but I have a quick question to someone who knows cryptography. Is AES-GCM still a save solution to encrypt passwords? Or is there a newer and better mode/algorithm?
heinrich5991 10/23/2023 6:30PM
if you're just trying to keep passwords out of people's view, you might just base64-encode them
Avatar
noooooooo
Avatar
Jupstar βœͺ 10/23/2023 6:30PM
no
Avatar
heinrich5991 10/23/2023 6:30PM
otherwise the next question will be why the key for the encryption is safer than your password
Avatar
For a password manager kind of application aes gcm is fine
Avatar
heinrich5991 10/23/2023 6:30PM
i.e. what are you trying to do?
Avatar
yes Im trying to do similar stuff like a password manager
Avatar
I would also put a slow kdf in the middle, like argon2
Avatar
Avatar
Trexic
yes Im trying to do similar stuff like a password manager
Jupstar βœͺ 10/23/2023 6:32PM
yeah sure 😏
Avatar
I think argon2id is what’s popular nowadays
Avatar
heinrich5991 10/23/2023 6:32PM
("where are you getting your encryption key from?")
Avatar
Avatar
Jupstar βœͺ
yeah sure 😏
?
Avatar
Avatar
Trexic
?
Jupstar βœͺ 10/23/2023 6:32PM
😏
Avatar
Avatar
heinrich5991
("where are you getting your encryption key from?")
Jupstar βœͺ 10/23/2023 6:32PM
answer this
6:33PM
this is important
Avatar
Avatar
Learath2
I think argon2id is what’s popular nowadays
yes i use that
Avatar
heinrich5991 10/23/2023 6:33PM
In cryptography, a key derivation function (KDF) is a cryptographic algorithm that derives one or more secret keys from a secret value such as a master key, a password, or a passphrase using a pseudorandom function (which typically uses a cryptographic hash function or block cipher). KDFs can be used to stretch keys into longer keys or to obtain...
Avatar
so I should use that to generate the encryption key of the master key?
Avatar
heinrich5991 10/23/2023 6:35PM
what do you want to use for encryption? is it a password? is it randomly generated data?
6:35PM
if you want to use a password as a key, then yes, such a key derivation function is the way to go
6:35PM
thats what i want
Avatar
heinrich5991 10/23/2023 6:36PM
if you use randomly generated data, then no, don't use the key derivation function (edited)
Avatar
Avatar
heinrich5991
if you use randomly generated data, then no, don't use the key derivation function (edited)
cuz?
6:36PM
Just interested
Avatar
No more secure
Avatar
heinrich5991 10/23/2023 6:36PM
takes a second to derive
6:36PM
useless time spent
6:36PM
doesn't improve security
Avatar
yeah sure cuz its already secure random
6:37PM
ok ok
6:37PM
ty
Avatar
We use KDFs to stretch our short passwords into the required size in a slow way
πŸ‘ 1
6:37PM
You can already generate however many bits needed randomly, so no need to stretch
Avatar
heinrich5991 10/23/2023 6:38PM
(and if you have 128 bits, you can stretch that to as many bits as you want, without a kdf)
Avatar
thanks that helped a lot
Avatar
Jupstar βœͺ 10/23/2023 6:39PM
@Trexic what are u coding
Avatar
Avatar
Jupstar βœͺ
@Trexic what are u coding
DDNet bot, but with AES-GCM
Frog040 3
Avatar
Jupstar βœͺ 10/23/2023 6:41PM
@Trexic r u on windows?
Avatar
Jupstar βœͺ 10/23/2023 6:41PM
did u ever have problems compiling ddnet?
Avatar
Jupstar βœͺ 10/23/2023 6:41PM
mhh
6:41PM
weird
6:41PM
xd
Avatar
hahahaha
Avatar
i recently compiled it?
Avatar
@Jupstar βœͺ u troll xddd
Avatar
Jupstar βœͺ 10/23/2023 6:42PM
@Trexic so wanna leak what u doin
Avatar
It worked for me after a few tries
Avatar
Jupstar βœͺ 10/23/2023 6:42PM
or prefer to keep secret
Avatar
hmm??
6:42PM
is anything wrong that it worked? xD shouldnt it?
Avatar
Jupstar βœͺ 10/23/2023 6:42PM
no
6:42PM
i mean, do you want to share what u coding
6:42PM
i mean u ask in ddnet dev chat
6:43PM
so i assume it's ddnet related?
Avatar
yes ik that im writing to ddnet channel. Thats also why I asked if this is the right channel for that question. No its not for ddnet. It was a general coding question for some projects
Avatar
Jupstar βœͺ 10/23/2023 6:44PM
i c
6:44PM
i mean that's not forbidden, was just curious
Avatar
the forbidden questions....
Avatar
heinrich5991 10/23/2023 6:45PM
it's okay to ask non-ddnet-related programming questions in this channel
Avatar
Jupstar βœͺ 10/23/2023 6:45PM
tho other discords might be more appropriate for some questions
6:46PM
hard to find some guys which answe that fast
6:46PM
also most of them had no idea of crypto
Avatar
Jupstar βœͺ 10/23/2023 6:52PM
yeah ddnet is elite chat anyway 😬
6:52PM
half of rust community is here
6:52PM
then a guy that knows the c spec by heart
Avatar
make that two
Avatar
Jupstar βœͺ 10/23/2023 6:52PM
O.O
6:52PM
u too?
Avatar
not me
6:52PM
zogtib
Avatar
Jupstar βœͺ 10/23/2023 6:53PM
ah
Avatar
I am just the middleman xD
Avatar
Jupstar βœͺ 10/23/2023 6:55PM
u the machine learning guy
Avatar
Jupstar βœͺ 10/23/2023 6:55PM
together with gerdoe
Avatar
and Tater
Avatar
Jupstar βœͺ 10/23/2023 6:55PM
Tater is already shader guy xd
Avatar
Tater is machine learning guy?
Avatar
Jupstar βœͺ 10/23/2023 6:56PM
teero is TAS guy
6:56PM
xd
6:56PM
New automatic TAS generator coming soonℒ️
Avatar
i gotta make more ddnet shader concepts when i get home
Avatar
hyper realistic teeworlds poggers2
7:07PM
The tees will have simulated hair (edited)
7:07PM
haha imagine some ropes sticking out of a tee on top acting like hair xdd
Avatar
no need to optimize ddnet when u can implement DLSS 3 & FSR (edited)
pepeW 1
7:08PM
giga_chad
Avatar
Avatar
Teero
haha imagine some ropes sticking out of a tee on top acting like hair xdd
interactive skins would be awesome
7:09PM
but hard to impliment
Avatar
softbody tees xd
7:11PM
You could use some library but that would probably be bloat
Avatar
im gonna make a ddnet client that has an overengineered skins system
7:14PM
features include: more faces, flipped bodies, layered skins, maybe a tail, maybe a hat, maybe an animated segment
Avatar
Jupstar βœͺ 10/23/2023 7:14PM
great
7:15PM
just gotta learn rust
kek 1
Avatar
Avatar
Jupstar βœͺ
just gotta learn rust
ddnet uses python and c++
7:20PM
no need to learn rust for smth like that
Avatar
Avatar
Voxel
no need to learn rust for smth like that
It is very essential
Avatar
Jupstar βœͺ 10/23/2023 7:21PM
but then u bloat the client instead of using the awesome WASM API
Avatar
Avatar
Voxel
ddnet uses python and c++
Jupstar βœͺ 10/23/2023 7:21PM
also pls remove python xd
7:21PM
that's an insult to ddnet
Avatar
Replace with bash πŸ’€
Avatar
Avatar
Jupstar βœͺ
also pls remove python xd
ok then replace all python files
Avatar
Jupstar βœͺ 10/23/2023 7:27PM
yes pls
Avatar
when u do that, only then will i start to learn it
Avatar
Jupstar βœͺ 10/23/2023 7:28PM
😬
7:28PM
heinrich is huge pyson fan sadly
7:28PM
and deen likes it too
Avatar
that sucks
7:39PM
speaking if which
7:39PM
what does rust in the ddnet code even do rn
7:40PM
sorry goldfish memory
Avatar
Avatar
Voxel
ddnet uses python and c++
ddnet uses rust too
Avatar
Avatar
Voxel
what does rust in the ddnet code even do rn
Jupstar βœͺ 10/23/2023 7:40PM
well nothing xD
7:40PM
the master srv is in rust
Avatar
Avatar
Jupstar βœͺ
well nothing xD
LOL
7:42PM
ok well the master srv ok
7:42PM
i dont touch the master srv so
Avatar
Jupstar βœͺ 10/23/2023 7:43PM
4sec extra compile times is the current feature of the rust code
7:43PM
😬
7:44PM
and the rust code can detect bot creators
7:44PM
😬 😬
Avatar
Avatar
Jupstar βœͺ
and the rust code can detect bot creators
😬😬😬😬😬
7:51PM
like im interested but i dont wanna become a cult member
Avatar
you are member of anti-rust cult tho
8:14PM
hm
8:14PM
actually you are anti-ryo cult member
Avatar
sounds about right
8:20PM
like id LEARN rust if it meant i got something out of it
Avatar
you first need to know what you wanna do
8:21PM
then you will code it
Avatar
i did want to make an adobe animate mirror that offered better QoL features and overall a better experience (edited)
8:24PM
since .fla files are just zip files under the hood
Avatar
so here you go
8:27PM
take rust, learn .fla format and so on xd
8:28PM
looks hard tho
8:28PM
for me atleast, have never used adobe animate
Avatar
i mean most of the fla is in json format
Avatar
here you go then xd
Avatar
Jupstar βœͺ 10/23/2023 8:31PM
fla
8:32PM
@Voxel i kinda want to see all ur ideas xd
Avatar
yea afobe animate used to be adobe flash
Avatar
Avatar
Jupstar βœͺ
@Voxel i kinda want to see all ur ideas xd
i am at work i will dump all of my ideas later
Avatar
Avatar
Voxel
yea afobe animate used to be adobe flash
Jupstar βœͺ 10/23/2023 8:32PM
but probably frame dependent?
Avatar
i have too many
Avatar
Avatar
Voxel
i have too many
Jupstar βœͺ 10/23/2023 8:32PM
me2
8:32PM
never ending story
Avatar
Avatar
Jupstar βœͺ
but probably frame dependent?
i think flash was always frame dependant
Avatar
Avatar
Voxel
i think flash was always frame dependant
Jupstar βœͺ 10/23/2023 8:32PM
mhh that ofc always sucks xd
Avatar
true especially if you're trying to sync to a song
Avatar
Jupstar βœͺ 10/23/2023 8:33PM
teeworlds dance challenge
8:33PM
omg
8:33PM
nice
Avatar
like i know HOW TO do teeworlds animation now
8:33PM
but the system is so jank
8:33PM
................... i still need to program a psudeo accurate teeworlds pose editor (edited)
Avatar
Jupstar βœͺ 10/23/2023 8:34PM
yeah rip xd
Avatar
Avatar
Jupstar βœͺ
and the rust code can detect bot creators
so can C++ 😬
Avatar
teero replace the rust code with the cpp code then
8:43PM
troll
Avatar
Avatar
Voxel
teero replace the rust code with the cpp code then
still waiting for carbon
Avatar
Previously you were able to set cl_hook_coll_size to 100, if you changed it via settings. But the max value for the setting itself is 20.

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 physi...
Avatar
Avatar
Teero
still waiting for carbon
carbon sucks
Avatar
816fd75 Change chat input size to 256 - furo321 565f9d1 Merge pull request #7363 from furo321/correct-chat-limit - Robyt3
Avatar
Use m_aCurrentDemoSelectionName and m_DemolistStorageType for the demo render popup instead of using m_DemolistSelectedIndex, which can be invalid when the demo render popup is not opened from the demo browser. Closes #7347.

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
  • ...
Avatar
9b3f34a Use correct max value for "Hook collision width" setting - furo321 61ff171 Merge pull request #7364 from furo321/hookcollsize - Robyt3
Avatar
@Jupstar βœͺ how long until u go off
10:03PM
wait
10:03PM
feelsbadman
Avatar
f32e8eb Fix demo slice confirmation popup not being shown anymore - Robyt3 7c06553 Fix crash when directly rendering demo after slicing - Robyt3 31031f5 Merge pull request #7365 from Robyt3/Menus-Demo-Fixes - def-
Avatar
Avatar
gerdoe
carbon sucks
Zig >>>
πŸ‘‹ 1
Avatar
i wanna try zig (edited)
10:30PM
but it still complex
Avatar
Avatar
gerdoe
carbon sucks
Carbon is in an rxperimental state
10:51PM
People went crazy only because there's alot of nerds monitoring google's git repo
10:51PM
So when smth new comes they just are like "wow that's a revolution"
Avatar
thats every dev to every language (edited)
11:19PM
also god the s// is by far the best editing thing for mobile
11:19PM
holding a message is so jank
Avatar
Avatar
Voxel
thats every dev to every language (edited)
i don’t think i have ever said anything like this about a language
Exported 1,223 message(s)
Timezone: UTC+0