Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (â‹®) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to set a dataref in XP12?

Featured Replies

I tried force changing a dataref in XP12 but it remains at the current value.  I can't show anything at the moment because it's a project 🙂

When I'm viewing a dataref where is the code actually written?  What file would it be in?  I use Notepad++ so I can pretty much open anything.  Oh it is an aircraft's dataref I'm trying to change.

 

| My Liveries | FAA ZMP | PPL ASEL |
| Windows 11 | MSI Z690 Tomahawk | 12700K 4.7GHz | MSI RTX 4080 | 64GB 6000 MHz DDR5 | 500GB Samsung 860 Evo SSD | 2x 2TB Samsung 970 Evo M.2 | EVGA 850W Gold | Corsair 5000X | HP G2 (VR) / LG 27" 1440p |

 

 

datarefs are xplanes "reference to data"

the default sdk documentation is here

https://developer.x-plane.com/sdk/XPLMDataAccess/

the default xplane datarefs list is in the resources/plugins folder (datarefs txt)

aircraft and plugins can also create their own.

2 hours ago, ryanbatc said:

What file would it be in?

depends what made it, e.g. the lua engines wrap that sdk above to allow creating reading and writing them from the scripts easily.

2 hours ago, ryanbatc said:

I use Notepad++

 vscode for the win

https://code.visualstudio.com/

2 hours ago, ryanbatc said:

Oh it is an aircraft's dataref I'm trying to change.

DRE and DRT are the two goto tools, sounds like either its not a writable dataref other than by the plugin that created it, or it is being set back to the original value by the aircrafts plugin.

default XP aircraft are all easy to tweak, payware aircraft on something like sasl or gizmo lock you out of pretty much everything, last I heard zibo also blows up the plane if you try and mod it yourself.

AutoATC Developer

  • Author

Ok thanks!

| My Liveries | FAA ZMP | PPL ASEL |
| Windows 11 | MSI Z690 Tomahawk | 12700K 4.7GHz | MSI RTX 4080 | 64GB 6000 MHz DDR5 | 500GB Samsung 860 Evo SSD | 2x 2TB Samsung 970 Evo M.2 | EVGA 850W Gold | Corsair 5000X | HP G2 (VR) / LG 27" 1440p |

 

 

On 2/22/2023 at 9:06 PM, ryanbatc said:

I tried force changing a dataref in XP12 but it remains at the current value.  I can't show anything at the moment because it's a project 🙂

When I'm viewing a dataref where is the code actually written?  What file would it be in?  I use Notepad++ so I can pretty much open anything.  Oh it is an aircraft's dataref I'm trying to change.

If the dataref can not be changed with DataRefTool, it is read-only. And despite them being marked as writable, writing to some aircraft related datarefs requires setting an "override_" type dataref first.

7950X3D + 7900 XT + 64 GB + Linux | 4800H + RTX2060 + 32 GB + Linux
My add-ons from my FS9/FSX days

  • Author
29 minutes ago, Bjoern said:

If the dataref can not be changed with DataRefTool, it is read-only. And despite them being marked as writable, writing to some aircraft related datarefs requires setting an "override_" type dataref first.

Yeah that's what I discovered hehe.  No worries!

| My Liveries | FAA ZMP | PPL ASEL |
| Windows 11 | MSI Z690 Tomahawk | 12700K 4.7GHz | MSI RTX 4080 | 64GB 6000 MHz DDR5 | 500GB Samsung 860 Evo SSD | 2x 2TB Samsung 970 Evo M.2 | EVGA 850W Gold | Corsair 5000X | HP G2 (VR) / LG 27" 1440p |

 

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.