Skip to content

Electrics/Controller sync improvements#202

Merged
Vlad118 merged 26 commits into
TheHellBox:masterfrom
DaddelZeit:bulk-meta-sync-improvements
Apr 13, 2026
Merged

Electrics/Controller sync improvements#202
Vlad118 merged 26 commits into
TheHellBox:masterfrom
DaddelZeit:bulk-meta-sync-improvements

Conversation

@DaddelZeit
Copy link
Copy Markdown
Contributor

@DaddelZeit DaddelZeit commented Apr 7, 2026

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

  • Gears
    Gear sync was very rudimentary and hardcoded. This now uses getState and setState of the vehicleController
  • Electrics
    Ignition level is now properly synced (off -> accessories -> ignition -> starter)
    Vehicle specific electrics are ignored
    More state values are ignored
  • Controller syncing
    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

  • Break Groups
  • energyStorage/Powertrain Damage
  • Pressure Wheel data
  • Hydraulics
  • Pneumatics

@DaddelZeit DaddelZeit force-pushed the bulk-meta-sync-improvements branch 2 times, most recently from 3f8c920 to 0e05e4b Compare April 8, 2026 15:32
@DaddelZeit DaddelZeit changed the base branch from dev to master April 8, 2026 15:32
@DaddelZeit DaddelZeit force-pushed the bulk-meta-sync-improvements branch from 0e05e4b to c7c6662 Compare April 8, 2026 15:49
@DaddelZeit DaddelZeit changed the title Bulk meta sync improvements Electrics/Controller sync improvements Apr 8, 2026
@DaddelZeit
Copy link
Copy Markdown
Contributor Author

The missing sync features will not be going into this PR at this moment. This is ready on my side.

@DaddelZeit DaddelZeit marked this pull request as ready for review April 8, 2026 22:48
…e. This caused a breaking Lua error on spawn for vehicles with fifth wheel
Comment thread KISSMultiplayer/lua/vehicle/extensions/kiss_mp/kiss_controllers.lua Outdated
Comment thread KISSMultiplayer/lua/vehicle/extensions/kiss_mp/kiss_controllers.lua Outdated
Comment thread kissmp-server/src/events.rs Outdated
@DaddelZeit DaddelZeit marked this pull request as draft April 12, 2026 17:40
@DaddelZeit DaddelZeit force-pushed the bulk-meta-sync-improvements branch from 85b778e to 6e3dcff Compare April 13, 2026 15:58
@DaddelZeit DaddelZeit marked this pull request as ready for review April 13, 2026 16:43
Comment thread kissmp-server/src/events.rs Outdated
Comment thread KISSMultiplayer/lua/vehicle/extensions/kiss_mp/kiss_electrics.lua Outdated
@Vlad118 Vlad118 marked this pull request as draft April 13, 2026 18:23
@Vlad118 Vlad118 added the release candidate Expected to be part of next release label Apr 13, 2026
@DaddelZeit DaddelZeit marked this pull request as ready for review April 13, 2026 19:48
@Vlad118 Vlad118 merged commit 17d5313 into TheHellBox:master Apr 13, 2026
7 checks passed
@DaddelZeit DaddelZeit mentioned this pull request Apr 13, 2026
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release candidate Expected to be part of next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants