| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
low-level interface for departure boards
|
| |
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
(solves #124 and #166)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This allows incorporating signals implementing the signal API in LuaAutomation projects
Note that it circumvents TCB assignments (a signal assigned to a TCB can be set to green even if no route is set
|
|
|
|
|
|
| |
aspect requesting.
This allows to incorporate interlocking to automated systems
|
|
|
|
| |
to remove dependency of interlocking on luaautomation
|
| |
|
|
|