| Commit message (Collapse) | Author | Age |
| | |
|
| |
|
|
|
|
| |
- Added "at_rideable" to include anything that can be ridden, rather than the previous hardcoded "pass" seat name.
- Changed how "at_control" was calculated (now checks for driving_ctrl_access)
- Changed how "at_pax" was calculated (now checks for not driving_ctrl_access)
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
File :
- advtrains : init.lua wagons.lua
- advtrains_line_automation : scheduler.lua stoprail.lua
Actions :
- Conversion of attrans() to S()
- Insertion of S() function calls where needed.
Miscellaneous :
- Removing of personnal tries on update-translastions.sh which should
not have been committed.
# Third and last patch of a serie of three to be applied to the master branch of advtrains on commit #0b7fdc6
#
# ATTENTION :
#
# 1. These patches come from a derivation of the l10n branch which, afaik, is not yet merged in the master branch.
# I guess that applying these patches will shortcut the l10n branch.
# 2. These patches contain translations strings of for the modification I proposed some month ago for basic_trains which,
# afaik, are not yet merged in its master branch.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
(i.e. width ~= 3)
Extends detection to the whole span of the wagon's width (to be consistent with previous behaviors, the middle is only included if width = 1).
|
| | |
|
| |\ |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
As it turns out, not fully testing new features is not necessarily a
good idea ...
This patch follows up 1F616EMO's patch by
* Making get_wagon_prototype return the resolved alias,
* Handling recursive wagon alises (in particular, loops), and
* Adding (partial) unittest for the wagon aliasing system. [v2]: The
testcases are complemented a bit more to cover situations where the
alias resolution system should return nil.
[v2]: This patch should hopefully also warn about not spawning wagons.
Note that this only warns about the missing wagon entity and does _not_
actually fix the issue.
How to test:
* In a world with both advtrains_train_subway and advtrains_train_japan
enabled, place a subway wagon, a Japanese engine, and a regular
Japanese wagon.
* Add the test mod to the world; do NOT remove advtrains_train_japan.
* Restart the world. Notice that the Japanese wagons still appear as
Japanese wagons despite being aliased to subway wagons.
* Restart the world without the advtrains_train_japan mod. Notice that
the engine appears as the subway wagon while the regular Japanese
wagon appears as the wagon placeholder. [v2]: Also note that the
warning message about the missing wagon prototype still mentions the
regular Japanese wagon.
* Restart the world again with the advtrains_train_japan mod. Notice
that both type of Japanese wagons reappear as Japanese wagons.
* Observe that unittests work.
Test mod:
advtrains.register_wagon_alias("advtrains:engine_japan", "advtrains:subway_wagon")
advtrains.register_wagon_alias("advtrains:wagon_japan", "advtrains:wagon_japan")
|
| | |
| |
| |
| | |
Press sneak to force default behavior.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
remains transparent and the player can copy the Train ID.
|
| | |
| |
| |
| | |
Also added the Wagon ID to the Wagon Properties formspec
|
| | | |
|
| | |
| |
| |
| | |
without LuaATC
|
| | | |
|
| |/ |
|
| |
|
|
|
| |
Can be used to determine which wagon is at a certain world position
Testing: use debugitems.lua
|
| |
|
|
| |
leftover train.debug
|
| |
|
|
|
|
| |
wagons
Adds field "wheel_positions" in wagon definition
|
| |
|
|
|
|
|
|
|
| |
Based on the advtrains wiki groups:
Type Group Classifier
- Locomotives: group:at_loco is_locomotive = true
- Controllable: group:at_control seat_groups.dstand
- Passengers: group:at_pax seat_groups.pass
- Freight: group:at_freight has_inventory = true
|
| |
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
| |
This command kicks out all passengers when the train is stopped and
its doors are open. In addtion, a wagon:is_driver_stand(seat) function
was added to allow finding out easily if a seat is the driver stand of
the wagon.
|
| |
|
|
| |
Needed for linetrack boat sound bug
|
| |
|
|
|
| |
Work around the entity flood bug caused by improper engine handling of
static_save=false
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
This command splits the train at the second non-empty FC it
encounters, taking with it the first few freight cars that all go to
the same destination.
|
| | |
|
| | |
|
| | |
|
| | |
|