Kartkraft is sending motion while in pause menu
Opened this issue · 2 comments
Hi guys,
I got the following ticket from a customer:
Hi there...
While Pausing the game (latest version), Kartkraft keeps sending a jerking motion every 6 seconds or so instead of completely pausing.
I am wondering if you guys can have look into it, please.
Another possibility is add a field to the telemetry to identify if the game is in pause. So I could filter this on my side.
At present the only data sent while paused is the track config. The track config is currently sent every 5sec, containing the name of the track and the number of sectors. It sounds like whichever plugin you are using is not checking for the presence of motion data before updating hardware. If no motion is found within the package the motion rig should not be updated.
A python example:
if motion:
#update the motion rig hardware here
else:
#do nothing. no motion data was received
See also:
https://github.com/black-delta/kartkraft-telemetry/blob/master/Examples/Python/ListenForTelemetry.py
If you're using an external plugin, best to follow up with them so they can fix this issue.
Having said that, we will be adding more output data soon with a flag showing game state. e.g. paused, in pits etc. But this problem should be solvable immediately without that new data.
let me give it a try