Commit Graph

472 Commits (7a970dd4fab46461ee6dc43064b7972bac6304ea)

Author SHA1 Message Date
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
orwell96 60b7254992 atdump() to treat certain values special 2018-10-29 19:32:43 +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 9f6ae55e37 Small fixes which do not have any effect 2018-10-29 16:04:36 +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 e194732596 Complete Ks Main signals 2018-10-26 18:41:24 +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 fe4b4a695a Fix node database ATC rail bug
After successfully registering newly-placed ATC rails in the nodedb, the rail's after_place_node() callback
(local apn_func()) immediately cleared it again by passing a "node" object that was actually a player object
and thus had no "name" or "param2" to ndb.update(), which it handled how it should not in this situation.
Since those ndb.update calls were unnecessary anyways, I removed them completely.
2018-10-17 21:05:06 +02:00
orwell96 267ce6fe6d Prevent any user control except "Brake" when an ATC override is present
Solves the problem of accidentally breaking atc-driven trains
2018-10-17 19:10:37 +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 cd38b17eab Address H#60, H#17, M#18 and M#7
duplicate "message" to "msg"
make operation panel "cracky"
remove inexistent dtime_s parameter
add bones:bones to the list of not_blocking_trains nodes
2018-10-17 18:11:11 +02:00
orwell96 c6bef1c358 Fix H#69
Cause was a cascaded crash, original cause was something different
2018-10-17 17:45:51 +02:00
orwell96 87621caf1f Fix H#66 (Hemiptera 66) crash on missing double_conn match 2018-10-17 17:42:32 +02:00
orwell96 e04d84cb4c Actually allow what manual promises (setting IP on non-assigned signals) 2018-10-17 17:37:03 +02:00
orwell96 85d752df6b Update manual again 2018-10-15 22:09:02 +02:00
orwell96 11fe530e18 Properly handle speed restrictions 2018-10-10 23:31:12 +02:00
orwell96 9db52bcd32 Remote Routesetting from Onboard Computer
+ Fix lzb oncoming item deletion/speed restriction
2018-10-10 23:17:31 +02:00