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

Vehicles: allow 'livery override' for wagons #6136

Closed
DorpsGek opened this issue Oct 10, 2014 · 3 comments
Closed

Vehicles: allow 'livery override' for wagons #6136

DorpsGek opened this issue Oct 10, 2014 · 3 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

mb opened the ticket and wrote:

The livery override feature comes in handy especially when building articulated locomotives. It allows easy reuse of already defined veh-IDs as part of new articulated locomotives (e.g. steam locomotive tenders).

However, this works only for 'engines' (locomotives), not for wagons, i.e. when building articulated wagons, you cannot reuse already defined veh-IDs as part of new articulated wagons, since there´s no 'livery override' (i.e. adoption of graphics), but the reused veh-ID keeps the graphics from its constituent action3.

This is especially annoying when using lots of articulated vehicles, since one has to define a new veh-ID for each new articulated vehicle. It is also impossible to use articulated vehicles constructed in such a way in 'push-pull service' (by simple exchange of correlating graphic sprites).

However, that would be very easy if only the 'livery override' feature would work as well for wagons.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/6136
@DorpsGek
Copy link
Member Author

Transportman wrote:

Can't you use var61 for that in combination with varC6 for that?

In the 2cc Trains In NML NewGRF I use it to check if a vehicle can be attached to the consist, but I imagine something like you want can also be done with it.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6136#comment13556

@DorpsGek
Copy link
Member Author

mb wrote:

Can't you use var61 for that in combination with varC6 for that? [...]

No, it can´t. What I´m proposing here is simply "livery override for wagons", not only for engines.

This has nothing to do with vars 61, C6, or callback 1D. The orignal problem can´t be worked around by any of these.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6136#comment13564

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Articulated labels Apr 7, 2018
@andythenorth
Copy link
Contributor

If I've understood the issue correctly, this can be done by checking position in consist with varact2 in graphics chain. https://newgrf-specs.tt-wiki.net/wiki/VariationalAction2/Vehicles#Position_within_articulated_vehicle_.284B.29

Co-incidentally there is also no shortage of IDs (16k are available for articulated vehicles), so multiple IDs can be safely consumed.

If I've misunderstood, apologies. However:

  • I am betting there is a way to achieve this within current spec.
  • I know that there is no support for extending spec for livery over-rides
    ...so I'm closing this, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

2 participants