ROCK API index
ROCK publishes provider API 2: twelve interfaces discovered through ROCKAPI_QueryInterfaceV1, each at major 2. ROCK 1.0.3 raised Collision, Grab and Input to minor 1; ROCK 1.0.4 raises Grab to minor 2 and Weapon and WeaponParts to minor 1. Every other interface is at minor 0, and a mod built for an earlier minor binds unchanged. The headers are in ROCK's include/ROCK/; take them from ROCK's repository at the release tag you target. Mods built for provider API 1 (pre-1.0 ROCK) are refused with UnsupportedMajor; see migrating from provider API 1.
Interfaces
| ID | Interface | Version | Header | Permissions | Calls |
|---|---|---|---|---|---|
| 1 | Core | 2.0 | ROCK/Core.h | Read 1, Callbacks 4 | 9 |
| 2 | Hands | 2.0 | ROCK/Hands.h | Read 1 | 6 |
| 3 | Collision | 2.1 | ROCK/Collision.h | Read 1, Write 2 | 12 |
| 4 | Grab | 2.2 | ROCK/Grab.h | Read 1, Write 2 | 30 |
| 5 | Touch | 2.0 | ROCK/Touch.h | Read 1, Write 2 | 7 |
| 6 | Weapon | 2.1 | ROCK/Weapon.h | Read 1, Write 2 | 26 |
| 7 | WeaponParts | 2.1 | ROCK/WeaponParts.h | Read 1, Write 2 | 24 |
| 8 | Animation | 2.0 | ROCK/Animation.h | Read 1, Write 2, Callbacks 4 | 10 |
| 9 | Input | 2.1 | ROCK/Input.h | Read 1, Write 2 | 17 |
| 11 | PlayerController | 2.0 | ROCK/PlayerController.h | Read 1, Write 2 | 3 |
| 14 | NativeInteraction | 2.0 | ROCK/NativeInteraction.h | Read 1, Write 2 | 10 |
| 15 | Storage | 2.0 | ROCK/Storage.h | Read 1, Write 2, Callbacks 4 | 21 |
Ids 10 (References), 12 (Diagnostics) and 13 (Configuration) are retired and never reused: References' queries are in Grab, mods draw through RPS UI Framework, and ROCK's settings are edited on its page in Mods Config FO4 VR. From ROCK 1.0.4 a request for Configuration is refused with UnknownInterface and logged with the calling DLL; there is no replacement call. Permission bits are local to each interface. A name such as getSample belongs to each table separately; there is no global slot numbering.
Shared headers: ROCK/Abi.h and ROCK/TransformMath.h (shared types and results), ROCK/Discovery.h and ROCK/Client.h (Core).
Where things moved
| Provider API 1 (ROCK 0.92) | Provider API 2 (ROCK 1.0) |
|---|---|
| References interface (10) | Grab queryReferenceInteraction, queryPowerArmorTarget |
| Diagnostics interface (12) | None; draw through RPS UI Framework |
Event streams (copyEvents) | Grab event callback; polled state and sequences |
NativeInteraction (14) and Storage (15) are new in 1.0. Every call, record and flag of provider API 1 is mapped in migrating from provider API 1.