Xplane Plugin for Linux

Suggestions, ideas and general discussion about JoinFS.
Post Reply
ATC Roo
Posts: 721
Joined: Sun Oct 16, 2016 9:24 am
Location: UK
Contact:

Xplane Plugin for Linux

Post 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.
foo
Posts: 8
Joined: Sun Feb 02, 2020 2:54 am

Re: Xplane Plugin for Linux

Post 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
ATC Roo
Posts: 721
Joined: Sun Oct 16, 2016 9:24 am
Location: UK
Contact:

Re: Xplane Plugin for Linux

Post by ATC Roo »

Good to hear.
foo
Posts: 8
Joined: Sun Feb 02, 2020 2:54 am

Re: Xplane Plugin for Linux

Post 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?
ATC Roo
Posts: 721
Joined: Sun Oct 16, 2016 9:24 am
Location: UK
Contact:

Re: Xplane Plugin for Linux

Post 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?
ATC Roo
Posts: 721
Joined: Sun Oct 16, 2016 9:24 am
Location: UK
Contact:

Re: Xplane Plugin for Linux

Post by ATC Roo »

And thinking more about this....

Does it make any difference if you reduce the distance sliders in JoinFS?
foo
Posts: 8
Joined: Sun Feb 02, 2020 2:54 am

Re: Xplane Plugin for Linux

Post 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 11929 times
Last edited by foo on Fri Feb 28, 2020 6:04 am, edited 2 times in total.
foo
Posts: 8
Joined: Sun Feb 02, 2020 2:54 am

Re: Xplane Plugin for Linux

Post by foo »

Just wondering, which DataRefs is the plugin writing-to to set the position, orientation and velocities of other aircraft?
ATC Roo
Posts: 721
Joined: Sun Oct 16, 2016 9:24 am
Location: UK
Contact:

Re: Xplane Plugin for Linux

Post 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.
foo
Posts: 8
Joined: Sun Feb 02, 2020 2:54 am

Re: Xplane Plugin for Linux

Post by foo »

It works!!!@@

Thanks again ATC Roo! Even had some comments about how much smoother it looked than the P3D planes!
ATC Roo
Posts: 721
Joined: Sun Oct 16, 2016 9:24 am
Location: UK
Contact:

Re: Xplane Plugin for Linux

Post by ATC Roo »

Glad to hear. :)
User avatar
Peter
Site Admin
Posts: 2281
Joined: Fri Sep 23, 2016 8:51 am
Contact:

Re: Xplane Plugin for Linux

Post by Peter »

The linux plugin is now included with each JoinFS build. Install using the 'Install Plugin' button from the JoinFS settings.

Peter
paulscottrobson
Posts: 2
Joined: Sun Apr 18, 2021 5:01 pm

Re: Xplane Plugin for Linux

Post 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.
User avatar
Peter
Site Admin
Posts: 2281
Joined: Fri Sep 23, 2016 8:51 am
Contact:

Re: Xplane Plugin for Linux

Post 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
paulscottrobson
Posts: 2
Joined: Sun Apr 18, 2021 5:01 pm

Re: Xplane Plugin for Linux

Post 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 ....
Post Reply