| Commit message (Collapse) | Author | Age |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
| |
Context: https://chatlog.1f616emo.xyz/chat/1f616emoluanti/2026/01/30/#L147
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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/.
|
| | |
|
| |
|
|
|
| |
- Fix LuaATC craft recipe setting name
- Fix "ipars" typo in LuaATC get_fc_index()
|
| |
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |\ |
|
| | | |
|
| |/
|
|
|
| |
* Fix broken link to RWT API documentation.
* w_speed is no longer relevant since the 2021 new-ks update.
|
| |
|
|
|
| |
Returns a copy of the trainparts table to allow tracking individual wagon ids
Also fixed a couple of file permissions from previous commits
|
| | |
|
| | |
|
| |
|
|
|
| |
This fix prevents malicious modified clients from using the PC tool
without the necessary privileges.
|
| |
|
|
| |
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.
|
| |
|
|
| |
low-level interface for departure boards
|
| | |
|
| |
|
|
|
| |
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"}
|
| |
|
|
|
|
| |
flag (Cpl)
Fixes H#189 and H#190
|
| |
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
"LuaAutomation"
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Reported by Vanessa Dannenberg
|