Skip to content

Feature: add configurable selection of vehicles on train(s) as a target#132

Open
Manticore-007 wants to merge 28 commits intoBasssiiie:mainfrom
Manticore-007:main
Open

Feature: add configurable selection of vehicles on train(s) as a target#132
Manticore-007 wants to merge 28 commits intoBasssiiie:mainfrom
Manticore-007:main

Conversation

@Manticore-007
Copy link
Contributor

@Manticore-007 Manticore-007 commented May 22, 2025

Messing around with a Carnaval Festival-esque ride, took me a long time to modify each other vehicle to a reverser bogey by hand:
image

So that gave me the idea to add a feature where you can configure which vehicles on the train you want to modify.

2025-05-21.21-31-44.mp4
2025-05-21.22-03-36.mp4

(The multiplier works with the new spinners, I just forgot about it when recording this video)

Eventually I moved the option at the bottom of the "this train" options and renamed it to Custom selection of vehicles on this train to keep everything consistent and/or uniform.
image

Todo: add this feature for all the trains on a ride. Already got it to work.

@guysv
Copy link
Contributor

guysv commented May 23, 2025

cool that you got the spin! why not implementing 'every n car on all trains' while you're at it?

@Manticore-007
Copy link
Contributor Author

Manticore-007 commented May 23, 2025

cool that you got the spin! why not implementing 'every n car on all trains' while you're at it?

image

;-)

@Manticore-007 Manticore-007 marked this pull request as draft May 23, 2025 15:37
@Manticore-007 Manticore-007 marked this pull request as ready for review May 23, 2025 17:31
@Manticore-007
Copy link
Contributor Author

Manticore-007 commented May 23, 2025

There is still a bug in modifying the spacing for this setting. fixed.

@Manticore-007 Manticore-007 marked this pull request as draft May 24, 2025 11:57
@Manticore-007 Manticore-007 marked this pull request as ready for review May 24, 2025 14:51
@Manticore-007 Manticore-007 changed the title Feature: add configurable selection of vehicles on train as a target Feature: add configurable selection of vehicles on train(s) as a target May 24, 2025
@Manticore-007
Copy link
Contributor Author

Manticore-007 commented May 24, 2025

Sorry for the mess with the PR's, but I couldn't find where to merge my all trains branch to main on my own repository.

Copy link
Owner

@Basssiiie Basssiiie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! Thank you for your contributions and time. 😄

I haven't tested it yet, but do have a few comments.

{
settings: VehicleSettings;
targets: VehicleSpan[];
sequence: number;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the targets array already meant to have the correct vehicles based on the sequence?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I was aware, the vehicle span modifies adjacent vehicles behind it, I need sequence to skip vehicles. Or am I misunderstanding?

Copy link
Contributor Author

@Manticore-007 Manticore-007 May 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been playing around some more, but I really dislike the spacing of the train not working as expected with the suggestion you made. I have another option that does work, and that is extending the VehicleSpan tuple with a third element, for the sequence.

With this the spacing functionality can be maintained, I am certain a lot of players want this feature to be upholded in this new addition.

* to their default values for that type.
*/
export function setRideType(vehicles: VehicleSpan[], type: RideType): void
export function setRideType(vehicles: VehicleSpan[], type: RideType, sequence: number): void
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for these changes in this file. The vehicles array should already have be adapted to the sequence, no?

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

Successfully merging this pull request may close these issues.

3 participants