Page 1 of 1

Xplane Plugin for Linux

Posted: Thu Feb 20, 2020 2:19 pm
by ATC Roo
I've slightly edited Peters JoinFS XPlane Plugin, so I could compile it under Linux.

I don't own XPlane, but I have downloaded the XPlane Demo version and tested with that.
It should work exactly the same as the XPlane Windows Plugin.

If you want to give it a whirl you can get it from the link below.
JoinFS XPlane Plugin for Nix.

You will still need to run JoinFS under wine, but you can now connect to XPlane without running XPlane under wine.

Put the downloaded .xpl file in your XPlane plugins folder and set the address 127.0.0.1 in the XPlane section of JoinFS.

Mrs Roo now doesn't like me because I've "spent TOO MUCH time on the computer" whatever that means, so I hope it helps.

Re: Xplane Plugin for Linux

Posted: Fri Feb 21, 2020 9:15 am
by foo
Thanks Roo, just gave it a test and seems to be working so far!

Helps me out at least!! Just renamed it to 'lin.xpl' and put it in the 'X-Plane 11/Resources/plugins/JoinFS/64/' directory

Re: Xplane Plugin for Linux

Posted: Fri Feb 21, 2020 9:06 pm
by ATC Roo
Good to hear.

Re: Xplane Plugin for Linux

Posted: Wed Feb 26, 2020 1:14 am
by foo
you're a legend Roo!

and if Mrs Roo has let you back onto the computer.. I think I found an issue.

My FPS drops to zero as soon as animation of other aircraft begins, but when other planes are paused (or loading) the FPS seems ok/normal.

Has anyone else encountered this?

Re: Xplane Plugin for Linux

Posted: Wed Feb 26, 2020 10:26 am
by ATC Roo
I might have some time tomorrow to have a look.

I haven't changed much to the original code, so can only think of one thing it could be.

How are you measuring your FPS, is there an option in XPlane to display it?

Re: Xplane Plugin for Linux

Posted: Wed Feb 26, 2020 10:39 am
by ATC Roo
And thinking more about this....

Does it make any difference if you reduce the distance sliders in JoinFS?

Re: Xplane Plugin for Linux

Posted: Fri Feb 28, 2020 5:58 am
by foo
Thanks, just did some testing around this but no luck yet.

I've tried the following:
  • Reducing distance to 10 and 2nm - it was 40nm - and still drops to near-zero FPS, with only one other aircraft in range.
  • Changing model mapping to display other/simpler aircraft by default - no difference
  • Enabled low bandwidth mode - FPS still goes kaput
  • Disabling all other plugins, aside from the ones aircraft load (eg SASL).
Have attached the settings window here. Are there any other log files that might help troubleshoot?
Screenshot_2020-02-28_16-30-05.png
Screenshot_2020-02-28_16-30-05.png (58.32 KiB) Viewed 12153 times

Re: Xplane Plugin for Linux

Posted: Fri Feb 28, 2020 6:02 am
by foo
Just wondering, which DataRefs is the plugin writing-to to set the position, orientation and velocities of other aircraft?

Re: Xplane Plugin for Linux

Posted: Fri Feb 28, 2020 6:00 pm
by ATC Roo
I gave the code a quick look over and did find something that gave a different result to the plugin running under windows.

I've corrected it so hope it solves the issue.

The latest version is always available from the link in the first post.

Re: Xplane Plugin for Linux

Posted: Sat Feb 29, 2020 9:07 am
by foo
It works!!!@@

Thanks again ATC Roo! Even had some comments about how much smoother it looked than the P3D planes!

Re: Xplane Plugin for Linux

Posted: Sat Feb 29, 2020 9:18 am
by ATC Roo
Glad to hear. :)

Re: Xplane Plugin for Linux

Posted: Tue Mar 09, 2021 11:24 am
by Peter
The linux plugin is now included with each JoinFS build. Install using the 'Install Plugin' button from the JoinFS settings.

Peter

Re: Xplane Plugin for Linux

Posted: Sun Apr 18, 2021 5:04 pm
by paulscottrobson
Seems to work great.

Except for two problems both easy fixes :

(1) you have to install the 2005 runtime (vcrun2005 in winetricks) for at least MSVCR80.DLL
(2) It seems to require SimConnect.dll to be in the JoinFS dictionary even if you are using X-Plane.

Re: Xplane Plugin for Linux

Posted: Mon Apr 19, 2021 8:20 am
by Peter
paulscottrobson wrote: Sun Apr 18, 2021 5:04 pm Seems to work great.

Except for two problems both easy fixes :

(1) you have to install the 2005 runtime (vcrun2005 in winetricks) for at least MSVCR80.DLL
(2) It seems to require SimConnect.dll to be in the JoinFS dictionary even if you are using X-Plane.
They're not really problems. You need the C++ dll because part of JoinFS is running C++. When you install JoinFS the SimConnect.dll is installed into the same folder as the exe. You don't need to do anything with it.

Peter

Re: Xplane Plugin for Linux

Posted: Wed May 19, 2021 4:06 pm
by paulscottrobson
It wasn't meant as critical, more a 'Linux people, you need these two things for it to work'.

Though winetricks is not working for that runtime at the moment which is a bit irritating. Running the .EXE directly doesn't seem to work. Such is life ; the alternative is developing in Windows which does my head in ....