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-05-10 00:00:00Z and 2023-05-11 00:00:00Z
Avatar
Avatar
Ewan
/lock toggles but /unlock always sets it to unlock. can we get a /forcelock or something to always lock the team
/lock 1
Avatar
ChillerDragon BOT 2023-05-10 06:52:42Z
fstd: elo
Avatar
we tried loading ninja zcatch on ddnet zcatch and the server disappeared from existence
07:25
gone
07:25
poof
Avatar
It transformed into a 0.5 server
Avatar
chillerdragon BOT 2023-05-10 07:58:41Z
Xd
Avatar
ops wrong link
Avatar
ChillerDragon BOT 2023-05-10 08:19:18Z
hrhr secret python enjoyer
08:20
ffs coding is the worst how am i supposed to debug shit if my debug print statements have bugs
Avatar
__CARGO_FIX_YOLO=1 Nice naming xd
Avatar
Man that auto fixing tool is really buggy xD
Avatar
ChillerDragon BOT 2023-05-10 09:28:32Z
wotefek autorust?
Avatar
I just wanted to fix some Pascalcase to snake case. But it only renames the declaration of the variable not later usages xD. Completely useless tool for this case
Avatar
ChillerDragon BOT 2023-05-10 09:30:32Z
xd
Avatar
Currently trying with nightly. I can't imagine nobody ever tested this xD
Avatar
ChillerDragon BOT 2023-05-10 09:31:12Z
if you write good code you do not need to test
09:31
if you do not test you will never know its bad
09:31
ez
Avatar
Ez
Avatar
Avatar
Jupstar ✪
Man that auto fixing tool is really buggy xD
what tool?
Avatar
ChillerDragon BOT 2023-05-10 09:32:09Z
C A R G O F I X Y O L O
09:32
pog pog
Avatar
Avatar
heinrich5991
what tool?
Clippy fix or cargo fix. They all do the same bug
Avatar
ah
Avatar
ChillerDragon BOT 2023-05-10 09:32:57Z
did u try running this first? clippy fix --self
Avatar
Trollodragores
Avatar
chillerdragon: i have a new way of communicating. we make a github comment, and then react and remove the reaction again so we have morse code. You like?
Avatar
ChillerDragon BOT 2023-05-10 10:03:07Z
xd
10:03
do i look like i can speak morse code?
10:04
i wonder if gh keeps logs of reaction addition and removal
Avatar
why do windows build instructions have you generate with the cmake gui and open a solution
10:09
instead of opening as a cmake project
Avatar
good question
10:09
should be updated (edited)
Avatar
Mostly because none of us use windows so no one updated it ever
Avatar
ChillerDragon BOT 2023-05-10 10:38:24Z
og robstinger use big windowser
Avatar
ChillerDragon BOT 2023-05-10 10:49:14Z
am i stupid or is there no clean way to read out setting values via fifo?
Avatar
You aren't stupid
Avatar
ChillerDragon BOT 2023-05-10 10:50:02Z
shit
10:50
so i gotta check the logfile and hope i grep the correct line
10:50
meh
11:30
justatest
Avatar
ChillerDragon BOT 2023-05-10 11:48:18Z
discord moment
Avatar
hello!
14:02
Welcome to GitHub's home for real-time and historical data on system performance.
14:02
yay! github incident today too
14:21
cgit got better stats than github
14:21
they load instant
14:21
xd
Avatar
is it cached maybe?
14:22
github also loads fast when it's cached
Avatar
i dont have caching enabled on cgit rn
14:23
sadly i used different emails over the course of my contribs, so my edg-l on github doesnt count all
14:23
this can be solved with a email map file, but i wont bother ddnet with that kek
Avatar
But u have one desktop PC for one project and one user xd
Avatar
you can bother ddnet with that if you want
Avatar
add the file and make a PR 🙂
14:24
pog
Avatar
Avatar
Jupstar ✪
But u have one desktop PC for one project and one user xd
wdym?
Avatar
For stats
Avatar
now i just gotta figure out my emails (edited)
14:33
@heinrich5991 u also have some commits under another email
14:33
772 on ur main, 44 on that
14:34
git shortlog -sne | rg -i "(heinrich)"
14:34
(i wont post the email here)
14:34
do u want to map it?
Avatar
DM me the mail addresses pls (edited)
Avatar
Avatar
Ryozuki
@heinrich5991 u also have some commits under another email
And me? Xd
14:35
I might have one without email
Avatar
this works if u used common names
Avatar
Avatar
Ryozuki
do u want to map it?
ye, please add that
Avatar
whats ur gh name @Jupstar ✪
Avatar
Jupeyy
14:38
u got 3 emails
Avatar
Wtf xD
Avatar
Ah it's identities, then it makes sense yeah xd
Avatar
tell me ur main in dm
14:39
and i map
Avatar
Two of them are PC names
Avatar
Avatar
kio
😠 lie
you need to add the *.hpp glob to the set_src function in CMakeLists.txt
14:42
i fixed with that but weird when i did it from archlinux this problem did't comeup
Avatar
cmake only notices this when you regenerate the build files
Avatar
make sense
14:46
why should exist this check?
Avatar
so that we have a canonical ordering in the CMakeLists.txt
Avatar
why are you globbing >_>
Avatar
it's just a warning, you can ignore it if you only make changes for yourself
Avatar
globbing is discouraged
14:48
glooping
Avatar
Avatar
Ewan
why are you globbing >_>
the globbing is only used to display a warning that your manually listed files are out-of-date
😃 1
Avatar
Avatar
heinrich5991
the globbing is only used to display a warning that your manually listed files are out-of-date
good
Avatar
i was adding that
14:49
so i added hpp there
Avatar
is that a library?
Avatar
that there
Avatar
Avatar
Ewan
is that a library?
json.hpp yes
Avatar
you probably should not put it there
Avatar
i know but im nub
14:50
move it
Avatar
ddnet-libs?
Avatar
also i'm almost positive ddnet already has json parsing
Avatar
@Learath2 u there
Avatar
Avatar
Ewan
also i'm almost positive ddnet already has json parsing
i saw something but idk thing it have the methods that i need
Avatar
Avatar
kio
that there
you need to move it up
14:50
voting.h must come after kehub/
Avatar
Avatar
Ewan
also i'm almost positive ddnet already has json parsing
that's correct. but if they want to experiment with another JSON library, that's fine, too
Avatar
seems pointless but it's not my project xd
14:51
im just advising
Avatar
Avatar
heinrich5991
that's correct. but if they want to experiment with another JSON library, that's fine, too
I could use the one that already exists if I understand how ahaha
Avatar
are you trying to write or read json?
Avatar
Avatar
heinrich5991
voting.h must come after kehub/
sorry, no j, k, x in my alphabet xd
Avatar
abcdefghijklmnopqrstuvwxyz
Avatar
there ya go
Avatar
add git mailmap, mapping same author email/names to the prefered/most used name
Avatar
Avatar
heinrich5991
are you trying to write or read json?
using json = nlohmann::json; static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) { ((std::string*)userp)->append((char*)contents, size * nmemb); return size * nmemb; } json KeHubTest::getJoke() { CURL *curl; CURLcode res; std::string response; json joke; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "https://official-joke-api.appspot.com/random_joke"); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &response); res = curl_easy_perform(curl); if(res != CURLE_OK) { std::cerr << "curl_easy_perform() failed: " << curl_easy_strerror(res) << std::endl; curl_easy_cleanup(curl); return joke; } curl_easy_cleanup(curl); } joke = json::parse(response); return joke; }
Avatar
so reading
Avatar
Avatar
heinrich5991
abcdefghijklmnopqrstuvwxyz
also no y and no w xd
Avatar
your nick has a k though :p
Avatar
ChillerDragon BOT 2023-05-10 14:53:21Z
Avatar
Avatar
heinrich5991
your nick has a k though :p
im british
Avatar
ChillerDragon BOT 2023-05-10 14:53:30Z
what a random list of names
Avatar
what is it ChillerDragon
Avatar
Avatar
heinrich5991
your nick has a k though :p
Avatar
whats wrong chiller
Avatar
Avatar
kio
using json = nlohmann::json; static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) { ((std::string*)userp)->append((char*)contents, size * nmemb); return size * nmemb; } json KeHubTest::getJoke() { CURL *curl; CURLcode res; std::string response; json joke; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "https://official-joke-api.appspot.com/random_joke"); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &response); res = curl_easy_perform(curl); if(res != CURLE_OK) { std::cerr << "curl_easy_perform() failed: " << curl_easy_strerror(res) << std::endl; curl_easy_cleanup(curl); return joke; } curl_easy_cleanup(curl); } joke = json::parse(response); return joke; }
there's a HTTP class and it can give you back a JSON object
Avatar
Avatar
heinrich5991
there's a HTTP class and it can give you back a JSON object
oh oh, ah yes maybe the one to get the servers?
Avatar
on that object you can then say Response["setup"] to get the one string, and Response["punchline"] for the other one
14:56
yes
Avatar
ChillerDragon BOT 2023-05-10 14:56:26Z
idk ryo seems like a random list of names to me
14:56
where is everyone else
Avatar
e.g. search for the string "https://info.ddnet.org/info" in the source code
Avatar
Avatar
heinrich5991
on that object you can then say Response["setup"] to get the one string, and Response["punchline"] for the other one
#include <engine/shared/http.h> that?
Avatar
ChillerDragon BOT 2023-05-10 14:57:26Z
I also made a lot of commits under my 2nd email dennis@felsin9.de can you merge the stats for ddnet please so they get counted for my ChillerDragon name
Avatar
chiller its commits from that time
14:58
only whoever made commits appears
14:58
check the right side for filters
Avatar
ChillerDragon BOT 2023-05-10 14:58:24Z
thats not a lot
14:58
i expected it to be more contributors
Avatar
its robyt carrying
Avatar
Avatar
Ryozuki
@Learath2 u there
I'm aimlessly walking outside in hopes of unlearning C++. What did you need?
Avatar
i wanna get back to dev in ddnet but hard with life
14:59
@Learath2 wanted to know if u also want ur old messed mails mapped to ur new
14:59
so contribs are counted nice
14:59
(i did so in pr already tho)
Avatar
Avatar
GitHub
Click to see attachment 🖼️
.
Avatar
ChillerDragon BOT 2023-05-10 14:59:43Z
lerato is such a mood xd
Avatar
also u troll cuz u use Learath instead of Learath2
Avatar
ChillerDragon BOT 2023-05-10 15:00:02Z
xd
Avatar
are u trying to fake the first learath?
15:00
justatest
Avatar
ChillerDragon BOT 2023-05-10 15:00:30Z
Nick B
15:00
Learath has 7 repositories available. Follow their code on GitHub.
15:00
the one and only og Learath
Avatar
well he uses C
Avatar
Maybe gimme my 2 in the mailmap?
Avatar
wdym by this
Avatar
Didn't you map all of them to just Learath?
Avatar
in the pr i mapped ur old name/emails to the name/email with most contribs
15:01
which is the first in the pr
15:02
well its the left side xd
Avatar
ChillerDragon BOT 2023-05-10 15:02:15Z
where is the social media aspect of cgit
15:02
no comments, likes, subsribes?
Avatar
there isnt
15:02
old git was through email
15:02
u send a email patch
Avatar
ChillerDragon BOT 2023-05-10 15:02:45Z
so i send mail with emotes
15:02
if i like the code
Avatar
Oh, so I did most my commits with just Learath? That's sadge
Avatar
ChillerDragon BOT 2023-05-10 15:03:22Z
ryo then u need a public mailing list with archive etc like the kernel
Avatar
I forgot my own 2 😭
Avatar
ChillerDragon BOT 2023-05-10 15:03:34Z
nob
Avatar
i can remap to Learath2
15:03
if u want
15:04
u can check with git shortlog -sne | rg -i "(learath)"
Avatar
ChillerDragon BOT 2023-05-10 15:04:29Z
No such command rg did you mean grep written in C?
Avatar
Also btw deen was consistent enough that he doesnt need any mapped? Wow
Avatar
ripgrep
15:04
rust grep
Avatar
ChillerDragon BOT 2023-05-10 15:04:43Z
!rust grep
Avatar
chillerbot BOT 2023-05-10 15:04:44Z
@Ryozuki
Avatar
Avatar
kio
#include <engine/shared/http.h> that?
ye
Avatar
deen also needs mapping
15:04
xd
Avatar
Avatar
heinrich5991
ye
you know what i nees from mingw?
Avatar
Avatar
Ryozuki
deen also needs mapping
I only need mapping because github used my other email 😭
Avatar
Avatar
kio
bruh 😦
because i thing that this error become from a bad installation
Avatar
ok force pushed
Avatar
Avatar
kio
because i thing that this error become from a bad installation
are these compiler errors or IDE errors?
Avatar
wait maybe he wants the name and not def
Avatar
need to ask
Avatar
how to find most recent commit of someone
Avatar
Avatar
heinrich5991
are these compiler errors or IDE errors?
compiler
Avatar
why does it say "squiggles disabled for this translation unit"?
15:09
that sounds like some IDE stuff
Avatar
poor vs code
Avatar
ok he is using his full name lately
15:10
ill change
Avatar
idk after the compile it gave that
Avatar
can you give us the start of the "output" tab instead?
15:11
it'd also be nice if you could paste the text as text instead of images
Avatar
Avatar
heinrich5991
it'd also be nice if you could paste the text as text instead of images
oh xd
15:12
wait
Avatar
Avatar
Ryozuki
ok force pushed
Learath → Learath2 maybe?
Avatar
Avatar
heinrich5991
Learath → Learath2 maybe?
@Learath2 ?
15:13
well i changed it
15:13
probs yes
15:13
xd
Avatar
Avatar
kio
Click to see attachment 🖼️
[build] In file included from D:\Projects\KeHub\src\engine\gfx\image_manipulation.cpp:2:0: [build] D:/Projects/KeHub/src/base/math.h:10:12: error: 'std::clamp' has not been declared [build] using std::clamp; [build] ^~~~~
15:14
this looks bad
15:14
std
15:14
mhhh
15:14
default library missing?
Avatar
ChillerDragon BOT 2023-05-10 15:14:34Z
uhm could i request the deletion of a rank? xd
Avatar
@Patiga do u want ur emails remapped
Avatar
ChillerDragon BOT 2023-05-10 15:14:57Z
rus server Multeasymap name ChillerDragon tim1 15min pls delete ._.
Avatar
maybe you compile with an old standard?
Avatar
Avatar
kio
default library missing?
i just reset the pc and downloaded the latest version theoretically
Avatar
Avatar
Ryozuki
@Patiga do u want ur emails remapped
are we rewriting the history? o.o
15:16
this doesnt rewrite the history
Avatar
huh, interesting
Avatar
it tells all git commands to replace old emails with this when displaying
15:16
and github shows proper contribs
Avatar
could you write me which email addresses of me are in there?
Avatar
u got a old gmail probs
15:16
ye
15:17
its common for ppl to mess their mails
15:17
xd
Avatar
ChillerDragon BOT 2023-05-10 15:18:17Z
@heinrich5991 can u drop some ddnet tables for me? :D
Avatar
who made the discord sdk integration?
Avatar
ChillerDragon BOT 2023-05-10 15:18:24Z
it would be amazing if this was deleted
Avatar
@Ryozuki was it you? or @heinrich5991 ?
Avatar
@heinrich5991 wtf last gcc version is 11
15:19
im using 6.3.0
15:19
😦
Avatar
Avatar
Jupstar ✪
@Ryozuki was it you? or @heinrich5991 ?
i think i started it (?) but heinrich finished it
15:19
or idk tbh
15:19
something along these lines maybe
Avatar
ok, do we do smth special with the sdk?
15:19
like what control do we have
15:19
can we prevent discord from hooking into our game?
Avatar
Seems no amount of sunlight and grass touching will delete a decade of using C++11
15:20
ok pushed
15:20
pr is ready i guess
Avatar
ChillerDragon BOT 2023-05-10 15:21:58Z
delete the row
15:22
please :)
Avatar
rowid is a sqlite thing btw
Avatar
ChillerDragon BOT 2023-05-10 15:23:01Z
o
15:23
its using sqlite?
Avatar
the web ye
15:23
importing mysql is too slow
Avatar
ChillerDragon BOT 2023-05-10 15:23:18Z
so requesting deletion of that id deleted another id? xd
15:23
what a trap
Avatar
Avatar
Jupstar ✪
can we prevent discord from hooking into our game?
That part is separate, gamesdk doesn't do much in that aspect
Avatar
why can discord even do that so easily xd
Avatar
it hooks into random processes
Avatar
All overlays do it
Avatar
just like teamspeak3's overwolf etc.
Avatar
ChillerDragon BOT 2023-05-10 15:24:16Z
spyware
Avatar
or steam's overlay
Avatar
steam overlay is atleast stable xD
Avatar
ChillerDragon BOT 2023-05-10 15:24:35Z
is it possible to request ranks for deletion even?
Avatar
not really, ChillerDragon
Avatar
discord had like 2 bugs now already
Avatar
ChillerDragon BOT 2023-05-10 15:24:47Z
:(
15:24
i was told milk did that
Avatar
Discord one is pretty stable too, it seems it's opengl drivers that are unstable
Avatar
ChillerDragon BOT 2023-05-10 15:25:04Z
they say in old legends
Avatar
Avatar
Jupstar ✪
steam overlay is atleast stable xD
we can basically only ask the players to disable discord integration if it crashes for them
Avatar
i assume no dev here except robyte has nvidia and windows?
Avatar
ChillerDragon BOT 2023-05-10 15:25:31Z
i got nvidia
Avatar
i got windows dualboot
Avatar
I have nvidia and can boot into windows
Avatar
ChillerDragon BOT 2023-05-10 15:25:42Z
but would u?
Avatar
but u wont force me to use it!
Avatar
i'd like to know if it happens for any dev too
15:25
the crashes lately in #bugs
Avatar
Never had a crash with discord and ddnet fwiw
Avatar
they all on latest nvidia driver
Avatar
ChillerDragon BOT 2023-05-10 15:26:04Z
i dont feel like waiting 10min for windows to boot
Avatar
they just need to upgrade to a 4090
Avatar
I can try tonight
Avatar
Avatar
Ryozuki
they just need to upgrade to a 4090
that's true yes xdd
Avatar
ChillerDragon BOT 2023-05-10 15:26:47Z
cmn its a 15min rank on multimap
15:26
just wipe it .-.
15:27
it doesnt have any side effects does it?
Avatar
it does
15:27
others asking for the same
15:27
cant prove u are u
Avatar
ChillerDragon BOT 2023-05-10 15:27:51Z
its a 15min rank on multimap on the name ChillerDragon
15:27
nobody will miss it
Avatar
but ryo is right
Avatar
ChillerDragon BOT 2023-05-10 15:28:16Z
yes he is
Avatar
i know its cuz i use rust (joke dont kill me)
15:30
oh deen merged the pr
15:30
pog
Avatar
ChillerDragon BOT 2023-05-10 15:30:33Z
@deen do you feel comfortable deleting a rank for me? :)
15:31
github actions failing randomly
Avatar
why do you want to have it removed?
Avatar
cuz github is stable
Avatar
ChillerDragon BOT 2023-05-10 15:32:00Z
@heinrich5991 it blocks the next slower rank which i would prefer to show in the scoreboard because it has blaze it 420 in it
Avatar
meh, let's not do this
15:32
then some troll will finish with a shorter time to annoy you
Avatar
ChillerDragon BOT 2023-05-10 15:32:47Z
._.
Avatar
and then it's work for us again
Avatar
ChillerDragon BOT 2023-05-10 15:32:59Z
yes
15:33
but it didnt happen in forever
15:33
and nobody knows
Avatar
chiller finish the map in 4:20
Avatar
ChillerDragon BOT 2023-05-10 15:33:19Z
omg ryo xd
15:33
do i look like pro
15:33
u only afk
Avatar
ChillerDragon BOT 2023-05-10 15:33:47Z
xd
Avatar
the mailmap is totally not a plot from me to get into top #9 contribs
15:35
my rightful place
Avatar
ChillerDragon BOT 2023-05-10 15:35:50Z
veri sad
Avatar
top 8 achtually
Avatar
@heinrich5991 i reinstalled the compiler now is the last version but before i installed also rust and visual studio code appear xd
Avatar
Avatar
Ryozuki
the mailmap is totally not a plot from me to get into top #9 contribs
but will it even help for github stat page
15:38
i think it is smart enough
Avatar
it will
15:38
i have 100 commits not counted rn
15:40
it would count the other emails if i still had them associated
15:40
in the gh acc
Avatar
Avatar
kio
@heinrich5991 i reinstalled the compiler now is the last version but before i installed also rust and visual studio code appear xd
I don't understand the question
15:42
15:43
i changed the settings.json of vscode but this dump use the old conf
Avatar
I have little experience with visual studio code 😦
15:47
have you tried visual studio? ^^
15:47
you seem to have it installed
Avatar
Avatar
kio
Click to see attachment 🖼️
just remove all .vscode dirs
15:49
remove all cache
15:49
u dont need them
15:49
open vscode workspace in other/vscode
Avatar
Avatar
heinrich5991
have you tried visual studio? ^^
i don't feel it
Avatar
Avatar
Jupstar ✪
open vscode workspace in other/vscode
?
Avatar
Avatar
kio
?
in ddnet source
15:50
there is other/vscode
15:51
ok done
Avatar
Avatar
Jupstar ✪
there is other/vscode
now?
15:52
Avatar
Avatar
kio
now?
select mingw as kit
15:53
gcc
Avatar
i code in vs code and compile in just vs (edited)
Avatar
dont use that one
15:53
use gcc 12
15:53
the other requires u to install all stuff from README
Avatar
Avatar
Jupstar ✪
use gcc 12
me too no?
Avatar
Avatar
kio
me too no?
15:54
click this and select gcc12
Avatar
Avatar
kio
Click to see attachment 🖼️
i selected this 12
Avatar
Avatar
kio
Click to see attachment 🖼️
and this appeared
Avatar
then open msys2 shell and do pacman -S ninja-build
15:55
u also dont have make installed apparently
15:55
so install either of them
Avatar
Avatar
Jupstar ✪
then open msys2 shell and do pacman -S ninja-build
not found
Avatar
then only ninja
Avatar
Avatar
Jupstar ✪
u also dont have make installed apparently
Avatar
i have a video on my yt channel i regret
15:56
i had my time i thought go was good
Avatar
Avatar
kio
Click to see attachment 🖼️
cmake != make
Avatar
Here is the list I came up with when compiling ddnet
Avatar
Avatar
Jupstar ✪
cmake != make
a
Avatar
With ucrt64 that is, didn't try the other toolkits
Avatar
Avatar
kio
not found
mingw64 shell
Avatar
74d8661 add git mailmap, mapping same author email/names to the prefered/most used name - edg-l 33970e7 Merge #6576 - bors[bot]
Avatar
only ninja
15:57
--build
15:57
xd
Avatar
was mb
15:57
if that also doesnt work mingw-w64-ninja
Avatar
You are not in the directory either
Avatar
pacman -S ninja resolving dependencies... looking for conflicting packages... Packages (1) ninja-1.11.1-1 Total Download Size: 0.14 MiB Total Installed Size: 0.65 MiB :: Proceed with installation? [Y/n] y :: Retrieving packages... ninja-1.11.1-1-x86_64 147.8 KiB 232 KiB/s 00:01 [###############################] 100% (1/1) checking keys in keyring [###############################] 100% (1/1) checking package integrity [###############################] 100% (1/1) loading package files [###############################] 100% (1/1) checking for file conflicts [###############################] 100% (1/1) checking available disk space [###############################] 100% :: Processing package changes... (1/1) installing ninja [###############################] 100% Optional dependencies for ninja ninja-vim: ninja syntax support for vim ninja-emacs: ninja mode for emacs
Avatar
nice
Avatar
i think thats good xd (edited)
Avatar
now go into vscode again
15:58
press f7
15:59
maybe i know
Avatar
it fails bcs of the cmake generator
15:59
did u remove all custom vscode config that u had before?
15:59
well i dunno
Avatar
Do you have your mingw tools in your path btw?
Avatar
maybe simply restart vscode?
Avatar
It won't work otherwise
Avatar
it finds the compiler
Avatar
Avatar
Jupstar ✪
maybe simply restart vscode?
done
Avatar
Open the terminal in vscode, check where gcc.exe
Avatar
im confuse
16:01
16:01
wtf
Avatar
nice
16:02
why is the mingw even called ucrt?
16:03
wtf
Avatar
Avatar
Jupstar ✪
why is the mingw even called ucrt?
it's the new toolchain
16:03
The differences between the environments is mainly between environment variables, default compilers/linkers, architecture, system libraries used etc.
Avatar
Universal C RunTime
Avatar
vscode reponend [variant] Loaded new set of variants [kit] Successfully loaded 5 kits from C:\Users\kio\AppData\Local\CMakeTools\cmake-tools-kits.json [kit] Successfully loaded 2 kits from d:\Projects\ddnet/other/vscode/ddnet-cmake-tools-kits.json [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --version [proc] Executing command: D:\msys64\ucrt64\bin\gcc.exe -v [proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT [proc] The command: ninja-build --version failed with error: Error: spawn ninja-build ENOENT [proc] The command: make --version failed with error: Error: spawn make ENOENT [cmakefileapi-driver] Removing d:/Projects/ddnet/build/CMakeCache.txt [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found. [main] Configuring project: ddnet [proc] Executing command: D:\msys64\ucrt64\bin\gcc.exe -v [proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT [proc] The command: ninja-build --version failed with error: Error: spawn ninja-build ENOENT [proc] The command: make --version failed with error: Error: spawn make ENOENT [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found. [main] Configuring project: ddnet [proc] Executing command: D:\msys64\ucrt64\bin\gcc.exe -v [proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT [proc] The command: ninja-build --version failed with error: Error: spawn ninja-build ENOENT [proc] The command: make --version failed with error: Error: spawn make ENOENT [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found. [proc] Executing command: D:\msys64\ucrt64\bin\gcc.exe -v [proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT [proc] The command: ninja-build --version failed with error: Error: spawn ninja-build ENOENT [proc] The command: make --version failed with error: Error: spawn make ENOENT [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
Avatar
did they fix the c99 bugs in it?
Avatar
ucrt64 is the one that uses ucrt instead of msvcrt of the olden mingw
Avatar
where do I find the source code?
Avatar
Avatar
kio
vscode reponend [variant] Loaded new set of variants [kit] Successfully loaded 5 kits from C:\Users\kio\AppData\Local\CMakeTools\cmake-tools-kits.json [kit] Successfully loaded 2 kits from d:\Projects\ddnet/other/vscode/ddnet-cmake-tools-kits.json [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --version [proc] Executing command: D:\msys64\ucrt64\bin\gcc.exe -v [proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT [proc] The command: ninja-build --version failed with error: Error: spawn ninja-build ENOENT [proc] The command: make --version failed with error: Error: spawn make ENOENT [cmakefileapi-driver] Removing d:/Projects/ddnet/build/CMakeCache.txt [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found. [main] Configuring project: ddnet [proc] Executing command: D:\msys64\ucrt64\bin\gcc.exe -v [proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT [proc] The command: ninja-build --version failed with error: Error: spawn ninja-build ENOENT [proc] The command: make --version failed with error: Error: spawn make ENOENT [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found. [main] Configuring project: ddnet [proc] Executing command: D:\msys64\ucrt64\bin\gcc.exe -v [proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT [proc] The command: ninja-build --version failed with error: Error: spawn ninja-build ENOENT [proc] The command: make --version failed with error: Error: spawn make ENOENT [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found. [proc] Executing command: D:\msys64\ucrt64\bin\gcc.exe -v [proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT [proc] The command: ninja-build --version failed with error: Error: spawn ninja-build ENOENT [proc] The command: make --version failed with error: Error: spawn make ENOENT [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
dunno try pacman -S mingw-w64-ucrt-x86_64-ninja
16:04
in the shell
Avatar
Avatar
Jupstar ✪
in the shell
which
Avatar
Avatar
kio
which
mingw shell
Avatar
now try again xd
Avatar
Avatar
Learath2
ucrt64 is the one that uses ucrt instead of msvcrt of the olden mingw
that explains why @Chairn on dead win7 had the bugs with printf
16:05
while on win10 they were gone
Avatar
bcs ucrt is shipped with win10
Avatar
Avatar
heinrich5991
where do I find the source code?
HTTPS Teeworlds master server implemented in Go. Contribute to edg-l/teeworlds-master-server development by creating an account on GitHub.
Avatar
Avatar
kio
Click to see attachment 🖼️
Can you check your Path?
Avatar
i dont use go anymore
Avatar
just unisntall mingw and try again xddd it was so ez for me
16:07
u probs disabled some option
16:07
that said install mingw in PATH or smth
Avatar
idk now something worked
16:10
but
16:10
no ddnet.exe generated
Avatar
whats the error
16:10
[build] [2/4 50% :: 0.536] Generating src/game/generated/checksum.cpp [build] [3/4 75% :: 1.280] Building CXX object CMakeFiles/game-client.dir/src/game/generated/checksum.cpp.obj [build] [4/4 100% :: 7.699] Linking CXX executable DDNet.exe [build] FAILED: DDNet.exe [build] cmd.exe /C "cd . && D:\msys64\ucrt64\bin\g++.exe -g -mwindows @CMakeFiles\game-client.rsp -o DDNet.exe -Wl,--out-implib,libDDNet.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ." [build] D:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find debug/libddnet_engine_shared.a: No such file or directory [build] collect2.exe: error: ld returned 1 exit status [build] ninja: build stopped: subcommand failed. [proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --build d:/Projects/KeHub/build --config Debug --target game-client -- exited with code: 1 [driver] Build completed: 00:00:09.865 [build] Build finished with exit code 1
Avatar
thats the rust bridge
Avatar
I smell missing cargo
Avatar
im out again xd
Avatar
i have cargo
Avatar
in the vscode command pallette do cmake delete cache and reconfiguire
16:11
reconfigure*
Avatar
done my love
16:12
waiting
Avatar
@kio are u trying to compile since 2 months already?
Avatar
lmao
16:13
just install linux bro, no more trouble in ur life
16:14
i just switched yesterday xd
Avatar
Avatar
Learath2
in the vscode command pallette do cmake delete cache and reconfiguire
16:14
same i thing
Avatar
[build] [92/202 38% :: 9.840] Generating debug/libddnet_engine_shared.a [build] Finished dev [unoptimized + debuginfo] target(s) in 0.12s
@heinrich5991 any idea?
Avatar
that looks like it was built
Avatar
Seems cargo was invoked and did nothing
Avatar
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
16:15
that means the build was cached
Avatar
this is ok
Avatar
[build] D:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find debug/libddnet_engine_shared.a: No such file or directory
16:15
At the end though
Avatar
put it in the wrong dir
16:15
very simple xd
Avatar
I guess we'd have to find where it is and where it should be
Avatar
Maybe it built in the wrong place yeah, it's really hard to get this right
Avatar
and why @heinrich5991 didn't manage to get this right
Avatar
bcs windows fault
Avatar
Nah it's vscode bizarre cmake integration
Avatar
nvidias fault
Avatar
vscode cmake in linux works not bad
Avatar
Let me do a quick tutorial I got this working last time
Avatar
nah my life fault
Avatar
also note whether there's something obvious I can improve in the rust integration
Avatar
Avatar
Learath2
Here is the list I came up with when compiling ddnet
Honestly, this is all I needed though, this plus adding ucrt64/bin to the PATH and it just worked
16:18
The only trick I had to do was make rust use the same toolchain as the installed mingw
Avatar
Avatar
heinrich5991
also note whether there's something obvious I can improve in the rust integration
for gentoo distributions i need to list all the exact dep versions (not just the ones in cargo.toml, maybe it would be nice to somehow know em better) i think last time i had to do some grepping in the lockfile
Avatar
installing rust from the mingw shell?
16:19
maybe i got this wrong and i can avoid listing the deps, but idk
Avatar
[target.x86_64-pc-windows-gnu] linker = "C:\\msys2\\mingw64\\bin\\gcc.exe" ar = "C:\\msys2\\mingw64\\bin\\ar.exe"
16:19
I needed to add this but with ucrt64 into my rust config
Avatar
@Ryozuki did u get ur commits
Avatar
WHY IT HAS TO BE SO DIFFICULT, EVERYTHING WAS SO BEAUTIFUL ON ARCH
16:19
sorry caps lmao (edited)
Avatar
Avatar
Jupstar ✪
@Ryozuki did u get ur commits
i think github caches contribs aggressively
Avatar
Avatar
kio
WHY IT HAS TO BE SO DIFFICULT, EVERYTHING WAS SO BEAUTIFUL ON ARCH
Well there is a streamlined way to do this, it is to use visual studio like microsoft begs you to do 😄
Avatar
so not yet
Avatar
Avatar
kio
WHY IT HAS TO BE SO DIFFICULT, EVERYTHING WAS SO BEAUTIFUL ON ARCH
just go in build dir, create debug directory and move the libddnet...a there
16:20
ez fix
16:20
but
16:20
16:21
olny .dll missing i thing
16:21
where the fk can i find that? 😄
Avatar
no .dll are not needed
Avatar
.d is wrong
16:22
it should be .a
Avatar
.d that's bizarre 😄
Avatar
d lang! pog
16:22
wtf is .d!!!!!!!!!!!!!!!!!!!
Avatar
yeah, why the fuck is it .d xD
16:22
never seen it
Avatar
D is a general-purpose programming language with static typing, systems-level access, and C-like syntax.
16:22
D > C
Avatar
but from file size
16:23
i'd say the .rlib are the static libs
16:23
so maybe better rename them
Avatar
rlib are rust intermediate libs
Avatar
so why didnt it create .a out of them
16:23
ryozuki rust pro
16:23
tell me
Avatar
- A "Rust library" file will be produced. This is used as an intermediate artifact and can be thought of as a "static Rust library". These rlib files, unlike staticlib files, are interpreted by the compiler in future linkage. This essentially means that rustc will look for metadata in rlib files like it looks for metadata in dynamic libraries. This form of output is used to produce statically linked executables as well as staticlib outputs.
Avatar
Avatar
Jupstar ✪
so why didnt it create .a out of them
idk
Avatar
so i must kill my self and stop?
Avatar
u don't need to, linux is there to save your day
16:30
if u invested 2 motnhs trying to compile ddnet on windows, u can also invest two months getting linux hacker
16:30
Avatar
Avatar
Jupstar ✪
if u invested 2 motnhs trying to compile ddnet on windows, u can also invest two months getting linux hacker
who says i'm not alreadytrollet
16:32
I just got bored of that life, too much fame
Avatar
xd
Avatar
i reinstalled this shit and also the tutorial say UCRT64
16:35
if its correct i will proced
Avatar
I'm writing up the process of setting up a msys based development environment if you want to wait for that
Avatar
its not your fault bro
16:36
its rust doing weird here
16:36
i doubt its related to mingw
Avatar
Avatar
kio
i reinstalled this shit and also the tutorial say UCRT64
First of all right after install, do pacman -Syyu
16:37
Then do a pacman -S pacboy so you don't have to use these weird ass package names
Avatar
Avatar
Learath2
First of all right after install, do pacman -Syyu
done, installed something and after it closed itself
Avatar
now restart it and do another pacman -Syu
Avatar
here we go again
Avatar
ucrt64, just always use the ucrt64 one
Avatar
Avatar
Learath2
now restart it and do another pacman -Syu
done
Avatar
now pacman -S pacboy
Avatar
Ah I think I know what your issue is btw, your rust is probably installed with the msvc toolchain
16:39
Oh the package is called pactoys not pacboy sorry
Avatar
Avatar
Learath2
Ah I think I know what your issue is btw, your rust is probably installed with the msvc toolchain
Un linguaggio di programmazione che permette a chiunque di realizzare software efficienti e affidabili.
Avatar
Yeah, you need to pick the gnu toolchain so it can generate .a files with gcc and ar
Avatar
Avatar
Learath2
Oh the package is called pactoys not pacboy sorry
and concentrated I wouldn't think about the boys 😉
Avatar
After you install pactoys do pacboy -S gcc:u cmake:u ninja:u glslang:u I think these are all you need to compile ddnet (edited)
Avatar
Avatar
Learath2
After you install pactoys do pacboy -S gcc:u cmake:u ninja:u glslang:u I think these are all you need to compile ddnet (edited)
done
Avatar
Now for a quick check try gcc --version
Avatar
Avatar
kio
Click to see attachment 🖼️
what is in the build dir in the debug dir in the build dir?
Avatar
Avatar
kio
Click to see attachment 🖼️
left in file browser
16:47
show build dir
16:48
in build/debug/build
Avatar
Avatar
kio
Click to see attachment 🖼️
is there a x86_64- dir?
16:48
in build directly
16:49
i must change cmake ?
Avatar
no (edited)
16:50
for some reasons the .a files are missing, invoke the compiler with verbose
16:50
then we'll see where it compiles it to xd
Avatar
You are most definitely still suffering from your rust host triple being wrong
16:50
try a rustup set default-host x86_64-pc-windows-gnu
Avatar
on simple cmd?
Avatar
kio, do ctrl + p type debug/libddnet_engine_shared.a
16:54
or search it in explorer
16:54
it must be somewhere xD
16:54
it said it build it
16:55
build is git ignored so first wont work xd
Avatar
ChillerDragon BOT 2023-05-10 16:58:23Z
why does this repo has more gh stars than i have coins in my bank? https://github.com/dh-orko/Help-me-get-rid-of-unhumans
/* JS */ gapi.loaded0(function(){var window=this; var ha,ia,ja,ma,sa,na,ta,ya,Ja;.ea=function(a){return function(){return .da[a].apply(this,arguments)}};._DumpException=function(a){throw a;};...
Avatar
Avatar
Jupstar ✪
it must be somewhere xD
Not if it's never even built for that host triple...
16:59
How is a msvc rust supposed to even make .a files
Avatar
Avatar
Learath2
Not if it's never even built for that host triple...
but why does cargo say "yo bro, i build *.a" just kidding
Avatar
Avatar
ChillerDragon
why does this repo has more gh stars than i have coins in my bank? https://github.com/dh-orko/Help-me-get-rid-of-unhumans
bcs the bank is virtual money only
Avatar
Avatar
Jupstar ✪
kio, do ctrl + p type debug/libddnet_engine_shared.a
Avatar
yeah dunno
17:12
somehow it works for robyte
Avatar
one time it worked to me
17:13
with some weird poland .json sent there xd
Avatar
Avatar
kio
Click to see attachment 🖼️
what when u search for libddnet without debug/
17:14
Avatar
what client is that even?
17:14
normal ddnet?
17:16
@kio what is selected here for u
Avatar
Avatar
Jupstar ✪
normal ddnet?
yes with some my edit
17:18
Avatar
Avatar
kio
Click to see attachment 🖼️
mh ok, u renamed ddnet to kehub probably? the D: in the project dir is capital while in build its not
17:21
else i dont find anything suspecious
Avatar
Ok, first of all stop guessing, try to compile it in the ucrt64 terminal, before involving vscodes sketchy cmake plugin
17:21
if it doesn't compile in ucrt64 there is no need to butt your head against vscode
Avatar
Avatar
Jupstar ✪
mh ok, u renamed ddnet to kehub probably? the D: in the project dir is capital while in build its not
until yesterday I was on archlinux with this same project, same name and same files, this asshole simply doesn't compile here
Avatar
xD
Avatar
Avatar
Learath2
Ok, first of all stop guessing, try to compile it in the ucrt64 terminal, before involving vscodes sketchy cmake plugin
which command? 😄
Avatar
In ucrt64 navigate to your project directory
Avatar
mkdir build2 -> cd build2 -> cmake -GNinja ..
17:25
mh
17:25
mhhh
Avatar
But why do you say ok if you didn't manage to get there? 😄
17:25
Where is it? On your desktop?
Avatar
drag the project there or
Avatar
Avatar
Learath2
But why do you say ok if you didn't manage to get there? 😄
idk that it created a linux like path (edited)
Avatar
In msys your C: is mounted at /c/
Avatar
he uses d tho xd
17:27
but cant u cd with " on global paths
Avatar
im in the folder
Avatar
cd "C:.."
Avatar
Avatar
Learath2
mkdir build2 -> cd build2 -> cmake -GNinja ..
^
17:28
oh yes
17:28
sorry
Avatar
You are missing the .. at the end 😄
Avatar
yes yes xd
17:29
Avatar
wtf xD
17:29
You must install Rust and Cargo to compile DDNet
Avatar
Stop wait
17:30
You have cargo, you just don't have it in your path
Avatar
use rustup
Avatar
echo '$(cygpath -u $USERPROFILE)/.cargo/bin:${PATH}' >> $HOME/.bash_profile do this restart your ucrt64
Avatar
lmao
17:30
done
Avatar
Now try cargo --version
Avatar
-bash: /c/Users/kio/.cargo/bin:/ucrt64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl: No such file or directory
Avatar
at the start up of the shell
Avatar
Okay maybe you don't have cargo and jupstar is right
Avatar
Avatar
Learath2
Now try cargo --version
not found
Avatar
do you know how to use nano?
17:31
the text editor right?
Avatar
okay, do nano $HOME/.bash_profile remove that cargo line at the very bottom
Avatar
last line?
17:32
remove?
Avatar
/c/Users/kio/.cargo/bin:
17:33
done and saved
Avatar
but how did you install rust, did you not get rustup-init.exe?
17:34
Can you open a normal cmd and do echo %PATH%?
17:34
Lets see where it is
Avatar
no io ho installato dal sito che ho mandato rustup-init.exe
Avatar
I do speak some italian but my italian is fairly weak 😄
Avatar
i learned latin
Avatar
oh shit brain bug xd
Avatar
and can read nothing
Avatar
yes yes wait xd
17:35
no I installed from the site I sent rustup-init.exe
Avatar
Okay, if you installed with rustup it really should have created the cargo dir, can you check the path in cmd as I said?
17:35
Let's see where cargo is
17:36
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;D:\msys64\ucrt64\bin;C:\Users\kio.cargo\bin;C:\Users\kio\AppData\Local\Microsoft\WindowsApps;;E:\Microsoft VS Code\bin
17:36
Avatar
ez troll
Avatar
okay now I'm confused
17:37
AHAH
17:37
next step: I reset the pc and restart with the installation of everything to be able to compile ddnet HAHAHA
Avatar
Avatar
Learath2
echo '$(cygpath -u $USERPROFILE)/.cargo/bin:${PATH}' >> $HOME/.bash_profile do this restart your ucrt64
Like this is the exact command I used, and it seems to have added the correct thing, why was bash having an issue with it?
17:38
open up ucrt64 again, just try echo '$(cygpath -u $USERPROFILE)/.cargo/bin:${PATH}'
Avatar
The wrong kind of quotes
Avatar
xd
17:39
bash hardest lang
Avatar
echo "$(cygpath -u $USERPROFILE)/.cargo/bin:${PATH}"
17:39
try this
Avatar
kio@Revision-PC UCRT64 ~ $ echo "$(cygpath -u $USERPROFILE)/.cargo/bin:${PATH}" /c/Users/kio/.cargo/bin:/ucrt64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
Avatar
Actually that isn't what I wanted at all nvm correct kind of quotes
17:40
Here is what mine looks like
Avatar
but shouldnt the shell respect windows path anyway?
Avatar
Can you just add that by hand? I'm sure my bash-fu is just rusty
Avatar
Avatar
Jupstar ✪
but shouldnt the shell respect windows path anyway?
No, it won't inherit path unless you explicitly force it to
Avatar
Avatar
Learath2
No, it won't inherit path unless you explicitly force it to
ok
17:41
bcs vscode apparently found cargo and rust xd
Avatar
Avatar
Jupstar ✪
bcs vscode apparently found cargo and rust xd
Vscode uses windows path
17:41
not ucrt64 path
Avatar
yeah
17:41
i just mean, what do u hope from this xd
17:42
do u think vscode makes cargo broken?
Avatar
i mean its windows, anything is possible xd
17:42
how the fuck do they all have same size
17:42
is it all the same binary? XD
17:42
my life is broken
Avatar
Avatar
Jupstar ✪
i just mean, what do u hope from this xd
I like to work in a systematic manner, lets just make sure everything compiles on the terminal as it should before we involve however vscode invokes cmake
Avatar
Avatar
Learath2
Here is what mine looks like
@kio do this to your bash profile
17:45
At the very bottom add the line I have there
17:45
Oh I found what's wrong with my echo anyway echo 'PATH=$(cygpath -u $USERPROFILE)/.cargo/bin:${PATH}' >> $HOME/.bash_profile forgot the PATH=
Avatar
Avatar
Learath2
Oh I found what's wrong with my echo anyway echo 'PATH=$(cygpath -u $USERPROFILE)/.cargo/bin:${PATH}' >> $HOME/.bash_profile forgot the PATH=
ses
Avatar
Anyway, now restart ucrt64, try the cargo --version again
17:48
cargo 1.69.9
Avatar
good, now get back to that build2 folder we created
17:48
xd
Avatar
I would delete everything in there and do cmake again
Avatar
rm -rf *; cmake -GNinja ..
Avatar
already done
17:49
compiling
17:49
@Learath2 or @Jupstar ✪ you are linux users? (edited)
Avatar
we are linux enjoyers
17:50
but newbie
Avatar
I pretty much only boot windows to play genshin, honkai and league
17:50
same but different games
17:50
dualboot was boring
Avatar
Avatar
Learath2
rm -rf *; cmake -GNinja ..
Avatar
Okay looks about sane to me, now try ninja game-client
Avatar
Hello, Is DDNet compile process fine with windows and MYSQL ?
Avatar
Avatar
Vexar
Hello, Is DDNet compile process fine with windows and MYSQL ?
I don't think anyone compiled on windows with mysql in years, I'd be surprised if it worked
Avatar
Avatar
Vexar
Hello, Is DDNet compile process fine with windows and MYSQL ?
if u willing to spent 2 months yes
Avatar
Severity Code Description Project File Line Suppression State Severity Code Description Project File Line Suppression State Error (active) E0020 identifier "SOCKET" is undefined game-server C:\Program Files\mysql\include\mysql_com.h 333 Error C3646 'fd': unknown override specifier (compiling source file \src\engine\server\databases\mysql.cpp) game-server C:\Program Files\mysql\include\mysql_com.h 333
Avatar
yep we have some issues with windows and mysql
17:53
I got restart my pc and use linux like always 😄
Avatar
Okay, now we can test stuff without worrying about vscode
Avatar
sound sexy
Avatar
do rustup show
Avatar
$ rustup show Default host: x86_64-pc-windows-gnu rustup home: C:\Users\kio.rustup stable-x86_64-pc-windows-msvc (default) rustc 1.69.0 (84c898d65 2023-04-16)
Avatar
rustup toolchain install stable-x86_64-pc-windows-gnu (edited)
Avatar
if you build without msvc, you need rust-gnu or something like that
Avatar
mystery solved, gg learath
17:57
1 second before chairn
Avatar
I assumed changing the default toolchain will also install the new one, but apparently not
17:58
As always, I'd delete the entire build directory before trying again, cmake cache is bizarre
17:58
I would also do echo "[target.x86_64-pc-windows-gnu]#linker = \"$(cygpath -w $(which gcc))\"#ar = \"$(cygpath -w $(which ar))\"" | tr '#' '\n' | sed 's/\\/\\\\/g' > $(cygpath -u $USERPROFILE)/.cargo/config
17:59
That makes sure rust uses the same linker we use
17:59
Excuse the bad bash-fu with the # but I honestly have no idea how to properly quote that for a echo -e
18:00
I just noticed this is the same problem I was having a couple weeks ago when I asked the bashdragon for help
Avatar
Avatar
Learath2
As always, I'd delete the entire build directory before trying again, cmake cache is bizarre
Okay, now try this again
18:02
cross fingers, hope for best
Avatar
you also need cargo_home environment variable from my findings
18:03
using these 2, it worked fine for me
Avatar
Please get not distracted. I just did the exact same steps you did on a VM and it works
18:04
Go to build2, give it a go
Avatar
Avatar
Learath2
Go to build2, give it a go
?
Avatar
Avatar
Learath2
rm -rf *; cmake -GNinja ..
This followed by another ninja game-client
18:06
If it doesn't work you are cursed
18:06
waiting ninja game-client
18:07
18:07
ok
Avatar
did u set the toolchain as default
18:08
or is that not important
Avatar
we'd already set it as the default
Avatar
Ok, I'm out of ideas boss, no idea why it's still creating .d files
Avatar
on linux it creates them too
18:10
but the .a too
18:10
disable windows defender
18:10
lamo
18:10
im using reviOS
18:10
no windows defender
Avatar
Can you show rustup show again?
Avatar
in the shell?
Avatar
Okay I guess you need to switch it explicitly too wtf
Avatar
oh u still with this
18:12
windows truly is wonderful
Avatar
rustup default stable-gnu or sth idk
18:12
try that then try show again
Avatar
and when it finally built, murpi comes and tells us he builds bot clients 😂 😂 😂 😂
Avatar
Avatar
Ryozuki
windows truly is wonderful
:((((
Avatar
Avatar
Jupstar ✪
and when it finally built, murpi comes and tells us he builds bot clients 😂 😂 😂 😂
AHHAHAHAAHAHHAHA
18:13
no no xd
Avatar
still not working or what
Avatar
Avatar
kio
Click to see attachment 🖼️
this must have solvd it xdd
Avatar
now he's developing bots
Avatar
Avatar
Chairn
now he's developing bots
yes poggers2 gigachad
18:35
Can I marry u?
Avatar
ChillerDragon BOT 2023-05-10 18:35:19Z
no he mine
Avatar
learath searches for girls
18:35
but else he is open for it
Avatar
Avatar
ChillerDragon
no he mine
Bruhhhh don't joke
Avatar
Avatar
Jupstar ✪
learath searches for girls
Can I become a famboy
Avatar
whatd i miss
Avatar
That I became gay I think
19:07
are you going to but programming socks now
kekw 1
Avatar

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [X] Considered possible null pointers and out of bounds array indexing
  • [X] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addres...
19:15
After restarting the client from within the client itself (via auto-updater or restart command added in #6577), the game window is entirely missing with
  • Fullscreen mode: Windowed or Windowed Fullscreen
  • Backend: Vulkan
  • OS: Windows 10 64 bit
A window opens in the background when restarting, but if you activate it then you just see your desktop in the background and you need to press Ctrl+C to close the client.
Avatar
Avatar
Ryozuki
for gentoo distributions i need to list all the exact dep versions (not just the ones in cargo.toml, maybe it would be nice to somehow know em better) i think last time i had to do some grepping in the lockfile
the rust file contains the exact versions, right? is there a way to generate it from that?
Avatar
[MIRROR] cargo extension that can generate ebuilds using the in-tree eclasses - GitHub - gentoo/cargo-ebuild: [MIRROR] cargo extension that can generate ebuilds using the in-tree eclasses
19:37
this exists
19:38
but since its not 100% pure rust
19:38
i cant use it as is
19:38
oh wait
19:38
there is a Templates
19:38
i should look into that xd
Avatar
Hi guys I think the editor crashes if you build latest ddnet with MSVC
Avatar
Avatar
Tater
Hi guys I think the editor crashes if you build latest ddnet with MSVC
you asking because of tater?
Avatar
Avatar
Tater
Hi guys I think the editor crashes if you build latest ddnet with MSVC
do you have a crash log?
Avatar
Avatar
Robyt3
do you have a crash log?
second
Avatar
Avatar
Robyt3
do you have a crash log?
19:53
the issue probably at 4910 in editor.cpp
Avatar
I've see that error screenshot before, not sure what's causing this
19:54
It's the code for showing the modified date of the files in the file browser
19:55
I'll try if I can reproduce it
Avatar
it happens consistently
19:55
but not on GCC
Avatar
Can't reproduce it right now, somehow my VS broke from updating MSYS2 or something
Avatar
is there a master server history? which server was online and which players etc? i think i saw a git somewhere with this informations
Avatar
Avatar
Daniel
is there a master server history? which server was online and which players etc? i think i saw a git somewhere with this informations
whooo 1
❤️ 1
20:29
Be careful, those files are MASSIVE
20:29
https://edgarluque.com/blog/zstd-streaming-in-rust/ you want to parse them streaming if at all possible like here
Sometimes you need a bit of a stream.
Avatar
this edg-l is such a smart ass guy
20:31
we should hire him
Avatar
We can pay him a very fair wage of 0$
Avatar
great
Avatar
Avatar
Learath2
We can pay him a very fair wage of 0$
you forgot to account for the inflation though, there's a +20% bonus on that, so it's a grand total of 0€ !!
Avatar
0 * infinity = NaN
Avatar
Why infinity?
20:41
It's just 0 * 1.2 = 0 😄
Avatar
we give him infinite wage of 0€
Avatar
jupstar trying to break accountability software
Avatar
Avatar
Learath2
Be careful, those files are MASSIVE
barely 11G for one file, that's a nice almost x1000 compression factor
Avatar
Avatar
Chairn
barely 11G for one file, that's a nice almost x1000 compression factor
If you aren't careful and decompress everything you won't have much fun 😄
Avatar
have you thought of using a different format?
20:45
like you could just store when a player appears and when he disappears
20:45
no need for all that extra useless stuff in between
Avatar
Well we could, but then again, this isn't too bad compressed either and doesn't require a contextful parser
Avatar
trolls
Avatar
Avatar
Chairn
no need for all that extra useless stuff in between
that's kinda what compression does 😉
21:09
the compression factor got like 10x better when I told deen to sort the files before compressing them ^^
Avatar
i wonder if it can get even more optimized
Avatar
Avatar
Daniel
is there a master server history? which server was online and which players etc? i think i saw a git somewhere with this informations
if u know rust
21:13
check this
21:13
Command line tool to parse and analyze data from https://ddnet.tw/stats/master/ - GitHub - edg-l/teemasterparser: Command line tool to parse and analyze data from https://ddnet.tw/stats/master/
Avatar
Avatar
Voxel
i wonder if it can get even more optimized
Most likely yes, u just need to find some better pattern
Avatar
Avatar
Ryozuki
if u know rust
thanks... yea i try my best to write code in rust 😄 its more that i search players and players with specific clantags
Avatar
The real gem in that post is this reference https://raytracing.github.io/
22:44
but the rest is bizarre too, overall I rate this post 7/10
22:45
fairly interesting
Avatar
d9307ca Use FileExists/fs_is_file instead of opening file - Robyt3 cda3575 Quit client when existing config file cannot be loaded - Robyt3 aced53c Uninitialize entire client before restarting - Robyt3 95b0f8c Add restart command to client - Robyt3 c8b69dd Properly uninitialize all client components - Robyt3 21410e5 Merge #6577 - bors[bot]
Exported 889 message(s)