tm-dashboard icon indicating copy to clipboard operation
tm-dashboard copied to clipboard

Strange spammy behavior with new cruise block

Open codecat opened this issue 4 years ago • 3 comments
trafficstars

It seems like the acceleration is very spammy when driving over a cruise block. Solving this would probably require smoothing out the acceleration value.

Supposedly the block is also going to change this week, so I'm going to wait and see what happens then.

codecat avatar Jun 14 '21 09:06 codecat

The behavior is still the same. Smoothing out the value all the time would make stuff inaccurate. There also is no way to see from the vis state if the cruise block is activated.

codecat avatar Oct 13 '21 09:10 codecat

What's causing this flashing behaviour of the acceleration control while in the CC mode? We're having a small "debate" on how the CC block actually works and are still not sure if what the dashboard plugin reports is the actual game state (e.g. the acc button is being internally pressed and released rapidly) or it's something else?

Link to Flink's video and the "debate" in the comments: https://www.youtube.com/watch?v=DHBlrooZ110

b005t3r avatar Nov 15 '21 17:11 b005t3r

Dashboard is showing the state of CSceneVehicleVisState, which is a class used by the game to render the car. When the car is in the cruice control state, InputGasPedal is oscillating a lot, which is what Dashboard is displaying.

codecat avatar Nov 15 '21 18:11 codecat