aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/environment.lua
Commit message (Collapse)AuthorAge
* Fix set_aspect()Maverick27972024-08-01
| | | | Actually send aspect to advtrains.interlocking.signal_set_aspect() from LuaATC set_aspect()
* Fix section_occupancy: Return empty tableBlockhead2024-08-01
| | | | | | | | | | 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.
* Add register_function command so mods can register their own functons, ↵gpcf2024-02-06
| | | | low-level interface for departure boards
* Add chatcommand and luaatc function to get global_slowdownorwell2024-02-06
|
* small security fixes in advtrains_luaautomation/Maverick27972023-03-17
| | | | | | | - 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
* Luaautomation: add section_occupancy()Maverick27972021-12-29
| | | | | | | 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.
* LuaATC PCNaming: Allow naming active components using the toolorwell962021-11-02
|
* LuaATC: add sending atc command to train by ID, and getters for in/out text ↵orwell962021-03-02
| | | | (solves #124 and #166)
* LuaATC: Improve error/print logging, log only to subscribed playersorwell962021-02-17
|
* RWTs can be specified in any form, unify converters, repeating time handlingorwell962019-06-19
|
* Railway Time: atlatc interface, improve util functionsorwell962019-06-19
|
* Lift restrictions for date() function in atlatcorwell962019-02-22
|
* Add set_aspect functionorwell962018-11-20
| | | | | 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
* Add LuaAutomation interface functions for interlocking routesetting and ↵orwell962018-08-24
| | | | | | aspect requesting. This allows to incorporate interlocking to automated systems
* Move passive API to the advtrains coreorwell962018-08-16
| | | | to remove dependency of interlocking on luaautomation
* Add digiline interface and is_passive function to LuaATCorwell962018-04-25
|
* Remove zip release files, move mod to root, exclude assets from Makefile (#92)rubenwardy2017-09-20