Many aircraft don't publish their own DataRefs. Instead they reuse unrelated default sim/... DataRefs for custom switches — a fuel cut switch may live in mixture_ratio_all, a bus tie in bleed_air_mode. Searching by name fails completely.
DataRef Detective takes a different approach: it watches every DataRef and command and finds the one that changes in step with the switch you just flipped. Perfect for building Stream Deck or hardware panel profiles.
How it works
- Take Snapshot — while the cockpit is settled, the plugin learns which DataRefs change on their own (engine vibration, voltage drift, animations) and ignores them.
- Record — work the switch with the mouse a few times. Every cockpit click counts automatically.
- Inspect + Test — candidates are ranked by how well they follow your clicks. Write a test value to confirm, then copy the path or a ready-to-paste code snippet.
Features
- Finds DataRefs and commands by behavioural correlation, not by name
- Tells you what to bind: send the command, read the DataRef for state
- Ranks the cause before its downstream effects
- Mark Noise subtracts cascades of dependent DataRefs (lights, radios, annunciators)
- Finds commands registered at runtime by scanning cockpit objects and Lua / SASL scripts
- Live values after recording to break ties between candidates
Open it via Plugins → DataRef Detective.
Installation
- Download
xp_sherlock_dataref.zipand unzip it. - Copy the
xp_sherlock_datareffolder intoX-Plane 12/Resources/plugins/. - Restart X-Plane.