| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
| |
(solves #124 and #166)
|
| |
|
|
|