Consumer checklist
- Resolve
ROCK.dllat runtime. If it is absent or discovery fails, keep your ROCK features off and keep running. - Query each interface with your header's major, minor and
sizeof(Api)(Client::acquiredoes this) and bind only the permissions you use. Treat a refused interface as "feature off". - Register one owner with a stable mod name. Close it on the game thread before your callback
userDatais destroyed. - Value-initialize every record. Check the
Status, then validity flags, counts, samples and generations before using an output.RequestQueuedis admission only. - Call ROCK on the thread each function requires. Never call ROCK from a Grab event callback or a stash converter.
- 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.
- Pass weapon slots explicitly and read hands from
WeaponStateorgetRoles. - 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.