Skip to content

Conversation

@Addlibs
Copy link
Contributor

@Addlibs Addlibs commented Oct 5, 2021

This pull makes the server treat vehicle IDs outside the range 400-611 (VEHICLE_NONE) as having doors, thus enables sync, which the client expected and was misinterpreting wrong data as door open ratio sync, which had a knock-on effect on door, lights, panels and wheel states sync.

Because to the client the vehicle copies the type of its parent, if it's a doorless type (i.e. boat, bike, bmx, etc.) it wouldn't normally send door sync. This pull forces this data to be sent for all custom vehicle IDs, the sever always reads this data for non-standard models, always sends it off to other clients, and all clients (with this patch) will read this data and apply it only if it makes sense (i.e. the vehicle has doors on the client)

@patrikjuvonen patrikjuvonen added the bug Something isn't working label Oct 9, 2021
@Addlibs Addlibs force-pushed the feature/custom-id-veh-door-state-fix branch from 91161e0 to 61b7363 Compare October 19, 2021 17:37
@BCG2000
Copy link
Contributor

BCG2000 commented Oct 27, 2021

I think #2421 is a better way of fixing this, because it addresses the root issue (model ID mismatch between client and server).

@lopezloo
Copy link
Member

Closing this because #2421 was merged.

@lopezloo lopezloo closed this Oct 28, 2021
@Addlibs Addlibs deleted the feature/custom-id-veh-door-state-fix branch November 5, 2021 21:52
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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants