Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Announce next destination #489

Open
amalon opened this issue Dec 3, 2023 · 1 comment
Open

Announce next destination #489

amalon opened this issue Dec 3, 2023 · 1 comment

Comments

@amalon
Copy link

amalon commented Dec 3, 2023

Feature Request

Description

It'd be useful to be able to replace some part of an announcement with different things which differ between trains.
Text replacements that could be useful:

  • current destination (%d%)
  • name of next destination (%D%). You might have a destination for each platform (LondonP1, LondonP2), but for the purposes of the sign you only want "London" for both destinations, I suppose that'd require an extra sign after a destination sign to give a text name for that specific destination).
  • last destination on route (%r-1% / %rl% or %R-1% / %Rl% for text name of destination)
  • route name (this is trickier, it doesn't seem to store the saved route name that has been loaded, alternatively key/value pairs in tags? so if tag route=central is set, then maybe %Troute% turns into "central")

Examples

After a station used by multiple train routes:

[+train:south]
announce
This is a %Troute% train to %Rl%
Next stop: %D%
@bergerkiller
Copy link
Member

My idea here was to give traincarts a proper placeholderapi integration, and then using papi in announce messages. This same mechanism can then be used for a future text billboard attachment thingy.

Currently busy with other things though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants