Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories β€” IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2023-03-11 00:00:00Z and 2023-03-12 00:00:00Z
Avatar
I'm redoing my CMake DDNet build thing again, since I got a new PC and where's.. where's the DDNet project? (edited)
05:05
I followed all the steps as close as I could, but isn't there supposed to be a DDNet project under crapnet?
Avatar
game-client
Avatar
Wasn't CMake built into Visual Studio?
07:00
How do you get that up again?
07:01
Like, the DDNet github says you have to manually use the CMake app, but when I was doing my pull requests it was just in Visual Studio
Avatar
ChillerDragon BOT 2023-03-11 08:31:05Z
the things on the screenshots are targets you can build those are executables
08:31
i think wait whats flew and gmock doing there haha
Avatar
cmake is standalone
08:44
visual studio just has integrated it
08:44
for ppl who dont know
Avatar
chillerdragon BOT 2023-03-11 08:47:59Z
Ryo windows pro
08:48
So I Download 20gb and wait 10hours to get a slow sluggish ide that doesn’t have a build system ?
Avatar
Avatar
Ryozuki
visual studio just has integrated it
i installed cmake support on my VS
08:58
i just forgot how to like make it run
09:00
because im watching chiller's guide to build clients again and im doing it all right except for the fact that, in the video cmake is running in VS, while in my case its kind of.. not?
Avatar
CMake Error at CMakeLists.txt:3022 (install): install TARGETS given target "game-client" which does not exist. CMake Error at CMakeLists.txt:3048 (install): install TARGETS given target "game-client" which does not exist. @Kaffeine any ideas?
09:02
do you think this is related to my problem or was that completely different
Avatar
ChillerDragon BOT 2023-03-11 09:03:09Z
honestly i always thought vs ships cmake
09:04
https://cmake.org/download/ if ryo is right you can give downloading cmake a try
09:04
then reopen vscode
09:04
vs*
Avatar
i have cmake
Avatar
ChillerDragon BOT 2023-03-11 09:04:28Z
oh
09:04
hm
Avatar
i have both the app and the support in VS LOL
Avatar
ChillerDragon BOT 2023-03-11 09:04:57Z
and it just doesnt run?
09:05
did you open vs in the correct folder?
09:05
send some screenshots
09:05
that show as much as possible not some crops
Avatar
i clone the repo, and normally theres an output box at the bottom that decompiles everything
09:08
it was completely automatic and all i really had to do is go into the folder and it started
09:08
and then i follow the rest of your build tutorial and everything would be fine
09:09
what else should i show
Avatar
ChillerDragon BOT 2023-03-11 09:12:06Z
09:12
at the top can you click on the dropdown
09:12
to pick the DDNet executable?
Avatar
ChillerDragon BOT 2023-03-11 09:13:13Z
iirc this is bad
09:13
xd
Avatar
i didnt decompile it with cmake yet, this was JUST cloned so (edited)
09:13
should i decompile with cmake app and show what that looks like
Avatar
ChillerDragon BOT 2023-03-11 09:14:49Z
yea whatever that means xd
09:15
as far as i remmeber it it was right click open vs here and it just works :D
09:15
im so tempted to boot in windows now and redo the compile tut
09:16
but i still have ptsd from my last windows boot when i debugged a chillerbot issue :D
09:17
i noticed so many users have bors +r powers these days. Is there a discord role we can ping to merge something? :D like @bors
Avatar
ChillerDragon BOT 2023-03-11 09:17:38Z
how do u open vs
09:17
but looks kinda good
09:18
what does configzre srartup project show?
Avatar
open the app and click the folder where i cloned the repo usually it should work as intended
Avatar
ChillerDragon BOT 2023-03-11 09:18:33Z
ah
Avatar
ChillerDragon BOT 2023-03-11 09:18:54Z
could you try the other way around for me but its probably same result
09:19
go in explorer to the code and then right click -> open vs here
09:19
i assume its same tho
09:19
i do not recognize much from my windows days
09:19
OH THIS is a good sign
Avatar
ChillerDragon BOT 2023-03-11 09:19:51Z
@fokkonaut is the only vs fan i know he might be up to speed with recent versions
09:20
yea clicking random buttons is also what i would do at this point
Avatar
So I set the source directory to the Source folder or the decompiled folder?
Avatar
ChillerDragon BOT 2023-03-11 09:21:39Z
what is a decompiled folder xd
09:22
make the source the whole folder you cloned
09:22
that contains the CMakeLists.txt
09:22
ok fak it im booting into windows now xd
Avatar
Okay, so I was in the build folder, and since I had to do the entire clone I exited out and went in there, but CMake was still off. I tried to go into the settings to enable it but
09:25
And then the program crashes
Avatar
usually to run cmake after clone project you need just open CMakeLists.txt in root and press ctrl+s or save, it's trigger cmake refresh
09:28
if any error maybe it was not installed or installed wrong
Avatar
Closes https://github.com/ddnet/ddnet/issues/6412

Checklist

I've checked that both -DCLIENT=OFF and -DSERVER=OFF do not breaks the install target.
  • [ ] 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
  • [ ] Chan...
Avatar
ChillerDragon BOT 2023-03-11 09:53:18Z
how does rust even affect the windows build these days? whats the recommended way of installing rust on windows?
Avatar
ChillerDragon BOT 2023-03-11 10:00:28Z
oh wow windows released a package manager in 2020 has anyone tried winget?
Avatar
The story of how Microsoft embraced and then killed AppGet.
Avatar
ChillerDragon BOT 2023-03-11 10:03:35Z
ms moment
10:08
aw shit thats a sad story they yoinked his appget ._.
10:09
but im really tempted to use winget instead of choco. The choco logo is just soo ugly. And if windows is pushing it its probably just getting stronger. And seems like they yoinked all the appget things which seem nice to me at first glance.
10:10
he did make it in the readme tho so its not that they silently stole it and removed his credits
Avatar
ChillerDragon BOT 2023-03-11 10:18:29Z
seems like windows users just combine package managers scoop + choco + winget haha what a mess
Avatar
Avatar
chillerdragon
So I Download 20gb and wait 10hours to get a slow sluggish ide that doesn’t have a build system ?
it has numerous build systems
Avatar
Avatar
ChillerDragon
how does rust even affect the windows build these days? whats the recommended way of installing rust on windows?
rustup
Avatar
Avatar
ChillerDragon
oh wow windows released a package manager in 2020 has anyone tried winget?
it’s alright. kind of a wrapper around registry un/install stuff and doesn’t use the pkg management API as much as it should
Avatar
ChillerDragon BOT 2023-03-11 10:26:30Z
rustup runs on windows?
Avatar
why wouldn’t it
Avatar
ChillerDragon BOT 2023-03-11 10:27:00Z
because its windows idk
Avatar
ChillerDragon BOT 2023-03-11 10:27:37Z
so every windows user needs to install rustup to build ddnet is that in the docs?
Avatar
Avatar
Voxel
Click to see attachment πŸ–ΌοΈ
did you run cmake (generate the makefiles)? it should error there if it has dependency location issues or anything of the sort, most things that would mysteriously fail would happen in the generation step
Avatar
Avatar
Voxel
should i decompile with cmake app and show what that looks like
wdym decompile
Avatar
Avatar
ChillerDragon
so every windows user needs to install rustup to build ddnet is that in the docs?
idk how that’s exclusive to windows
10:29
there are obviously other ways
Avatar
ChillerDragon BOT 2023-03-11 10:41:54Z
what da heck is C:\Strawberry and why is uninstalling vs harder than installing it im so lost on windows honestly i cant even delete a folder
10:43
also how to rebind volume keys without installing malware? windows is the hardest os there is
βž• 1
Avatar
Avatar
ChillerDragon
what da heck is C:\Strawberry and why is uninstalling vs harder than installing it im so lost on windows honestly i cant even delete a folder
Strawberry Perl
10:59
Uninstalling VS is very easy, what issues are you having
Avatar
Avatar
ChillerDragon
also how to rebind volume keys without installing malware? windows is the hardest os there is
Can’t
11:01
They are not sent to the receiving applications through a media control server, they are sent as raw event data like all other keyboard data. Or at least, that’s how it used to be, and the OS shell media shit doesn’t allow for remapping
Avatar
ChillerDragon BOT 2023-03-11 11:06:19Z
im super nervouse on windows somehow :D
11:06
deleting the vs folder says a program is using it going through the windows uninstall programs ui the uninstall button is greyed out
Avatar
well yeah???
11:07
use the VS installer to uninstall it
11:07
it’s way more than just the app. many SDKs and shit littered around the disk
11:07
then you can uninstall the installer
Avatar
ChillerDragon BOT 2023-03-11 11:09:07Z
i started with that
11:09
first i updated the vs installer
11:09
then i installed all using the vs installer
11:09
then i manually deleted 20 c++ thingies using the uninstall button
11:09
then i run some choco uninstall script
11:09
then i deleted a bunch of folders in C:\
Avatar
Did you restart already?
Avatar
ChillerDragon BOT 2023-03-11 11:10:20Z
yea once
Avatar
Some files are only deleted after restarting
Avatar
ChillerDragon BOT 2023-03-11 11:10:24Z
still greyed out
11:10
but yea ima go again
11:10
since i just emptied my trash bin which required admin priv haha
11:10
it all feels like such a meme
11:10
and gcc is still found
11:11
ah ye mingw is still there
11:11
idk how to properly uninstall that
11:11
there is no mingw installer and it doesnt appear in programs and features
11:11
i even installed the cygwin installer to uninstall it but didnt help
11:12
im about to delete C:\MinGW :nuke:
11:13
yea that removed the last gcc i had in path poggies
11:15
yo @Robyt3 are you windows main user? u have some tips on how to setup stuff?
11:15
what package manager do you use?
11:16
holy shit whats C:\Qt 42GB :D
11:16
ima delete shit until my system breaks!
Avatar
Most Windows users don't even know what a package manager is lol
11:32
For most of the past you go to the website of the program and download the installer (additional skill is required to avoid malware links)
11:32
Windows Store is basically a package manager, but I refuse to use it
11:32
For all development tools I use MSYS2
Avatar
ChillerDragon BOT 2023-03-11 11:34:03Z
how do you keep them up to date?
11:34
my current speedrun on a fresh machine to compile ddnet on linux is around 10mins and on windows around 1 hour
Avatar
Windows Store can auto-update, MSYS2 has pacman -Syuu (run twice), some programs have auto-updater included, other programs need to be redownloaded from the website
Avatar
ChillerDragon BOT 2023-03-11 11:35:03Z
pacman? :D
11:35
where do you run pacman? in powershell?
Avatar
Yeah, that's the package manager in MSYS2
Avatar
ChillerDragon BOT 2023-03-11 11:35:34Z
mysys2 ships its own emulator and shell right?
Avatar
I run it in "MSYS2 MSYS"
Avatar
ChillerDragon BOT 2023-03-11 11:35:48Z
i think i have seen it earlier on my uninstall hunt
Avatar
Yeah, it should include almost everything
Avatar
ChillerDragon BOT 2023-03-11 11:36:06Z
so you only use this terminal
Avatar
I also installed MinGW via MSYS2 because it was a mess before that
Avatar
ChillerDragon BOT 2023-03-11 11:36:10Z
no powershell no cmd etc?
11:36
no wsl?
Avatar
Not for updating
11:36
Haven't tried using WSL yet
Avatar
ChillerDragon BOT 2023-03-11 11:36:31Z
ou no?
11:36
its pretty dope
11:36
(typed from my wsl)
11:36
in win11 it even allows you to run linux gui apps
Avatar
Haven't had the need yet, MSYS2 also does the trick
11:37
And I'll skip Win 11 and go straight to Win 12
Avatar
ChillerDragon BOT 2023-03-11 11:37:24Z
and you install msys2 how?
11:37
fair
11:37
will win12 be any better?
Avatar
Hopefully better than Win 11
Avatar
ChillerDragon BOT 2023-03-11 11:37:57Z
isnt it building on top of that?
Avatar
From the feedback I see online it's like an open beta where users are supposed to find the bugs
11:38
Not something I want to use in production
Avatar
ChillerDragon BOT 2023-03-11 11:38:43Z
btw i finally found a way to continue uninstalling the last 2 vs i had in some legacy win ui i am waiting since 10 min for it to apply the uninstaller in some fancy gui
Avatar
ChillerDragon BOT 2023-03-11 11:39:09Z
is msys2 any new?
11:39
im a big confused with msys2 mingw and cygwin
11:39
bit*
11:39
but big also works i guess
Avatar
I read somewhere that cygwin would be somewhat more performant than mingw, but I don't have any issues with MinGW
Avatar
ChillerDragon BOT 2023-03-11 11:39:59Z
is it arch like and the same pacman from archlinux?
Avatar
I installed MinGW in MSYS2, so I can update it from there
Avatar
ChillerDragon BOT 2023-03-11 11:40:30Z
yea you mentioned that but why
11:40
why not use msys directly?
11:40
doesnt it ship a windows c compiler?
Avatar
So I don't have to download the individual tools and libraries
Avatar
ChillerDragon BOT 2023-03-11 11:41:01Z
do you have vs installed?
Avatar
It caused issues in the past where I had different versions of tools mixed together
11:41
Yeah, but I rarely use VS
Avatar
ChillerDragon BOT 2023-03-11 11:41:15Z
i see
11:41
what editor u use?
Avatar
For ddnet I just use Sublime Text
11:41
For Java I use Eclipse
Avatar
ChillerDragon BOT 2023-03-11 11:41:45Z
and the shell in msys2 is bash?
Avatar
Yeah, bash is included in MSYS2
Avatar
ChillerDragon BOT 2023-03-11 11:42:19Z
and pwd prints what? C:\Users\etc.. ?
Avatar
C:\Users\Robert>pwd /c/Users/Robert C:\Users\Robert>which bash /usr/bin/bash
11:42
It does some path mapping I guess
Avatar
ChillerDragon BOT 2023-03-11 11:42:58Z
interesting
Avatar
Avatar
Robyt3
Windows Store is basically a package manager, but I refuse to use it
vcpkg?
Avatar
ChillerDragon BOT 2023-03-11 11:43:07Z
amazing it uses / and \
11:43
xd
Avatar
So /usr/bin maps to a folder in the MSYS2 installation
Avatar
ChillerDragon BOT 2023-03-11 11:43:31Z
in wsl its some /mnt/c/ etc
Avatar
Avatar
gerdoe
vcpkg?
At this point everything works for me, so I don't really want to break my build process again
Avatar
ChillerDragon BOT 2023-03-11 11:44:21Z
yea sounds sane
11:44
i mean mine worked super solid too
11:44
but its like a 10 yr old win machine i learned developing on so it was such a mess
11:45
not that i care about this win setup but i guess it would make sense to update my win compile tutorial
11:45
to be less bloated
11:46
the msys2 setup seems sane
11:47
ok lol so the ideal windows development environment is archlinux? xd https://stackoverflow.com/a/25755481
Traditionally MSYS bash has been considered inferior to Cygwin bash. The former was an ancillary tool inside MinGW intended for running autoconf scripts. But now there is MinGW-w64 and MSYS2. The
11:47
good meme
Avatar
ChillerDragon BOT 2023-03-11 12:32:35Z
da hegg is nmake?
12:33
does discord preview the paste snippets btw?
Avatar
no
Avatar
ChillerDragon BOT 2023-03-11 12:35:25Z
sad
12:36
fstd check useragent for discord crawler and send previewable paste html in pstd :p
Avatar
There is no preview because https://paste.zillyhuhn.com does not support The Open Graph protocol for that (https://ogp.me).
Avatar
ChillerDragon BOT 2023-03-11 12:37:02Z
what kaffeine said fstd ^
12:37
wait only image not plain text or html?
12:37
are you saying pastebin is creating a image of the text for the preview?
12:43
does this work? xd
12:44
i guess i could adapt my paste post script to wrap it in thise tags thanks @Kaffeine
Avatar
it shows this
Avatar
ChillerDragon BOT 2023-03-11 13:01:58Z
looks hot doesnt it?
13:02
thanks for the image btw
Avatar
ey is there anyway to render keystrokes while rendering a demo?
Avatar
Raw keystrokes are not recorded in demos, so that's not possible
Avatar
i can see them in the demo so why arent they enabled while rendering?
Avatar
Check cl_video_showhud and cl_video_show_direction variables
Avatar
ChillerDragon BOT 2023-03-11 13:47:57Z
TIL running cmake . in the project root instead of a build folder puts a cache file there and when later moving to a build folder you can delete its content all you want it will use the parent folders cache
13:48
only took me 2h to figure out
Avatar
Avatar
Robyt3
Check cl_video_showhud and cl_video_show_direction variables
kk ty
Avatar
ChillerDragon BOT 2023-03-11 14:17:10Z
windows is easy they said
14:17
C:/Users/Chiller/Desktop/teeworlds/src/engine/shared/demo.cpp:129:1: internal compiler error: in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1275
Avatar
is this msvc?
Avatar
ChillerDragon BOT 2023-03-11 14:19:43Z
its scoops gcc
Avatar
perhaps that is the problem? ^^
Avatar
ChillerDragon BOT 2023-03-11 14:20:10Z
ima try clang
Avatar
I wouldn't call it the windows way if you're downloading gcc :p
Avatar
ChillerDragon BOT 2023-03-11 14:20:26Z
ok fair
14:20
im not using msys mingw or cygwin tho
14:21
im trying to find the fastest windows compile setup
14:21
shit clang has the same error
14:21
thats weird
Avatar
why not try msvc?
Avatar
I am currently re-implementing my gRPC/Protobuf stuff into DDNet but somehow it wont work In my cmake/* I do have a file called "FindGRPC.cmake": find_package(Protobuf REQUIRED) include_directories(${PROTOBUF_INCLUDE_DIRS}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) include(FetchContent) FetchContent_Declare( gRPC GIT_REPOSITORY https://github.com/grpc/grpc GIT_TAG v1.52.1 # e.g v1.28.0 ) set(FETCHCONTENT_QUIET OFF) FetchContent_MakeAvailable(gRPC) Which is working so far ( it clones the repository and all of its submodules ) In the CMakeList I've added add_library(proto-objects OBJECT "${CMAKE_CURRENT_LIST_DIR}/proto/server.proto") target_link_libraries(proto-objects PUBLIC protobuf::libprotobuf gRPC::grpc gRPC::grpc++_unsecure) set(PROTO_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/src/game/generated") set(PROTO_IMPORT_DIRS "${CMAKE_CURRENT_LIST_DIR}/proto") protobuf_generate( LANGUAGE cpp TARGET proto-objects OUT_VAR PROTO_GENERATED_FILES IMPORT_DIRS ${PROTO_IMPORT_DIRS} PROTOC_OUT_DIR "${PROTO_BINARY_DIR}") set_source_files_properties(${PROTO_GENERATED_FILES} PROPERTIES SKIP_UNITY_BUILD_INCLUSION on) protobuf_generate( TARGET proto-objects OUT_VAR PROTO_GENERATED_FILES LANGUAGE grpc GENERATE_EXTENSIONS .grpc.pb.h .grpc.pb.cc PLUGIN "protoc-gen-grpc=\$<TARGET_FILE:gRPC::grpc_cpp_plugin>" # PLUGIN_OPTIONS "generate_mock_code=true" IMPORT_DIRS ${PROTO_IMPORT_DIRS} PROTOC_OUT_DIR "${PROTO_BINARY_DIR}") set_source_files_properties(${PROTO_GENERATED_FILES} PROPERTIES SKIP_UNITY_BUILD_INCLUSION on) target_include_directories(proto-objects PUBLIC "$<BUILD_INTERFACE:${PROTO_BINARY_DIR}>")
14:24
But it fails with CMake Error at /usr/share/cmake-3.18/Modules/FindProtobuf.cmake:227 (add_custom_command): add_custom_command called with OUTPUT containing a "<". This character is not allowed. Call Stack (most recent call first): CMakeLists.txt:1880 (protobuf_generate)
14:24
It worked on my previous attempt, but only if I install everything globally on the system which is not best practice & recommended by Google
Avatar
ChillerDragon BOT 2023-03-11 14:25:34Z
@heinrich5991 how do you recommend installing msvc? whats that again the vs compiler?
Avatar
ChillerDragon BOT 2023-03-11 14:47:36Z
ok i give up wont redo my windows compile tut :D
14:48
i guess there is a reason nobody seems to use scoop :D
Avatar
Avatar
Avolicious
But it fails with CMake Error at /usr/share/cmake-3.18/Modules/FindProtobuf.cmake:227 (add_custom_command): add_custom_command called with OUTPUT containing a "<". This character is not allowed. Call Stack (most recent call first): CMakeLists.txt:1880 (protobuf_generate)
I guess check where thte < comes from
Avatar
Encoding the image as PNG and saving it to a file comprises the majority of the time when taking a screenshot. To avoid the client freezing while a screenshot is being saved, this task is moved to a separate background thread.

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
ChillerDragon BOT 2023-03-11 14:57:40Z
yea whats at /usr/share/cmake-3.18/Modules/FindProtobuf.cmake:227 ?
14:58
and CMakeLists.txt:1880
14:58
i guess on irc only half of the output arrived due to ratelimit
14:59
could you just link your repo?
Avatar
link repo? It's fucking gores man πŸ˜„
15:42
it's closed source
Avatar
gores bad
16:03
agpl would have prevented that
16:05
github should have a button on a repo that says "go to your fork" or smth
Avatar
click the fork button
16:06
I think
Avatar
Avatar
heinrich5991
click the fork button
ah not the button but the down arrow
16:07
it shows ur forks
16:07
good to know
16:08
16:08
didnt know about the vek crate
16:08
twmap uses it
16:08
Generic 2D-3D math swiss army knife for game engines, with SIMD support and focus on convenience. - yoanlcq/vek
Avatar
Avatar
Ryozuki
gores bad
What exactly should be bad about being closed source?
16:12
You're working on DDNet, its open source. Everything you wanna do, you can
Avatar
my four essential freedoms are not met
16:14
The freedom to run the program as you wish, for any purpose (freedom 0). The freedom to study how the program works, and change it so it does your computing as you wish (freedom 1). Access to the source code is a precondition for this. The freedom to redistribute copies so you can help others (freedom 2). The freedom to distribute copies of your modified versions to others (freedom 3). By doing this you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.
Avatar
You can host Gores maps with DDnet
Avatar
my client is communicating with a closed source software
Avatar
You dont have to play on KoG-Gores
Avatar
u wont win on this on me
Avatar
So basically even if we open source kog, you still would have conflicts
16:14
Our maps provider is cloudflare R2
16:15
hmm yeah but my conflicts would be with cloudflare
Avatar
So you are downloading maps from a closed source system
16:15
Yeah
Avatar
agpl would have prevented closed source kog
16:15
shame
Avatar
is the video recorder broken for anyone else
Avatar
Avatar
Ryozuki
agpl would have prevented closed source kog
Still the question, what benefit would you get from kog source?
Avatar
my freedoms i listed
Avatar
gRPC & Redis intregation?
Avatar
if you dont value those, thats on you
16:16
i value them highly
Avatar
You can host gores maps with DDNet, which is open source
16:16
Dont get the point
16:16
you dont get the point
16:16
but its ok
16:16
your a closed source dev
Avatar
we simply have different values
16:17
i value user freedom
16:17
you value... having a closed source network? whathever
Avatar
I am working on a lot of open source tools & maintain them, but in kog I dont see any benefit or value for going open source
16:17
Only more overhead
Avatar
thats such a lame excuse ngl
Avatar
No excuse, just hitting the hard facts. Maintaining an open source project adds overhead
Avatar
i dontsee facts here, only a scared person
Avatar
If you get paid for it, its different
Avatar
you can make ur it open source and be a total dictator about the code in ur repo
16:19
its fine if u dont want to be BDFL for the project
16:19
you can even totally dismiss any contribution
16:19
yet be open source
16:19
others can fork, investigate, learn, improve on their own
16:19
u dismiss user freedom by a lame excuse
Avatar
Its DDNet πŸ˜„
16:20
Download DDNet recent version & you do have KoG
Avatar
its ok this is worthless xd
Avatar
u know ryo u wont change anyones mind the way you argue
Avatar
Avatar
louis
u know ryo u wont change anyones mind the way you argue
honestly, i never expect them to change their mind, cuz people rarely change
16:23
i know im a bit overbearing, but thats how i am
Avatar
ChillerDragon BOT 2023-03-11 16:38:56Z
@Avolicious if nobody benefits from kog code whats the harm in sharing it? i mean you can also apply your changes to ddnet and share that code base i do not mind. But i would like to run cmake my self and play around with it
16:40
ah didnt read the overhead part? whats the overhead? having to maintain community made prs and issues?
16:40
i guess there is read only open source too
Avatar
Avatar
ChillerDragon
ah didnt read the overhead part? whats the overhead? having to maintain community made prs and issues?
One of it
Avatar
ChillerDragon BOT 2023-03-11 16:40:40Z
tw does that :D
Avatar
Mostly support
Avatar
ChillerDragon BOT 2023-03-11 16:41:02Z
just dont support then?
Avatar
This is not my philosophy of being open source
Avatar
ChillerDragon BOT 2023-03-11 16:41:26Z
ok
16:41
did u fix grpc yet?
Avatar
Yeah
Avatar
ChillerDragon BOT 2023-03-11 16:41:47Z
poggies
Avatar
Currently fixing some stuff for Alpine and GLIBC
Avatar
ChillerDragon BOT 2023-03-11 16:42:17Z
kubernetes moment
Avatar
We do use K3s
Avatar
ChillerDragon BOT 2023-03-11 16:42:41Z
tons of work zero useful
Avatar
But the containers are currently around 500MB to 1GB in total size
Avatar
ChillerDragon BOT 2023-03-11 16:42:43Z
xaxaxax
16:42
im big docker/kubernetes hater
Avatar
I have now managed to use alpine with glibc and go down to 40 MB
Avatar
ChillerDragon BOT 2023-03-11 16:43:08Z
gj
Avatar
Avatar
ChillerDragon
im big docker/kubernetes hater
So you are not a big fan of being scalable
Avatar
chiller did u know kubernetes and such astuff is the only way to web scale?
16:43
kek
Avatar
ChillerDragon BOT 2023-03-11 16:43:48Z
well thats the only argument people ever bring
16:43
but i dont buy it
16:44
i can also scale w out kubernetes
Avatar
i also dont buy it
Avatar
ChillerDragon BOT 2023-03-11 16:44:10Z
btw wat u need grpc for?
Avatar
Not within a reasonable timeframe
Avatar
ChillerDragon BOT 2023-03-11 16:44:28Z
how does it scale faster?
Avatar
Avatar
ChillerDragon
btw wat u need grpc for?
Get rid of mysql support ^^
Avatar
ChillerDragon BOT 2023-03-11 16:44:34Z
oof
Avatar
add mongodb
16:44
it is web scale
Avatar
ChillerDragon BOT 2023-03-11 16:44:40Z
wdym?
16:44
xd
16:44
xxxxxxxxxxxxxxD
16:44
it supports sharding
Avatar
ChillerDragon BOT 2023-03-11 16:45:13Z
how does grpc replace mysql?
Avatar
i guess he fetches and sends data using grpc calls
Avatar
Yes
Avatar
instead of having the mysql client in the client
Avatar
Correct
Avatar
ChillerDragon BOT 2023-03-11 16:45:42Z
ah i see
Avatar
Bans are also synced across the fleet
Avatar
well server*
Avatar
FIFO files are not used anymore
Avatar
ChillerDragon BOT 2023-03-11 16:46:08Z
so you implement your own database protocol?
16:46
sounds like work
Avatar
does grpc use protobuf
Avatar
ChillerDragon BOT 2023-03-11 16:46:20Z
where do you store it in the end? still mysql?
Avatar
No, it terminates at the gRPC server
Avatar
Avatar
Ryozuki
does grpc use protobuf
yes
Avatar
or do they bloat with json
16:46
xd
16:46
protobuf
Avatar
Avatar
ChillerDragon
where do you store it in the end? still mysql?
Its SQL, yes
Avatar
ChillerDragon BOT 2023-03-11 16:46:52Z
ok back to scaling
Avatar
A native gRPC client & server implementation with async/await support. - GitHub - hyperium/tonic: A native gRPC client & server implementation with async/await support.
16:46
pog library
Avatar
ChillerDragon BOT 2023-03-11 16:47:18Z
you have like what? around 10 vps for kog running kubernetes clusters on them? if the load gets too high how do you scale?
Avatar
honestly grpc is not a bad idea
16:47
well idk what deps it adds
Avatar
Avatar
ChillerDragon
you have like what? around 10 vps for kog running kubernetes clusters on them? if the load gets too high how do you scale?
Using Terraform to get more servers if available
Avatar
ChillerDragon BOT 2023-03-11 16:47:57Z
i see
Avatar
but its hilarious cuz ddnet is double or triple the size
16:48
and makes do
16:48
xd
Avatar
ChillerDragon BOT 2023-03-11 16:48:11Z
but then u scale using terraform not using kubernetes
Avatar
Avatar
ChillerDragon
but then u scale using terraform not using kubernetes
Wrong
Avatar
ChillerDragon BOT 2023-03-11 16:48:21Z
xd
Avatar
im also ootl on the words and programs for this
Avatar
ChillerDragon BOT 2023-03-11 16:48:35Z
you could also run a apt install and a git clone ur self
Avatar
but i never needed it either
Avatar
ChillerDragon BOT 2023-03-11 16:48:45Z
or via terraform i mean
Avatar
its like preparing for the apocalipse when just spinning 1 server would do
Avatar
ChillerDragon BOT 2023-03-11 16:49:03Z
its one pod per tw server anyways right @Avolicious?
Avatar
ce236da CMake: Fix installation for optional targets - Kaffeine 2ae514d Merge #6413 - bors[bot]
Avatar
ChillerDragon BOT 2023-03-11 16:49:13Z
you can just scale up more servers right?
Avatar
Avatar
ChillerDragon
its one pod per tw server anyways right @Avolicious?
Yes
Avatar
Avatar
ChillerDragon
you can just scale up more servers right?
scale up to the moon
Avatar
Avatar
ChillerDragon
you can just scale up more servers right?
Correct
Avatar
ChillerDragon BOT 2023-03-11 16:49:41Z
but do you actually do that?
Avatar
Yes
16:49
We use ArgoCD for our deployment
Avatar
ChillerDragon BOT 2023-03-11 16:49:52Z
scale down servers and up again depending on the user load?
Avatar
ChillerDragon BOT 2023-03-11 16:49:58Z
idk dat
Avatar
There is no dynamical scaling enabled yet
Avatar
ChillerDragon BOT 2023-03-11 16:50:13Z
do you manually trigger it?
Avatar
Yes
Avatar
ChillerDragon BOT 2023-03-11 16:50:19Z
how often?
Avatar
Depends on if we get a new location or not πŸ™‚
Avatar
ChillerDragon BOT 2023-03-11 16:50:54Z
im still not convienced somehow
Avatar
The more enjoyable part is the maintenance
Avatar
ChillerDragon BOT 2023-03-11 16:51:12Z
deen for example also just runs a provision script on a new location and is ready pretty fast
Avatar
its cuz he enjoys the tech
Avatar
ArgoCD keeps everything in sync, dont need to do anything on the hosts itself
Avatar
so he uses it
Avatar
Using Ansible to keep them updated (edited)
Avatar
ChillerDragon BOT 2023-03-11 16:51:27Z
like what? os updates?
Avatar
ChillerDragon BOT 2023-03-11 16:51:32Z
hm
Avatar
Ansible for Host stuff, ArgoCD for the K3s
16:51
Terraform for git declarative infrastructure
Avatar
ChillerDragon BOT 2023-03-11 16:51:50Z
jesus u use it all
16:52
a mad sysadmin
Avatar
ChillerDragon BOT 2023-03-11 16:52:03Z
how much time do you spend on setting it up?
Avatar
Not that much, using it for big scale projects in my daily work
Avatar
ChillerDragon BOT 2023-03-11 16:52:15Z
and was it worth saving on running apt update every now and then?
Avatar
Avatar
ChillerDragon
and was it worth saving on running apt update every now and then?
It is indeed
16:52
SSH Key rotation works like a charm
Avatar
idk if i would trust auto appt updates
Avatar
ChillerDragon BOT 2023-03-11 16:53:01Z
why do you rotate ssh keys?
16:53
i inherited mine from my grand pa
Avatar
he gotta protect the source code with max security
Avatar
ChillerDragon BOT 2023-03-11 16:53:17Z
i see
Avatar
Mostly security
16:53
We use HashiCorp Vault for secrets and HashiCorp Boundary for SSH
Avatar
ChillerDragon BOT 2023-03-11 16:53:40Z
o dat mf
Avatar
the corporations
Avatar
ChillerDragon BOT 2023-03-11 16:53:57Z
thats imo the only advantage of closed src
16:54
not using hashicorp
16:54
just put secrets in the private git repo in plain text
Avatar
We dont have secrets in the git repo
Avatar
ChillerDragon BOT 2023-03-11 16:54:22Z
but why
Avatar
Because we use a vault
Avatar
ChillerDragon BOT 2023-03-11 16:54:29Z
then you do not profit on closed src
Avatar
chiller do u save ur passwords on a private repo
Avatar
ChillerDragon BOT 2023-03-11 16:54:40Z
yes
Avatar
don't do it
Avatar
ChillerDragon BOT 2023-03-11 16:55:48Z
i mean i can hate the new kids devops all day but i gotta admit im still interested in your setup
16:55
why not heinrich?
Avatar
because git repos tend to become public at some point :p
Avatar
ChillerDragon BOT 2023-03-11 16:56:16Z
?xd
16:56
wdym
Avatar
chiller did u ever use pass
Avatar
ChillerDragon BOT 2023-03-11 16:56:26Z
yes
16:56
its my main pw manager
Avatar
ChillerDragon BOT 2023-03-11 16:56:34Z
for work and private
16:57
how does a git repo tend to become more public than some annoying secret vault?
Avatar
Why should it be annoying?
Avatar
ChillerDragon BOT 2023-03-11 16:57:20Z
i used it bro
16:57
i was annoyed
Avatar
Maybe you used it wrong
16:57
πŸ€”
Avatar
ChillerDragon BOT 2023-03-11 16:57:49Z
ye for sure i did
Avatar
well ur vault is probs encrypted
Avatar
ChillerDragon BOT 2023-03-11 16:58:00Z
probably also use kubernetes and ansible wrong xd
Avatar
Might be
16:58
The interesting part is hashicorp vault sidecar for k3s/k8s
Avatar
ChillerDragon BOT 2023-03-11 16:58:23Z
but i gotta say the little xp i have with terraform was pleasing
16:59
how did u convince the old russian to bloat in all that crap? :D
Avatar
Who?
Avatar
ChillerDragon BOT 2023-03-11 16:59:53Z
no front
16:59
qshar
17:00
or did he rq already?
Avatar
is qshar active
Avatar
No need to convince
17:00
It was part of the maintenance project
Avatar
whenver i go to kog discord i only see rly stupid discussions xd
kek 1
Avatar
Making it easier
Avatar
ChillerDragon BOT 2023-03-11 17:00:33Z
kog discord doesnt have any bridges
17:00
its sad
17:01
does qshar now use all the k3s stuff instead of whatever he had before?
17:01
how hands on is he these days?
Avatar
There is no need to do anything with k3s
Avatar
ChillerDragon BOT 2023-03-11 17:01:22Z
seems like you kinda fully overhauled his infrastructure
17:01
does he even understand how it works? :D
Avatar
Why shouldnt he?
17:01
Qshar is a smart guy
Avatar
ChillerDragon BOT 2023-03-11 17:01:53Z
uhm idk because you did it?
Avatar
So because I used modern tech, nobody else would know how it works?
Avatar
ChillerDragon BOT 2023-03-11 17:02:37Z
what did he use before?
Avatar
Before servers where setup semi-automatic
17:03
which leads to high maintenance times
Avatar
ChillerDragon BOT 2023-03-11 17:03:10Z
ok whatever that means sounds different than the current setup
Avatar
Its different of course
Avatar
ChillerDragon BOT 2023-03-11 17:03:30Z
so one has to learn that right?
Avatar
Yes
Avatar
ChillerDragon BOT 2023-03-11 17:03:49Z
if someone replaces your infrastructure isnt there a chance it can be confusing?
Avatar
Why should it be?
17:04
Everything is documented
Avatar
ChillerDragon BOT 2023-03-11 17:04:07Z
xd
17:04
ok
17:04
maybe i should ask qshar him self you clearly think its all obvious
Avatar
Go for it πŸ™‚
Avatar
ChillerDragon BOT 2023-03-11 17:04:37Z
if its all documented why not make it open source then? xd
Avatar
What would be the benefit? All of it is available for anyone
17:05
Do you want my configuration files
17:05
?
Avatar
ChillerDragon BOT 2023-03-11 17:05:08Z
yes
Avatar
Ah I see
17:05
Thats not how open source works ^^
Avatar
ChillerDragon BOT 2023-03-11 17:05:21Z
why not?
Avatar
All tools we are using are free to use for everyone
17:05
Mostly all of them are open source
17:05
Configuration is not open sourceable
Avatar
ChillerDragon BOT 2023-03-11 17:05:53Z
you clearly have at least one repo with infrastructure as code right?
Avatar
Yes
Avatar
ChillerDragon BOT 2023-03-11 17:06:02Z
why is it not opensourceable?
Avatar
Because the configuration is based upon our network & how we would like to run it
Avatar
ChillerDragon BOT 2023-03-11 17:06:40Z
so?
Avatar
Network configuration differs
17:06
DDNet runs their servers different than we do
Avatar
ChillerDragon BOT 2023-03-11 17:06:55Z
ok
Avatar
might still be interesting to look at though
Avatar
ChillerDragon BOT 2023-03-11 17:06:58Z
and?
Avatar
like the ddnet-scripts repo
17:07
also not really useful for others
Avatar
1b1fc8d Save screenshot in separate thread to avoid lags - Robyt3 e05f88f Merge #6414 - bors[bot]
Avatar
ChillerDragon BOT 2023-03-11 17:07:10Z
i still look at ddnet scripts that have hardcodet paths with deen in them xd
Avatar
but still interesting
Avatar
ChillerDragon BOT 2023-03-11 17:07:31Z
it has some useful pieces actually
17:08
if you go through the effort of using secret vaults and documenting everything might as well share it right?
Avatar
If I'll find the time, I'll write a blog post about it
Avatar
ChillerDragon BOT 2023-03-11 17:09:03Z
xd also cool
17:09
but there is no need to put in additional work to share what you currently have
17:10
im sure you also just find secret vaults annoying and the repo is full of confidental stuff hehe :p
Avatar
True, just open sourcing all our config files would be no effort
Avatar
ChillerDragon BOT 2023-03-11 17:10:15Z
are you being irconic?
17:10
ironic*
17:10
a
Avatar
But I dont see any benefit yet of open source our configuration, its highly built upon how we run our clusters
Avatar
ChillerDragon BOT 2023-03-11 17:10:48Z
i dont see a harm
17:10
the benefit is i want to see it
Avatar
ChillerDragon BOT 2023-03-11 17:11:39Z
omg
17:11
trol
17:11
ok i go rq
Avatar
All we used is also being written in the official docs, no hidden secret sauce, trust me
Avatar
ChillerDragon BOT 2023-03-11 17:13:22Z
yo @fokkonaut next time someone asks for fddr code just link c++ standard and say its all in there xd
Avatar
the kog source code is here
17:16
A project towards a universal library. By this art you may contemplate the variation of the 23 letters.
Avatar
This reverts commit c801df311c1e13b69e4cc6b81fde4e014fac6f8f.

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valg...
Avatar
One day I'll bother with writing ansible playbooks to deploy ddnet servers
Avatar
sounds cool πŸ™‚
20:37
do you know ansible?
Avatar
ansible, terraform, etc..
20:39
All of that are cool
Avatar
Avatar
Learath2
One day I'll bother with writing ansible playbooks to deploy ddnet servers
Thats fun
Avatar
Avatar
heinrich5991
do you know ansible?
A fair bit though I've never written any playbook to be deployed, so not sure if counts πŸ˜„
Avatar
a774d1f Revert "Pick icon files based on executable name" - heinrich5991 9878ca2 Merge #6415 - bors[bot]
Exported 574 message(s)