Commit Graph

108 Commits (db9e4429d789b5217a969de34ecd429c385c380b)

Author SHA1 Message Date
orwell96 db9e4429d7 Fix protection of TSR rail 2021-02-19 22:46:21 +01:00
orwell96 30076f5ce3 Add some missing craft recipes
- LuaATC remains non-craftable for now (elevated privs necessary anyway)
- Some crafts altered from dario's proposal

Co-authored-by: W3RQ01 <dario23@linux-forks.de>
2021-02-19 18:46:03 +01:00
orwell96 1e0ae9fcc5 fix legacy signal aspect converter 2021-02-10 18:28:50 +01:00
orwell96 672b4a422c Remove debug facilities 2021-02-10 16:39:46 +01:00
orwell96 8f4c90c5a5 Add debug prints, modify LZB to fix problems with look_ahead 2021-02-10 16:39:46 +01:00
orwell96 9a775eff5b Add sign to make shunt moves proceed as main and improve doc of signals 2021-02-10 16:37:21 +01:00
orwell96 114b915518 Fix new green signals bug caused by old trav_lzbdata, and callback loop in signalling formspec 2021-02-10 16:36:24 +01:00
orwell96 61329c11a2 Start using path_invalidate_ahead() 2021-02-10 16:36:24 +01:00
orwell96 aee7f0d419 Fix things, rework signal aspect select dialog, transform old aspects on-the-fly 2021-02-10 16:36:24 +01:00
orwell96 119a09b784 Simplify Signal Aspect Table (H#132) [breaks compatibility with signal API] 2021-02-10 16:36:24 +01:00
orwell96 8660794ef8 Fix lots of things around new LZB 2021-02-10 16:36:24 +01:00
orwell96 b59b0d587d Implement a LZB speed lookup table for the path and rewrite velocity controls 2021-02-10 16:35:45 +01:00
orwell96 816245588d Disable ARS train flag and surrounding uses 2021-02-10 16:35:45 +01:00
orwell96 6202c1cb00 Fix removing stale TCB nodes 2021-01-12 14:40:24 +01:00
orwell96 3256c2778d Forbid track modification when train, IP or TCB is on it, better handle removing of TCBs (H#149) 2020-10-07 17:20:47 +02:00
Linus Jahn 00be2b5b5f tcb: Fix crash when player is nil 2020-09-01 15:20:15 +02:00
orwell96 3c9215f037 DISCARD ON MERGE!: Temporary compatibility fix: translate signal aspects back to old format if they are in the new format, to allow reverting from new_lzb 2020-07-23 19:28:46 +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
orwell96 657446e163 Fix minetest.after() loop between ARS->update_route->update_signal_aspect->invalidate_path 2020-06-05 13:48:12 +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 9c1d356505 Add inverse ARS rules
!RC foo
!LN bar

will match all trains except those matching RC foo or LN bar. This can
be useful to exclude one specific service from a component.
2019-12-05 00:08:43 +01:00
orwell96 0252768c16 Fix the "red signals" bug that appeared when clicking a green signal 2019-11-21 16:09:47 +01:00
orwell96 986c8fcf92 Do not throw error when sync_tcb_neighbors fails 2019-08-29 21:11:27 +02:00
orwell96 d867cd723f Don't allow to remove TCB when a signal is assigned 2019-08-26 20:46:08 +02:00
Gabriel Pérez-Cerezo daba00b6a2 Various small fixes
- Also do atomic operations on nodedb
- no longer require Worldedit for at_sync_ndb
- "overrun LZB 0 restriction" should now show where it happened.
2019-07-16 17:26:53 +02:00
orwell96 b56cda8695 Fix remote routesetting 2019-04-16 12:59:17 +02:00
orwell96 ea33ad9de0 Move LZB system to core and unify approach callback mechanism 2019-04-16 09:16:44 +02:00
orwell96 5738ab46aa Disable-ARS switch in signal and set this when cancelling an ARS route 2019-03-15 18:17:18 +01:00
orwell96 1227456d46 Ugly workaround for green signals bug 2019-03-15 17:39:31 +01:00
orwell96 c90411b880 Fix cancelling "Unknown Route" when section is deleted. 2019-03-15 16:40:23 +01:00
orwell96 042dcd241d Do not clear LZB control when invalidating.
Prevents trains accelerating towards red signals on /at_reroute
2019-02-23 10:37:48 +01:00
orwell96 086b2c0fb0 possible fix for "trains standing at green signals" 2019-02-21 09:36:25 +01:00
orwell96 2ba75784c2 Fix moving Signal IPs (no duplicate IPs) 2019-02-21 08:53:41 +01:00
orwell96 f2c2aad329 Add ARS rules for stop rails 2019-02-19 21:54:17 +01:00
orwell96 391a57f90c Prioritize LZB callback (possible bugfix for H#100) 2019-02-19 15:49:01 +01:00
orwell96 ee079d02ff Improve Signal IP form/workflow 2019-02-16 13:09:33 +01:00
orwell96 aa2b08b985 Fix TCBS crash also for route_ui 2019-02-16 13:00:59 +01:00
orwell96 ede60d0a17 Fix routesetting when TCBS is missing (H#109) 2019-02-12 22:17:43 +01:00
orwell96 fcb3dec0c0 Fixes regarding signal assignments/tcbs
- No longer crashes when assigned tcb is removed
- don't forbid modification just because signal is assigned
2019-02-09 19:24:10 +01:00
orwell96 7891c7c342 Signalling form auto-update 2019-02-05 11:40:24 +01:00
orwell96 e7dcee1127 Force LZB Halt setting 2019-02-05 11:23:17 +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 f6f922c90c Fix last commit (and another warn2log) 2019-01-22 23:40:53 +01:00
orwell96 f2a62c2d77 Fix atc command evaluation BB command 2019-01-22 23:26:20 +01:00
orwell96 2b87106961 Make LZB params adjustable 2019-01-22 23:16:26 +01:00
orwell96 7537d2026f another small fix for route_ui 2019-01-22 21:39:06 +01:00
orwell96 7c60b8ffd1 Fix small bug in routeui and make another message log-only 2019-01-22 21:06:26 +01:00