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
orwell96
df29faccc0
Remove superfluous "tarvelocity" assignments
2018-11-20 12:03:34 +01:00
orwell96
37166b5c14
Make "Line" property accessible from OBC and gettable via LATC, change subway wagon texture handling
2018-11-20 11:57:46 +01:00
orwell96
8b80742fa5
Remove debug print
2018-11-20 00:24:39 +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
5874a6d3f4
Fix protection regarding tracks (track_builder and railway_operator) and documentation on privileges
2018-11-12 22:24:56 +01:00
orwell96
07fa21f992
Increase savefile version to 2
...
(Master downgrade protection)
2018-11-10 22:53:12 +01:00
orwell96
b872bdae82
Remove "couple locks" and apply protection to the actual coupling process, and fix permissions on that
2018-11-10 12:12:52 +01:00
orwell96
88aee2aecb
Ks signals emit some light
...
Else you can't see them in the dark...
2018-11-05 21:20:39 +01:00
orwell96
63eedd0947
Allow pcnaming for any signals
2018-11-05 21:01:32 +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
06216b0ca1
No static_save for discouple entities
2018-10-30 15:42:30 +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
190b476b66
Fix Ks signals not setting aspect (missing set_aspect function)
2018-10-30 15:26:02 +01:00
orwell96
fbed4e29d1
Document fix 0a982b6356
...
Add comment that explains why fix was necessary
2018-10-29 23:51:41 +01:00
orwell96
0a982b6356
Actually set last_connid to 1, to prevent warning
2018-10-29 23:42:47 +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
93726db4e3
Handle the case that a train is not initialized (train_ensure_init returns nil/false)
...
Fixes H#72
2018-10-29 21:19:49 +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