Electrics/Controller sync improvements#202
Merged
Vlad118 merged 26 commits intoApr 13, 2026
Merged
Conversation
3f8c920 to
0e05e4b
Compare
0e05e4b to
c7c6662
Compare
Contributor
Author
|
The missing sync features will not be going into this PR at this moment. This is ready on my side. |
…e. This caused a breaking Lua error on spawn for vehicles with fifth wheel
Vlad118
reviewed
Apr 12, 2026
Vlad118
reviewed
Apr 12, 2026
Vlad118
reviewed
Apr 12, 2026
85b778e to
6e3dcff
Compare
…es (electrics, controllers), Move controller packet to HashMap<String, String>
Vlad118
reviewed
Apr 13, 2026
Vlad118
reviewed
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR includes a bunch of improvements and additions to existing sync code. See #184
Note: server and bridge need to be rebuilt. This adds a new struct and changes the gearbox struct.
What was changed
Gear sync was very rudimentary and hardcoded. This now uses getState and setState of the vehicleController
Ignition level is now properly synced (off -> accessories -> ignition -> starter)
Vehicle specific electrics are ignored
More state values are ignored
Explicit sync for these common controllers: brake line lock, 4wd, two step, nos, driveModes (and old esc), anti lag, compression brake
What is to be done