summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:57:35 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:57:35 +0200
commitf36ee13eddd751f368ca64cc1cfe3c1f10f780bd (patch)
tree790e5f3879fab571621664d11d429080e223fe52
parentabbcd222f0053134998411b7e66aa367aae43b20 (diff)
downloadluaatc_envs-f36ee13eddd751f368ca64cc1cfe3c1f10f780bd.tar.gz
luaatc_envs-f36ee13eddd751f368ca64cc1cfe3c1f10f780bd.tar.bz2
luaatc_envs-f36ee13eddd751f368ca64cc1cfe3c1f10f780bd.zip
State at 2022-06-07
-rw-r--r--auto_yards/init_code.lua9
-rw-r--r--auto_yards/nodes/(1069,9,3733).lua2
-rw-r--r--auto_yards/nodes/(1151,9,3774).lua2
-rw-r--r--auto_yards/nodes/(1153,9,3771).lua2
-rw-r--r--auto_yards/nodes/(1162,16,3980).lua2
-rw-r--r--auto_yards/nodes/(1182,16,3940).lua2
-rw-r--r--auto_yards/nodes/(1184,16,3928).lua2
-rw-r--r--auto_yards/nodes/(1187,16,3837).lua2
-rw-r--r--auto_yards/nodes/(1187,16,3917).lua2
-rw-r--r--auto_yards/nodes/(1190,16,3837).lua2
-rw-r--r--auto_yards/nodes/(1190,16,3917).lua2
-rw-r--r--auto_yards/nodes/(1193,16,3837).lua2
-rw-r--r--auto_yards/nodes/(1193,16,3917).lua2
-rw-r--r--auto_yards/nodes/(1197,16,3837).lua2
-rw-r--r--auto_yards/nodes/(1197,16,3914).lua2
-rw-r--r--auto_yards/nodes/(1200,16,3841).lua2
-rw-r--r--auto_yards/nodes/(1200,16,3911).lua2
-rw-r--r--auto_yards/nodes/(1203,16,3842).lua2
-rw-r--r--auto_yards/nodes/(1203,16,3908).lua2
-rw-r--r--auto_yards/nodes/(1206,16,3829).lua2
-rw-r--r--auto_yards/nodes/(1206,16,3905).lua2
21 files changed, 28 insertions, 21 deletions
diff --git a/auto_yards/init_code.lua b/auto_yards/init_code.lua
index 30b1be9..2c3d631 100644
--- a/auto_yards/init_code.lua
+++ b/auto_yards/init_code.lua
@@ -13,6 +13,11 @@ if event.init then
dir_indicator_pos = POS(-2009,3,-1099),
error_indicator_pos = POS(-1999,3,-1099),
},
+ IP = {
+ active_indicator_pos = POS(1179,16,3848),
+ dir_indicator_pos = POS(1179,16,3855),
+ error_indicator_pos = POS(1179,16,3850),
+ },
-- HY = {
-- active_indicator_pos = POS(-4025,14,-2659),
-- dir_indicator_pos = POS(-4025,13,-2665),
@@ -149,6 +154,7 @@ F.yard_arrival = function(yard_id,this_dir) -- arrow points towards yard
return
else
enter_yard()
+ return true
end
end
@@ -158,6 +164,7 @@ F.yard_arrival = function(yard_id,this_dir) -- arrow points towards yard
return
else
enter_yard()
+ return true
end
end
end
@@ -246,7 +253,7 @@ F.headshunt_yard = function(yard_id,this_dir) -- arrow points toward yard
atc_set_ars_disable(true)
F.remove_rc({yard_id.."_HEADSHUNT"})
if not F.has_rc(yard_id.."_FINAL_COLLECT") then
- if not F.has_rc(yard_id.."_DEPART") then
+ if not F.has_rc(yard_id.."_DEPART") then -- MOST TRAINS. only set when train wants to depart, otherwise train will start the reverse countdown
schedule_in(";01",atc_id)
return
else
diff --git a/auto_yards/nodes/(1069,9,3733).lua b/auto_yards/nodes/(1069,9,3733).lua
index 7489acc..427845c 100644
--- a/auto_yards/nodes/(1069,9,3733).lua
+++ b/auto_yards/nodes/(1069,9,3733).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.headshunt_exit("IP",true) \ No newline at end of file
diff --git a/auto_yards/nodes/(1151,9,3774).lua b/auto_yards/nodes/(1151,9,3774).lua
index 7489acc..78c8062 100644
--- a/auto_yards/nodes/(1151,9,3774).lua
+++ b/auto_yards/nodes/(1151,9,3774).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.headshunt_yard("IP",true) \ No newline at end of file
diff --git a/auto_yards/nodes/(1153,9,3771).lua b/auto_yards/nodes/(1153,9,3771).lua
index 7489acc..d9d508c 100644
--- a/auto_yards/nodes/(1153,9,3771).lua
+++ b/auto_yards/nodes/(1153,9,3771).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.yard_arrival("IP",false) \ No newline at end of file
diff --git a/auto_yards/nodes/(1162,16,3980).lua b/auto_yards/nodes/(1162,16,3980).lua
index 7489acc..ed68706 100644
--- a/auto_yards/nodes/(1162,16,3980).lua
+++ b/auto_yards/nodes/(1162,16,3980).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.headshunt_exit("IP",false) \ No newline at end of file
diff --git a/auto_yards/nodes/(1182,16,3940).lua b/auto_yards/nodes/(1182,16,3940).lua
index 7489acc..3e7add8 100644
--- a/auto_yards/nodes/(1182,16,3940).lua
+++ b/auto_yards/nodes/(1182,16,3940).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.headshunt_yard("IP",false) \ No newline at end of file
diff --git a/auto_yards/nodes/(1184,16,3928).lua b/auto_yards/nodes/(1184,16,3928).lua
index 7489acc..40300fa 100644
--- a/auto_yards/nodes/(1184,16,3928).lua
+++ b/auto_yards/nodes/(1184,16,3928).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.yard_arrival("IP",true) \ No newline at end of file
diff --git a/auto_yards/nodes/(1187,16,3837).lua b/auto_yards/nodes/(1187,16,3837).lua
index 7489acc..1370a00 100644
--- a/auto_yards/nodes/(1187,16,3837).lua
+++ b/auto_yards/nodes/(1187,16,3837).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.classification("IP",true) \ No newline at end of file
diff --git a/auto_yards/nodes/(1187,16,3917).lua b/auto_yards/nodes/(1187,16,3917).lua
index 7489acc..49550cb 100644
--- a/auto_yards/nodes/(1187,16,3917).lua
+++ b/auto_yards/nodes/(1187,16,3917).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.classification("IP",false) \ No newline at end of file
diff --git a/auto_yards/nodes/(1190,16,3837).lua b/auto_yards/nodes/(1190,16,3837).lua
index 7489acc..84fa717 100644
--- a/auto_yards/nodes/(1190,16,3837).lua
+++ b/auto_yards/nodes/(1190,16,3837).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",true) \ No newline at end of file
diff --git a/auto_yards/nodes/(1190,16,3917).lua b/auto_yards/nodes/(1190,16,3917).lua
index 7489acc..83a8cf8 100644
--- a/auto_yards/nodes/(1190,16,3917).lua
+++ b/auto_yards/nodes/(1190,16,3917).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",false) \ No newline at end of file
diff --git a/auto_yards/nodes/(1193,16,3837).lua b/auto_yards/nodes/(1193,16,3837).lua
index 7489acc..84fa717 100644
--- a/auto_yards/nodes/(1193,16,3837).lua
+++ b/auto_yards/nodes/(1193,16,3837).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",true) \ No newline at end of file
diff --git a/auto_yards/nodes/(1193,16,3917).lua b/auto_yards/nodes/(1193,16,3917).lua
index 7489acc..83a8cf8 100644
--- a/auto_yards/nodes/(1193,16,3917).lua
+++ b/auto_yards/nodes/(1193,16,3917).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",false) \ No newline at end of file
diff --git a/auto_yards/nodes/(1197,16,3837).lua b/auto_yards/nodes/(1197,16,3837).lua
index 7489acc..84fa717 100644
--- a/auto_yards/nodes/(1197,16,3837).lua
+++ b/auto_yards/nodes/(1197,16,3837).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",true) \ No newline at end of file
diff --git a/auto_yards/nodes/(1197,16,3914).lua b/auto_yards/nodes/(1197,16,3914).lua
index 7489acc..83a8cf8 100644
--- a/auto_yards/nodes/(1197,16,3914).lua
+++ b/auto_yards/nodes/(1197,16,3914).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",false) \ No newline at end of file
diff --git a/auto_yards/nodes/(1200,16,3841).lua b/auto_yards/nodes/(1200,16,3841).lua
index 7489acc..84fa717 100644
--- a/auto_yards/nodes/(1200,16,3841).lua
+++ b/auto_yards/nodes/(1200,16,3841).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",true) \ No newline at end of file
diff --git a/auto_yards/nodes/(1200,16,3911).lua b/auto_yards/nodes/(1200,16,3911).lua
index 7489acc..83a8cf8 100644
--- a/auto_yards/nodes/(1200,16,3911).lua
+++ b/auto_yards/nodes/(1200,16,3911).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",false) \ No newline at end of file
diff --git a/auto_yards/nodes/(1203,16,3842).lua b/auto_yards/nodes/(1203,16,3842).lua
index 7489acc..84fa717 100644
--- a/auto_yards/nodes/(1203,16,3842).lua
+++ b/auto_yards/nodes/(1203,16,3842).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",true) \ No newline at end of file
diff --git a/auto_yards/nodes/(1203,16,3908).lua b/auto_yards/nodes/(1203,16,3908).lua
index 7489acc..83a8cf8 100644
--- a/auto_yards/nodes/(1203,16,3908).lua
+++ b/auto_yards/nodes/(1203,16,3908).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",false) \ No newline at end of file
diff --git a/auto_yards/nodes/(1206,16,3829).lua b/auto_yards/nodes/(1206,16,3829).lua
index 7489acc..84fa717 100644
--- a/auto_yards/nodes/(1206,16,3829).lua
+++ b/auto_yards/nodes/(1206,16,3829).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",true) \ No newline at end of file
diff --git a/auto_yards/nodes/(1206,16,3905).lua b/auto_yards/nodes/(1206,16,3905).lua
index 7489acc..83a8cf8 100644
--- a/auto_yards/nodes/(1206,16,3905).lua
+++ b/auto_yards/nodes/(1206,16,3905).lua
@@ -1 +1 @@
--- \ No newline at end of file
+F.lane_EOL("IP",false) \ No newline at end of file