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

"Tyre Laps" amount is negative in Weekend mode #109

Open
ZerdNerd opened this issue May 17, 2023 · 1 comment
Open

"Tyre Laps" amount is negative in Weekend mode #109

ZerdNerd opened this issue May 17, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ZerdNerd
Copy link

ZerdNerd commented May 17, 2023

As per title.
In races on distance of ca. 160 km, full race weekends, the "tyre laps" amount in debug window is in negatives. From what I saw it goes into positive ones when race is halfway through.

While it might not be a bug that is in any way impacting the gameplay - as for now it's only visible in debug - it can be a problem in the future should RARE have ie a window showing how old are the tyres together with % of their usage.

acs_2HB3OWxD7f
(disregard the double M, it's my fault in filling the config in wrong way)

@tomasastary
Copy link

I think it's because in function:
local function getTyreLapCount(driver)
return (driver.car.isInPitlane and not driver.hasPitted) and driver.tyreLaps
or (driver.car.lapCount - driver.lapPitted)
end

variable:
self.lapsCompleted = self.car.lapCount // Number of completed laps in this session, including spoiled laps
is cleared after each session, while variable:
self.lapPitted = 0
is not.

@WilliamGawlik WilliamGawlik added the bug Something isn't working label Jun 9, 2023
@WilliamGawlik WilliamGawlik self-assigned this Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: New
Development

No branches or pull requests

3 participants