[GH-ISSUE #6604] [Feature]: preserve haptic intensity semantics before Buttplug v5 upgrade #3697

Closed
opened 2026-10-21 06:06:16 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Sep 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6604

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

The manifest-only Buttplug 4.0.1 → 5.0.2 update in #6595 changes the meaning of Marinara's haptic intensity for signed output ranges. ButtplugService passes normalized intensity directly to DeviceOutputValueConstructor(...).percent(intensity). With a rotation feature advertising Value: [-100, 100], the installed libraries produce:

Marinara intensity Buttplug 4.0.1 output Buttplug 5.0.2 output
0 0 -100
0.5 50 0
1 100 100

This was reproduced locally using each actual npm package's ButtplugClientDevice, DeviceOutput.Rotate.percent, and a captured send callback. No physical device was connected. A zero-intensity request can become full reverse output after the bare dependency bump. The upstream mapping change is intentional; Marinara must adapt its intensity semantics before upgrading.

Proposed solution

Define the supported signed-output intensity/direction behavior in the Engine adapter, use the v5 feature-range metadata as needed, and add a protocol regression proving zero, midpoint, maximum, explicit stop, duration bounds, and unsupported outputs. Calibrate the resulting behavior on supported Intiface hardware before adopting v5.

Alternatives considered

Keep the existing exact 4.0.1 pin for the maintenance batch #6601 / #6602. Do not silently change direction/intensity behavior as part of a dependency-only PR.

Additional context

  • Adapter: packages/server/src/services/haptic/buttplug-service.ts
  • Intensity normalization: packages/server/src/services/generation/haptic-runtime.ts
  • Upstream: https://github.com/buttplugio/buttplug-js/blob/master/CHANGELOG.md (v5 full-range percent conversion)
  • Follow-up is unstarted. The local protocol probe does not establish physical-device safety or calibration.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6604 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? The manifest-only Buttplug 4.0.1 → 5.0.2 update in #6595 changes the meaning of Marinara's haptic intensity for signed output ranges. `ButtplugService` passes normalized intensity directly to `DeviceOutputValueConstructor(...).percent(intensity)`. With a rotation feature advertising `Value: [-100, 100]`, the installed libraries produce: | Marinara intensity | Buttplug 4.0.1 output | Buttplug 5.0.2 output | | --- | --- | --- | | 0 | 0 | -100 | | 0.5 | 50 | 0 | | 1 | 100 | 100 | This was reproduced locally using each actual npm package's `ButtplugClientDevice`, `DeviceOutput.Rotate.percent`, and a captured send callback. No physical device was connected. A zero-intensity request can become full reverse output after the bare dependency bump. The upstream mapping change is intentional; Marinara must adapt its intensity semantics before upgrading. ## Proposed solution Define the supported signed-output intensity/direction behavior in the Engine adapter, use the v5 feature-range metadata as needed, and add a protocol regression proving zero, midpoint, maximum, explicit stop, duration bounds, and unsupported outputs. Calibrate the resulting behavior on supported Intiface hardware before adopting v5. ## Alternatives considered Keep the existing exact 4.0.1 pin for the maintenance batch #6601 / #6602. Do not silently change direction/intensity behavior as part of a dependency-only PR. ## Additional context - Adapter: `packages/server/src/services/haptic/buttplug-service.ts` - Intensity normalization: `packages/server/src/services/generation/haptic-runtime.ts` - Upstream: https://github.com/buttplugio/buttplug-js/blob/master/CHANGELOG.md (v5 full-range percent conversion) - Follow-up is unstarted. The local protocol probe does not establish physical-device safety or calibration. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:06:16 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 24, 2026):

Implementation is now owned by @SpicyMarinara with Codex, following the maintainer's request to finish the deferred migrations and merge them into staging. Work is on codex/6603-6604-runtime-migrations; the related draft PR will link both deferred issues. No other issue-linked branch or open PR was found.

<!-- gh-comment-id:5811620527 --> @SpicyMarinara commented on GitHub (Sep 24, 2026): Implementation is now owned by @SpicyMarinara with Codex, following the maintainer's request to finish the deferred migrations and merge them into staging. Work is on `codex/6603-6604-runtime-migrations`; the related draft PR will link both deferred issues. No other issue-linked branch or open PR was found.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 24, 2026):

Implemented and merged into staging in #6606. Buttplug 5 preserves zero, signed-output direction, and each feature maximum; 100% vibration remains available across sensitivity settings. Protocol tests cover ranges, movement, partial failures, timers, and stop behavior. Physical hardware testing was explicitly skipped at the maintainer request.

<!-- gh-comment-id:5812329044 --> @SpicyMarinara commented on GitHub (Sep 24, 2026): Implemented and merged into staging in #6606. Buttplug 5 preserves zero, signed-output direction, and each feature maximum; 100% vibration remains available across sensitivity settings. Protocol tests cover ranges, movement, partial failures, timers, and stop behavior. Physical hardware testing was explicitly skipped at the maintainer request.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3697
No description provided.