Commit Graph

562 Commits (7977776b4a8067ea513d95ab2b0d699456596209)

Author SHA1 Message Date
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 9bdddb619b output step distance in train (debugging purposes) 2019-01-22 21:42:07 +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 6c18d5b89a Make "Can't restore train" a log message instead of atwarn() 2019-01-22 17:14:32 +01:00
orwell96 6c1ca46d6e Fix invalid path invalidation in ARS code 2019-01-22 12:43:11 +01:00
orwell96 fab6cc11a8 Fix "subway train" item 2019-01-22 12:42:55 +01:00
orwell96 97a2ff7db0 Fix dropping of items on wagon destroy 2019-01-22 12:31:18 +01:00
orwell96 240e7dd091 Warn when something clears the path winthin train step 2019-01-22 12:26:31 +01:00
orwell96 e2ae763dba Revert "Correct last commit"
This reverts commit 5f290819cd.
2019-01-22 12:11:35 +01:00
orwell96 dac65af983 Revert "Debugging code to trace down path_invalidate within callbacks error"
This reverts commit 1965e846b6.
2019-01-22 12:11:14 +01:00
orwell96 48e52f0546 Revert "Index NaN check (tracking obscure error detected on LW migration)"
This reverts commit e915b61da6.
2019-01-22 12:09:59 +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 adc8db22fb Fix for path invalidation within update callbacks (issue was caused by detector rails) 2019-01-22 00:18:24 +01:00
orwell96 5f290819cd Correct last commit 2019-01-22 00:13:11 +01:00
orwell96 1965e846b6 Debugging code to trace down path_invalidate within callbacks error 2019-01-22 00:06:59 +01:00
orwell96 85f1600f53 Workaround 2019-01-21 23:57:19 +01:00
orwell96 f705feb4ee Do not run train steps when path has been deleted 2019-01-21 23:40:09 +01:00
orwell96 f162ebf63f Avoid division through zero in get_acceleration 2019-01-21 22:41:57 +01:00
orwell96 e915b61da6 Index NaN check (tracking obscure error detected on LW migration) 2019-01-21 22:26:11 +01:00
orwell96 97145e0f06 Additional info print for path_print() 2019-01-21 22:16:00 +01:00
orwell96 cb48aea3e0 Do not run LZB traverser when path does not exist 2019-01-21 20:50:42 +01:00
orwell96 8a33e7b938 Update interlocking manual 2019-01-15 21:09:48 +01:00
orwell96 08649b84a0 Fix route aspect dialog 2019-01-15 20:06:45 +01:00
orwell96 f5e8b70202 Add getter/setter for routingcode in LuaATC 2019-01-15 17:54:13 +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 12f8e26cb4 Do not clear tarvelocity when setting new, potential no-op command 2019-01-15 15:38:17 +01:00
orwell96 a751d1da9c Add Automatic Routesetting UI
Settings have no effect so far
2019-01-09 18:03:40 +01:00
orwell96 c3c96274be Add "routingcode" property
Used for ARS and stop points
2019-01-09 16:10:56 +01:00
orwell96 b332a31d48 Make track protection radius configurable 2018-12-18 11:56:48 +01:00
orwell96 36357bd444 Fix player_to_train_mapping (H#74)
Entries were not inserted, thus neither damage protection nor teleport-to-train did work
2018-12-16 20:39:55 +01:00
orwell96 fb10420c38 Fix 144e1fc4e0 (there's no self in one of the instructions) 2018-12-10 23:07:27 +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 144e1fc4e0 Change get_inventory_formspec API - add invname parameter 2018-12-10 22:54:23 +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 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
orwell96 01ffee4d58 Implement new position encoding function and benchmark it
This shall replace all "pos_to_string" hashes in the long term. Performs a bit better than pos_to_string (but still worse than the "nested tables" layout the nodedb uses
(an unmatched open parenthesis leaves a tension that will stay all day... 2 do even more
2018-11-29 17:00:57 +01:00
orwell96 0f295ec4a9 Fix discouple positioning when wagon was just loaded 2018-11-20 12:37:34 +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