Commit Graph

44 Commits

Author SHA1 Message Date
Gabriel Pérez-Cerezo c7ea09ed59 Complete Documentation on return value of split_at_fc() 2020-07-28 20:10:08 +02:00
Gabriel Pérez-Cerezo 3b9b884988 Document new luaatc commands 2020-07-28 12:00:27 +02:00
Gabriel Pérez-Cerezo 549db4737f add train_length command to luaatc 2020-07-27 21:50:22 +02:00
Gabriel Pérez-Cerezo 45413ee5c0 Add function to step through freight codes 2020-07-26 23:30:07 +02:00
Gabriel Pérez-Cerezo c54e0b341a add split_train_at_fc luaatc command
This command splits the train at the second non-empty FC it
encounters, taking with it the first few freight cars that all go to
the same destination.
2020-07-26 23:30:07 +02:00
Blockhead ad49854fed Make using the default tracks optional, even in submods
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.
2020-07-10 22:14:39 +02:00
orwell96 f33bb563e7 Add "Fallback state" for freed routes, move p_mesecon_iface.lua to core 2020-07-07 14:25:47 +02:00
Gabriel Pérez-Cerezo 2a0c55099e fix typo in luaautomation 2020-07-02 14:45:38 +02:00
Gabriel Pérez-Cerezo 0b14d8ddb1 Add autocouple mode
The shunting mode no longer makes trains couple, since it was meant
for other purposes. For autocoupling, the new autocoupling mode is
used. If trains are in autocouple mode, they couple when they collide
with another train.
2020-06-29 01:30:27 +02:00
Gabriel Pérez-Cerezo 15be500662 document shunting mode, add unset_shunt to luaatc 2020-06-08 13:42:24 +02:00
Blockhead c0c6fcf00b Apply minetest.formspec_escape() to prevent formspec injection (H#143) 2020-01-04 18:33:57 +01:00
orwell96 50a81dd1f3 Fix RWT initialization when creating new world (H#142) 2019-12-18 10:01:47 +01:00
orwell96 576365627a Fix scheduler crash (H#133)
for loops don't work with manipulating i
2019-11-21 16:02:32 +01:00
orwell96 8c55442076 Add "discard all" function to scheduler events and use it to clear schedules in luaatc rails 2019-11-06 22:07:10 +01:00
orwell96 a4efdc196c atlatc: fix operation panel not in ndb, add warning when node is not found on queue run 2019-11-06 21:20:26 +01:00
orwell96 7b488f40d9 Add lines scheduler for reliable railway-time scheduling(which is also safer than the atlatc scheduler) and document new atlatc functions 2019-08-26 23:08:02 +02:00
Gabriel Pérez-Cerezo 2d8c13885a Shunting mode now couples trains on collision.
Trains now get coupled when one of them is in coupling mode.
2019-08-11 20:16:11 +02:00
Gabriel Pérez-Cerezo ef50610f67 Document luaatc decoupling 2019-08-11 17:47:39 +02:00
Gabriel Pérez-Cerezo 1f6038c75a Add decoupling to luaatc 2019-08-11 17:42:30 +02:00
orwell96 053fd91fe0 RWTs can be specified in any form, unify converters, repeating time handling 2019-06-19 15:14:04 +02:00
orwell96 d569863434 Railway Time: atlatc interface, improve util functions 2019-06-19 10:29:02 +02:00
orwell96 ff94129761 Fix occurences of old lzb_invalidate 2019-04-23 22:30:33 +02:00
orwell96 e5c4e8cc1f Lift restrictions for date() function in atlatc 2019-02-22 12:52:33 +01:00
orwell96 e7dcee1127 Force LZB Halt setting 2019-02-05 11:23:17 +01:00
orwell96 f5e8b70202 Add getter/setter for routingcode in LuaATC 2019-01-15 17:54:13 +01:00
orwell96 4eb7531cc5 Add set_aspect function
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
2018-11-20 12:12:28 +01:00
orwell96 f90a7a77ef Add Note regarding pcnaming and interlocking signals 2018-11-20 12:08:37 +01:00
orwell96 37166b5c14 Make "Line" property accessible from OBC and gettable via LATC, change subway wagon texture handling 2018-11-20 11:57:46 +01:00
orwell96 63eedd0947 Allow pcnaming for any signals 2018-11-05 21:01:32 +01:00
orwell96 fe4b4a695a Fix node database ATC rail bug
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.
2018-10-17 21:05:06 +02:00
orwell96 cd38b17eab Address H#60, H#17, M#18 and M#7
duplicate "message" to "msg"
make operation panel "cracky"
remove inexistent dtime_s parameter
add bones:bones to the list of not_blocking_trains nodes
2018-10-17 18:11:11 +02:00
orwell96 87621caf1f Fix H#66 (Hemiptera 66) crash on missing double_conn match 2018-10-17 17:42:32 +02:00
orwell96 33c839b40d Add signal safety control override, restructure control system 2018-10-10 21:49:52 +02:00
orwell96 d837e7e5e9 Add LuaAutomation interface functions for interlocking routesetting and aspect requesting.
This allows to incorporate interlocking to automated systems
2018-08-24 22:39:13 +02:00
orwell96 5039c958a2 (Note added, merge in next commit) 2018-08-24 09:55:27 +02:00
orwell96 05cb6090ac Move passive API to the advtrains core
to remove dependency of interlocking on luaautomation
2018-08-16 19:18:03 +02:00
orwell96 a758426835 Correct some documentation 2018-06-14 21:31:35 +02:00
orwell96 24b0639c5f Mainly make collisions and coupling work
Missing: ATC stuff, yaw problems
2018-06-14 17:39:42 +02:00
orwell96 1feae7a1ea Add digiline interface and is_passive function to LuaATC 2018-04-25 17:14:03 +02:00
orwell96 46c4447da0 Rewrite rail connection system...
...to support an arbitrary number of connections for rails, which leads to these new features:
- switches now get recognized by the trackworker correctly
- ability to add real rail crosses
During this, I also rewrote the rail registering system and the conway function (important part of path prediction)
Note, developers: the track preset format changed, you might need to rewrite them according to the presets in tracks.lua if you wrote your own
(possibly breaks advcarts)
2017-12-18 23:09:23 +01:00
orwell96 e4b3d293d2 Add missing documentation for set_line 2017-10-25 12:00:30 +02:00
orwell96 f1a8b4f505 Implement multi-occupation in detector.on_node table to finally fix collisions 2017-10-25 11:49:34 +02:00
Gabriel Pérez-Cerezo 11d6a12ce7 Set wagon line number 2017-10-23 13:40:20 +02:00
rubenwardy d65c4916ce Remove zip release files, move mod to root, exclude assets from Makefile (#92) 2017-09-20 18:05:04 +02:00