The fix above makes it now work for articulated vehicles, too. Neat!
andythenorth wrote:In the test savegame, the Trabi does change speed for me, depending on roadtype it goes 100km/h or 26km/h. But maybe there are other issues too?
That's weird it works for you
I tested it again with a freshly compiled build, but for me the current speed of the Trabi isn't adopting to the (correctly changing) maximum speed. See attached screenshot.
For me the Trabi has to stop once to sync its current maximum speed with the maximum speed, which is updated by RoadVehicleUpdateCache. It doesn't change its current running speed when the cache is updated.
- NRT speed not adopting.png (45.14 KiB) Viewed 4439 times
Edit: What is weird, too, is that current maximum speed is correctly adopted on another change of road type, however, it changes to the maximum speed of the old road type, not the new road type the vehicle just entered. Maybe the vehicle changes its speed before the new maximum speed is being updated?
So, for me it looks like this:
Vehicle runs on Road A at 32 km/h. Road A allows unlimited speed, and vehicle should run at 100 km/h.
Vehicle runs on Road B at 49 km/h. Road B allows for 49 km/h, but vehicle should run at 32 km/h.