Commit Graph

119 Commits

Author SHA1 Message Date
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
orwell96 a34c2f4053 disable debug print of ARS 2019-01-22 18:48:46 +01:00
orwell96 0617a6a1bd Fix may_modify_section on newly created sections 2019-01-22 17:47:43 +01:00
orwell96 6c1ca46d6e Fix invalid path invalidation in ARS code 2019-01-22 12:43:11 +01:00
orwell96 64e59b54f8 Prohibit removing/changing of TCBs and sections while routes or signals are set 2019-01-22 12:07:53 +01:00
orwell96 cb48aea3e0 Do not run LZB traverser when path does not exist 2019-01-21 20:50:42 +01:00
orwell96 08649b84a0 Fix route aspect dialog 2019-01-15 20:06:45 +01:00
orwell96 a3baead979 Fix Routingcode ARS 2019-01-15 17:43:55 +01:00
orwell96 c180582f3d Can disable automatic working without cancelling route 2019-01-15 17:25:51 +01:00
orwell96 3ce98cae9a Actual working ARS 2019-01-15 17:23:03 +01:00
orwell96 a751d1da9c Add Automatic Routesetting UI
Settings have no effect so far
2019-01-09 18:03:40 +01:00
orwell96 c8788e6ca7 Fix crashes:
1. when train hit a route, nil access to already cancelled route caused crash
2. fix crash when trying to ensure_init a train that doesn't exist
2018-12-10 22:57:16 +01:00
orwell96 7a970dd4fa Signs (static signals) 2018-12-08 18:23:34 +01:00
orwell96 c3c5431412 Shunt signals (not exactly Ks), along with fixes in other components that those rely on 2018-12-08 17:12:57 +01:00
orwell96 e37f4f9188 Apply speed restriction 0.5 indexes later, do not cap tarvelocity by speed_restriction 2018-12-04 19:27:44 +01:00
orwell96 e1a8a2e974 Do not set speed_restriction for npr 2018-12-04 00:17:54 +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
orwell96 e2a844f5bf Permit basic signal aspect setting
(basically only usable with Ks signals, because they're the only signals supporting slow move and/or shunt move
2018-11-19 23:53:42 +01:00
orwell96 7bbe0c2468 Replace "Allow accelereting train towards signal"
This is a better implementation of the same goal. The last commit caused trains to overrun the IP sometimes. Haven't noticed so far with this approach
2018-10-30 16:19:37 +01:00
orwell96 f8c00bcba3 Make fillout_aspect also fill "info" field 2018-10-30 15:36:39 +01:00
orwell96 c4bac79bf0 Do not allow static signals for routesetting 2018-10-30 15:36:24 +01:00
orwell96 1ff809b883 Do not print "couldn't determine section" warning when all traverser ends were end-of-track 2018-10-29 21:28:03 +01:00
orwell96 6298f8b081 Allow to accelerate trains slowly towards red signals from stand.
Previously, it was impossible to accelerate a standing train once it was ~10m in front of a red signal.
2018-10-29 20:49:31 +01:00
orwell96 ef50505e95 Fix typo in signal assignment, causing crash 2018-10-29 20:11:22 +01:00
orwell96 68f047cc01 Miscellaneous routesetting fixes
- Move handling of "route_committed" to the routesetting function
- Put aspect in every TCBS on the way
- Add "route_origin" to TCBS fields to prevent subroute cancelling
- Cancel entire route when another train enters from the wrong TCB
2018-10-29 20:06:04 +01:00
orwell96 0ae0b6a768 Fix signal_get_aspect()
Had a series of bugs as result, like auto-clearing IPs and not-working lzb
2018-10-29 18:12:00 +01:00
orwell96 c1d5fb0e8c Add Interlocking Tool to inspect route locks 2018-10-26 19:44:16 +02:00
orwell96 012c01fcc7 Add "Reset track section" function 2018-10-26 19:05:57 +02:00
orwell96 6bb6c7d345 Fix demo signals 2018-10-25 22:49:30 +02:00
orwell96 f007017aa4 Add doc for supported_aspects, improve other doc and aspect autofill 2018-10-25 22:40:28 +02:00
orwell96 69f368ab34 Display route_rsn when denying routesetting by subroute locked. 2018-10-25 22:38:44 +02:00
orwell96 b4534c6f12 Improve ATC-LZB-User control interaction, smoothen LZB control operations
(prevent flickering view when atc battles against lzb)
2018-10-17 18:58:57 +02:00
orwell96 e04d84cb4c Actually allow what manual promises (setting IP on non-assigned signals) 2018-10-17 17:37:03 +02:00
orwell96 9db52bcd32 Remote Routesetting from Onboard Computer
+ Fix lzb oncoming item deletion/speed restriction
2018-10-10 23:17:31 +02:00
orwell96 842a85606e Properly implement invalidate_all_paths, recheck lzb on aspect change 2018-10-10 22:41:59 +02:00
orwell96 33c839b40d Add signal safety control override, restructure control system 2018-10-10 21:49:52 +02:00
orwell96 8f8f009425 Make signal influence point (~halt point) specifiable
Also extend signal api necessarily
2018-10-09 12:07:23 +02:00
orwell96 8df7bcf6b6 Improve route programming:
- Formspec for TCBs instead of unhandy chatcommands
- Ability to advance route over the next secction without punching end
- Better visualization
- Ability to route into dead-end sections
2018-10-07 22:21:49 +02:00
orwell96 8e70c070c1 Fix route programming lock-placement 2018-09-28 22:27:08 +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 05cb6090ac Move passive API to the advtrains core
to remove dependency of interlocking on luaautomation
2018-08-16 19:18:03 +02:00
orwell96 5fad61e9c9 Fix various bugs found while testing 2018-08-13 11:27:38 +02:00
orwell96 224d5cbfd3 Add 'interlocking' privilege and add security checks 2018-08-12 17:23:52 +02:00
orwell96 a92ecbc26a Automatic working (re-set certain route on train pass) 2018-08-12 16:58:47 +02:00
orwell96 d7e2918009 fix digging unconfigured tcbs 2018-08-12 14:27:54 +02:00
orwell96 cb56b8b49a Signal aspect handling, make default signals compatible, fix signal digging 2018-08-12 14:25:38 +02:00
orwell96 6cdb47edd2 Add routesetting callbacks.
Now, only the signal aspect setting is still missing
2018-08-12 13:23:36 +02:00
orwell96 0d130bb262 Uncommitted route handling (update_route function) 2018-08-03 19:20:10 +02:00
orwell96 c34794e8a1 Implement routesetting
Missing things: signal aspect updating, waiting routes handling, management /info tool
2018-07-21 16:31:00 +02:00
orwell96 5fc5eb9c2a Change stuff on route programming, begin routesetting 2018-07-17 21:02:01 +02:00
orwell96 e3667b630c Basic route management from signalling formspec 2018-07-04 19:31:44 +02:00
orwell96 031aab4633 Signal assignment and route programming procedure 2018-07-04 17:48:33 +02:00
orwell96 820503ba81 Implement trains blocking sections 2018-06-29 16:16:55 +02:00
orwell96 86fa420500 get_ts_at_pos(), file for train-related stuff 2018-06-29 11:50:55 +02:00
orwell96 1a64e96ae9 Complete Track Section handling, incl. removing tcb's and marker entities 2018-06-26 10:46:40 +02:00
orwell96 e1ebbff23c Add track section concept and rework TCB design, implement new linking behavior 2018-06-21 20:34:20 +02:00
orwell96 5992618ee8 Add Track Circuit Breaks (TCBs), Database and Track Circuit Setup
Does not get saved yet.
2018-06-20 20:13:12 +02:00
orwell96 65675664e3 Interlocking: Create demo signals, signal API and model for TCB configurer node 2018-06-19 19:50:11 +02:00
orwell96 712db5bd7f Draft of interlocking system 2018-06-14 17:39:42 +02:00