| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
without LuaATC
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- A basic texture manipulation API is added; currently this is only a
(selected) subset of texture modifiers provided by MT; the goal is to
avoid writing (potentially incorrect) texture strings by hand;
- The graphical HUD code is cleaned up; in particular, most code used
for generating texture patterns are moved to texture.lua so that the
code can be used outside of the HUD;
- Inactive elements are given the darkslategray background.
A basic unittest is added; however, it needs to be expanded for better
coverage.
Reported-by: Lars Müller <appgurulars@gmx.de>
|
|
|
|
| |
Reported by Sebastien F4GRX, thank you!
|
|
|
|
| |
Actually send aspect to advtrains.interlocking.signal_set_aspect() from LuaATC set_aspect()
|
|
|
|
|
|
|
|
|
|
| |
Fixes the functioning of the LuaATC function section_occupancy in
the presence of no trains.
Currently, if there is no train in the section,
advtrains.interlocking.db.get_ts will return a table with a nil entry.
When that nil value is passed to table.copy, Minetest throws out an error.
Instead of passing nil to table.copy, just make a new empty table.
|
| |
|
|
|
|
|
|
|
| |
This patch fixes the following problem:
* TCB marker is not removed on TCB removal
* TCB marker is recreated on removal
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The use of textures with transparent pixels (for the default tracks: the
"features" on the track) without specifying use_texture_alpha (at least
for the mesh drawtype) has been deprecated in a PR from August 2020[1]
(i.e. since 5.4.0[2]) and removed in the latest dev version[3]. As a
consequence, regular tracks are now rendered with black markers at the
same position where e.g. the blue (Lua)ATC marker would be found.
This commit fixes the issue by enabling use_texture_alpha by default for
all tracks.
[1] https://github.com/minetest/minetest/pull/10122
[2] https://dev.minetest.net/Changelog#5.3.0_.E2.86.92_5.4.0
[3] https://github.com/minetest/minetest/pull/13929
|
|
|
|
| |
low-level interface for departure boards
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
- Partially addresses Hemiptera #165 / Notabug #6
- Will recalculate wagon textures when the inventory is modified
- Only acts as a loading ramp when in a loaded area.
- Retains previous flood loading of entire train when area unloaded
|
|
|
|
| |
reverse_lookup_sel() to select appropriate index out of multiple based on a heuristic
|
|
|
|
|
| |
Can be used to determine which wagon is at a certain world position
Testing: use debugitems.lua
|
| |
|
|
|
|
|
|
|
| |
This reduces the difficulty of having to point at the centre of the
correct track node, and hopefully does not prevent placing tracks in
more than a couple of cases. Three-way turnouts on an angle may be
an exception but they may be worth it. User feedback is needed.
|
|
|
|
| |
Related issue: https://forum.minetest.net/viewtopic.php?p=414307#p414307
|
|
|
|
|
| |
get_fc: returns a table of each wagon's FC codes
set_fc: set a table to overwrite the FC codes of a train's wagons
|
|
|
|
|
|
|
| |
- fixed file permissions of advtrains_luaautomation/README.md (755->644)
- fixed file permissions of advtrains_luaautomation/environment.lua (755->644)
- prevented LuaATC section_occupancy() from having direct access to the interlocking section id occupancy table
- simplify section_occupancy() logic
|
|
|
|
| |
event={type="punch", punch=true, name="foo"}
|
|
|
|
| |
Previously, statement was always false because train_id is no longer in the luaentity
|
|
|
|
| |
45 degree platform design is not a sound
|
|
|
|
| |
leftover train.debug
|
|
|
|
|
|
| |
wagons
Adds field "wheel_positions" in wagon definition
|
|
|
|
|
|
| |
flag (Cpl)
Fixes H#189 and H#190
|
|
|
|
|
|
|
|
| |
- Set a freight code in the track to whitelist only wagons with that FC as the current one
- Set as # to disable the track
- Set as a blank field (default) to allow all wagons to activate, irrespective of their FC
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Returns a table of train ids for the specified section.
Returns nil if the section id is not provided..
Returns false if the section id is invalid.
Returns an empty table if the section id is valid but empty of trains.
|
| |
|
|
|
|
| |
commit
|
| |
|
|
|
|
| |
Searches and deletes duplicate influence points for the same signal when "Influence Point" formspec is opened.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Splitting at index=1 results in multiple empty trains being created.
Can be prevented by an atc_speed > 0 check by the user, but easier just to return false and do nothing.
|
|
|
|
|
|
| |
- Add sign for line speed 20 (else no way to return to max line speed once set)
- When no distant signal info available (default), Ks displays green light (2 sections free)
- Normal and wall signals again signal maximum speed (persistent restriction can be given via line speed nouw)
|
| |
|
| |
|
| |
|