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-12-27 00:00 and 2024-12-28 00:00
Avatar
@Discord Mod
Avatar
cyberfighter 2 2024-12-27 10:33
crazy
Avatar
nankudo ᵃᵗᵗᵃᶜᵏ 2024-12-27 10:58
how i may check clicked left button or no?(fire)
Avatar
Avatar
Anime.pdf
is it intended that CServerInfo ServerInfo; Client()->GetServerInfo(&ServerInfo); in CGameClient::OnNewSnapshot does not know info about community, ServerInfo.m_aCommunityId is 'none', same on ddnet, unique and any other server, community or not
nankudo ᵃᵗᵗᵃᶜᵏ 2024-12-27 11:00
btw, i found this method: GameClient()->m_aLocalIds[g_Config.m_ClDummy] (edited)
11:22
6de8b5b Update index.html - Pioooooo b9c0b84 Merge pull request #309 from Pioooooo/master - def-
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
Jupstar ✪ 2024-12-27 11:23
yeah with rustfmt, the biggest trash ever lol
11:24
i swear this tool breaks way too often
11:25
everything in rust has nice error handling and then comes rustfmt
Avatar
Avatar
Jupstar ✪
yeah with rustfmt, the biggest trash ever lol
Are you questioning rust ganyu_scared
Avatar
Jupstar ✪ 2024-12-27 11:26
no week without rustfmt problems lol
11:26
i 100% question that tool
Avatar
It's not a problem, it's intended
Avatar
Jupstar ✪ 2024-12-27 11:26
true
11:26
rust has no bugs
Avatar
Exactly, all the bugs are actually features, you are just too stupid to understand the value of the feature
Avatar
Jupstar ✪ 2024-12-27 11:27
this fix was to remove a macro few lines further done, then format, then paste the macro in again
11:27
xd
Avatar
is it nightly?
Avatar
Jupstar ✪ 2024-12-27 11:28
it can completely not format the whole if scope
Avatar
Avatar
Ryozuki
is it nightly?
Jupstar ✪ 2024-12-27 11:28
no
11:28
rustfmt --version rustfmt 1.8.0-stable (90b35a6239 2024-11-26)
Avatar
Avatar
Jupstar ✪
rust has no bugs
rust can have bugs
Avatar
Jupstar ✪ 2024-12-27 11:28
well this one is not really new
11:28
rustfmt struggles with long string lines and macros
Avatar
macros and rustfmt are finicky
Avatar
Jupstar ✪ 2024-12-27 11:28
but it also doesnt say what is wrong or where it fails
11:28
it just fails and gives a shit xd
Avatar
Avatar
nankudo ᵃᵗᵗᵃᶜᵏ
how i may check clicked left button or no?(fire)
nankudo ᵃᵗᵗᵃᶜᵏ 2024-12-27 11:30
help pls heheehee
Avatar
Jupstar ✪ 2024-12-27 11:31
how can i check if i pressed fire and how to aim my cursor to another player?
Avatar
GitHub BOT 2024-12-27 11:49
The address of the current server's info was not set before the community and rank information is updated based on that address, causing the community information to always be unset.

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 bo...
Avatar
Avatar
nankudo ᵃᵗᵗᵃᶜᵏ
btw, i found this method: GameClient()->m_aLocalIds[g_Config.m_ClDummy] (edited)
That's client ids of your local clients, we were talking about community ids 🤓
Avatar
Avatar
Jupstar ✪
how can i check if i pressed fire and how to aim my cursor to another player?
nankudo ᵃᵗᵗᵃᶜᵏ 2024-12-27 11:56
why do you think that all the questions are for creating cheats? i’m jus trying to create logs of my actions
12:02
wtf, you make ur game open source but you can’t say how this things works
Avatar
Avatar
nankudo ᵃᵗᵗᵃᶜᵏ
wtf, you make ur game open source but you can’t say how this things works
If you can't read the source that's a skill issue on your part, and the people who cheat are stereotypically the ones with skill issues...
😬 2
Avatar
some of it probably starts in character.cpp, that's what controls your physical tee
12:08
so just follow the function calls and variables from that file
Avatar
GitHub BOT 2024-12-27 12:27
2081d77 Fix current server's community information not being set - Robyt3 db8a396 Merge pull request #9432 from Robyt3/Client-CurrentServerInfo-Community - def-
Avatar
Avatar
GitHub
Click to see attachment 🖼️
@+KZ they don't even use more than 1 ip, ig you can just ban them for life once
Avatar
there could be a case where they use dynamic ip
12:58
and spammers like to do these kind of things
Avatar
ws-client BOT 2024-12-27 13:28
<ChillerDragon> omg where typo stalker @MilkeeyCat
Avatar
MilkeeyCat 2024-12-27 13:28
arrmor
Avatar
ws-client BOT 2024-12-27 13:29
<ChillerDragon> OMG
13:30
<ChillerDragon> such stalker
Avatar
MilkeeyCat 2024-12-27 13:31
😬
Avatar
pls help
Avatar
MilkeeyCat 2024-12-27 13:36
I'm not a rocket scientist but I think that You must install Rust and Cargo to compile DDNet message means you have to install rust and cargo
Avatar
i dont know how
Avatar
search it
Avatar
! 7mzom alonso 2024-12-27 13:45
how i can get assists
Avatar
Avatar
+KZ
there could be a case where they use dynamic ip
it's pretty easy to ban dynamic ips as well. You take a single ip, lookup the ASN (see the issue's comment, second link) and then you lookup the ASN with its corresponding ip ranges. Then you pretty much get all the ip ranges that an ISP owns.
14:03
problem is that you might ban unrelated people that are also customers of that ISP
Avatar
Avatar
jxsl13
problem is that you might ban unrelated people that are also customers of that ISP
Yeah and this is i don't want to happen :T banning unrelated people
Avatar
install rust then delete cache of your build folder and build it again
Avatar
with the recent spam, the owner of those ips was seemingly a hosting provider
14:09
so you can ban those without any problems
Avatar
Anyways i added the next solution to my server: check the first message for players, if it contain sus strings ban for x time
14:10
Taken from another modder that had the same problem xd
Avatar
sounds good
Avatar
Avatar
Maxim
pls help
help pls
Avatar
Avatar
Maxim
help pls
Koll Potato 2024-12-27 15:33
you have already been told what to do
15:33
install rust and cargo
Avatar
ChillerDragon I need a shellwizard, what is the most performant way to get a glob to expand with newlines instead of spaces?
15:35
I came up with echo * | xargs -n1 echo but it's a little slow
15:36
echo * | sed 's/ /\n/g is faster but it's also wrong if filenames have spaces in them
Avatar
Avatar
Koll Potato
you have already been told what to do
BUT HOW
15:42
i tried a lot of ways
15:42
and nothing.
Avatar
Avatar
Learath2
echo * | sed 's/ /\n/g is faster but it's also wrong if filenames have spaces in them
isn't there a ls option that do that directly ?
15:42
ls -1 * ?
15:43
ls -1d * should work (edited)
Avatar
Avatar
Maxim
i tried a lot of ways
Koll Potato 2024-12-27 15:45
theres only two ways
15:45
A language empowering everyone to build reliable and efficient software.
Avatar
tryed
Avatar
Avatar
Koll Potato
theres only two ways
what to press?
Avatar
Koll Potato 2024-12-27 16:00
Avatar
Avatar
Koll Potato
Click to see attachment 🖼️
I'm talking about the program
Avatar
Koll Potato 2024-12-27 16:01
visual studio?
16:01
i see you are using mingw
16:02
just build it again if you have installed rust
Avatar
Avatar
Koll Potato
visual studio?
only vs code
Avatar
Avatar
Koll Potato
i see you are using mingw
yep
Avatar
Avatar
Koll Potato
just build it again if you have installed rust
it says it is not installed
Avatar
Koll Potato 2024-12-27 16:04
reboot your system
16:04
and try again
Avatar
what exactly i should press in programm
16:06
maybe i make smt wrong
Avatar
Koll Potato 2024-12-27 16:07
i have no idea what program you are talking about and what you should press
Avatar
one sec
16:10
Avatar
Back in the old days, I could just type route (or, later, ip route) in my Linux terminal and get an accurate picture of all my routes. This is no longer the case.
Avatar
Avatar
Maxim
Click to see attachment 🖼️
Koll Potato 2024-12-27 16:12
just press 1
Avatar
No wait (edited)
16:12
For mingw you need to change the host triple
16:13
You need x86_64-pc-windows-gnu not x86_64-pc-windows-msvc
Avatar
WHERE DO I CLICK?
16:26
I'VE BEEN FIGHTING WITH THIS ERROR FOR THREE DAYS
16:27
Then enter x86_64-pc-windows-gnu
16:27
Then just press enter for all other options to use the default values
Avatar
It's not really rocket surgery, I told you the host triple is wrong, that implies it needs to be changed. Where might one be able to change such a thing? Let me check the option labeled "2) Customize installation"
Avatar
Avatar
Learath2
It's not really rocket surgery, I told you the host triple is wrong, that implies it needs to be changed. Where might one be able to change such a thing? Let me check the option labeled "2) Customize installation"
what i should send for u
Avatar
Avatar
Maxim
done
Now delete the build folder, recreate the build folder and run cmake again, see if it picks up the newly installed rust (edited)
Avatar
again
16:35
fuckn rust
16:35
i can send u full log
Avatar
Koll Potato 2024-12-27 16:36
rust is the best, dont you dare say bad things about it
Avatar
try just typing cargo in the command line, see if cargo is in path
Avatar
Avatar
Learath2
try just typing cargo in the command line, see if cargo is in path
in mingw?
Avatar
Koll Potato 2024-12-27 16:37
yea
16:37
but you can try both
Avatar
Yeah it’s missing in your path, that’s easy enough to fix. First check that it does work in normal cmd
Avatar
MilkeeyCat 2024-12-27 16:40
"easy enough" :clueless:
Avatar
I mean it’s like 10s if you know what a path is and how to change it
16:41
works
Avatar
Ok, now in cmd do where cargo
Avatar
C:\Users\ юник\ .cargo\bin\cargo.exe (edited)
Avatar
Now we need to add that to the mingw path
16:44
In mingw do ls -la ~
Avatar
correct?
16:46
ew my internet
16:46
one sec
Avatar
I need to see the files, we are looking for .profile or .bash_profile or .bashrc
Avatar
MilkeeyCat 2024-12-27 16:47
smol pr
Avatar
Tiny
Avatar
MilkeeyCat 2024-12-27 16:47
dat's my compiler rewrite
16:47
with less features
16:48
right?
Avatar
I mean that’s not what I asked for, but yes that is the path for cmd
Avatar
CORRECT?!
Avatar
NOT CORRECT
Avatar
MilkeeyCat 2024-12-27 16:49
😿
Avatar
Avatar
MilkeeyCat
dat's my compiler rewrite
Koll Potato 2024-12-27 16:50
when will it be production ready
16:50
or at least common use ready
Avatar
MilkeeyCat 2024-12-27 16:50
it's already usable
16:50
as a calculator
Avatar
Koll Potato 2024-12-27 16:50
nice
16:51
whole compiler for a calculator xd
Avatar
MilkeeyCat 2024-12-27 16:51
calculator with structs
Avatar
Avatar
Maxim
Click to see attachment 🖼️
Now do ls -la /c/Users/ юник/.cargo/bin
Avatar
MilkeeyCat 2024-12-27 16:51
and pointers
Avatar
Can someone help him add that to path after you confirm cargo is there?
16:51
I gtg
Avatar
Koll Potato 2024-12-27 16:54
I tried to install Rust on Cygwin but failed to be able link with mingw. Now I am trying to install it with Msys2. I already installed Msys2 and Mingw. I tried to follow this wiki page but I got lo...
Avatar
Something like echo 'export PATH=/c/Users/юник/.cargo/bin:$PATH' >> ~/.bash_profile should do it (edited)
Avatar
what i should write in mingw
Avatar
I told you exactly what to write
Avatar
Koll Potato 2024-12-27 17:00
congratulations
17:00
restart mingw now
17:01
and build ddnet
Avatar
I'd try cargo first to make sure the path changed
Avatar
Koll Potato 2024-12-27 17:01
the path probably hasnt been updated yet
17:02
not sure how to update it without restarting on linux
Avatar
you'd source it
Avatar
Koll Potato 2024-12-27 17:02
yeah right
17:02
now explain it to him xd
Avatar
Just restart mingw and try cargo
17:03
Hopefully I got that oneliner right on my phone
17:03
And hopefully the cyrillic username doesn't straight up break mingw
Avatar
Koll Potato 2024-12-27 17:04
i thought the same lmao
17:04
if it does then gg
17:04
it would be easier to dual boot on linux at this point
17:04
without these shenanigans
Avatar
(or just tell him to use msvc - which is 93273283 times easier because it's fully graphical for someone who doesnt know what they're doing) (edited)
Avatar
Koll Potato 2024-12-27 17:06
i even forgot why he wanted to build ddnet from source in the first place
Avatar
Honestly I can't imagine explaining how to dualboot over discord
justatest 2
Avatar
Koll Potato 2024-12-27 17:06
you can only explain irl?
Avatar
i would just - do it.
Avatar
Avatar
Koll Potato
you can only explain irl?
You need to be a little more proficient for me to be remote help you with a dualboot issue, and there would need to be no language barrier
Avatar
Avatar
Koll Potato
and build ddnet
builded, but i dont see exe server
17:08
cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCLIENT=OFF -DSERVER=ON i use this command
Avatar
Koll Potato 2024-12-27 17:09
what files are in the build directory?
Avatar
MilkeeyCat 2024-12-27 17:11
Now you need to run make -j$(nproc)
Avatar
YEEES
17:12
i forgot
17:12
thanks bro
Avatar
ChillerDragon BOT 2024-12-27 17:15
the amount of *** (rule 7) accusations in game especially in the rus community is insane
Avatar
Koll Potato 2024-12-27 17:15
oh no
Avatar
ws-client BOT 2024-12-27 17:17
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
17:17
<ChillerDragon> this file exists in ddnet
17:17
<ChillerDragon> did you or your anti virus delete it?
17:18
<ChillerDragon> is this unmodified ddne?
17:18
src from github
17:18
gimme a sec ill off defender
17:27
wtf
17:27
and what to do
Avatar
Koll Potato 2024-12-27 17:29
copy the file
Avatar
lock.h or assertion_logger.cpp? (edited)
Avatar
Koll Potato 2024-12-27 17:34
src/base/lock.h
Avatar
Koll Potato 2024-12-27 17:37
why you send it
17:37
copy it from github to your folder if you are missing it
Avatar
I had it from the beginning
Avatar
Koll Potato 2024-12-27 17:41
when you said "it was there before" i assumed it was deleted
17:42
hmm
17:43
no idea why that happens to you
17:44
cool
Avatar
ws-client BOT 2024-12-27 17:44
<ChillerDragon> windows is hard
Avatar
MilkeeyCat 2024-12-27 17:45
chillerdragon: tw pro, what are the next steps to do in the lib?
Avatar
ws-client BOT 2024-12-27 17:45
<ChillerDragon> im a bit tipsy already -.- but lemme check
17:46
<ChillerDragon> i guess packing/encoding however you wanna call it
Avatar
MilkeeyCat 2024-12-27 17:46
check the email then xd
Avatar
ws-client BOT 2024-12-27 17:46
<ChillerDragon> there hasnt been done much in that direcion
Avatar
and what to do
Avatar
ws-client BOT 2024-12-27 17:47
<ChillerDragon> you have the file and still same errror? @Maxim ?
Avatar
Avatar
ws-client
<ChillerDragon> you have the file and still same errror? @Maxim ?
yep
Avatar
ws-client BOT 2024-12-27 17:48
<ChillerDragon> @MilkeeyCat i think both options are fine but i cant imagine the whole code right now ._.
17:49
<ChillerDragon> i think teeworlds/ddnet do a mix of both tbh
17:49
<ChillerDragon> they have the message id in the struct but also sometimes its not used
Avatar
MilkeeyCat 2024-12-27 17:49
imo a function is better but then we would have to manually check each kind and return the correct message id :\
Avatar
Koll Potato 2024-12-27 17:50
uuids in the ddnet protocol are a waste of bandwidth, change my mind
Avatar
ws-client BOT 2024-12-27 17:50
<ChillerDragon> agree @Koll Potato
17:50
<ChillerDragon> but they are actually cool for conflict free custom forks
Avatar
Koll Potato 2024-12-27 17:51
also true
Avatar
Does anyone have a code for a multi-colored tee in rcon? (edited)
Avatar
Koll Potato 2024-12-27 17:51
but holy damn
17:51
16 bytes
Avatar
Avatar
Maxim
Does anyone have a code for a multi-colored tee in rcon? (edited)
rainbow*
Avatar
ws-client BOT 2024-12-27 17:51
<ChillerDragon> ye 16 bytes vs 1-2 bytes is a bit intense
17:52
<ChillerDragon> @Maxim can i sell you some ddnet++? https://github.com/DDNetPP/DDNetPP it comes with rainbow included
DDraceNetwork + city + block! Based on ddnet (www.ddnet.tw) which is based on teeworlds (www.teeworlds.com). - DDNetPP/DDNetPP
Avatar
Koll Potato 2024-12-27 17:52
connless ids are 8 bytes too, but the first 4 bytes are just 255
17:53
is the same reason as with uuids - to allow custom connless messages?
Avatar
ws-client BOT 2024-12-27 17:53
<ChillerDragon> no idea
17:53
<ChillerDragon> its probably been like that since 20 years
Avatar
Koll Potato 2024-12-27 17:54
the protocol is older than me xD
❤️ 1
Avatar
Avatar
ws-client
<ChillerDragon> @Maxim can i sell you some ddnet++? https://github.com/DDNetPP/DDNetPP it comes with rainbow included
what
Avatar
ws-client BOT 2024-12-27 17:54
<ChillerDragon> i mean tw released in 2007 so more like 17 years
Avatar
and for this I puffed and panted for three days?
17:55
to see the same code on github?
Avatar
Koll Potato 2024-12-27 17:55
still older
Avatar
Avatar
Maxim
what
Koll Potato 2024-12-27 17:55
its his fork of ddnet
17:55
with custom features
Avatar
Avatar
Koll Potato
its his fork of ddnet
Can I use foul language?
Avatar
ws-client BOT 2024-12-27 17:55
<ChillerDragon> whats foul
17:55
<ChillerDragon> oh in here?
Avatar
yes (edited)
Avatar
ws-client BOT 2024-12-27 17:56
<ChillerDragon> if heinrich is afk you can do what you want
Avatar
Koll Potato 2024-12-27 17:56
russian in #off-topic
Avatar
Avatar
Koll Potato
russian in #off-topic
accidentally
17:56
habits
Avatar
when will there be protection from ddos?
Avatar
ws-client BOT 2024-12-27 17:58
<ChillerDragon> it is basically your function to call
Avatar
Avatar
Maxim
when will there be protection from ddos?
in ddnet*
Avatar
ws-client BOT 2024-12-27 17:58
<ChillerDragon> @Maxim ask @Learath2
17:59
uh-oh
17:59
ok cool my connection is back
Avatar
chillerdragon, are u tw dev?
Avatar
ws-client BOT 2024-12-27 18:02
<ChillerDragon> kinda
18:04
why ddnetpp crashes?
Avatar
ws-client BOT 2024-12-27 18:04
<ChillerDragon> classic xd
Avatar
how to fix
Avatar
ws-client BOT 2024-12-27 18:04
<ChillerDragon> @Maxim uhm which map?
Avatar
i cant lauch exe
Avatar
ws-client BOT 2024-12-27 18:04
<ChillerDragon> did you compile from source or download some old release?
18:04
<ChillerDragon> what does the console say?
Avatar
Avatar
ws-client
<ChillerDragon> did you compile from source or download some old release?
download
Avatar
MilkeeyCat 2024-12-27 18:05
chillerdragon: I was thinking about function which takes ChunkKind and returns MessageId and MessageKind. Basically arguments for packer_init_msg function
Avatar
ws-client BOT 2024-12-27 18:06
<ChillerDragon> i fan ur lib but idk structs by names xd
Avatar
MilkeeyCat 2024-12-27 18:06
you wrote almost all the code and you don't know the names -.-
Avatar
ws-client BOT 2024-12-27 18:06
<ChillerDragon> yes xd
Avatar
Avatar
Maxim
how to fix
.
Avatar
ws-client BOT 2024-12-27 18:15
<ChillerDragon> i looked up the structs :D wait so ChunkKind is only sys/game how is that as input returning a specific message id? @MilkeeyCat
Avatar
MilkeeyCat 2024-12-27 18:16
by manually checking each variant 😬
Avatar
ws-client BOT 2024-12-27 18:17
<ChillerDragon> wait send full signature you lost me
18:18
<ChillerDragon> @Maxim i assume your "." is some reply uhm can you open a cmd or powershell by shift right clicking next to the DDNetPP.exe and then run in there .\DDNetPP.exe and then send the log output
18:18
<ChillerDragon> there have been some nice bugfixes since september but i dont think any segfault on launch got fixed
Avatar
ws-client BOT 2024-12-27 18:19
<ChillerDragon> okay you are missing the map thats fine
18:19
<ChillerDragon> which map do you want to use?
Avatar
Avatar
ws-client
<ChillerDragon> which map do you want to use?
Tutorialf3 f3 f3 f3
18:21
f3 f3 f3 f3 f3
Avatar
MilkeeyCat 2024-12-27 18:21
chillerdragon: something like this void chunk_kind_info(ChunkKind chunk_kind, MessageKind *msg_kind, MessageId *msg_id) { MessageId id; MessageKind kind; switch(chunk_kind) { case CHUNK_KIND_RCON_CMD: id = MSG_RCON_CMD; case CHUNK_KIND_CL_STARTINFO: id = MSG_CL_STARTINFO; } if(msg_kind) { *msg_kind = kind; } if(msg_id) { *msg_id = id; } }
Avatar
ws-client BOT 2024-12-27 18:22
<ChillerDragon> @Maxim okay then put sv_map "Tutorial" into your autoexec_server.cfg file
Avatar
Avatar
ws-client
<ChillerDragon> @Maxim okay then put sv_map "Tutorial" into your autoexec_server.cfg file
okay
Avatar
ws-client BOT 2024-12-27 18:24
<ChillerDragon> @MilkeeyCat a bit off topic but i think ChunkKind is not the best name :D
Avatar
MilkeeyCat 2024-12-27 18:24
do you have better ideas?
Avatar
ws-client BOT 2024-12-27 18:25
<ChillerDragon> i am leanining towards swapping the names of ChunkKind and MessageKind xd
18:26
<ChillerDragon> or maybe delete ChunkKind
18:26
<ChillerDragon> seems redundant with MessageId
Avatar
MilkeeyCat 2024-12-27 18:26
but we need 2 types
Avatar
ws-client BOT 2024-12-27 18:26
<ChillerDragon> oh wait no
18:26
<ChillerDragon> yes
18:26
<ChillerDragon> because sys and game msgs have overlapping ids
18:26
<ChillerDragon> omg so annoying xd
18:30
<ChillerDragon> i still think MessageKind and ChunkKind swap could be an improvement
18:30
<ChillerDragon> the duplicated enum is a bit annoying -.- but thats the price we have to pay for union magic i guess
Avatar
MilkeeyCat 2024-12-27 18:32
but we can also store message id and message kind and check these two values before accessing the union
18:32
but I don't really like it xd
Avatar
ws-client BOT 2024-12-27 18:32
<ChillerDragon> the chunk_kind_info might be worth a try but imo it should be hidden from the end user
18:32
<ChillerDragon> ideally the lib user only has to provides the message type and it sets the system flag automatically
18:34
<ChillerDragon> knowing the function name to get the system flag is a bit annoying
18:34
<ChillerDragon> having to know*
Avatar
ws-client BOT 2024-12-27 18:43
<ChillerDragon> i thought storing these values in the struct was your plan @MilkeeyCat
18:44
<ChillerDragon> @Maxim did it work?
Avatar
Avatar
ws-client
<ChillerDragon> @Maxim did it work?
yes, thanjs
18:44
by the way, someone uses your server resource only with a different map
Avatar
ws-client BOT 2024-12-27 18:45
<ChillerDragon> nice
18:45
<ChillerDragon> i dont know what that means xd @Maxim
Avatar
Do u know TeeSports?
Avatar
ws-client BOT 2024-12-27 18:46
<ChillerDragon> yes
Avatar
Copy Love Box 2s
Avatar
ws-client BOT 2024-12-27 18:46
<ChillerDragon> yes
Avatar
there is the same server as in dd++
Avatar
ws-client BOT 2024-12-27 18:46
<ChillerDragon> yes S-DDRace is based on ddnet++
brownbear 1
Avatar
by the way, in which file is the code for the rainbow player?
Avatar
ws-client BOT 2024-12-27 18:48
DDraceNetwork + city + block! Based on ddnet (www.ddnet.tw) which is based on teeworlds (www.teeworlds.com). - DDNetPP/DDNetPP
18:48
<ChillerDragon> i think this was the interesting bit
Avatar
thanks
18:49
why u use a bot for a chatting?
Avatar
ws-client BOT 2024-12-27 18:49
<ChillerDragon> i am a known botter
18:50
ChillerDragon: can you even see these?
Avatar
ws-client BOT 2024-12-27 18:50
<ChillerDragon> yes
Avatar
siiick
18:50
<ChillerDragon> oh shit my screenshot tool broke
Avatar
ws-client BOT 2024-12-27 18:51
<ChillerDragon> banhammer
Avatar
And what should I start building dd++ with?
18:52
Ouch
18:52
through what I mean
Avatar
ws-client BOT 2024-12-27 18:52
<ChillerDragon> same as ddnet
18:53
<ChillerDragon> if you cant build ddnet ddnet++ will not be easier
18:53
banhammer
Avatar
ws-client BOT 2024-12-27 18:53
<ChillerDragon> i am too lazy to read the message back log right now i dont know what your build situtation is
Avatar
where can i get all the maps from dd++?
Avatar
ws-client BOT 2024-12-27 18:56
<ChillerDragon> @Learath2 lol if you need shell script performance you are on the wrong path my friend xd
18:58
<ChillerDragon> iirc there is the non posix tool compgen which can expand globs not sure if it is fast tho compgen -G *
19:01
<ChillerDragon> oh you need to replace uhm .. @chairn's answer looks really good
19:03
<ChillerDragon> @Maxim maps are here https://github.com/DDNetPP/maps
Official ddnet++ maps. Contribute to DDNetPP/maps development by creating an account on GitHub.
Avatar
MilkeeyCat 2024-12-27 19:04
chillerdragon: my plan was to have one function which takes Packet and does all the black magic and spit out raw bytes in a provided buffer
Avatar
ws-client BOT 2024-12-27 19:04
<ChillerDragon> yea that sounds nice
19:05
<ChillerDragon> qqqqqqq
Avatar
Avatar
MilkeeyCat
chillerdragon: my plan was to have one function which takes Packet and does all the black magic and spit out raw bytes in a provided buffer
Koll Potato 2024-12-27 19:07
thats what im doing with my encoder rn :D
19:07
written in rust btw
Avatar
ws-client BOT 2024-12-27 19:09
<ChillerDragon> where code @Koll Potato
Avatar
Koll Potato 2024-12-27 19:10
i kinda try to make a ddnet server with bevy but stuff is hard and the code is extremely ugly lol
Avatar
ws-client BOT 2024-12-27 19:10
<ChillerDragon> cool
19:11
<ChillerDragon> what can be used frm bevy for the server?
19:11
<ChillerDragon> i would use it for a client
Avatar
Koll Potato 2024-12-27 19:11
im using bevy ecs
Avatar
ws-client BOT 2024-12-27 19:11
<ChillerDragon> ah
Avatar
Koll Potato 2024-12-27 19:12
i split different logic in plugins
19:12
for example connection plugin, server plugin, network plugin, physics/movement plugin
19:12
and etc
Avatar
ws-client BOT 2024-12-27 19:12
<ChillerDragon> cool
Avatar
Koll Potato 2024-12-27 19:13
i have to learn how snapshots work
19:14
technically i can just copy the whole code for snapshots from libtw2 but if i dont understand it it is going to be tough
Avatar
ws-client BOT 2024-12-27 19:14
<ChillerDragon> finally https://github.com/llvm/llvm-project/pull/67749 got merged
Projects can now add config fragments like this to their .clangd: Style: QuotedHeaders: &quot;src/.&quot; AngledHeaders: [&quot;path/sdk/.&quot;, &quot;third-party/.*&...
19:15
<ChillerDragon> clangd support for ddnet includes
Avatar
Avatar
Koll Potato
written in rust btw
MilkeeyCat 2024-12-27 19:21
We use C btw
Avatar
Koll Potato 2024-12-27 19:24
epic
Avatar
ws-client BOT 2024-12-27 19:27
<ChillerDragon> @Koll Potato snapshots only consist of varints. They contain multiple items. Every item contains one int type then id then payload. The payload are a bunch of ints too.
19:27
<ChillerDragon> all values in the payload are diffs so if your character is at posX 100 and you move 1 unit to the right the snapshot says your posX is 1
Avatar
Koll Potato 2024-12-27 19:44
but the first snapshot has no diffs right?
Avatar
ws-client BOT 2024-12-27 19:45
<ChillerDragon> correct
19:45
<ChillerDragon> no diffs
19:45
<ChillerDragon> or diffs to 0 however you wanna say it
Avatar
Koll Potato 2024-12-27 19:48
that actually explains a lot
19:48
thanks
Avatar
ws-client BOT 2024-12-27 19:50
<ChillerDragon> if the type id is unknown to the client there is another varint with the size in integers after the id before the payload
Avatar
Koll Potato 2024-12-27 19:54
what is id used for?
19:54
type id is for example projectile/character/laser (edited)
19:54
but whats the use for id
19:55
im gonna check in protocol documentation
Avatar
2024-12-27 21:02:23 I videorecorder/libav: Qavg: 65536.000 why is the compression so high? - also why is the bitrate so high: 2024-12-27 21:02:19 W videorecorder/libav: Too many bits 32768.000000 > 12288 per frame requested, clamping to max (edited)
Avatar
chillerdragon BOT 2024-12-27 20:44
@Koll Potato: yes type id says it’s a character and the id says which character. This one matches the ClientId in the C++ server code and what you see in debug hud/show ids setting
20:45
So first tee has id 0 and the second 1 same for projectiles and so on. To differentiate them.
Avatar
Koll Potato 2024-12-27 21:06
ohhh right
Exported 393 message(s)
Timezone: UTC+0