Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2020-07-27 00:00:00Z and 2020-07-28 00:00:00Z
Avatar
Hi all! Does anybody knows if 0.7 version even uses SendTuningParams? https://github.com/teeworlds/teeworlds/blob/master/src/game/server/gamecontext.cpp#L476 I wanted to use this function to send updated tune params to selected players but even that client receive params that I send via this function it does not applies it. What is more weird and confusing is that commenting out all the contents of this function does not affect sending tune params from admin console -- it still works even w/o this function. So there has to be another concurrent mechanism that sends parameters another way. Does anybody know smth about it? (edited)
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
07:39
More background: I wanted to tell client that tee cannot be moved while character is freezed and tried to send air_control_speed = 0 + ground_control_speed = 0 to a frozen client to prevent prediction artefacts and at the same time I've disabled the input on serverside. But this don't work, client still predicts his movements based on moving at standard speed. Looks like the client don't applies tune parameters sent this way (though it writes on the console that it has parsed them successfully). Character only stops on client side when I send air_control_speed/ground_control_speed=0 to ALL clients via admin console. But it seems that tune params are sent from admin console via some other way (snapshots?). I've spent two days to know that, now have no idea on where to look next. Snapshots don't seems to have tuneparams structure inside them but I am not 100% sure. (edited)
Avatar
NB: I am not asking for your help with the mod. Question is about teeworlds vanilla internals. (edited)
Avatar
But it seems that tune params are sent from admin console via some other way (snapshots?).
They are not. There is only one way tunes are communicated to the client and that's NETMSGTYPE_SV_TUNEPARAMS
11:50
Have you verified that the client indeed gets the changed tune?
Avatar
Yeah, I've seen in logs that it receives them. And also debugged values of parameters at the client side, they were ones I needed.
13:47
Ok, with my level of cpp knowledge I could miss something obvious. Thanks
Exported 7 message(s)