RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.01k stars 175 forks source link

Added hydro flag `j`, restored bug with `i` for backw. compat. #2933

Closed ohlidalp closed 2 years ago

ohlidalp commented 2 years ago

It turns out the i flag has a bug: it always makes the hydro invisible, but if it comes as first/single flag, then it also makes the hydro commanded by steering input. That means:

To resolve backward compatibility, I added a new flag j, which makes the hydro invisible but without the quirks of i. The parser still recognizes i but internally I'm using only j and n.

The documentation https://docs.rigsofrods.org/vehicle-creation/fileformat-truck/#hydros needs to be updated:

Fixes #2932

ohlidalp commented 2 years ago

Test using this vehicle (all hydros have ir flags): dafsemi-hydro-ir.zip

Note it got broken in https://github.com/RigsOfRods/rigs-of-rods/commit/9421c6843c10973c835e2e44de730f6f5919405d - if you build an earlier commit, it will work the same way as in this PR.