What does this mod do?
This mod does not add any new content to the game. All it does is tweak the lengths of modded trains (like those in Yuoki Industries - Railways and
NK Railways) so that they fit with the world grid and wagons accept a consistent number of inserters. It should work with any combination of locomotives and wagons.
Why?
The justification of mod authors for non-integer rolling stock lengths is aesthetics. I personally am more bothered by misalignment, and if you are too then this mod is for you. This mod isn't a "fix" per se, since the mods were made that way deliberately, it's just a matter of preference. I also think most trains still look reasonably good with this mod enabled.
Some of the classic Factorio train mods were also made back when vanilla trains also had weird alignment issues, so it probably felt less out of place then anyway.
Does this work with any mod?
It should do. If any mods don't load, or if some modded trains look wrong, let me know.