Skip to content

Conversation

@zphixon
Copy link

@zphixon zphixon commented Nov 13, 2025

Hello! This is intended to emulate the gear lights on the back of the car. I think this is a little easier to parse than the gear number text. In the future it might be worth copying how car status (turbo, cruise control, etc) change the gear lights.

Trackmania_2025-11-13_16-00-33.online-video-cutter.com.webm

@zphixon
Copy link
Author

zphixon commented Nov 15, 2025

It's been brought to my attention that the existing tach types are relied on as a visual indicator for when a gear shift is about to happen. Something like this would include that functionality.

if (rpm <= Setting_Gearbox_Downshift && gear >= 2) {
	color = Setting_Gearbox_LowRPMColor;
} else if (rpm >= Setting_Gearbox_Upshift && gear <= 4) {
	color = Setting_Gearbox_HighRPMColor;
}

If we include this change we might want to use Setting_Gearbox_MidRPMColor instead of a new separate Setting_Gearbox_Lights_Color. We would probably also want a setting to enable/disable this, as RPM doesn't seem like a super accurate way to predict gear shifts. There doesn't seem to be a downshift threshold value that both avoids flickering the downshift color on gearing up into 2, and also shows the downshift color at all when gearing down into 4. I adjusted the thresholds here to 6400/9700:

Trackmania_2025-11-15_12-41-55.webm

@codecat
Copy link
Owner

codecat commented Nov 16, 2025

Thanks for the PR! I can't playback the videos on my Mac for some reason, but I will take a look at this soon.

@zphixon
Copy link
Author

zphixon commented Nov 18, 2025

Yw! I replaced the mp4s with webms, maybe that helps?

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.

2 participants