Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2024-08-09 00:00 and 2024-08-10 00:00
Avatar
GitHub BOT 2024-08-09 01:45
243ebe1 connect-to: .tw -> .org - murpii
Avatar
rip ddnet.tw
Avatar
Avatar
GitHub
Click to see attachment 🖼️
@meloƞ kek
Avatar
Is there a entity limit in demos?
02:17
Could I have 5000 players in a demo?
02:41
godot's way of checking whether a resource is imported is just checking whether a .import exists. that seems unreliable to me
02:41
justatest
Avatar
Avatar
MilkeeyCat
is there a name for char in type char***?
C99 standard uses "referenced type" for one layer below. I don't know if they have a name for the lowest layer
Avatar
msvc is stupid
Avatar
cheeser0613 2024-08-09 03:02
weird question but im gonna ask anyway, do ddnet master server no longer support old client?
03:02
oh wait i saw the problem, .tw (edited)
Avatar
cheeser0613 2024-08-09 03:06
new question, where is the file location that i need to change it
Avatar
Help: Severity Code Description Project File Line Suppression State Error C1083 Cannot open include file: 'vulkan/vk_platform.h': No such file or directory game-client C:\Users\---\Documents\GitHub\ddnet\src\engine\client\backend\vulkan\backend_vulkan.cpp 39
Avatar
change what
Avatar
Avatar
cheeser0613
weird question but im gonna ask anyway, do ddnet master server no longer support old client?
ddnet.tw is temporarily down
Avatar
Avatar
murpi
Help: Severity Code Description Project File Line Suppression State Error C1083 Cannot open include file: 'vulkan/vk_platform.h': No such file or directory game-client C:\Users\---\Documents\GitHub\ddnet\src\engine\client\backend\vulkan\backend_vulkan.cpp 39
what platform/build env?
03:07
MSVC?
Avatar
Avatar
Ewan
what platform/build env?
Latest master, on windows11 using MSVC
Avatar
how did you get the vulkan SDK
Avatar
I didn't get anything, I'm trying to build from scratch
Avatar
-DVULKAN=off to disable it
03:08
to build w vulkan tho u need the sdk
Avatar
Avatar
Ewan
-DVULKAN=off to disable it
u use this when generating makefiles. in practice this would look like adding it to ur first cmake command, the cmake GUI, or the cmake project properties GUI in Visual Studio
03:10
idk how you're building tho
Avatar
I'm trying to git bisect to track down an issue, but building from scratch seems to not work. -DVULKAN=off option should be off by default then if it's not necessary
03:16
it's a sane default. you generally want vulkan
03:19
it's also not the only optional feature, certainly not the only one which requires an extra dependency. the demo renderer requires ffmpeg
03:19
u should look at the build instructions and see what else u don't want
03:20
btw if u check out the ddnet libs submodule i think you should be able to build w vulkan
Avatar
Avatar
Ewan
change what
cheeser0613 2024-08-09 03:29
old client are keep looking server info from ddnet.tw and i need to change it to ddnet.org, but i have no idea where is the file
Avatar
Avatar
cheeser0613
old client are keep looking server info from ddnet.tw and i need to change it to ddnet.org, but i have no idea where is the file
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
Avatar
cheeser0613 2024-08-09 03:34
ah, then i think it was no longer support old client
03:35
ddnet.tw is down rn
justatest 1
03:36
what would u change it to anyway
Avatar
Avatar
cheeser0613
ah, then i think it was no longer support old client
It's just temporarily down, should be back up whenever deen is back online (hopefully) (edited)
justatest 1
Avatar
cheeser0613 2024-08-09 03:36
oh ok
Avatar
Avatar
Ewan
what would u change it to anyway
to .org instead, then he can continue to play on his old version, with a working server browser list
Avatar
oh yea makes sense lol
Avatar
GitHub BOT 2024-08-09 03:49
The hook collision line is not shown regardless of whether cl_show_hook_coll_own 2 and cl_show_hook_coll_other 2 is set. Git bisect: `` 7da8308c3fe24e546bc185463da8ef3a66c6b7a7 is the first bad commit commit 7da8308c3fe24e546bc185463da8ef3a66c6b7a7 Author: Robert Müller Date: Mon May 20 10:57:24 2024 +0200 Remove cl_ddrace_scoreboard and cl_demo_assume_race settings Time score will now always be used for any game with the flag GAMEINFOFLAG_TIMESCORE` set in ...
Avatar
ws-client BOT 2024-08-09 06:07
<ChillerDragon> @Teero i know basically nothing about demos but they use snaps and snaps have limits. So i am pretty sure 5000 players in a demo will not work.
06:08
<ChillerDragon> especially not 5000 players moving at the same time in the view port
Avatar
MilkeeyCat 2024-08-09 06:28
Where are C struct field padding rules defined?
06:31
http://www.catb.org/esr/structure-packing/
Storage for the basic C datatypes on a vanilla ISA doesn’t normally start at arbitrary byte addresses in memory. Rather, each type except char has an alignment requirement; chars can start on any byte address, but 2-byte shorts must start on an even address, 4-byte ints or floats must start on an address divisible by 4, and 8-byte longs or doubles must start on an address divisible by 8. Signed or unsigned makes no difference.
I found something
Avatar
Avatar
Teero
Could I have 5000 players in a demo?
heinrich5991 2024-08-09 06:47
if you want to play your demo with the ddnet client, you can only have 64 players in the demo (maybe soon 128 players)
Avatar
heinrich5991 2024-08-09 06:50
that's only the default. you can create a ddnet-serverlist-urls.cfg with the following content to access the new domains: https://master1.ddnet.org/ddnet/15/servers.json https://master2.ddnet.org/ddnet/15/servers.json https://master3.ddnet.org/ddnet/15/servers.json https://master4.ddnet.org/ddnet/15/servers.json
😃 1
Avatar
✨千丨乂卂ㄥ乇🍀 2024-08-09 06:50
oh noo(
Avatar
Avatar
MilkeeyCat
http://www.catb.org/esr/structure-packing/
Storage for the basic C datatypes on a vanilla ISA doesn’t normally start at arbitrary byte addresses in memory. Rather, each type except char has an alignment requirement; chars can start on any byte address, but 2-byte shorts must start on an even address, 4-byte ints or floats must start on an address divisible by 4, and 8-byte longs or doubles must start on an address divisible by 8. Signed or unsigned makes no difference.
I found something
heinrich5991 2024-08-09 06:50
in the calling conventions. each platform and each architecture has their own
pepeW 1
Avatar
Avatar
cheeser0613
weird question but im gonna ask anyway, do ddnet master server no longer support old client?
heinrich5991 2024-08-09 06:51
seems to be back up?
Avatar
ws-client BOT 2024-08-09 06:56
<ChillerDragon> @MilkeeyCat i added a few 8 byte labels to the bss section and plan to use them as general purpose registers xd https://zillyhuhn.com/cs/.1723186538.png
Avatar
Avatar
MilkeeyCat
Where are C struct field padding rules defined?
heinrich5991 2024-08-09 06:56
Avatar
ws-client BOT 2024-08-09 06:56
<ChillerDragon> thats good style is it?
Avatar
heinrich5991 2024-08-09 06:56
probably better to use the stack
Avatar
Avatar
heinrich5991
MilkeeyCat 2024-08-09 06:57
Oh, I saw this document before, I was checking how parameters are passed xd
Avatar
ws-client BOT 2024-08-09 06:57
<ChillerDragon> @heinrich5991 but the stack is more annoying to work with
Avatar
heinrich5991 2024-08-09 06:57
likely faster, works with threads, doesn't get overridden by function calls (edited)
Avatar
MilkeeyCat 2024-08-09 06:58
when I add padding to structs, and make functions calls work, I'll try to make something ddnet related in it xd
Avatar
ws-client BOT 2024-08-09 06:59
<ChillerDragon> can your lang do system calls?
Avatar
MilkeeyCat 2024-08-09 07:00
it would be able to call C functions thonk
Avatar
ws-client BOT 2024-08-09 07:00
<ChillerDragon> nice
Avatar
MilkeeyCat 2024-08-09 07:02
While I was making structs and pointers I completely annihilated my function calls, time to redo it xd
Avatar
lol
greenthing 1
Avatar
Avatar
heinrich5991
that's only the default. you can create a ddnet-serverlist-urls.cfg with the following content to access the new domains: https://master1.ddnet.org/ddnet/15/servers.json https://master2.ddnet.org/ddnet/15/servers.json https://master3.ddnet.org/ddnet/15/servers.json https://master4.ddnet.org/ddnet/15/servers.json
@cheeser0613 See the message I replied to (edited)
Avatar
cheeser0613 2024-08-09 07:15
noted
Avatar
@heinrich5991 thanks, this should be documented somewhere 😄
Avatar
cheeser0613 2024-08-09 07:28
it works really well
07:28
except for fetching player info from ddnet.tw
07:29
i guess it probably hardcoded also
Avatar
Avatar
TsFreddie
lol
did u set the file association? i'd be surprised if it did that by default
Avatar
Avatar
Ewan
did u set the file association? i'd be surprised if it did that by default
no
Avatar
Avatar
Ewan
to build w vulkan tho u need the sdk
Jupstar ✪ 2024-08-09 08:21
what, why that?
08:21
u need ddnet-libs
08:21
our github ci also doesnt install the vulkan sdk
Avatar
either works
08:22
seemed like he wanted no ddnet-libs
Avatar
Jupstar ✪ 2024-08-09 08:22
ok
Avatar
the sdk is what's in ddnet libs
08:26
just less clutter
08:26
is it not
Avatar
Jupstar ✪ 2024-08-09 08:27
cant remember tbh. maybe it was the mingw vulkan package
08:27
or from the sdk
Avatar
the mingw version would require mingw
Avatar
Jupstar ✪ 2024-08-09 08:30
but @Ewan glad the sdk path works too
08:30
i added that but never tested it xD
Avatar
ah lol
08:31
i dont recall it being painless exactly
08:31
i may have had to set the paths but dont remember. i usually do ddnet-libs
08:31
well usually i build w/o vulkan for build times
08:32
and server and tools and videorecorder
Avatar
Avatar
Ewan
well usually i build w/o vulkan for build times
Jupstar ✪ 2024-08-09 08:32
🚔
Avatar
GitHub BOT 2024-08-09 09:40
87e142b Remove some outdated download links - def-
Avatar
Avatar
heinrich5991
that's only the default. you can create a ddnet-serverlist-urls.cfg with the following content to access the new domains: https://master1.ddnet.org/ddnet/15/servers.json https://master2.ddnet.org/ddnet/15/servers.json https://master3.ddnet.org/ddnet/15/servers.json https://master4.ddnet.org/ddnet/15/servers.json
this seems actually helpful. chn people are setting up their own proxy masters. they were just asking how to redirect it
Avatar
What is wrong with master2.ddnet.org? Not good from China?
Avatar
there are some that still have trouble seeing the list. but it's less than before
10:52
Avatar
restricted port?maybe blocked on isp side?
10:56
oh is https lol
Avatar
damn wtf
Avatar
connection was reset is pretty common in china tho
Avatar
dns? no route and the isp just returns another code? (edited)
Avatar
Avatar
Ewan
dns? no route and the isp just returns another code? (edited)
possible, no way to check for regular user really
10:57
still. ive seen connection reset on non polluted domains
10:57
its just the wall
10:58
or bad ISP
10:58
you can't really know
Avatar
u can call ur isp
11:07
they got tools out the ass for that
11:07
and they probably wanna know
Avatar
Avatar
TsFreddie
Click to see attachment 🖼️
So we might have to move it to mainland china :/ I thought Hong Kong could be good enough
Avatar
Avatar
Ewan
u can call ur isp
not mine (edited)
Avatar
ya well u know
11:27
proverbial you
Avatar
@Jupstar ✪ will it be good for ddnet server?
12:16
12:17
with database
12:17
5 servers will be there?
Avatar
Jupstar ✪ 2024-08-09 12:21
yeah
12:21
5 srvs ez
12:21
dunno if the price is in €, but that is the worst part about your offer
12:21
25.99 sounds a lot xd
Avatar
Avatar
Jupstar ✪
25.99 sounds a lot xd
no
12:41
its in pln
12:42
its 6,01 EUR
Avatar
Avatar
Jupstar ✪
5 srvs ez
10 ez too?
12:42
linux is better i think
12:42
bc windowns need more ram
12:43
@Jupstar ✪ will you after help me to setup it?
Avatar
Avatar
rutujek
@Jupstar ✪ will you after help me to setup it?
Jupstar ✪ 2024-08-09 12:43
I'd prefer you try your self and/or use the internet
12:43
everything you need for ddnet is in the readme
Avatar
Avatar
rutujek
10 ez too?
Jupstar ✪ 2024-08-09 12:43
yes 10 ez too i think
12:44
depends on if they limit traffic and stuff
Avatar
Avatar
Jupstar ✪
I'd prefer you try your self and/or use the internet
i mean database
Avatar
Jupstar ✪ 2024-08-09 12:44
but CPU wise i think np
Avatar
bc i dont know how to setup database
Avatar
Jupstar ✪ 2024-08-09 12:44
i think that is also in the readme
Avatar
do you have link to gh?
Avatar
Jupstar ✪ 2024-08-09 12:44
esp if you use linux there should be many tutorials
12:45
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
Avatar
MilkeeyCat 2024-08-09 12:56
man, why the hell did it move its values to upper 16 bytes space -.-
Avatar
Avatar
MilkeeyCat
man, why the hell did it move its values to upper 16 bytes space -.-
maybe alignment
Avatar
MilkeeyCat 2024-08-09 13:08
mine also has alignment
13:08
idk if it's right tho xd (edited)
13:12
Aggregates and Unions Structures and unions assume the alignment of their most strictly aligned component. Each member is assigned to the lowest available offset with the appropriate alignment. The size of any object is always a multiple of the object‘s alignment.
Can anyone translate this to stupid language, me no comprendo this at all nouis
Avatar
Avatar
MilkeeyCat
Aggregates and Unions Structures and unions assume the alignment of their most strictly aligned component. Each member is assigned to the lowest available offset with the appropriate alignment. The size of any object is always a multiple of the object‘s alignment.
Can anyone translate this to stupid language, me no comprendo this at all nouis
Jupstar ✪ 2024-08-09 13:15
u128 requires huge alignment u8 not if u have 4 u8 after each other they can be in one spot after each other. then u need to add alignment for the next object u128, so you have padding
13:16
is that good enough?
13:16
bcs i suck at explaining
Avatar
Avatar
Jupstar ✪
is that good enough?
MilkeeyCat 2024-08-09 13:17
that's what I have :DDD
Avatar
Avatar
MilkeeyCat
that's what I have :DDD
Jupstar ✪ 2024-08-09 13:17
so what you want to say is, that your struct got reordered?
13:18
or what is your problem xd
Avatar
chiller, can you send link for 0.6/0.7 bridge vanilla server?
Avatar
MilkeeyCat 2024-08-09 13:20
hmmm, i guess they are relatively at the same locations
13:20
good enough for now
Avatar
Avatar
rutujek
@Jupstar ✪ will it be good for ddnet server?
you can host up to 20 instances with this one
Avatar
u128 requires 16 byte alignment
Avatar
Avatar
Matodor
chiller, can you send link for 0.6/0.7 bridge vanilla server?
A teeworlds instagib (grenade/laser capture the flag) mod based on DDRaceNetwork (gctf/ictf) - ddnet-insta/ddnet-insta
Avatar
if u want to be C compatible
Avatar
ah wait
Avatar
MilkeeyCat 2024-08-09 13:23
u128 too much pain in the ass
Avatar
Avatar
MilkeeyCat
that's what I have :DDD
not only do the fields need to be aligned, but the struct itself too!
13:24
e.g { u16, u8 } needs a padding of size u8 at end
Avatar
Avatar
Matodor
chiller, can you send link for 0.6/0.7 bridge vanilla server?
DDraceNetwork, a cooperative racing mod of Teeworlds - GitHub - JSaurusRex/ddnet at vanilla
13:26
@Ryozuki do u know what happened to redox os?
Avatar
struct A { a: u8, // padding of 1 byte to align b b: u16, // no padding here c: u32, d: u8, // padding of 3 bytes to align the whole struct A } (edited)
Avatar
looks dead
Avatar
iirc
13:26
i think its a os made in rust
Avatar
ye that's what it is
13:27
do you know if something happened with it?
Avatar
no idea xD
Avatar
gitlab repo looks kinda dead (edited)
13:27
looks*
Avatar
Avatar
zhn
gitlab repo looks kinda dead (edited)
Jupstar ✪ 2024-08-09 13:27
there is still activity
Avatar
last commit 1 week ago
Avatar
Jupstar ✪ 2024-08-09 13:27
but probably not much interest
Avatar
seems ok
Avatar
Avatar
Ryozuki
last commit 1 week ago
huuuuuh
Avatar
it showed up like last commit 3 months ago (edited)
Avatar
Avatar
Ryozuki
struct A { a: u8, // padding of 1 byte to align b b: u16, // no padding here c: u32, d: u8, // padding of 3 bytes to align the whole struct A } (edited)
MilkeeyCat 2024-08-09 13:29
it wont be aligned if you put only 1 byte of padding in the end?
Avatar
Avatar
MilkeeyCat
it wont be aligned if you put only 1 byte of padding in the end?
the minimum alignment of the struct is the max alignment of its fields
13:35
u32 requires 4byte align
13:36
so it needs to be 4byte aligned
13:36
Data structure alignment is the way data is arranged and accessed in computer memory. It consists of three separate but related issues: data alignment, data structure padding, and packing. The CPU in modern computer hardware performs reads and writes to memory most efficiently when the data is naturally aligned, which generally means that the da...
Avatar
MilkeeyCat 2024-08-09 13:36
hmm, I was already aligning by the biggest element. Maybe my maffs was just wrong
Avatar
Here is a structure with members of various types, totaling 8 bytes before compilation: struct MixedData { char Data1; short Data2; int Data3; char Data4; }; After compilation the data structure will be supplemented with padding bytes to ensure a proper alignment for each of its members: struct MixedData /* After compilation in 32-bit x86 machine */ { char Data1; /* 1 byte */ char Padding1[1]; /* 1 byte for the following 'short' to be aligned on a 2 byte boundary assuming that the address where structure begins is an even number */ short Data2; /* 2 bytes */ int Data3; /* 4 bytes - largest structure member */ char Data4; /* 1 byte */ char Padding2[3]; /* 3 bytes to make total size of the structure 12 bytes */ }; The compiled size of the structure is now 12 bytes.
Avatar
Avatar
MilkeeyCat
it wont be aligned if you put only 1 byte of padding in the end?
maybe ur right here xd
13:40
aaaa i cant do 2 things at same time sorry
13:40
wait i can do something
Avatar
MilkeeyCat 2024-08-09 13:40
struct Foo { u8 a; u16 b; u8 c; u8 *d; u8 e; } +----+-----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ | u8 | pad | u16 | u8 | | pointer | u8 | padding | +----+-----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ I have something like this now (edited)
Avatar
Jupstar ✪ 2024-08-09 13:41
#pragma pack(1)
13:41
what do you do now milkeey
13:41
i played a trap card
Avatar
MilkeeyCat 2024-08-09 13:42
remove alignment code and recompile 😎
13:42
I think it would be cool to add something like attributes to structs and maybe functions ;DD
13:42
but I can't properly align a struct xd
Avatar
Avatar
Ryozuki
struct A { a: u8, // padding of 1 byte to align b b: u16, // no padding here c: u32, d: u8, // padding of 3 bytes to align the whole struct A } (edited)
according to rust this has size of 12 bytes
13:43
so im right
13:43
kek
Avatar
Avatar
Ryozuki
according to rust this has size of 12 bytes
Jupstar ✪ 2024-08-09 13:43
whaat
13:44
rust with rust alignment?
Avatar
with repr C
Avatar
Jupstar ✪ 2024-08-09 13:44
ah
Avatar
Avatar
MilkeeyCat
struct Foo { u8 a; u16 b; u8 c; u8 *d; u8 e; } +----+-----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ | u8 | pad | u16 | u8 | | pointer | u8 | padding | +----+-----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ I have something like this now (edited)
MilkeeyCat 2024-08-09 13:45
and C also says it's 24 bytes
Avatar
Avatar
MilkeeyCat
struct Foo { u8 a; u16 b; u8 c; u8 *d; u8 e; } +----+-----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ | u8 | pad | u16 | u8 | | pointer | u8 | padding | +----+-----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ I have something like this now (edited)
struct Foo { u8 a; // pad 1 x u8 u16 b; u8 c; // pad 3 x u8 u8 *d; u8 e; // pad 7 x u8 } (edited)
13:45
iirc
Avatar
Avatar
MilkeeyCat
and C also says it's 24 bytes
Jupstar ✪ 2024-08-09 13:46
yeah makes sense
Avatar
@MilkeeyCat if u dont follow C convention then u can reorder the fields and u avoid lot of padding
❤️ 1
13:49
llmfao
Avatar
Jupstar ✪ 2024-08-09 13:49
xDD
Avatar
MilkeeyCat 2024-08-09 13:49
logs know everything (edited)
Avatar
some1 can help me? if in a few words when i selfbuild client run it , and when im near to other tees i have low fps but on completed client i no have this shit.
Avatar
Avatar
3x1sT
some1 can help me? if in a few words when i selfbuild client run it , and when im near to other tees i have low fps but on completed client i no have this shit.
Jupstar ✪ 2024-08-09 13:50
compile with release build
Avatar
I didnt add anything additional to the client
Avatar
Avatar
Jupstar ✪
compile with release build
k i'll try that
Avatar
Jupstar ✪ 2024-08-09 13:50
when u exec cmake it must say release
Avatar
Avatar
Ryozuki
@MilkeeyCat if u dont follow C convention then u can reorder the fields and u avoid lot of padding
MilkeeyCat 2024-08-09 13:51
if i don't follow C convention i can't do anything in the language xd (edited)
Avatar
Avatar
MilkeeyCat
if i don't follow C convention i can't do anything in the language xd (edited)
Jupstar ✪ 2024-08-09 13:52
feature request, allow to conditionally allow stable vs non stable abi xdd
Avatar
Avatar
Jupstar ✪
when u exec cmake it must say release
thank you <3
Avatar
Avatar
Jupstar ✪
when u exec cmake it must say release
another bot helped 😬 (edited)
Avatar
Avatar
Ryozuki
another bot helped 😬 (edited)
Jupstar ✪ 2024-08-09 14:25
stop reading my mind please
14:30
😬
Avatar
Avatar
zhn
you can host up to 20 instances with this one
with database?
15:08
@Jupstar ✪
15:08
what is good
15:08
?
Avatar
hi
Avatar
Jupstar ✪ 2024-08-09 15:08
i'd use debian
Avatar
Avatar
KOLESNIK
hi
hi
Avatar
Jupstar ✪ 2024-08-09 15:08
i am biased tho
Avatar
Avatar
Jupstar ✪
i'd use debian
10 or 11
Avatar
Jupstar ✪ 2024-08-09 15:08
always newest
Avatar
Avatar
rutujek
with database?
ye, ddnet servers aren't that greedy for ram/cpu time
Avatar
im new in linux
15:40
will somebody help me ♥
15:40
?
15:42
@Jupstar ✪ pls
Avatar
Jupstar ✪ 2024-08-09 15:45
i sent u the readme
15:50
im starting to hate linux
15:50
😡
Avatar
sudo apt install cmake
15:52
xd
Avatar
Avatar
rutujek
Click to see attachment 🖼️
Jupstar ✪ 2024-08-09 15:54
bro
Avatar
are you trying to compile from source? then install the dependencies first: sudo apt install build-essential cargo cmake git glslang-tools google-mock libavcodec-extra libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfreetype6-dev libglew-dev libnotify-dev libogg-dev libopus-dev libopusfile-dev libpng-dev libsdl2-dev libsqlite3-dev libssl-dev libvulkan-dev libwavpack-dev libx264-dev python3 rustc spirv-tools
Avatar
Jupstar ✪ 2024-08-09 15:54
15:54
u have to read the readme
Avatar
Avatar
Jupstar ✪
Click to see attachment 🖼️
MilkeeyCat 2024-08-09 15:55
reading hard
😂 1
Avatar
yeah
Avatar
ur bio says Problem-solver but at the first issue u get angry
16:17
justatest
Avatar
Avatar
Ryozuki
ur bio says Problem-solver but at the first issue u get angry
i newer used linux
Avatar
only thing you could get mad about are the default tmux keybinds
16:20
idk what kind of neanderthal thought of those (edited)
troll 1
Avatar
byobu > tmux
Avatar
teemux
Avatar
Avatar
Teero
idk what kind of neanderthal thought of those (edited)
justatest
17:27
haha i love how motivated that guy is XD
17:29
xD
17:29
hmmmmmmmm
Avatar
i cant
17:50
i will install windows bc i cant with linux
Avatar
it's just F1-F6
17:51
that's how I run my gctf servers xD
Avatar
Avatar
jxsl13
that's how I run my gctf servers xD
can you help me ?
17:51
i have depression now
17:52
there is youtube and the internet
17:52
using Google is an essential skill to learn nowadays
Avatar
it's blocked in Germany D: the heck.
17:53
lol, weirdly blocked in discord
17:53
in the app it works
Avatar
Jupstar ✪ 2024-08-09 17:53
on windows compiling will totally be easier
17:53
wink wink
Avatar
Avatar
Jupstar ✪
wink wink
i know
Avatar
I'm literally only using F2 - F6 ._.
Avatar
but it will use more ram
Avatar
Avatar
jxsl13
it's blocked in Germany D: the heck.
im in germany wdym? xD
Avatar
Avatar
rutujek
i know
Jupstar ✪ 2024-08-09 17:54
it was a joke bro
Avatar
weird discord stuff ._.
Avatar
Jupstar ✪ 2024-08-09 17:54
compiling is easiest on linux
Avatar
in yt app it's not blocked
Avatar
Avatar
Jupstar ✪
compiling is easiest on linux
,_,
17:54
😭
Avatar
Jupstar ✪ 2024-08-09 17:54
it's true tho
Avatar
pls somebody can help
17:54
?
17:54
🥺
Avatar
Jupstar ✪ 2024-08-09 17:54
just follow the readme
Avatar
bruh, it's like 3 commands on linux
Avatar
windows is cancer for programming
Avatar
Jupstar ✪ 2024-08-09 17:55
read it 20 times
Avatar
Avatar
Jupstar ✪
just follow the readme
i followed
Avatar
maybe 5
Avatar
[ 28%] Built target rust-bridge-shared Scanning dependencies of target rust_engine_shared_target [ 28%] Generating release/libddnet_engine_shared.a error: failed to parse manifest at /root/ddnet/Cargo.toml Caused by: feature resolver is required consider adding cargo-features = ["resolver"] to the manifest make[2]: [CMakeFiles/rust_engine_shared_target.dir/build.make:93: release/libddnet_engine_shared.a] Error 101 make[1]: [CMakeFiles/Makefile2:786: CMakeFiles/rust_engine_shared_target.dir/all] Error 2 make: *** [Makefile:171: all] Error 2
17:55
;c
Avatar
Jupstar ✪ 2024-08-09 17:55
well that at least looks like a bug in ddnet source code
Avatar
it tells you in the error what you need to do does it not?
Avatar
Jupstar ✪ 2024-08-09 17:56
ah just install rust over rustup
👍 1
17:56
maybe ur version is too old
17:56
one command
Avatar
Avatar
Jupstar ✪
i did and
17:57
root@4432:~/ddnet/build# rustup update -bash: rustup: command not found root@4432:~/ddnet/build# rustup update stable -bash: rustup: command not found root@4432:~/ddnet/build#
17:57
bc i was using tutorial and other stuff
Avatar
install rustup first :(
Avatar
Jupstar ✪ 2024-08-09 17:57
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Avatar
MilkeeyCat 2024-08-09 17:57
😶
Avatar
everyone loves them pipe into sh
17:58
i did same
17:58
and after this
Avatar
Avatar
rutujek
root@4432:~/ddnet/build# rustup update -bash: rustup: command not found root@4432:~/ddnet/build# rustup update stable -bash: rustup: command not found root@4432:~/ddnet/build#
i did
Avatar
Jupstar ✪ 2024-08-09 17:58
show output
17:58
for curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Avatar
wait
18:02
Avatar
Jupstar ✪ 2024-08-09 18:05
great
18:05
To get started you may need to restart your current shell. This would reload your PATH environment variable to include Cargo's bin directory ($HOME/.cargo/bin). To configure your current shell, you need to source the corresponding env file under $HOME/.cargo. This is usually done by running one of the following (note the leading DOT): . "$HOME/.cargo/env" # For sh/bash/zsh/ash/dash/pdksh source "$HOME/.cargo/env.fish" # For fish
18:06
you have the first
Avatar
restart?
18:06
okay wait
Avatar
the terminal/shell
Avatar
Jupstar ✪ 2024-08-09 18:06
thats also an option
18:07
im in new
18:07
terminal
Avatar
Jupstar ✪ 2024-08-09 18:07
cool
18:07
now build again
Avatar
Avatar
Jupstar ✪
cool
for me no
Avatar
Jupstar ✪ 2024-08-09 18:07
start server
18:07
be happy
Avatar
Avatar
Jupstar ✪
start server
im trying 😣😩😭
Avatar
Jupstar ✪ 2024-08-09 18:08
nice try
18:08
gg, no re
Avatar
something did 😄
18:10
I'm starting to like linux 😄
18:12
@Jupstar ✪ how to make setup with mysql?
18:13
18:13
i will try to search youtube tutorial
Avatar
i did it yay!
18:26
root@4432:~/ddnet/build# cmake -DWEBSOCKETS=ON -DMYSQL=ON -DTEST_MYSQL=ON .. -- Using gold linker -- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) -- Could NOT find MySQL (missing: MYSQL_LIBRARY MYSQL_INCLUDEDIR) -- Found SQLite3: /usr/include (found version "3.34.1") -- Found SQLite3: /usr/include -- Checking for module 'libwebsockets' -- No package 'libwebsockets' found -- Found Websockets: /root/ddnet/ddnet-libs/websockets/linux/lib64/libwebsockets.a -- ** DDNet ** -- Target OS: linux x86_64 -- Compiler: /usr/bin/c++ -- Rust version: rustc 1.80.1 (3f5fd8dd4 2024-08-06) -- Build type: Release -- Dependencies: -- * Curl found -- * FFmpeg found -- * Freetype found -- * Glew found -- * GTest not found -- * MySQL not found -- * Ogg found -- * OpenSSL Crypto found -- * Opus found -- * Opusfile found -- * PNG found -- * Python3 found -- * SDL2 found -- * SQLite3 found -- * Wavpack found -- * Zlib found -- * Websockets not found (using bundled version) -- * Vulkan found CMake Error at CMakeLists.txt:651 (message): You must install MySQL to compile the DDNet server with MySQL support -- To run the tests, you have to install GTest -- Configuring incomplete, errors occurred! See also "/root/ddnet/build/CMakeFiles/CMakeOutput.log". See also "/root/ddnet/build/CMakeFiles/CMakeError.log". root@4432:~/ddnet/build# apt install GTest
18:26
now i hate it
Avatar
MilkeeyCat 2024-08-09 18:29
you hate it because you need to install mysql to compile it with mysql support?
Avatar
Avatar
MilkeeyCat
you hate it because you need to install mysql to compile it with mysql support?
no, i hate it bc i dont know how to use it bc i downloaded mariadb
18:31
i know 🫢
18:32
im dumb
18:37
18:37
ummm
18:37
mysql ?
Avatar
GitHub BOT 2024-08-09 18:42
Motivation: It's annoying how hard it is to grab the sliders when we have so much extra space between them.

Before:

!image !image !image

After:

![image](https://github.com/user-attachments/assets/3801d91c-8a6f-4bbe-845a-da0382f...
18:46
Show warning and disconnect instead of falling back to connecting to localhost when the connect address cannot be resolved.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect...
19:00
ummm
19:00
i was testing if it work
19:00
help?
19:00
pls
19:00
🥺
Avatar
@Jupstar ✪
Avatar
Jupstar ✪ 2024-08-09 19:15
bro
19:15
just ask chatgpt
Avatar
MilkeeyCat 2024-08-09 19:19
I was trying to make function return reference for an hour and in the end just implemented Copy trait for a struct and return owned type everywhere xd
Avatar
Avatar
MilkeeyCat
I was trying to make function return reference for an hour and in the end just implemented Copy trait for a struct and return owned type everywhere xd
Jupstar ✪ 2024-08-09 19:22
if your struct gets too big, use Rc
Avatar
MilkeeyCat 2024-08-09 19:22
#[derive(Debug, Clone, Copy, PartialEq)] pub struct Register { byte: &'static str, word: &'static str, dword: &'static str, qword: &'static str, }
Avatar
Avatar
rutujek
Click to see attachment 🖼️
Avatar
Avatar
MilkeeyCat
#[derive(Debug, Clone, Copy, PartialEq)] pub struct Register { byte: &'static str, word: &'static str, dword: &'static str, qword: &'static str, }
Jupstar ✪ 2024-08-09 19:24
i mean depending on the amount of copies, rc might still be faster, since thats just increasing a counter
19:25
but yeah, looks small
19:25
yeah ok rc ofc also has to copy 1 ptr
19:25
dunno if otherwise rust rc has overhead in copying
Avatar
Avatar
MilkeeyCat
#[derive(Debug, Clone, Copy, PartialEq)] pub struct Register { byte: &'static str, word: &'static str, dword: &'static str, qword: &'static str, }
Jupstar ✪ 2024-08-09 19:27
do you change your variable sometimes?
19:28
u can also return a reference and let the caller decide if it wants to create a copy
19:28
or what was the problem with ref?
Avatar
MilkeeyCat 2024-08-09 19:29
the reason why i changed it to owned type because it wasn't living long enough, and i could make it long enough xd
19:30
and if i was trying to change lifetime of parameter reference, oh boi, i never wanna see it again
19:31
should've chosen C++ or C for a compiler 😬
Avatar
Jupstar ✪ 2024-08-09 19:31
what exactly returned your register?
19:31
smth other than self?
19:32
show function signature and which param returns your stuff
Avatar
MilkeeyCat 2024-08-09 19:34
nvm, there's no universe where it would work xddd
Avatar
кришна диллер 2024-08-09 19:35
why are the skins missing somewhere? And do I have one?
Avatar
MilkeeyCat 2024-08-09 19:35
i was not even fighting the borrow checker but my own skill issues
Avatar
MilkeeyCat 2024-08-09 19:42
struct Foo { u8 a; u8 *d; } u8 main() { Foo foo; foo = Foo { a: 69, d: &foo.a, }; Foo *foo_ptr; foo_ptr = &foo; return *((*foo_ptr).d); } holly molly, it works gigachad
Avatar
I'm so proud of you
19:48
Just went and made his own language
Avatar
Avatar
Learath2
I'm so proud of you
MilkeeyCat 2024-08-09 19:49
idk if it's sarcasm, but if not im proud of myself too 🥹
Avatar
No sarcasm. Big respecc
Avatar
MilkeeyCat 2024-08-09 19:50
argument passing doesn't seem so fun to implement 😬
Avatar
Jupstar ✪ 2024-08-09 19:50
nice, he made c in rust
19:50
xd
Avatar
MilkeeyCat 2024-08-09 19:51
nononono
19:51
i wanna add defer statements xd
19:51
it won't be C, it will be worse
Avatar
Avatar
MilkeeyCat
argument passing doesn't seem so fun to implement 😬
Just do what C does. Don't engineer it yourself
Avatar
Avatar
Learath2
Just do what C does. Don't engineer it yourself
MilkeeyCat 2024-08-09 19:52
ye, I just read the abi, many smort words, no examples
Avatar
Avatar
MilkeeyCat
i wanna add defer statements xd
Good man. Nice taste in programming languages
Avatar
Avatar
MilkeeyCat
ye, I just read the abi, many smort words, no examples
Integers are simple enough
19:53
Structs are very nasty to follow
Avatar
MilkeeyCat 2024-08-09 19:53
ok, even I understood that
19:53
intergers*
Avatar
Avatar
MilkeeyCat
it won't be C, it will be worse
it will be Go
19:56
xD
Avatar
MilkeeyCat 2024-08-09 19:56
in TCP client in C example there're no passing structs by value, so integers are the only real class xd
Avatar
defer is nice in Go
19:56
I think C also added that to a newer version
19:56
or it's still a proposal
Avatar
MilkeeyCat 2024-08-09 19:58
#define defer(...) \ for (int var_line(cond) = 0; var_line(cond) == 0; ) \ for (FIRST_ARG(__VA_ARGS__); var_line(cond) == 0; ) \ for (SKIP_LAST_ARG(SKIP_FIRST_ARG(__VA_ARGS__)); \ var_line(cond) == 0; \ var_line(cond) += 1 ) \ for (int var_line(cond_int) = 0; \ var_line(cond_int) <= 1; \ var_line(cond_int) += 1 ) \ if (var_line(cond_int) == 1) \ { \ LAST_ARG(__VA_ARGS__); \ } else if (var_line(cond_int) == 0) nice macro justatest
Avatar
looks like a bannable offense
Avatar
Yep, you're getting banned
Avatar
Also add Result and Option to your Clike
Avatar
MilkeeyCat 2024-08-09 20:00
and Traits
20:00
and lifetimes
20:00
and cargo
Avatar
Na those are newfangled
Avatar
Avatar
MilkeeyCat
#define defer(...) \ for (int var_line(cond) = 0; var_line(cond) == 0; ) \ for (FIRST_ARG(__VA_ARGS__); var_line(cond) == 0; ) \ for (SKIP_LAST_ARG(SKIP_FIRST_ARG(__VA_ARGS__)); \ var_line(cond) == 0; \ var_line(cond) += 1 ) \ for (int var_line(cond_int) = 0; \ var_line(cond_int) <= 1; \ var_line(cond_int) += 1 ) \ if (var_line(cond_int) == 1) \ { \ LAST_ARG(__VA_ARGS__); \ } else if (var_line(cond_int) == 0) nice macro justatest
straight outta stackoverflow
20:01
you are pardoned
Avatar
2024-08-09 13:39:03 I server: +-------------------------+ 2024-08-09 13:39:03 I register/6/ipv6: registering... 2024-08-09 13:39:03 I register/6/ipv4: registering... 2024-08-09 13:39:03 I register/7/ipv6: registering... 2024-08-09 13:39:03 I register/7/ipv4: registering... 2024-08-09 13:39:03 I sql: [2] load best time done on read database 0 2024-08-09 13:39:03 E http: https://master1.ddnet.org/ddnet/15/register failed. libcurl error (6): Could not resolve host: master1.ddnet.org 2024-08-09 13:39:03 E http: https://master1.ddnet.org/ddnet/15/register failed. libcurl error (6): Could not resolve host: master1.ddnet.org 2024-08-09 13:39:03 E register/7/ipv6: error sending request to master 2024-08-09 13:39:03 E register/6/ipv6: error sending request to master
20:39
bruh
20:40
Ping request could not find host https://master1.ddnet.org/ddnet/15/register. Please check the name and try again.
Avatar
Avatar
rutujek
Ping request could not find host https://master1.ddnet.org/ddnet/15/register. Please check the name and try again.
tried to ping
Avatar
@Jupstar ✪
Avatar
ping master1.ddnet.org Pinging master1.ddnet.org [104.18.11.44] with 32 bytes of data: Reply from 104.18.11.44: bytes=32 time=5ms TTL=58 Reply from 104.18.11.44: bytes=32 time=5ms TTL=58 Reply from 104.18.11.44: bytes=32 time=5ms TTL=58 Reply from 104.18.11.44: bytes=32 time=5ms TTL=58 Ping statistics for 104.18.11.44: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 5ms, Maximum = 5ms, Average = 5ms (edited)
Avatar
Jupstar ✪ 2024-08-09 21:08
curl -v master1.ddnet.org
Avatar
but im on windows
21:09
now (edited)
Avatar
Jupstar ✪ 2024-08-09 21:09
bruder
21:10
dann nerv jmd anderes
💀 1
kek 1
Avatar
MilkeeyCat 2024-08-09 21:10
Tja
Avatar
Avatar
Jupstar ✪
dann nerv jmd anderes
why
Avatar
Jupstar ✪ 2024-08-09 21:10
call microsoft support
21:10
do i look like bill gates?
21:11
u ask me midnight how to fix windows problems
Avatar
MilkeeyCat 2024-08-09 21:12
24/7 ddnet build support team
Avatar
Jupstar ✪ 2024-08-09 21:32
@rutujek maybe disable ipv6
21:32
sv_register ipv4
21:32
i think
21:32
only ipv6 seems to fail according to your logs
21:33
i hope i finished my karma quest with that, gn8
Avatar
I will test it later
22:01
Have a nice dream about codes without error
Avatar
GitHub BOT 2024-08-09 22:07
323ccf5 Show warning when connect address cannot be resolved - Robyt3 44666c2 Merge pull request #8704 from Robyt3/Client-Connect-Resolve-Error - def-
Avatar
Avatar
Jupstar ✪
@rutujek maybe disable ipv6
Wake up, I need Windows support kek
Avatar
Avatar
Jupstar ✪
#pragma pack(1)
don't ask him about big endian...
Avatar
Avatar
MilkeeyCat
struct Foo { u8 a; u16 b; u8 c; u8 *d; u8 e; } +----+-----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ | u8 | pad | u16 | u8 | | pointer | u8 | padding | +----+-----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+ I have something like this now (edited)
btw bit fields may completely fuck this up
23:51
u can also use them to pad completely arbitrarily
23:52
struct S { char x : 3; // 3 bits int : 0; // "advance to int alignment boundary" char y : 3; // 3 bits }; this is how i know it behaves in cpp but i think c is the same in this regard (edited)
23:54
this shouldnt matter if u dont care about transparent C struct representation tho
Exported 460 message(s)
Timezone: UTC+0