You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If two or more plugins that use libxplanemp are active, then one of them will successfully register the OBJ8 CSL animation datarefs, and the other(s) will fail to register them, causing graphical glitches for the unlucky plugin(s), like landing gear being always retracted.
I was pleased to read about what you're doing for libxplanemp 2.0, and I hope it can go some way towards reducing the proliferation of forks of the library. The problem with the datarefs could be solved by using shared datarefs, and libxplanemp 2.0 seems like a good time to make that change, if you were so inclined to do so.
This isn't actually relevant in xpmp2 as far as I'm aware - it uses the XPLMInstance API (https://developer.x-plane.com/sdk/XPLMInstance/) directly (which does all the dataref manipulation inside of X-Plane itself and I believe is not subject to the dataref access rules). The compat wrapper for XP10 may benefit however.
This said, I'm leaning towards making xpmp2 a standalone plugin and putting up an inter-plugin API so that way multiple consumers can use a single xpmp2 installation with only one CSL set installed, and it would resolve more than just the dataref sharing issues, such as shared TCAS.
If two or more plugins that use libxplanemp are active, then one of them will successfully register the OBJ8 CSL animation datarefs, and the other(s) will fail to register them, causing graphical glitches for the unlucky plugin(s), like landing gear being always retracted.
I was pleased to read about what you're doing for libxplanemp 2.0, and I hope it can go some way towards reducing the proliferation of forks of the library. The problem with the datarefs could be solved by using shared datarefs, and libxplanemp 2.0 seems like a good time to make that change, if you were so inclined to do so.
See https://developer.x-plane.com/sdk/XPLMDataAccess/#SHARING%20DATA%20BETWEEN%20MULTIPLE%20PLUGINS
The text was updated successfully, but these errors were encountered: