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 2020-03-08 00:00:00Z and 2020-03-09 00:00:00Z
Avatar
@fokkonaut so apparently Send does not trigger
Avatar
m_ClDummy is probably 0 there
00:48
its for both
Avatar
well, you want to send input for both client and dummy, right?
Avatar
it works, but delayed
Avatar
but m_ClDummy only has one value
Avatar
m_ClDummy is either 0 or 1 (unless you switch tees), right?
Avatar
yea, i do have all the dummy input stuff from ddnet in there...
00:49
check the commit where i added dummy
Avatar
there is a problem, right?
00:49
something is wrong
00:49
so we try to debug it
00:50
you can't say "but everything is right" because something is clearly wrong
Avatar
the problem is that the when not manually setting Send = true, the hammer for the dummy is delayed
00:50
so too slow tfor hammerfly
Avatar
do you agree with me that m_ClDummy is only one value there?
Avatar
okay, so send is only true when the main client's input changes
00:51
that's bad for dummy hammer fly
Avatar
so the next step is to find out how the input is sent in the original source code
00:52
if you have a link, I can help you step through it too
Avatar
a link to the repo?
Avatar
a link to the similar source in the ddnet 0.6 source code
00:53
*to the similar context
Avatar
what do you mean
Avatar
where does ddnet send its dummy hammer?
Avatar
no idea
Avatar
me neither
01:18
how I'd try to progress here: add some debug statements in the source code in ddnet to see why it gets sent there (and not only on timeout)
Avatar
The entirety of that code looks janky...
10:06
The execution leads to CControl::SnapInput if we have !Dummy thus setting Send there shouldn't really be changing all that much
Avatar
d47e276 Send afk state to the client - fokkonaut
Avatar
6ca49a4 Allow hook collision - fokkonaut
12:15
shall i just sue NULL?
Avatar
@fokkonaut please move the AIM flag to ExPlayerFlags. As 0.7 tends to do slight protocol changes for adding new features, having it in PlayerFlags might lead to collisions in the future
Avatar
thought about that too, but it would be more work. But I'll do it, sure
12:17
how do i activate c++11?
Avatar
@Learath2 what would be the best way to send the aimline using explayer?
12:23
creating a new netmsg, like CL_ISDDNET?
12:23
or somehow getting it in the input?
Avatar
[quakenet] Learath2 BOT 2020-03-08 12:25:12Z
@fokkonaut add a new flag for it in ex playerflags? I think we already have the entire thing implemented, you just need to add the flag
Avatar
before it was a playerflag, playerflags automatically get sent to the server
12:25
and back
12:26
but now we dont want it in there anymore, so i need to send it to the server differently
12:26
not using m_PlayerFlags
Avatar
@fokkonaut are you on dnet7?
Avatar
i am on ddnet7 and my client, yes
Avatar
@fokkonaut in ddnet6 we have ExPlayerFlags, didn't you port that aswell?
Avatar
i have it in, yes
12:31
for the afk state
12:31
but all the flags from explayer are sent by the server
12:31
i just want a way to send the server that we press s now
12:31
xd
12:32
shall i do it using a netmsg, like CL_ISDDNET, or somehow get it into the Input (not sure how well that works)
Avatar
oh yeah we never made that two way
12:33
gimme a second, let me stash my changes and take a look
12:35
No you can't tack it into input
Avatar
okay
Avatar
Okay, you add a new extended netmsg, let the client send ExPlayerFlags aswell, but only let the server trust the ones we allow the client to send
12:38
e.g. the new one
Avatar
so only aim
12:38
because afk is sent by the server
Avatar
for now only aim, but we could let the client suggest AFK aswell, but that's another issue
Avatar
nah, then everybody will run around with the bubble
Avatar
I think we had an issue open for the client setting afk, but we never resolved it so just let it be AIM for now
12:39
@fokkonaut There are ways around that, e.g. we could ban people who move with the afk bubble to discourage that
Avatar
so i need protocol_ex_msgs.h for this right?
Avatar
@Learath2 shall i send CL_EXPLAYERINFO at all time, or only on updates from theclient?
12:50
just on updates i think? when we start, and stop pressing s
12:56
where should i send it? from controls::onrender?
12:56
or from onnewsnapshot?
12:56
guess that one
12:56
CGameClient::OnNewSnapshot
12:56
thats where the ddracemsg and the showothers msg in ddnet are handled
Avatar
@Learath2 what would be the best to also handle it for the dummy? (for copy moves)
Avatar
@heinrich5991 could you be here by some miracle?
13:08
@fokkonaut just send it when we update it, no need to bother otherwise
Avatar
I think you should send it after we handle input
Avatar
where would that be
13:09
in onsnapinput it works pretty nice
Avatar
yep that should work
13:09
Make sure it's after we consider CControls tho
Avatar
sure
Avatar
@fokkonaut do you happen to know about teeworlds/teeworlds #2135?
Avatar
link pls
Avatar
The ServerInfo packet size can be greater than the the max allowed packet size. Basically, a ServerInfo packet is composed by : - header (18) - packet flags (1) - client token (4) - server token (4...
13:10
I fixed it but I need to test it, not sure how to trigger it though
Avatar
you need dummies?
Avatar
I need to fill a server up to the brim
Avatar
sure
13:11
come to my server
Avatar
It's a server and client patch
13:11
so I need my server to be full
13:11
do we have a debug command to fill a server?
13:11
we have dbg_dummies
Avatar
on the server? and how many dummies does it add?
Avatar
you can configure it
13:12
set it to 63
13:12
*requires debug compiling + reload
Avatar
do those show up in server info tho
Avatar
60% messages from fokkonaut, 39% messages from learath2 and 1% from other monkaS
Avatar
[2020-03-08 16:13:49][assert]: ../src/engine/shared/network_server.cpp(288): errornous client id
13:14
amazing that's also broken and it's not fixed by my commit
Avatar
and they don't show up on serverinfo
13:16
...
13:17
can you take a look?
Avatar
Always add flags after old ones, or you'll break compatibility
Avatar
You added AIM before AFK, AFK moved to being the second flag, now old clients will use AIM for AFK
Avatar
i know, but i just added all of this 1 hour ago
13:21
no one has one of those clients/servers yet
Avatar
AFK too?
Avatar
y (edited)
Avatar
looks good to me then
13:22
if it works that is 😛
Avatar
81406d1 Move AIM to the ex player flags - fokkonaut
Avatar
it does work, yes
13:24
@Learath2 how do i activate c++11? nullptr is not available in my client repo
13:24
github actions says that
Avatar
check ddnets CMakeLists
13:24
or d7's I think I have it there aswell
13:24
but what do i need to look for xd
Avatar
@Learath2 I would put the aim flag into PlayerFlags
13:29
otherwise it won't be shown on servers that don't know about it
Avatar
it wont like this too
13:30
since vanilla disallows it
13:30
its fine like this heinrich
Avatar
ah well
13:31
vanilla blocked their own future-compatibility
Avatar
then put it into explayerflags I guess
Avatar
like now
Avatar
yes. sorry
Avatar
or we remove it from vanilla?
13:33
@Learath2 can you help me with c11
Avatar
it's hard to debug mine and help you with it 😛
Avatar
I'm trying to fix a bug
13:43
I told you to take a look at d7, it was even the last commit on CMakeLists...
13:44
i looked there, well nvm, thanks
Avatar
amazing conditional breakpoints are broken on macOS lldb
13:55
@heinrich5991 can you help me track down an uninitialized value?
13:55
lldb is not up to the task and macOS can't do valgrind
Avatar
ChillerDragon 2020-03-08 14:01:32Z
I thought valgrind is fine?
Avatar
It refuses to run
Avatar
@heinrich5991 any ideas regarding the dummy hammer?
Avatar
well, i compared, ddnet and my client get through the if (!Send) return; the same amount
14:53
no idea whythis doesnt work
14:54
oh
14:54
i think i have it
14:55
yup xd
Avatar
bump yes
16:32
might be hard to implement tho
16:33
idk
Avatar
Idea acknowledged, create an issue for it and someone might get to it
Avatar
i dont know how to create an issue @Soreu maybe you know?
Avatar
If you try to change sv_team in cfg it don't work And if you set sv_kill_delay to 1, it has no effect ~Law
Avatar
@Learath2 @Boci literally doing that right now ^^
Avatar
As said by Boci#1337 on discord (link):
i have a great idea when someone goes spec, you would see his ghost, of where he went spec like if he were in freeze, but like 40% opacity
6 other people, including me, seem to like the idea, so there is graphical representation of possible solution by using new skin, let's say x_spec | Skin | | :---: | | ![x_spec](https://user-images.githu...
Avatar
^ there u go @Boci
Avatar
ur a god @Soreu
16:55
thanks for the credit u really didnt need to do that :p
Avatar
I had to. And by the way when I started thinking about such feature, you were already in middle of writing your message about it ^^
Avatar
annoying name 2020-03-08 19:53:24Z
#developer i want help
19:53
how can i add VIP rank in my DDnet server
19:53
i saw one server have it
19:53
persian-ddnet had it
19:53
i want it for my server
19:54
how can i add new useres ?
Avatar
ChillerDragon 2020-03-08 19:54:48Z
use ddnet++
Avatar
^ by that he meant https://github.com/DDNetPP
DDNetPP has 6 repositories available. Follow their code on GitHub.
Avatar
learn to code
20:35
@annoying name
Avatar
whistroll
Avatar
@plsplsplslol troll
Exported 198 message(s)