diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/init_code.lua | 6 | ||||
-rw-r--r-- | m4/nodes/(1734,26,2901).lua | 5 | ||||
-rw-r--r-- | m4/nodes/(4536,11,6814).lua (renamed from m4/nodes/(4537,11,6814).lua) | 2 | ||||
-rw-r--r-- | m4/nodes/(4538,11,6814).lua (renamed from m4/nodes/(4534,11,6814).lua) | 1 |
4 files changed, 12 insertions, 2 deletions
diff --git a/m4/init_code.lua b/m4/init_code.lua index d32be9f..b7c58a3 100644 --- a/m4/init_code.lua +++ b/m4/init_code.lua @@ -95,6 +95,12 @@ function F.cpl_looparound(ln) end --end of new cpl functions +--[[ testing functions for train length print +]]-- +function F.print_length() + F.print(F.get_train_length_safe()) +end + --[[ Utility Functions ]]-- F.indicator = function(indicator,set) diff --git a/m4/nodes/(1734,26,2901).lua b/m4/nodes/(1734,26,2901).lua index 66ba746..0361c74 100644 --- a/m4/nodes/(1734,26,2901).lua +++ b/m4/nodes/(1734,26,2901).lua @@ -1 +1,4 @@ -F.split_looparound_left("E16")
\ No newline at end of file +if (event.train) then +-- F.print_length() + F.split_looparound_left("E16") +end
\ No newline at end of file diff --git a/m4/nodes/(4537,11,6814).lua b/m4/nodes/(4536,11,6814).lua index 67b31a2..dceeeea 100644 --- a/m4/nodes/(4537,11,6814).lua +++ b/m4/nodes/(4536,11,6814).lua @@ -1,4 +1,4 @@ -- Poor Man's ARS -if event.train and get_rc() == "E16_poor_mans_ars" then +if event.train and get_line() == "E16" then set_route("Btw-E16-behelf", "E16Turnback") end
\ No newline at end of file diff --git a/m4/nodes/(4534,11,6814).lua b/m4/nodes/(4538,11,6814).lua index 2726255..2aefefb 100644 --- a/m4/nodes/(4534,11,6814).lua +++ b/m4/nodes/(4538,11,6814).lua @@ -1,4 +1,5 @@ if (event.train) and (F.get_line_safe() == "E16") then +-- F.print_length() atc_set_text_outside("[E16] Personhood\nvia Grub Valley\nC&C Rail") F.split_looparound_left("E16") end
\ No newline at end of file |