| Commit message (Collapse) | Author | Age |
|
|
|
| |
Allows a server to disable the coupler checks when multiple coupler types are present, making everything effectively a universal coupler
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch exposes train.staticdata that can be used by other modders to
save data in trains across restarts. It additionally exposes two new
APIs for modders where this is relevant:
* advtrains.te_register_on_couple(function(init_train, stat_train)):
registers a callback for train coupling, where stat_train is couple
into init_train and is subsequently removed. This callback is run
before the actual coupling takes place; in particular, it is run
before stat_train is removed.
* advtrains.te_register_on_decouple(function(train, newtrain, index)):
registers a callback for train decoupling, where newtrain is created
by splitting the train at the given index (the wagon at the index is
part of the new train). This callback is run after decoupling takes
place.
advtrains.te_register_on_decouple(function
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The French translations are provided by Tanavit. Unfortunately I was not
able to keep this addition as a separate commit as the translation file
was originally added as a .tr file that I then converted to .po file in
the meantime.
Also note that this commit is created from squashing 20+ commits from
the l10n branch that preceded the transition to PO files. In addition to
changes to the locale files (which were all included in the single
commit for transitioning to PO files), these commits also included code
that has now become obsolete for l10n work. In particular, it included a
GUI program written in Tcl to edit .tr files; this program can now be
found in the following repo: https://codeberg.org/y5nw/mt_tr_editor
Co-authored-by: Tanavit <tanavit@posto.ovh>
|
| |
|
|
|
|
| |
reverse_lookup_sel() to select appropriate index out of multiple based on a heuristic
|
|
|
|
|
|
| |
split_at_index() from LuaATC
Issue was that train thought it would collide with the newly added back portion although it was already long past this train. Added additional check that current train index is not further than the collision point.
|
| |
|
|
|
|
| |
types match
|
|
|
|
| |
is kept, add ATC Cpl command
|
|
|
|
|
|
|
| |
- Adds a separate collision system for trains sharing a path
- Moved some coupling-related code to couple.lua and refactor it
- Handle coupling in a way that the initiating train always keeps its ID
- As a side effect, engine has its direction reversed after coupling
|
|
|
|
| |
Reported by Vanessa Dannenberg
|
| |
|
| |
|
|
|
|
|
|
| |
distance-based approach or minetest.is_block_active() if available
See also https://github.com/minetest/minetest/pull/10897
|
|
|
|
|
| |
Work around the entity flood bug caused by improper engine handling of
static_save=false
|
|
|
|
| |
and fix permissions on that
|
| |
|
|
|
|
|
|
| |
nil/false)
Fixes H#72
|
| |
|
|
|
|
| |
Missing: ATC stuff, yaw problems
|
| |
|
|
|
|
|
| |
Discouple entity was falsely placed at the position of the wagon
instead of at its end
|
|
|
| |
IDK why this happens, but it's not important.
|
|
|
|
|
|
|
|
| |
Features:
- couple/decouple trains from a driver stand
- new couple lock system (owner based, overridable by 'train_remove' privilege)
- all train operators can now change the inside/outside text, allows for multilines
Accessible via right-click menu or by pressing Sneak+Jump keys
|
|
|
|
| |
This will be required for advcarts
|
|
|
| |
I think the issue is caused by the new animal damage code...
|
|
|
|
|
|
| |
If a train moved towards another train, and the other train's step was executed after the first one's, the trains did eventually not collide.
Fix by moving the enter_node and collision check to step_b
Also change some couple behavior
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
also fix empty trains hanging around for too long
|
|
|