You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if we hide one of the default vehicle components, e.g., bump_rear_dummy, using the setVehicleComponentVisible function and then change the vehicle's variant, modify its handling value, or fix the vehicle (fixVehicle), all default components ignore the fact that they were hidden using setVehicleComponentVisible and are displayed again.
This becomes a significant challenge when using the component system for vehicle tuning, especially if we want to implement it optimally without sending unnecessary data between the server and frequently analyzing and updating the current components status.
As for proposed solutions to address this issue, I see two options:
Add client-side awareness of hidden components for a given vehicle so that they remain hidden during vehicle reinitialization. This would prevent them from being displayed again after events like handling changes, variant switches, or fixes.
Introduce a new event, e.g., onVehicleInitialized or onVehicleReinitialized, which would allow us to reapply the appropriate visibility settings for components whenever the vehicle is reinitialized due to the aforementioned reasons.
Steps to reproduce
Create vehicle
Hide one of default components, eg.: setVehicleComponentVisible(veh,'bump_rear_dummy',false)
Switch variant or change handling or fixVehicle, eg.: setVehicleVariant(veh,1,1)
That's it! You will see the bump_rear_dummy component visible again
Version
latest, not relevant
Additional context
No response
Relevant log output
Security Policy
I have read and understood the Security Policy and this issue is not security related.
The text was updated successfully, but these errors were encountered:
Describe the bug
Hey,
if we hide one of the default vehicle components, e.g.,
bump_rear_dummy
, using thesetVehicleComponentVisible
function and then change the vehicle's variant, modify its handling value, or fix the vehicle (fixVehicle), all default components ignore the fact that they were hidden usingsetVehicleComponentVisible
and are displayed again.This becomes a significant challenge when using the component system for vehicle tuning, especially if we want to implement it optimally without sending unnecessary data between the server and frequently analyzing and updating the current components status.
As for proposed solutions to address this issue, I see two options:
onVehicleInitialized
oronVehicleReinitialized
, which would allow us to reapply the appropriate visibility settings for components whenever the vehicle is reinitialized due to the aforementioned reasons.Steps to reproduce
setVehicleComponentVisible(veh,'bump_rear_dummy',false)
setVehicleVariant(veh,1,1)
bump_rear_dummy
component visible againVersion
latest, not relevant
Additional context
No response
Relevant log output
Security Policy
The text was updated successfully, but these errors were encountered: