Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2020-09-29 00:00:00Z and 2020-09-30 00:00:00Z
Avatar
The meta journey continues. Proposed business rules about variable naming: Classes, structs --- 1. Name starts with C or I. 2. Second letter must exist and be a capital letter. Enum constants --- Must be all uppercase letters, digits and underscores Parameter/variable/member names --- 1. static const, member or not member may follow the Enum constant naming scheme. 2. Single letter lower-case variable and member variables are allowed. This is used for loop indices,...
Avatar
With those ^ & soon assets changer, maybe config_directory.bat could be renamed to assets_directory.bat / assets_and_config_directory.bat or possibly there could be two with such names, pointing to exactly same place - just to reduce the confusion
Avatar
thats true
04:10
would make sense
👍 1
05:46
0e71a47 Add customization - Jupeyy b88b33c Merge pull request #2928 from Jupeyy/pr_multiple_pngs - def-
Avatar
Feels like downloadable game tiles are on the way too 😄
05:50
I would love to add some custom assets in the future as I use katana pickup as a taxi sign and it confuses players, have to explain every time what it is.
05:51
18ad5b5 Fix empty lines in chat (fixes #1835) - def- 16f965a Merge pull request #2940 from def-/pr-empty-lines - def-
Avatar
e4023cb Dynamic Camera button: Use g_Config.m_ClDyncam as pID - def- 113ec25 Merge #2947 - bors[bot]
Avatar
@Learath2 👀
Avatar
@Learath2 here starts the meta war
07:35
monkalaugh
Avatar
Nah variable naming I think we all mostly would agree on
07:36
i meant PascalCase
07:36
tbh
07:36
i didnt remember the name
Avatar
Let's add a default editor to the ddnet project. Now that would be a war
Avatar
vim obviously
Avatar
all lower case, pointers end with _ every english word is seperated by _ (edited)
07:36
ah
Avatar
pointers end with every english word? 😄
Avatar
my vim supports :Format and uses clang format
07:37
i forgot
07:37
dont even need the script
Avatar
i just hate discord xd
Avatar
english words seperated by _ is snake case
07:37
snake_case 😄
Avatar
thats how i started learning cpp xd
Avatar
then there is the kebab-case, which is very extremenouis
Avatar
but honestly i hate it
Avatar
a point that points to for example the middle of an array wouldnt be prefixed with a a right? i guess it is just a pointer
Avatar
Nah, that's just a pointer
Avatar
decayed pointer
07:38
or smth like that
Avatar
Eh, it's actually not possible to know the difference between two pointers one of which pointing to an int and another pointing to an array of ints
Avatar
i wonder who made backend_sdl.cpp and decided to ignore all the naming rules
07:39
monkalaugh
Avatar
Not at compile time anyway
Avatar
i wonder who named it backend_sdl if 99% of the code there is opengl xd
Avatar
I wonder what other backends they were planning 😄
Avatar
directx 6
07:41
directdraw
Avatar
ohgod
07:42
Honestly, the way the gfx code is laid out never really made much sense to me
Avatar
tbh the whole codebase makes no sense to me
07:42
but u live with it
Avatar
The whole base has some pattern it follows atleast
07:43
Graphics is like 5 different classes
Avatar
is graphics trully threaded?
Avatar
Btw this thing we do of swapping on the worker threads is a completely unsupported setup
Avatar
igraphics, ienginegraphics, cgraphics, cgraphics_threade, cpgrahics_threaded_lockfree, cgraphics_threaded_lockfree_vulkan
Avatar
SDL says it's undefined behaviour to swap on any thread except the main thread
Avatar
sometimes having isomething and then csomething becomes tiresome specially to add things
07:45
xd
07:45
but i guess its useful somewhere..
Avatar
@Learath2 interesting, normally its undefined, if it doesnt hold the opengl context
Avatar
@Learath2 wasnt it ok to swap where the opengl context is?
Avatar
@Ryozuki it's nice to have a defined API between two components. I kinda like interfaces honestly
Avatar
but usually those interfaces are only implemented by 1 class
Avatar
in our small projects yes
Avatar
yeah im not talking about firefox here
07:47
monkalaugh
Avatar
OpenGL is fine with it, SDL introduces some OS specific complexities that arent safe on other threads though. Like NSWindow:update on macOS
07:49
@Ryozuki yeah only one class implements them but it gives a nice clean interface. I guess that could also be achieved by formatting the class in such a way that it's declaration can be used as documentation
07:50
This way we have a kernel which I also like actually. idk I have a soft spot for singleton patterns, mostly because pompous ivy league "engineers" don't like it
Avatar
learath is based
07:51
Avatar
Help me with my crusade against the academics or as I like to call them the backseat engineers
Avatar
oh i also hate some academics
07:52
some teacher refused to use return inside forloops
07:52
and stuff like that
07:52
i wonder if that guy actually programmed
Avatar
@Ryozuki makes control flow much easier
Avatar
if you only have one place to return, easier to reason with
Avatar
He refused because technically it breaks the rules of structured programming. ^^
07:53
Though even knuth himself said a single exit point is not too important. When the guy who made the paradigm says it's pointless, I think it's time to quit your fanboyism
Avatar
Ah I misremembered, it was Djikstra who came up with structured programming
07:56
That man was the prime example of a toxic academic
07:58
Knuth is really the only academic that seems to understand the actual complexities of the field
07:59
Funnily enough, one of the first people who seems to think the early exit is not an issue seem to be the C++ people. (RAII helps a lot with the issues that early exits can cause)
Avatar
@deen "Then the info text would also fit in 5:4 again" what info text isnt fitting?, i cant find anything
Avatar
our code is not academic justatest
Avatar
ah its probs only with video recorder
08:01
nvm
Avatar
@Ryozuki we shouldn't stop until we can prove that ddnet runs, we should move to haskell so we can actually do that
Avatar
i rly want to learn haskell
08:02
but i remember having problems with the rls i think
08:02
i rly need a lsp (edited)
08:03
idk whats happening to me
08:03
rls -> lsp
Avatar
@Deleted User yes, with video recorder
Avatar
I wonder why the RLS doesn't implement the LSP
Avatar
u mean rust one?
08:04
RLS is going to be abandoned probs
08:04
rust-analyzer is taking over
08:04
and its better
08:04
u should use it
Avatar
I don't do much rust to care anyway
08:04
monkalaugh
Avatar
I wish I had more to use haskell on, it's actually not too bad to code on and I'd love a reason to learn more
Avatar
isnt hedgewars made with haskell
08:05
so u can prove hedgewars
08:05
runs
08:06
i wonder where the hedgewars guy that was in the irc channel is
Avatar
The only good candidate for a ddnet/teeworlds rewrite seems to be rust nowadays
Avatar
Sadly, I wish we had a little more choice
Avatar
well competing against c++ is hard
Avatar
D always looked quite promising to me, but I don't like it's runtime much
Avatar
and i guess modern ppl prefer languages to be higher lvl
Avatar
Why do people want their languages to be glorified english? pepehands
Avatar
@Learath2 elixir or haskell
08:09
is there a difference
Avatar
The difference is that I never used elixir 😛
08:11
i think elixir is based on erlang
08:11
the "super escalable language"
08:11
or so i read
08:11
Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability.
08:11
xd
Avatar
I wonder how they managed to make a "massively scalable soft real-time" VM
Avatar
@Ryozuki only the hedgewars server
Avatar
Which is usually neither scalable nor good for real-time applications without a JIT
Avatar
fine or too ugly
Avatar
what changed?
Avatar
2 rows
08:14
the buttons
Avatar
Skip the 2 rows I htink
08:14
Swap*
Avatar
ok
Avatar
the Date
08:14
being rounded
08:14
inside that darker thing
08:14
looks bad imo
08:15
it also triggers me that the dark thing with the stats is a bit smaller
08:15
justatest
Avatar
@Deleted User so you're that "nameless tee" guy I keep seeing on DDNet 😄
Avatar
white text on white button is worst xd
08:15
i dunno @deen, only if he has purple skin 😄
Avatar
nono, in my mind all nameless tees I ever met are just you
Avatar
xD
08:16
my 100 dev clients always open
08:18
i wish file:// could just highlight the file in the directory https://github.com/def-/ddnet/commit/715519f34099a82640faf748531ebedf0916e596 i tried it, but it wants to open the demo file 😄
Avatar
to easily get the file instead of having to search for it in the file browser again. Complements #2946
Avatar
@Deleted User I bet there is an OS specific way to do this that we can wrap in a system.h function
Avatar
yeah probably
Avatar
probably not on Linux
Avatar
Ah yep, not on linux
Avatar
well true, tho there are probs libs for that too
Avatar
Maybe the X desktop specification gives a way to do it
Avatar
but can just use the current approach for linux as fallback
09:38
4566258 Add directory buttons - Jupeyy 7432f56 Merge #2946 - bors[bot]
Avatar
It won't select the first layer of a group with shift click if you had a layer of the group selected before.
Avatar
If a group is already selected, shift clicking the group didn't select the first layer. Reported by mind on discord
Avatar
@mind ^^ done while waiting for lunch
❤️ 1
11:50
88c0542 Fix multiple layer selection for groups - Learath2 b8760cd Merge pull request #2949 from Learath2/dd_pr_edsel - def-
Avatar
Is there some way for us to fix it? Otherwise I'd suggest disabling it for PRs. Too annoying to always look into log only to see it's homebrew failing because of some network issue.
Avatar
@Learath2 could you make it so editing attributes on multiple layers doesn't apply things that the user didn't touch? (for example trying to just resize layers makes them all black with 0 alpha)
Avatar
Yeah, I've been having trouble with that actually
Avatar
the color sliders can be tied together as long as you can resize independently
Avatar
[quakenet] MalwareTele14 BOT 2020-09-29 14:53:01Z
hi
14:53
hi ChillerDragon
14:54
is anyone here
Avatar
Yes, many are on Discord
Avatar
[quakenet] MalwareTele14 BOT 2020-09-29 14:54:59Z
hi?
Avatar
[quakenet] deen BOT 2020-09-29 14:56:26Z
hi MalwareTele14
Avatar
[quakenet] MalwareTele14 BOT 2020-09-29 14:57:29Z
anyone wanna play among su
14:57
*among us
14:58
deen do you wanna play among us
15:00
deen wanna play
Avatar
[quakenet] deen BOT 2020-09-29 15:10:07Z
Nope, not really
15:10
This channel is mostly for DDNet development discussions
15:10
You could try in #off-topic on https://ddnet.tw/discord
Avatar
[quakenet] MalwareTele14 BOT 2020-09-29 15:13:49Z
i dont have discord
Avatar
something like enemy marker would be useful to have on block (edited)
Avatar
[quakenet] ChillerDragon BOT 2020-09-29 16:50:00Z
if you forget who your enemys are they are not ur enemys
😆 1
Avatar
omg ddnet now has the 0.7 map based background?
17:02
epic
17:02
90211d1 Reset m_TimesRepeated on new line - def- 1a7eed4 Merge pull request #2951 from def-/pr-repeated - def-
Avatar
@Patiga in next release yes
Avatar
just built it and thought it was 0.7 coz it looked so awesome ^^
17:20
@ChillerDragon Could you make the animation longer? Without any jumps would be perfect of course, but not sure if that is feasible. When sitting in menu it's annoying when the clouds jump around all the time
Avatar
[quakenet] ChillerDragon BOT 2020-09-29 17:21:03Z
@notdeen wow idk baut the animation
17:21
its a light animation and you guys seem to have removed the light so there is no point in keeping it?
Avatar
not about the light
17:21
about the clouds moving
Avatar
[quakenet] ChillerDragon BOT 2020-09-29 17:21:44Z
oh
17:22
but the light is still there is it?
17:22
and i also saw the clouds jumping its horrible
Avatar
Yes, but I stopped the light from jumping around, made the change in brightness subtle
Avatar
[quakenet] ChillerDragon BOT 2020-09-29 17:22:18Z
i wonder what caused this
17:22
why is there a random light in the sky ? :D
Avatar
well, look at envelope 20 for example, they move one way for 5 min and then jump back to start instantly
Avatar
[quakenet] ChillerDragon BOT 2020-09-29 17:22:55Z
jumping back to start should be out of sight
Avatar
dunno, I just made a minimal change, I thought someone said it was supposed to be a lamp
Avatar
[quakenet] ChillerDragon BOT 2020-09-29 17:22:59Z
everything else is weird
17:23
i said its a lamp
17:23
but there is not lamp
17:23
so its light from a removed lamp in the sky lol
Avatar
but it's not out of sight since we have a large area of the map that we use for menu positions probably
Avatar
[quakenet] ChillerDragon BOT 2020-09-29 17:23:47Z
hm
Avatar
so add more clouds and make them move further? should fix it
Avatar
[quakenet] ChillerDragon BOT 2020-09-29 17:24:01Z
well im lazy rn so either you do it ur self or u ping me tomorrow
Avatar
I tried, but I'm horrible with editor. so I created issue for you to remember
Avatar
[quakenet] ChillerDragon BOT 2020-09-29 17:24:23Z
issue?
17:24
or just a comemnt?
Avatar
github issue
Avatar
[quakenet] ChillerDragon BOT 2020-09-29 17:24:34Z
ah issue
17:24
so big
17:24
men im spamming u without contect
17:25
i just red 2 words from my github ping that i saw on my phone xd
17:25
!remind #2953 16 hours
17:29
47c15d9 Ignore brew update constantly failing (fixes #2950) - def- 6beab4a Merge #2952 - bors[bot]
Avatar
client in the Ubuntu repository is outdated
Avatar
complain to ubuntu
18:58
we're not in charge to update that
Avatar
Or install arch and use the ddnet-git package. It will be the latest every time. (edited)
Avatar
everything in ubuntu is outdated by design
19:37
more stable that way
Avatar
use a rolling distro
19:38
GNU Guix System, Arch Linux, Gentoo Linux, openSUSE Tumbleweed, GhostBSD, PCLinuxOS, Solus (operating system), SparkyLinux and Void Linux.
19:44
There is a lot to of new features in the latest Linux graphics stack. Mesa 20.2 offers Vulkan 1.2 support, OpenGL 4.5 support for llvmpipe, faster NIR performance and the ACO shader compiler for Vulkan on AMD hardware is now the default shader compiler for the AMD RADV Vulkan ...
19:44
poggers
Avatar
heylo can someone tell me the difference between the following arrays in CSnapState? m_paPlayerInfos[MAX_CLIENTS] m_paInfoByScore[MAX_CLIENTS] m_paInfoByName[MAX_CLIENTS] m_paInfoByDDTeamScore[MAX_CLIENTS] m_paInfoByDDTeamName[MAX_CLIENTS] they all seem to have the same contents...
Avatar
They are ordered differently
Avatar
m_paPlayerInfos is ordered by id, isn't it?
Avatar
I think so
23:51
b6e4626 Add clear button to server address field - def- c92af2e Merge #2954 - bors[bot]
Exported 257 message(s)