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: access the user-defined bits of a specific vehicle only (in a train consist) #5460

Closed
DorpsGek opened this issue Feb 4, 2013 · 3 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Feb 4, 2013

Snail_ opened the ticket and wrote:

Hi all!

I would like to request a new way to access the user-defined bits of a vehicle inside of a train consist.
So far we have a function that allows us to do "ORing" across the userbits of a certain vehicle + all the vehicles in the consist after that one.
How about a function that only allows us to check a certain vehicle's userbit pattern, ignoring the bits of the following vehicles?

It would be very useful to check for info about a specific vehicle in the consist, without having it "blurred" by the other wagons' info.

Of course, this shouldn't replace the current way we go through userbits (at least for compatibility's sake), but it could be a very useful added feature.

Thanks in advance!

Reported version: trunk
Operating system: All


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

andythenorth wrote:

Hi Snail, it would be useful to discuss this in irc to find out (a) what the intended use is (b) if it's still valid 4 years later.

Flyspray is being cleaned, so I'd like to close any feature requests which are no longer useful, or not likely to be implemented :) In some newgrf cases, an alternative way has been found since the original feature request was opened.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5460#comment14683

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 1, 2017

Snail_ wrote:

Yes it's still needed. I tried a few workarounds, but they didn't really work.
It's needed mostly for my push-pull implementation. Although some people might think push-pull is a BAD FEATURE altogether, it's a core part of my set; being able to access a specific vehicle's userbit pattern (without ORing) will be able to add new functionality, and also to make my code cleaner.
I'll try to get on irc in the next few weeks if you need to talk more about this


This comment was imported from FlySpray: https://bugs.openttd.org/task/5460#comment14689

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

There is very little that can't be done by checking specific vehicle IDs in the chain. I am closing this. If you want to discuss in irc we'll see if we can get your problem solved :)

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