Skip to main content

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​

IDInterfaceVersionHeaderPermissionsCalls
1Core2.0ROCK/Core.hRead 1, Callbacks 49
2Hands2.0ROCK/Hands.hRead 16
3Collision2.1ROCK/Collision.hRead 1, Write 212
4Grab2.2ROCK/Grab.hRead 1, Write 230
5Touch2.0ROCK/Touch.hRead 1, Write 27
6Weapon2.1ROCK/Weapon.hRead 1, Write 226
7WeaponParts2.1ROCK/WeaponParts.hRead 1, Write 224
8Animation2.0ROCK/Animation.hRead 1, Write 2, Callbacks 410
9Input2.1ROCK/Input.hRead 1, Write 217
11PlayerController2.0ROCK/PlayerController.hRead 1, Write 23
14NativeInteraction2.0ROCK/NativeInteraction.hRead 1, Write 210
15Storage2.0ROCK/Storage.hRead 1, Write 2, Callbacks 421

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.