Well after driving buses on my route for an little over an month now, there were some steep hills in there. Well I have grown annoyed at the fact that the engine was still at full throttle yet the bus was not moving and the engine braking component was not kicking in. So I've decided to implement an speed governor for well whatever bus it can be installed on. Yes, I do not like speed governors but they do give out realism. For now, 72 kph, sounds extremely smooth with this mod implement, if there is any response, I could do an RPM governor as well.
For installation open up the engine OSC file, look for (marco:engine_frame)
Drop this code below (M.L.engine_consumption)
- Code:
-
(M.L.speed_governor)
Next, look for
- Code:
-
{macro:engine_speedcontrol}
(L.L.engine_n) (C.L.engine_governed_idle_RPM) <
{if}
(L.L.engine_additional_throttle) (L.S.Timegap) 0.2 * + (S.L.engine_additional_throttle)
{else}
(L.L.engine_additional_throttle) (L.S.Timegap) 0.2 * - 0 max (S.L.engine_additional_throttle)
{endif}
(L.L.engine_internal_throttle) (L.L.engine_additional_throttle) + 1 min 0 max (S.L.engine_internal_throttle)
{end}
Paste this code below it
- Code:
-
{macro:speed_governor}
(L.L.engine_throttle_injection)
{if}
(L.L.Velocity) (F.L.governor) (S.L.engine_throttle_injection)
(L.L.throttle) s1 (L.L.engine_throttle_injection) s2 l1 l2 * (S.L.engine_throttle_injection)
{endif}
Finally go to any engine_consistfile, and drop this into there, it does not matter of the placement
- Code:
-
[newcurve]
governor
[pnt]
-100.00
1
[pnt]
71.00
1
[pnt]
72
0
To explain it,
[pnt]
-100.00
1
is just an protection value to make sure that the script does what it is suppose to go.
[pnt]
71.00
1
The Governor kicks in at 71 kph, if the throttle is at 100%, then it will be at 100% then start limiting it down above 71 kph.
[pnt]
72
0
72 is in kph and the 0 value represents the amount of throttle_injection into the engine. 0 means no throttle injection, therefore the engine brake will come on. I could even do a script to simulate the retarder to kick in as well, if the overage exceeds an certain kph.