Commit Graph

20 Commits

Author SHA1 Message Date
Blockhead 5b4f5491d2 Do not return early after setting station info on stop rail
Solves Hemiptera#171
2021-03-22 11:02:10 +01:00
orwell96 3c42d87dc0 Stoprail: Set LZB checkpoint speed back to 2
Caused problems when approaching stoprail in manual control
also better for compatibility
2021-02-10 16:39:46 +01:00
orwell96 8660794ef8 Fix lots of things around new LZB 2021-02-10 16:36:24 +01:00
orwell96 816245588d Disable ARS train flag and surrounding uses 2021-02-10 16:35:45 +01:00
Gabriel Pérez-Cerezo eccfe8d195 Add K command to station rail
Move the UI of station rails to use checkboxes rather then dropdowns
for the reverse command.
2021-01-08 17:32:57 +01: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
Blockhead c0c6fcf00b Apply minetest.formspec_escape() to prevent formspec injection (H#143) 2020-01-04 18:33:57 +01:00
Gabriel Pérez-Cerezo b5e8068a99 math.floor triggers error if it gets something nil 2019-07-20 19:43:38 +02:00
Gabriel Pérez-Cerezo 896baf8e05 Prevent injection of floating-point delays, that wreck advtrains 2019-07-20 19:26:55 +02:00
Gabriel Pérez-Cerezo d6de12ded6 Added option to modify departure speed and door delay
The door delay is the time between when the doors start closing and
the train departs.
2019-07-20 18:41:40 +02:00
orwell96 ea33ad9de0 Move LZB system to core and unify approach callback mechanism 2019-04-16 09:16:44 +02:00
orwell96 f2c2aad329 Add ARS rules for stop rails 2019-02-19 21:54:17 +01:00
orwell96 0684c6edd7 Move "Reverse" command in stoprail to directly before departure 2019-02-19 15:56:04 +01:00
orwell96 84f1c3d8a5 Fix stop rails sometimes not sending stop command 2019-02-16 21:51:14 +01:00
orwell96 4112476bc9 Small stoprail fixes 2019-02-11 21:41:10 +01:00
orwell96 be09acf5e2 Minor Bugfixes 2019-02-03 16:37:03 +01:00
orwell96 9da148347d Basic functions of "stop rail", missing ARS rules and signal.
For signal, need to think of a callback system for signals and moving atlatc queue to core?
2019-01-24 17:50:26 +01:00
orwell96 7a970dd4fa Signs (static signals) 2018-12-08 18:23:34 +01:00
orwell96 dd0c52d9aa no debugpring 2018-11-29 17:56:16 +01:00
orwell96 ec68eaa229 Added on_train_approach callback, non-permanent external LZB brakepoints and basis for "stop rails"
Stop rails ATM use the aforementioned things to add a pointwise "2" speed restriction. Seems to work.
2018-11-29 17:52:56 +01:00