diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:57:16 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:57:16 +0200 |
commit | 286944c0c92f2f08c1d7d664509099425442f240 (patch) | |
tree | 00202ca4d8ba94baf70ba7cf1be1c396e3b196fe /Tyard/nodes | |
parent | e13abb46020afb258825a088ac5ff9347f062e4d (diff) | |
download | luaatc_envs-286944c0c92f2f08c1d7d664509099425442f240.tar.gz luaatc_envs-286944c0c92f2f08c1d7d664509099425442f240.tar.bz2 luaatc_envs-286944c0c92f2f08c1d7d664509099425442f240.zip |
State at 2022-05-14
Diffstat (limited to 'Tyard/nodes')
-rw-r--r-- | Tyard/nodes/(-4012,12,-2646).lua | 2 | ||||
-rw-r--r-- | Tyard/nodes/(-4027,12,-2655).lua | 4 | ||||
-rw-r--r-- | Tyard/nodes/(-4027,12,-2731).lua | 4 | ||||
-rw-r--r-- | Tyard/nodes/(-4100,12,-2742).lua | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/Tyard/nodes/(-4012,12,-2646).lua b/Tyard/nodes/(-4012,12,-2646).lua index 670bb6c..00d6c1b 100644 --- a/Tyard/nodes/(-4012,12,-2646).lua +++ b/Tyard/nodes/(-4012,12,-2646).lua @@ -47,7 +47,7 @@ end if event.schedule then if not atc_id then --bounce the train that just passed - atc_send_to_train(event.msg,"S0WRD1S3A1") + atc_send_to_train(event.msg,"B0WRD1S3A1") else if atc_id == event.msg then --train hasn't fully passed yet, wait a bit longer schedule_in(";01",atc_id) diff --git a/Tyard/nodes/(-4027,12,-2655).lua b/Tyard/nodes/(-4027,12,-2655).lua index c7a71f4..1c12a8f 100644 --- a/Tyard/nodes/(-4027,12,-2655).lua +++ b/Tyard/nodes/(-4027,12,-2655).lua @@ -21,7 +21,7 @@ if F.yard_active() then if F.has_rc("TY_RTS") then F.dir(not F.dir()) F.remove_rc({"TY_RTS"}) - F.add_rc({"TY_HEADSHUNT","TY_AROUND"}) -- send loco around to the other end + F.add_rc({"TY_AROUND"}) -- send loco around to the other end split_off_locomotive("A0B0") atc_set_ars_disable(false) return -- train has departed for RTS loop @@ -31,7 +31,7 @@ if F.yard_active() then end if this_dir == F.dir() then --train has bounced and is ready to classify wagon(s) -- local pre_split = train_length() - local lane = split_at_fc("A0B0",5) -- where to classify this rake + local lane = split_at_fc("A0B0",5) -- where to classify this rake -- headshunt length local locos = tonumber(F.get_rc_safe():match("TY_LOCOS_(%d+)")) or 1 --saved loco count local wagons = tonumber(F.get_rc_safe():match("TY_WAGONS_(%d+)")) or 0 -- wagon_count from last classification split local this_rake = train_length() - locos-- subtract these wagons from the overall wagon count diff --git a/Tyard/nodes/(-4027,12,-2731).lua b/Tyard/nodes/(-4027,12,-2731).lua index 91a7249..5491309 100644 --- a/Tyard/nodes/(-4027,12,-2731).lua +++ b/Tyard/nodes/(-4027,12,-2731).lua @@ -21,7 +21,7 @@ if F.yard_active() then if F.has_rc("TY_RTS") then F.dir(not F.dir()) F.remove_rc({"TY_RTS"}) - F.add_rc({"TY_HEADSHUNT","TY_AROUND"}) -- send loco around to the other end + F.add_rc({"TY_AROUND"}) -- send loco around to the other end split_off_locomotive("A0B0") atc_set_ars_disable(false) return -- train has departed for RTS loop @@ -31,7 +31,7 @@ if F.yard_active() then end if this_dir == F.dir() then --train has bounced and is ready to classify wagon(s) -- local pre_split = train_length() - local lane = split_at_fc("A0B0",5) -- where to classify this rake + local lane = split_at_fc("A0B0",5) -- where to classify this rake -- headshunt length local locos = tonumber(F.get_rc_safe():match("TY_LOCOS_(%d+)")) or 1 --saved loco count local wagons = tonumber(F.get_rc_safe():match("TY_WAGONS_(%d+)")) or 0 -- wagon_count from last classification split local this_rake = train_length() - locos-- subtract these wagons from the overall wagon count diff --git a/Tyard/nodes/(-4100,12,-2742).lua b/Tyard/nodes/(-4100,12,-2742).lua index 37b303a..8ed965e 100644 --- a/Tyard/nodes/(-4100,12,-2742).lua +++ b/Tyard/nodes/(-4100,12,-2742).lua @@ -47,7 +47,7 @@ end if event.schedule then if not atc_id then --bounce the train that just passed - atc_send_to_train(event.msg,"S0WRD1S3A1") + atc_send_to_train(event.msg,"B0WRD1S3A1") else if atc_id == event.msg then --train hasn't fully passed yet, wait a bit longer schedule_in(";01",atc_id) |