This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
usage:interlocking:ars [2025-05-06 22:18] orwell update ars instructions for 2.6.0 |
usage:interlocking:ars [2025-06-24 20:33] (current) orwell add TL rules (upcoming) |
||
---|---|---|---|
Line 21: | Line 21: | ||
ARS rules are parsed from the input textboxes and placed into data structures inside Advtrains. If your ARS rules didn't parse, they don't get added. When the formspec is next shown, only the valid rules that successfully saved get added. | ARS rules are parsed from the input textboxes and placed into data structures inside Advtrains. If your ARS rules didn't parse, they don't get added. When the formspec is next shown, only the valid rules that successfully saved get added. | ||
- | The syntax is straightforward. There are three types of rules: Line Number rules, Routing Code Rules and the * rule. There is also the comment, which is any line that starts with a #, so you can write notes in your ARS rule list. Each rule is on its own line. Here's a valid LN rule, a comment, a valid RC rule, and one invalid line written out: | + | The syntax is straightforward. There are four types of rules: Line Number rules, Routing Code Rules, Train Length rules and the * rule. There is also the comment, which is any line that starts with a #, so you can write notes in your ARS rule list. Each rule is on its own line. Here's a valid LN rule, a comment, a valid RC rule, and one invalid line written out: |
< | < | ||
LN 1 | LN 1 | ||
Line 35: | Line 35: | ||
!RC FREIGHT | !RC FREIGHT | ||
</ | </ | ||
+ | |||
+ | ==== Train Length rules ==== | ||
+ | |||
+ | This feature has been newly introduced in 2.7.0. | ||
+ | |||
+ | Train length rules match a train based on its length in meters (nodes). Such rules can for example be used to prevent routing trains into a siding that are too long for it, or to set different stop positions for short and long trains. | ||
+ | |||
+ | Train length is specified as a pair of minimum and maximum separated by a ' | ||
+ | |||
+ | < | ||
+ | TL 0-6 | ||
+ | # Matches trains up to 6m length | ||
+ | TL 6-12 | ||
+ | # Matches trains between 6m and 12m | ||
+ | TL 12 | ||
+ | # Matches trains 12m or longer | ||
+ | </ | ||
+ | |||
+ | Fractional values are not supported. | ||
===== Manage your RCs and LNs ===== | ===== Manage your RCs and LNs ===== |