aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
Commit message (Collapse)AuthorAge
* Signal UI: Rename Smartroute button to New (auto-search) to be more intuitiverelease-2.9.0orwell2026-03-29
|
* Add code headers to facilitate copy and paste1F616EMO2026-03-22
| | | | | | | | | | | | | | | | | This patch fixes the issue that environment and approach callback mode has to be set across copy and pastes through additional steps. By adding headers in the following format: -- ADVT-Environment-Name: tmp -- ADVT-Approach-Callback-Mode: 1 These settings will be automatically set when clicking "Save". Headers are only read when saved; therefore, codes can still modify the approach callback mode (or any other variables that later uses this header approach). This will speed up code copy and pastes, especially when handling codes that require approach callback. Signed-off-by: 1F616EMO <root@1f616emo.xyz>
* Aadd get_wagon_train_id for retrieving train ID from wagon ID1F616EMO2026-03-22
| | | | Context: https://chatlog.1f616emo.xyz/chat/1f616emoluanti/2026/01/30/#L147
* Editor Dopraven: remove remaining czech stringsorwell2026-03-22
|
* Update german translation and pot fileorwell2026-01-31
|
* Indicate routesetting trigger if a route is setY. Wang2026-01-29
| | | | | | | A player observed an issue with a certain setup where ARS is constantly triggered and the route cannot (easily) be canceled. This patch helps troubleshoot this issue by indicating the specific cause for routesetting (in particular, which train triggered ARS).
* atc_rail: Make sure speed limit in atc_set_lzb_tsr is number1F616EMO2026-01-29
| | | | | | Type-checking was done, but string values are not converted to numbers, causing hard-to-trace errors in advtrains/lzb.lua:175. There is risk of a crash loop if this is not fixed.
* Deprecate poconvertY. Wang2026-01-29
|
* Remove tr filesY. Wang2026-01-29
|
* Move PO and POT files to locale/Y. Wang2026-01-29
|
* Update translation readmeY. Wang2026-01-29
|
* Unify update-translations.shY. Wang2026-01-29
| | | | | | | | | | | | | | | | | | | | | | | Debian 13 has been released with Luanti 5.10. It is therefore safe to assume that most players are now using at least 5.10 with support for PO files. This patchset moves the .po translation files from po/ to locale/, making these accessible to the Luanti client. In addition: * .tr files are now dropped as these are no longer used. * update-translations.sh is now unified into a single file in the root directory of the modpack. It is also designed to handle the entire modpack rather than individual mods. * poconvert is deprecated as it is no longer useful (for Advtrains), and the effort to maintain this brings little gain in comparison. It is still kept for compatibility (i.e. in case other mods depend on this), but should arguably be removed in a later version. * The unittest step for testing PO files is removed because * It depends on the (deprecated) poconvert module; * It has not been particularly useful - its only use was (arguably) in testing poconvert itself; and * It is not fully functional as it only checks PO files in advtrains/.
* Export new Rwt functions to lua environment for luaatcorwell2026-01-22
|
* Fix some typos from previous commitsMaverick27972025-08-19
| | | | | - Fix LuaATC craft recipe setting name - Fix "ipars" typo in LuaATC get_fc_index()
* Add atc_pos to give information about where the LuaATC component is1F616EMO2025-08-19
| | | | | Adds an atc_pos table for getting the LuaATC component's coordinates. Useful to generate unique ID for LuaATC components, e.g. train position checkpoints.
* Let Poconvert create tr files for other modsorwell2025-06-11
|
* luaautomation update translations and complete german translationorwell2025-06-11
|
* update the translation extraction script of other modsorwell2025-06-11
|
* Tag strings for luaautomationorwell2025-06-11
|
* luaautomation: Split functions return the new train idorwell2025-05-05
|
* Add craft recipes for LuaATC componentsMaverick27972025-04-09
|
* Add craft recipes for Interlocking Tool, Trackmap Tool and PCNaming ToolMaverick27972025-04-08
|
* Various bugfixes found in lunixforks debugorwell2025-01-09
|
* Discard running interrupt and schedule events when LuaATC components are removedMaverick27972024-11-09
|
* Add get_fc_index() fucntionMaverick27972024-11-09
|
* Fix get_fc concat when fc = nilMaverick27972024-11-09
|
* Merge remote-tracking branch 'origin/l10n'orwell2024-11-09
|\
| * Various translation improvementsY. Wang2024-11-04
| |
* | Update LuaATC documentationY. Wang2024-11-09
|/ | | | | * Fix broken link to RWT API documentation. * w_speed is no longer relevant since the 2021 new-ks update.
* LuaATC add trainparts(train_id)Maverick27972024-09-02
| | | | | Returns a copy of the trainparts table to allow tracking individual wagon ids Also fixed a couple of file permissions from previous commits
* LuaATC set_fc(): add argument to reset fc index to 1Maverick27972024-09-02
|
* Fix LuaATC set_fc() only working on loaded entitesMaverick27972024-09-02
|
* Fix privilege check when using the PC naming toolrelease-2.4.5gpcf2024-08-11
| | | | | This fix prevents malicious modified clients from using the PC tool without the necessary privileges.
* 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
|
* Add get_fc() and set_fc() commandsMaverick27972023-03-17
| | | | | 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
* 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
* Add punchers name to ops panel punch eventrelease-2.4.2Maverick27972023-03-12
| | | | event={type="punch", punch=true, name="foo"}
* atc_reset(): Removed unused string parameter and also clear ATC autocouple ↵orwell962021-12-31
| | | | | | flag (Cpl) Fixes H#189 and H#190
* 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.
* readme atc_set_ars_disable typoMaverick27972021-11-09
|
* split_at_index where index=1Maverick27972021-11-08
| | | | | 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.
* LuaATC: remove accidental mesecons hard-dependencyorwell962021-11-04
|
* LuaATC: Fix position of error label, use consistent name "LuaATC" instead of ↵orwell962021-11-02
| | | | "LuaAutomation"
* LuaATC: Add Mesecons LuaATC Controller (similar to Mesecons Luacontroller)orwell962021-11-02
|
* LuaATC PCNaming: Allow naming active components using the toolorwell962021-11-02
|
* Hopefully fix #177orwell962021-04-25
|
* Fix undeclared globals warnings (#176)orwell962021-04-25
| | | | Reported by Vanessa Dannenberg