unorthodox-paradox / omsi_2_csb_ai_enhancements

AI enhancements for CSB vehicles
1 stars 0 forks source link

AI neurotic brake light flashing #83

Closed unorthodox-paradox closed 5 years ago

unorthodox-paradox commented 5 years ago

Symptoms

Sometimes the AI will appear to enter a hasty brake-throttle-brake loop, repeating at great frequency. This is particularly annoying when the user follows an AI vehicle, and the latter's brake lights flash several times per second, contrasted to other regular AI traffic employing more sensible braking practices.

Identified causes and resolution progress

The cause for this phenomenon seems to be that both the Brakeforce and Axle_Brakeforce_X_Y pre-defined vehicle variables are assigned in AI mode -- the former in cockpit.osc:cockpit_throttle_brake_frame, the latter in bremse.osc:bremse_frame --, which, according to OMSI documentation, is unsupported.

Note that this is an issue distinct from the usual AI braking quirks, such as braking hard for no good reason when changing lane, which are the fault of the game and map / spline authors, thus outside our sphere of influence.

User-level workarounds

None available.