Jump to content
Tonka

Gizmo plugins.findPlugin function

Recommended Posts

Just posting this here to help anyone who googles this in the future.

If trying to use the plugins.findPlugin function in Gizmo, be aware that it is specifically looking for the plugin signature, which can be found alongside the Loaded: line in X-Planes log.txt

So if you are looking to check whether plugin admin is loaded (bad example, its always loaded unless you've broken something) then look for the following line in the log:

           Loaded: X:\X-Plane 11 Beta/Resources/plugins/PluginAdmin/64/win.xpl (xpsdk.examples.pluginadmin).

Then in your lua script use the following to check for its presence:

if( plugins.findPlugin( "xpsdk.examples.pluginadmin" ) )then
	--we could find the plugin and are capable of sending messages to it in a useful manner.
end

The Gizmo API suggests looking for "Win.xpl", but this is not what Gizmo is looking for. (The API actually states plugins.findPlugin( signature ) but the example shows .xpl)

Cheers.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×