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-15 00:00:00Z and 2020-03-16 00:00:00Z
Avatar
this is the old jetpack prediction, can anyone tell me how the client knows at this position whether we have jetpack on or off? i dont see any check for e.g. the faketuning or so https://github.com/ddnet/ddnet/commit/0b3f3b03b57c39dfec1506570cf35ce8b7bb1221#diff-0d0221c586efbe7eda89b6e5075098fdL561-L564
Avatar
@Learath2 there are some issues with the chat commands. First: args are not shown, second: when just giving a parameter, like ?i, without a [Description], it will make something weird, for example adds a <string> to the arg list
Avatar
Where, in the latest version of the pr?
Avatar
I'd ask you to just debug it but I doubt you'll even give it a go, so I'll take a look later tomorrow
Avatar
@Learath2 btw. null antibot is deployed
16:47
shall I try noby's? 🙂
Avatar
sure, give it a go
16:48
@fokkonaut would you be so kind to atleast give me a testcase or am I going to have to grasp around in the dark again?
Avatar
what do you mean?
16:49
you can try it on my server, if your client is up to date with master
16:49
type /po and you should see it
Avatar
@Learath2 @noby it's live 😉
🥳 2
Avatar
Hooray
17:37
@fokkonaut you should have said it had a bug in the issue... now oy merged it, now I need to fix it tonight
17:40
@fokkonaut /policeinfo has ?i and it displays [number] for me
Avatar
is that correct?
Avatar
and all other commands dont display anything
Avatar
i means you need a number, [] means it's optional
17:41
which command needs to display something but isn't displaying something?
Avatar
every command
17:41
almost
Avatar
the ones with descriptions are broken, not the ones without description 😛
17:42
but why
Avatar
found it, fixed it
Avatar
@heinrich5991 do you like the serverinfo extension I pull requested as a solution? Do you think maybe we should do something more future-proof?
Avatar
I'm fine with the protocol
18:25
I think you should support receiving packets out of order
18:25
quick look at the code gives me a new Truncate which isn't really needed, you can track the size instead (in the end, don't use Packer.Size() but the size you tracked
18:26
@Learath2 answer is in the first line, is that a reasonable answer to your question?
Avatar
I think so, I'm just a little unsure because it kinda feels like I could possibly wasting our one chance to rework the protocol on something pretty un-extensible
Avatar
the thing is, we can extend it furtherly be putting more request header into the packet
18:28
so I'm not too worried about that
18:28
(unlike in 0.6 where we had to cram it into 2 bytes)
Avatar
@heinrich5991 without CPacker::Truncate I need to extend the scope of PreviousSize or add a new variable to keep track of size
Avatar
I'd prefer (this does not mean you have to change this) to add a variable or broaden the scope to extending a class
18:30
in this case you already have the variable i at a similar scope
Avatar
Things coming before the playerlist will be a problem for extensibility, things coming after the playerlist is also troublesome because older clients will accidentally read the next thing into a clients name if the server isn't 64p
Avatar
if we want to put more things there, we can make the client request them
18:31
by adding more stuff to the request
Avatar
I think I prefer Truncate, PreviousSize doesn't really make sense to me outside of the scope of the for loop
18:35
The ingame version of the serverinfo might be trouble for future extensions, without the GETINFO we don't know whether the client is capable of the extended protocol
Avatar
ah that one
18:37
blurb
18:37
food. will reply afterwrads
Avatar
@Learath2 I guess we could send more stuff there, too :/
Exported 49 message(s)