Mod APIs
Consumer contracts for the RPS runtime mods. The runtime DLL owns the behaviour; your plugin owns registration, callbacks, feature policy and cleanup. Mod versions and individual API versions are separate numbers.
Each provider publishes its headers from its own repository. There is no shared header package: take each provider's headers from its repository at the release tag you build against, and add only the providers you use.
| Module | Released with | Discovery and scope | Headers |
|---|---|---|---|
| ROCK | ROCK 1.0 (Collision and Input 2.1: ROCK 1.0.3; Grab 2.2, Weapon and WeaponParts 2.1: ROCK 1.0.4) | ROCKAPI_QueryInterfaceV1; provider API 2, 12 interfaces. | ROCK's include/ROCK/. |
| PAPER | PAPER 2.0 | PAPERAPI_QueryInterfaceV1; provider API 2.0, 2 interfaces for runtime state, native pose and physical-reload control. | PAPER's include/PAPER/. |
| RPS UI | RPS UI Framework 2.0 (NumberOverlay 2.1: RPS UI Framework 2.0.2) | RPSUI_QueryInterfaceV1; provider API 2, 9 interfaces for world panels, controller input, cooperation, number overlays, the registry, world drawing and the settings menu. | RPS UI Framework's include/RPS_UI_Framework/. |
Versions
Every interface listed here is released at major 2, and a released version never changes. A compatible addition raises the interface's minor and keeps every earlier call, record and value as it was, as ROCK 1.0.3 did for Collision, Grab and Input 2.1, ROCK 1.0.4 for Grab 2.2 and Weapon and WeaponParts 2.1, and RPS UI Framework 2.0.2 for NumberOverlay 2.1; an incompatible change would be a new major served beside 2. The one interface ever withdrawn is ROCK's Configuration (13): ROCK 1.0.4 refuses it, because ROCK's settings are now edited on its page in Mods Config FO4 VR. Request exactly the major, minimum minor and table size your headers declare, and read optional additions from the minor the descriptor reports.
A provider refuses a request it cannot serve, including every request built against the 0.92-era APIs (major 1), and logs the calling DLL; the game keeps running with that mod's features off. Each provider's migration guide maps the old API to 2.0.
Choose only the contracts you use
# Point one cache variable at each provider's include directory.
target_include_directories(MyPlugin PRIVATE
"${ROCK_INCLUDE_DIR}" # folder that contains ROCK/
"${PAPER_INCLUDE_DIR}" # folder that contains PAPER/
"${RPSUI_INCLUDE_DIR}") # folder that contains RPS_UI_Framework/
Remove the providers your plugin does not use. The headers are declarations only: nothing links a DLL import or installs a runtime. Set the paths for your machine in your own, uncommitted CMakeUserPresets.json, and never copy a provider's headers into your project.
ROCK's Client.h registers one owner and acquires each typed interface. PAPER's Client.h does the same for PAPER and negotiates PAPER's own capabilities. RPS UI's Client.h acquires each table you use, and your plugin then registers its own consumer and panels. A token or permission from one provider is not valid in another.
Other integration surfaces
RobCo PALM publishes its own Menu and Developer interfaces through PALMAPI_QueryInterfaceV1, with headers in its repository's include/RobCoPALM/. VR Vanilla Fixes publishes its WeaponScenes interface through VVF_GetWeaponScenes, with its header in its repository's include/VRVanillaFixes/. Neither is a ROCK interface. SCISSORS, DIAMOND, ROCK Emitters and ROCK Interactive Objects publish no interface of their own.
RPS Framework supplies statically linked native engine wrappers. Use it when your plugin owns a native operation; use a provider API when a runtime mod already owns the behaviour. One plugin can use both.
See runtime guides for what each mod does and where to download it. Negotiate the installed DLL rather than inferring support from a release label.