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-07-30 00:00:00Z and 2023-07-31 00:00:00Z
Avatar
Avatar
fokkonaut
Click to see attachment ๐Ÿ–ผ๏ธ
call the cops
Avatar
Avatar
chillerdragon
china moment (@TsFreddie)
everything i say is china moment
06:38
i am china
Avatar
hi china im rust
Avatar
hi rust im legal adult
Avatar
Avatar
Ewan
hi rust im legal adult
happy birthday (?)
07:42
thanks
Avatar
Add fonts/index.json which specifies:
  • List of all font files that should be loaded (filenames).
  • Default font (specified by family name or by family and style name).
  • Font variants for different languages, using the name of the language file as key.
  • Fallback fonts.
  • Icon font.
There are characters (e.g. all in ๅˆƒ็›ดๆตท่ง’้ชจๅ…ฅ) that look different depending on the language of the content being Japanese, Simplified Chinese, Traditional Chinese and Hangul, because Unicode uses the sa...
Avatar
Avatar
fokkonaut
Click to see attachment ๐Ÿ–ผ๏ธ
tf is that
Avatar
i think that's (connecting) players
13:02
i see like 3 different turkey servers that have some kind of "whitelist" and all 3 have a different name
13:05
13:05
isn't this like faking player count
13:06
if you dont have "filter connecting players" on
Avatar
Avatar
Alexander
isn't this like faking player count
it is
13:28
@heinrich5991
Avatar
ChillerDragon BOT 2023-07-30 13:46:23Z
is there any issue about adding more slots i could not find one
13:46
i can not belive nobody ever requested more slots in the ddnet issues
Avatar
when joining a full server, you're obviously disconnected due to the server being full. the message says "reconnecting in 0 seconds" and automatically reconnects a bunch of times, whi...
13:51
it was sort of requested
13:52
but idk whats coming out of it
Avatar
ChillerDragon BOT 2023-07-30 13:53:06Z
i mean a dedicated issues discussing if we want it or not and if yes how and what needs to be done
Avatar
error[E0793]: reference to packed field is unaligned --> C:\Users\Matodor\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ntapi-0.3.7\src\ntexapi.rs:2783:52 | 2783 | *tick_count.QuadPart_mut() = read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) error[E0793]: reference to packed field is unaligned --> C:\Users\Matodor\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ntapi-0.3.7\src\ntexapi.rs:2807:25 | 2807 | ((read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) For more information about this error, try `rustc --explain E0793`. error: could not compile `ntapi` (lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish...
13:53
compiling mastersrv (windows)
13:57
rust packages not compiling ๐Ÿ˜ฑ
14:01
fixed by cargo update
Avatar
Avatar
Matodor
trying to run local masterserver but i got this error https://pastila.nl/?00827058/0198008796bcd0c732a3f2e74f7c0b7b when executing POST request to http://127.0.0.1:8080/ddnet/15/register response is ok (need challenge) but masterserver dont send challenge token
@heinrich5991 i fix it by change let socket = Arc::new(tokio::net::UdpSocket::bind("[::]:0").await.unwrap()); to let socket = Arc::new(tokio::net::UdpSocket::bind("0.0.0.0:0").await.unwrap()); (edited)
Avatar
let's rewrite it in go
Avatar
Add a new network message that sends the chat command payload. To avoid leaking chat commands to public chat on servers that do not have a chat command system. If ddnet users bind for example bind x say /save mysecretddetpass and hit that bind accidentally on a vanilla or other server. Regular chat messages should still be handled as chat commands for backwards compat.
Avatar
Avatar
Matodor
@heinrich5991 i fix it by change let socket = Arc::new(tokio::net::UdpSocket::bind("[::]:0").await.unwrap()); to let socket = Arc::new(tokio::net::UdpSocket::bind("0.0.0.0:0").await.unwrap()); (edited)
do u have ipv6 enabled
Avatar
Avatar
ReiTW
do u have ipv6 enabled
Avatar
ำŽฤ›ล‚ลฦž 2023-07-30 17:09:02Z
what db is ddnet using ?
Avatar
Avatar
ำŽฤ›ล‚ลฦž
what db is ddnet using ?
MariaDB
17:12
Though I think if we were to do it again I think we have consensus that we'd use postgres
Avatar
definitly
17:13
if i wasnt lazy i would have already made a script to export data xd
Avatar
Avatar
Ryozuki
if i wasnt lazy i would have already made a script to export data xd
Exporting the data is trivial compared to implementing the backend imo
Avatar
i know
17:14
but thats the level of my lazyness
17:14
but well its also that
17:14
importing the mariadb db
17:14
takes ages
17:14
even without indexes
17:14
so i just lose my will
Avatar
I wonder why, we dont even have constraints
Avatar
idk theorically 20M ranks aint much
17:15
i should try again
17:15
its normal cuz its a big codebase
17:15
and u dont know most of it
17:15
i also felt lost
Avatar
I wonder if there is a way to reserve the space with innodb, the file growing might be an issue
Avatar
my sv has 64gb ram
17:16
maybe i can make a tmpfs db
17:16
just for importing i mean
Avatar
Original message was deleted or could not be loaded.
Wym, implementing stuff into ddnet?
Avatar
i have a few blog posts about ddnet https://edgarluque.com/categories/ddracenetwork/
My personal website.
Avatar
Ddnet is a huge mess of legacy code, it's not very easy to learn where what goes. And our way of coding is also a little outdated. We have singletons and stuff that most modern coders detest
17:17
And no boost
Avatar
i think thats a win
Avatar
Avatar
Ryozuki
i think thats a win
But if you go ask on any medium how to do X in C++ you'll always get the answer oh just use boost
Avatar
well i would say, oh just use rust
17:18
pepeW
17:18
look at score.cpp
17:18
and more
Avatar
Avatar
Ryozuki
pepeW
My favourite emoji
Avatar
i know xd
Avatar
It's a perfect depiction of how I always feel
Avatar
Itโ€™s definitely rare for a C++ project
Avatar
is it?
17:42
i havent touched many cpp projects
17:42
xd
17:43
well llvm doesnt use boost iir
17:43
iirc
17:43
i wish cranelift wasnt just JIT oriented
17:43
it has a good rust api cuz its made in rust
17:44
(cranelift powers wasmtime)
17:44
iirc
Avatar
@Chairn hey Remember the sticky block idea?
17:47
tile*
17:49
When will you answer me there?
Avatar
ChillerDragon BOT 2023-07-30 18:03:19Z
@Ryozuki ryo btw official ruby repo includes rust while python's does not
Avatar
what u talking about
18:05
im lost
Avatar
ChillerDragon BOT 2023-07-30 18:05:46Z
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
18:05
18:06
ROST
18:06
why is rust used?
Avatar
ChillerDragon BOT 2023-07-30 18:06:28Z
because ruby pog
18:09
seems like they rewrote the just in time compiler in rust
18:20
that's one way to stay relevant
Avatar
ChillerDragon BOT 2023-07-30 18:21:57Z
blazingly rust
18:22
18:22
blazingly half the performance of the C version xd
18:22
average rust moment making everything slower axaxax
18:23
its cuz it must be new
18:23
not optimized
Avatar
ChillerDragon BOT 2023-07-30 18:24:05Z
ye its new
Avatar
is default ruby also JIT?
Avatar
ChillerDragon BOT 2023-07-30 18:24:19Z
yea think so
Avatar
jit benefits from code caching
18:24
aka the second time u run a function will be way faster
18:24
still slower than native tho
18:24
most of time
Avatar
ChillerDragon BOT 2023-07-30 18:25:10Z
since yjit is yet another jit
18:25
i assume cruby is also jit
18:25
i dont think its compiled like python
Avatar
ruby sounds shiny
18:31
rust sounds dirty
18:31
checkmate
Avatar
ChillerDragon BOT 2023-07-30 18:32:01Z
xd
Avatar
Avatar
aa
When will you answer me there?
when i want/can
Avatar
Avatar
ChillerDragon
Click to see attachment ๐Ÿ–ผ๏ธ
have you tried on a real algorithm ?
Avatar
Avatar
Chairn
when i want/can
based
Avatar
Avatar
Chairn
when i want/can
Will a development team be recruited?
Avatar
well, @AssassinTee is already working on it
Avatar
ChillerDragon BOT 2023-07-30 19:15:15Z
omg my r/place ripoff is not very webscale
19:15
time to rewrite in rust
Avatar
Avatar
ChillerDragon
guess i found enough context here https://archive.strct.cc/ddnet/2023-07-21/general.html
I also archived the reddit pixelart thread: https://archive.strct.cc/ddnet-events/2022-reddit-pixelart.html
19:24
chillerdragon: ^
19:25
hm, there is a new reddit pixelart ๐Ÿ˜…
Avatar
yeah xd
Avatar
Avatar
Chairn
well, @AssassinTee is already working on it
what????
Avatar
Avatar
aa
@Chairn hey Remember the sticky block idea?
ahh, this is already merged and will be in the next update, at least you can do it with a tuning layer then. Just adjust ground_elasticity_x or ground_elasticity_y The block update will probably never come, since it's a lot of code and hard to manage by one person. Maybe If we make it an own branch on ddnet where I can send multiple PRs, where other people look over I would be more motivated, but at this stage it's hard to split this feature up in smaller PRs. Also I asked other people for help with sound and graphics, and they promised they would help me and never responded to me again, so my motivation might be in the mud
Avatar
What to do if an official server crashed and the backtrace is millions of lines? ๐Ÿ˜„ These weird unexplainable crashes always seem to happen on RUS, I think we might have broken hardware there.
19:55
gdb seems to be in an endless loop
Avatar
are the top/bottom lines interesting?
Avatar
`` Core was generated by ./DDRace64-Serversql -f servers/8348.cfg'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00005630ffcf5115 in std::_Sp_counted_base::_M_release ( this=0x563107e4b4c0) at /usr/include/c++/12/bits/shared_ptr_base.h:346 346 _M_dispose(); [Current thread is 1 (Thread 0x7f91be1d1a00 (LWP 2256099))] (gdb) bt #0 0x00005630ffcf5115 in std::_Sp_counted_base::_M_release ( this=0x563107e4b4c0) at /usr/include/c++/12/bits/shared_ptr...
Avatar
Judge for yourself ^
Avatar
Avatar
AssassinTee
ahh, this is already merged and will be in the next update, at least you can do it with a tuning layer then. Just adjust ground_elasticity_x or ground_elasticity_y The block update will probably never come, since it's a lot of code and hard to manage by one person. Maybe If we make it an own branch on ddnet where I can send multiple PRs, where other people look over I would be more motivated, but at this stage it's hard to split this feature up in smaller PRs. Also I asked other people for help with sound and graphics, and they promised they would help me and never responded to me again, so my motivation might be in the mud
The sound of sticking and walking can be taken from minecraft and modified
Avatar
Avatar
AssassinTee
ahh, this is already merged and will be in the next update, at least you can do it with a tuning layer then. Just adjust ground_elasticity_x or ground_elasticity_y The block update will probably never come, since it's a lot of code and hard to manage by one person. Maybe If we make it an own branch on ddnet where I can send multiple PRs, where other people look over I would be more motivated, but at this stage it's hard to split this feature up in smaller PRs. Also I asked other people for help with sound and graphics, and they promised they would help me and never responded to me again, so my motivation might be in the mud
If there is progress let me know.
Avatar
Avatar
aa
The sound of sticking and walking can be taken from minecraft and modified
No, this could lead to a copyright claim and cost a lot, that is the worst idea
Avatar
Avatar
AssassinTee
No, this could lead to a copyright claim and cost a lot, that is the worst idea
Ok
Avatar
I will, but you should be able to start it as soon as the new download updates button is availabe ๐Ÿ˜‰
Avatar
Avatar
AssassinTee
I will, but you should be able to start it as soon as the new download updates button is availabe ๐Ÿ˜‰
Ok
Avatar
Avatar
AssassinTee
I will, but you should be able to start it as soon as the new download updates button is availabe ๐Ÿ˜‰
Can you communicate in other languages โ€‹โ€‹well?
Avatar
Avatar
AssassinTee
I will, but you should be able to start it as soon as the new download updates button is availabe ๐Ÿ˜‰
Are you recruiting for this?
20:10
Comand
20:13
And also make it so that there is a Velcro on one side, and a regular one on the other.
Avatar
i wanna help but im too busy
Avatar
Avatar
Voxel
i wanna help but im too busy
When you are free, you can help.
Avatar
iam not recuriting, i am busy myself
Avatar
Avatar
aa
When you are free, you can help.
i dont know i have a job and several personal projects
Avatar
Avatar
Voxel
i dont know i have a job and several personal projects
Ok
20:22
What is your time zone?
20:23
My gmt +4
Avatar
Avatar
Voxel
i dont know i have a job and several personal projects
What is your time zone?
Avatar
Avatar
AssassinTee
iam not recuriting, i am busy myself
And you
20:30
I am sleeping good night.
troll 1
Avatar
Avatar
Iza
@heinrich5991
they might be under attack. have you tried contacting the server admins?
Avatar
chillerdragon: no way to search the archive yet, and I don't know a good way to do that.
Avatar
From Discord:
[6:56 PM] Matodor: and master server don't support Content-Type header with charset ``` Content-Type: application/json; charset=utf-8 ``` [6:57 PM] Matodor: i got {"status":"error","message":"The request's Content-Type is not supported"} when send with charset=utf-8 [7:00 PM] ChillerDragon: try content type application/json ๐Ÿคท random guess xd [7:00 PM] ChillerDragon:...
Avatar
Linux defaults to setsockopt(IPV6_V6ONLY) being false, Windows has it true by default. The masterserver relies on that flag being unset, i.e. that the socket works for both IPv4 and IPv6. I didn't find an easy way to set this flag to false on Windows, but it shouldn't be too hard.
Avatar
Avatar
Matodor
@heinrich5991 i fix it by change let socket = Arc::new(tokio::net::UdpSocket::bind("[::]:0").await.unwrap()); to let socket = Arc::new(tokio::net::UdpSocket::bind("0.0.0.0:0").await.unwrap()); (edited)
issue created ^
Avatar
Avatar
heinrich5991
they might be under attack. have you tried contacting the server admins?
i dont know who the admin is and how i should contact them
Avatar
Avatar
heinrich5991
issue created ^
thx โค๏ธ
Avatar
Avatar
Iza
i dont know who the admin is and how i should contact them
sometimes joining a server can reveal contact information somewhere, e.g. in the motd
Avatar
i dont wanna leak my ip
Avatar
can someone explain me what the units are, or show me a resource? what is the unit of cl_mouse_max_distance and what is the unit of zoom
21:58
and how do they relate to eachother
22:00
because default zoom is 10 and default cl_mouse_max_distance is 400, but when i put zoom 5 and cl_mouse_max_distance to 200 my cross is not at the same point
22:01
my goal is to set cl_mouse_max_distance to the same distance of ddnet tiles no matter the zoomlevel
โœ… 1
Avatar
chillerdragon BOT 2023-07-30 22:08:16Z
Thanks (@Zwelf)
Exported 174 message(s)