Skip to main content

Consumer checklist

  1. Resolve ROCK.dll at runtime. If it is absent or discovery fails, keep your ROCK features off and keep running.
  2. Query each interface with your header's major, minor and sizeof(Api) (Client::acquire does this) and bind only the permissions you use. Treat a refused interface as "feature off".
  3. Register one owner with a stable mod name. Close it on the game thread before your callback userData is destroyed.
  4. Value-initialize every record. Check the Status, then validity flags, counts, samples and generations before using an output. RequestQueued is admission only.
  5. Call ROCK on the thread each function requires. Never call ROCK from a Grab event callback or a stash converter.
  6. Renew leases only while your feature needs them, and clear them when it stops. Expect a failed renew after a load, a menu or a power armor change.
  7. Pass weapon slots explicitly and read hands from WeaponState or getRoles.
  8. Test without ROCK, with a refused permission, across a load and a power armor change, with a competing owner, and with lease expiry. A successful build is not an in-game test.

Your plugin owns its own F4SE Query/Load and version check: compare REL::Module::get().version() with the VR runtime, not the loader's query value, and verify live bytes before any binary patch of your own.