advtrains_attachment_offset_patch
Workaround to mitigate Luanti bug 10101, specifically for advtrains
advtrains_attachment_offset_patch
This modpack implements the workaround for Luanti bug 10101, with API for advtrains wagons.
Mods in this modpack
advtrains_attachment_offset_patch
Adds “attachment dummy” objects to seats in advtrains wagons, so the Luanti client will set the eye position correctly.
Mods which add train models to advtrains have to use the API to make their wagons use the workaround.
advtrains_attachment_offsets
Makes various train mods use the advtrains_attachment_offset_patch API.
This is also a short success story, which makes me happy:
When I created
advtrains_attachment_offset_patch, there were of course no mods using it. I added this mod to patch all known existing train mods to have sensible attachment offsets. Nowadays, new train mods have started usingadvtrains_attachment_offset_patch, soadvtrains_attachment_offsetswill become unnecessary. I do not intend to updateadvtrains_attachment_offsetsanymore.Some mods (namely DlxTrains) were originally patched by
advtrains_attachment_offsets, but now implemented support foradvtrains_attachment_offset_patchthemselves. This appears like a cyclic dependency, if you look at the mods on ContentDB.
- Actually,
advtrains_attachment_offset_patchcomes first.- Train mods depend on
advtrains_attachment_offset_patch, so they come second.advtrains_attachment_offsetsdepends on the train mods, so it comes last. It detects trains that are already patched, and then does not modify them anymore.
Issues
- When I join the game, I am not correctly reattached to some wagons.
- This is a bug in the
on_joinplayercallback handler ofadvtrains, and is not related to this mod.
- This is a bug in the
Installation
This mod is intended to be installed from Luanti’s own content manager, ContentDB.
You can also clone the repository to your mods folder.
You will need to disable the “LICENSES” and “screenshots” mods, if your Luanti can not figure out that these aren’t mods.
You can also use this bash command from the root directoy of the repository:
git archive --format tar HEAD | tar --extract --one-top-level=advtrains_attachment_offset_patch --directory=path/to/luanti/mods/
(Using GNU tar.)
License
The mod is licensed as CC-BY-1.0 (media) and MIT (code).
Screenshots depict artwork from other Luanti mods, and are licensed as CC-BY-SA-4.0.
Contributing
The source code is hosted at https://invent.kde.org/davidhurka/doxy_advtrains_attachment_offset_patch. Problems should be reported at https://invent.kde.org/davidhurka/doxy_advtrains_attachment_offset_patch/issues.
Links
- Source: https://invent.kde.org/davidhurka/doxy_advtrains_attachment_offset_patch.git
- Forum: https://forum.luanti.org/viewtopic.php?t=28254
- Issues: https://invent.kde.org/davidhurka/doxy_advtrains_attachment_offset_patch/issues
- Website: https://invent.kde.org/davidhurka/doxy_advtrains_attachment_offset_patch
- Original ContentDB page: content.luanti.org/packages/doxygen_spammer/advtrains_attachment_offset_patch/
License
MIT
Media license: CC-BY-SA-4.0
Development state
ACTIVELY_DEVELOPED
| Version | Date | Min engine | Size | Download |
|---|---|---|---|---|
| 1.0.2 | 2023-07-02 17:36:01 | 5.0 | 638.5 KB | Download |