| 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>
|
| |
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
"LuaAutomation"
|
| | |
|
| |
|
|
|
| |
The current size of the code form is rather limiting as it fills only a small part of the screen.
Also adds global constant in init.lua so this can easily adapted in the future
|
| |
|
|
|
|
| |
- Aligned stuff
- Added style to use monospaced font in the code editor textarea
- Added label to the environment dropdown
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
digiline_send(), move on_updated_from_nodedb to advtrains table
|
| |
|
|
|
|
| |
distance-based approach or minetest.is_block_active() if available
See also https://github.com/minetest/minetest/pull/10897
|
| |
|
|
|
|
|
|
|
|
| |
If advtrains_train_track is disabled, don't register any tracks that use
its model like the LuaATC automation rail, point speed restriction rail,
station/stop rail.
For LuaATC, the definition for firing an event when a
train runs over the rail needs to be moved into the common defs so that
other mods like linetrack can use that as an interface.
|
| | |
|
| |
|
|
| |
for loops don't work with manipulating i
|
| |
|
|
| |
in luaatc rails
|
| |
|
|
| |
than the atlatc scheduler) and document new atlatc functions
|
| |
|
|
|
|
|
| |
After successfully registering newly-placed ATC rails in the nodedb, the rail's after_place_node() callback
(local apn_func()) immediately cleared it again by passing a "node" object that was actually a player object
and thus had no "name" or "param2" to ndb.update(), which it handled how it should not in this situation.
Since those ndb.update calls were unnecessary anyways, I removed them completely.
|
| |
|
|
|
|
|
| |
duplicate "message" to "msg"
make operation panel "cracky"
remove inexistent dtime_s parameter
add bones:bones to the list of not_blocking_trains nodes
|
| | |
|
| | |
|
| |
|