Commit Graph

36 Commits (master)

Author SHA1 Message Date
hlqkj 07b1231f75 Rework stoprail formspec layout and add mono style
- Rework formspec layout, fixed tab order
- Added style to use monospaced font for the stn and ars fields
2021-03-22 11:06:03 +01:00
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 682ff59906 Replace deprecated depends.txt's by mod.conf and organize dependencies consistently, add modpack.conf 2021-03-13 11:13:13 +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
orwell96 d89b8b1c89 Fix schedule_in() crash when RWT is not in number format (H#159) 2020-10-07 14:54:04 +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
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 43b4d863ec lines: fix very dumb typo breaking the "add" and "diff" function 2019-11-06 22:06:46 +01:00
orwell96 7f4f8c606d lines: Add rwt adapt mode to adapt to real time 2019-11-06 21:22:33 +01:00
orwell96 a3c468058a lines: document scheduler better 2019-11-06 21:22:18 +01:00
orwell96 27f85f2e22 Secure inputs to scheduler so that they don't get recognised when executing the schedule 2019-08-29 22:30:43 +02: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 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 053fd91fe0 RWTs can be specified in any form, unify converters, repeating time handling 2019-06-19 15:14:04 +02:00
orwell96 8c91f64c2b Omit cycle in to_String 2019-06-19 10:37:00 +02:00
orwell96 d569863434 Railway Time: atlatc interface, improve util functions 2019-06-19 10:29:02 +02:00
orwell96 24e56dbfc2 Railway Time: Basic time counter and utility functions 2019-06-19 09:56:30 +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 2976bae452 Point speed restriction rails 2019-01-24 13:43:22 +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