Spec for player-buildable 'randomised' vehicles. #12299
andythenorth
started this conversation in
Features
Replies: 1 comment 1 reply
-
I have a proposal for this already, albeit not a patch yet. 😛
Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Iron Horse includes 'randomised wagons'.
These are vehicles that use an action 0 ID in grf, and then for graphics, chain to a randomly selected varact2 chain of another vehicle (from a pre-defined candidate list), which terminates in that vehicle's action 1 realsprites.
The Iron Horse implementation also tunes the 'random' weights, so that sequences of similar wagons appear in short runs, as this looks better.
The Iron Horse implementation is mostly orientated to building 'random' within a variant group, but also has a set of 'random' vehicles that transcend multiple variant groups.
These work fine, have good results, and work with autoreplace
But they also
So this is a discussion to ask: what might be useful if the grf spec provided support for 'randomised' vehicles?
A callback providing a list of vehicle IDs, and then OpenTTD builds an actual vehicle from the list?
Leave it up to individual grf authors (and perhaps increase the concurrent action 2 ID limit)?
Something else?
Beta Was this translation helpful? Give feedback.
All reactions