744 Forum

Apron => Accessories => Topic started by: mikeindevon on Tue, 28 Apr 2015 14:11

Title: XView for MAC is here
Post by: mikeindevon on Tue, 28 Apr 2015 14:11
Go to the following website
site           : ftp://larkshayes.com
Username : xview@larkshayes.com
Password : 747Pilot

You should find mac.xpl in the directory Release 1.2.  You need to put this in your in your X-Plane foder in the subdirectory.  Like this:

.../Resources/Plugins/XView/mac.xpl

This is a first release and it may have bugs. It is a 64-bit version.  I have noticed that it sometimes crashes on first run.  Just run it again and it works fine second time.

Let me know of any issues.

Mike
Title: XView for MAC is here
Post by: simbro on Tue, 28 Apr 2015 21:56
Hi Mike

I'm afraid that I cannot get it to work on my MacPro at all. (OS: 10.9.5/german)
  :(
XPlane 10.35 crashes completely on startup everytime whilst loading/checking the plugins and the only solution to get Xplane back up and running was to remove the mac.xpl file from the plugins/XView subdirectory.

I've appended the relevant part from the crash report generated by MacOS in case it might be of some use..

Regards
Simon
-------------------------------------------------
Process:         X-Plane [44255]
Path:            /Volumes/VOLUME/X-Plane.app/Contents/MacOS/X-Plane
Identifier:      com.laminar_research.X-Plane
Version:         10.35r1 (398)
Code Type:       X86-64 (Native)
Parent Process:  launchd [287]
Responsible:     X-Plane [44255]
User ID:         501

Date/Time:       2015-04-28 23:03:27.811 +0200
OS Version:      Mac OS X 10.9.5 (13F1077)
Report Version:  11
Anonymous UUID:  8BF2D7B7-5EAF-8B4D-8E19-377B9C8B9CD2

Sleep/Wake UUID: 29BCD711-CA7D-4E9E-8D03-512263BB4D26

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000068

VM Regions Near 0x68:
-->
    __TEXT                 0000000000010000-0000000000016000 [   24K] r-x/rwx SM=COW  /usr/local/lib/libflavoursui.dylib

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_c.dylib                0x00007fff875f2eca flockfile + 18
1   libsystem_c.dylib                0x00007fff875fbb10 vfprintf_l + 28
2   libsystem_c.dylib                0x00007fff875f468e fprintf + 186
3   mac.xpl                          0x0000000082518420 XPluginStart + 112
4   XPLM                             0x000000007fc3fb8b LoadOnePlugin(std::string const&, int) + 459
5   XPLM                             0x000000007fc3ff4c LoadFatPlugin(std::string const&) + 106
6   XPLM                             0x000000007fc403b6 XPLMFindAndLoadPlugins(char const*) + 1082
7   XPLM                             0x000000007fc3e685 XPLMInitializePlugins + 149
8   com.laminar_research.X-Plane     0x0000000100928b2c XPPInitializePlugins(char const*) + 3532
9   com.laminar_research.X-Plane     0x00000001004e11bf MACIBM_init(int, char const* const*) + 11807
10  com.laminar_research.X-Plane     0x000000010061c3d7 init_sim(int, char const* const*) + 23
11  com.laminar_research.X-Plane     0x000000010061cc49 main + 41
12  com.laminar_research.X-Plane     0x00000001004918c0 start + 52

-------------------------------------------------
Title: XView for MAC is here
Post by: United744 on Tue, 28 Apr 2015 22:31
The fact it is cashing at the start (randomly) suggests bad memory pointer.
Title: XView for MAC is here
Post by: mikeindevon on Wed, 29 Apr 2015 09:40
Sorry about this guys.  It is strange because almost all the code is identical to the win version and it works fine when it gets going.

If you have the patience, can you try some things out to help me track down the problem?

a) Are you sure you are using the 64-bit X-Plane - see XP opening screen
b) Please create a XView.cfg file with a text editor and place that in the same directory as the X-Plane executable.
c) Does starting PSX after X-Plane is running help the problem?

Mike
Title: XView for MAC is here
Post by: simbro on Wed, 29 Apr 2015 14:18
Hi Mike

Glad to help!

a) Yes - I am definitely using the 64-bit Version of XPlane

b) My first attempts were WITH a XView.cfg file in the XPlane root - probably left over from a misguided attempt to install the win version before I knew better! After deleting this cfg file the situation remained the same. A new empty cfg file doesn't help either - same result. ( the first one had some config details in it which were probably win-related defaults so I assume that invalidates that attempt)

c) First attempts were without having started PSX... Further attempts with PSX running had the same results.

BTW, PSX server is currently NOT running on the MacPro - only a client getting its info from the PSX server on a Win7 machine in the network. Would this make a difference?
I assume that I will need to enter the server IP somewhere sometime...

Simon

PS. Silly question:  I have downloaded only the mac.xpl file from the Version1.2 folder.. Do I eventually need any/all of the other files in the folder as well?
Title: XView for MAC is here
Post by: Guy13 on Wed, 29 Apr 2015 18:31
Hi Mike,

It's the same on my iMac.

The log of X-Plane:
...
Fetching plugins for /Volumes/VERBATIM/X-Plane 10 Demo/Resources/plugins

dlerror:dlopen(/Volumes/VERBATIM/X-Plane 10 Demo/Resources/plugins/._mac.xpl, 6): no suitable image found.  Did find:
   /Volumes/VERBATIM/X-Plane 10 Demo/Resources/plugins/._mac.xpl: unknown file type, first eight bytes: 0x00 0x05 0x16 0x07 0x00 0x02 0x00 0x00
Failed: /Volumes/VERBATIM/X-Plane 10 Demo/Resources/plugins/._mac.xpl.  (This file is missing, not a DLL or could not be loaded due to another missing DLL.)

I've tried with    Plugins/Xview/64/mac.xpl         same.
Without mac.xpl  x-Plane run

I'm waiting to load the new plugin.

Regards  and  Thank's for MacXview. ;)

Guy
Title: XView for MAC is here
Post by: mikeindevon on Wed, 29 Apr 2015 18:59
Hi Simon,

Thanks for looking at this.
a) great - it's only a 64 bit version at the moment.
b) the XView.cfg should be in the route directory of X-Plane. The win and Mac versions are identical.
c) can you explain your configuration in more detail - why are you using two copies of PSX and are you running two copies of X-Plane, one on the pc and one on the Mac?

Check out the documentation- it contains quite a bit about setting up the network. You need to set the boost and main server addresses in the XView.cfg file. Normally you would connect using the boost server, which isn't available on the client. So put the pc IP address in the Mac .cfg for the boost server and for the main server.

Just for clarification - did you ever get XP to run at all with XView even if you got no view? You won't see anything if the ip addresses are wrong anyway.

The files you need are the XView.cfg file, PSX Plane if you want to see external animations fully working and Mac.xpl. The user guide has a lot of detail in it about setting up, so give that a look.


There are more complex ways to set it all up, but to start try PSX server on the pc and just X-Plane +XView on the Mac Pro.

Let me know how you get on.

Mike
Title: XView for MAC is here
Post by: mikeindevon on Wed, 29 Apr 2015 19:11
Hi Guy,

Thanks for that. I am not sure that you can run plugins with the demo version. Can you check that out on the XP forum.

I am away for a couple of days, so can't do much at the moment.

I would be interested to know if anybody managed to run it. Then I would at least know that the build was complete. At home it ran for hours ok with 10% of crash at start, which I think may be due to some slight difference in the standard c++ library implementation on win and Mac.

Mike
Title: XView for MAC is here
Post by: Guy13 on Wed, 29 Apr 2015 21:41
Hi, Mike

Demo version run plugins.
I've tried many position of mac.xpl in differents folders.

X-Plane crash when he tries to open the mac.xpl.
It is easy to see the detail near the loading bar.

Guy
Title: XView for MAC is here
Post by: simbro on Wed, 29 Apr 2015 21:55
Hi Mike,

I've set up the XView.cfg file as described in the 1.2 User Guide using the IP address of the Win7-pc running PSX-server for BOOST_ADDRESS & MAIN_ADDRESS.
RELAY_ADDRESS is blank and RELAY_BOOST_DATA is FALSE.
Even with a fully configured cfg file the result remains the same - crash before Xplane has even got started!

In fact I had setup Xview completely (PSX-plane et al) according to the manual a while back before I realised that it was for Win-machines only - the only missing thing was the mac.xpl file!  :D

I run PSX-server on a Win7-pc where my OC and CPFlight hardware is connected. The displays on this machine are dedicated to the Cpt PFD/ND and CDU (PSXseecon)..
A second Win7-pc is dedicated to FSX/VisualPSX and works fine. (no PSX running here)
The Mac runs PSX-client with the 'other PSX views' and has a second screen waiting to be used with XPlane/Xview.

I have never managed to get XPlane running when the mac.xpl file is in the plugin/xview subdirectory... It crashes within 20 seconds of initial prog-start whilst initiating the plugins (according to the small print in the initial splashscreen)

Regards
Simon
Title: XView for MAC is here
Post by: mikeindevon on Wed, 29 Apr 2015 22:20
Thanks for all this info. I will have a look at the weekend. Mike.
Title: XView for MAC is here
Post by: Guy13 on Fri, 1 May 2015 11:07
Hi,

I've update x-plane to version 10.35 built 103503.
This version don't crash, but the plugin don't work.
i've tried to place mac.xpl in different  folders: X-plane don't crash but only the plugin 747plane appears but never the xview plugin.

Log.txt:
.../...
Fetching plugins for /Volumes/VERBATIM/X-Plane 10 Demo/Resources/plugins

Loaded: /Volumes/VERBATIM/X-Plane 10 Demo/Resources/plugins/Xview/mac.xpl (xpsdk.examples.pluginadmin).

(It seems  to me that the plugin was not rising  also with my windows version)

Regards
 Guy
Title: XView for MAC is here
Post by: Guy13 on Fri, 1 May 2015 14:56
Sorry,

The update does not change anything.

Actually I have two mac.xlp file. One : 124k, the other: 368K.

After the update, in    /ressources/plugins/xview/mac.xlp   of 124k  was the file installed.

When I changed to 368k: immediate crash.

Change ... Change ... I lost my way :|

Regards
Title: XView for MAC is here
Post by: mikeindevon on Fri, 1 May 2015 19:58
Ok guys, I have fixed it (hopefully).  The new version is up on the ftp site.  The problem was that the log output was being sent to my development directory.  This would not be on your machines, which results in an instant crash.  There was also a slight problem of synchronisation with PSX if PSX was already running at XP start up.  The Win library didn't seem to worry about that.

For clarification, assuming your X-Plane directory is /XP10, then the files should be as follows:
/XP10/XView.cfg (if you don't supply one, then I create one with server IP 127.0.0.1)
/XP10/Resources/plugins/XView/mac.xpl

Let me know if it goes ok.

Mike
Title: XView for MAC is here
Post by: simbro on Sat, 2 May 2015 07:51
Hi Mike

I will not be able to test this until sunday evening earliest as I'm away for the weekend and have no access to my machine until then.

Regards
Simon
Title: XView for MAC is here
Post by: simbro on Mon, 4 May 2015 19:31
Hi Mike

I've finally got around to spending a little time trying out XView new version.

Firstly, it doesn't crash XPlane on startup anymore and I can access the setup via the plugin menu to check/ajust any settings if necessary.

However I'm afraid that is the only good news as I'm having a 'strange' time trying it out - it took me a while to figure out what I was seeing in XPlane!

I took my standard 'test flight' - a short hop from LFSB to LSGG completely under autopilot control - with the 'PSX-aircraft'.. the AP is activated just after takeoff until after the autoland on arrival. It's my standard route which I've used many times to try out various things in PSX.

I set the observer view in XPlane and started the takeoff run... All observations I make are related to the XPlane external view - PSX behaved perfectly during the whole flight and the autoland was perfect! What I report below is not visible in PSX (PFD/ND)

Rotate & liftoff were fine and the gear retracted on cue... But then the nose kept on rising until pointing up at approx 60°! Throughout the whole flight the aircraft was pitching up/down +60°/-40° very slowly - 3-4 minutes for a complete 'cycle'!

Shortly after takeoff the flightplan takes a 180° turn left.  PSX followed the path to the letter but the XPlane view remained on initial heading which finally resulted in the aircraft flying backwards! Track over ground in XPlane was always correct. Closer inspection (XP-aircraft ND) showed that the aircraft 'image' was in fact turning 1° right every 10 seconds..

This flight was interesting to watch. The aircraft didn't bank at all, continued to oscillate slowly in the pitch axis and rotated 1° right every 10secs throughout the flight. The landing was 'brilliant' - 120° crab angle straight down the centreline!!  :shock:

Very entertaining but not quite what I was expecting!  :D
Is it me (my setup) or are others having similar issues?  (German OSX 10.9.5 with German/Swiss local settings)

Kind regards
Simon
Title: XView for MAC is here
Post by: simbro on Mon, 4 May 2015 22:09
Hi Mike

Update to my previous post!

For some reason, after re-installing both the mac.xpl file and the PSX-aircraft into XPlane and then restarting XPlane and PSX everything has started working as expected!  :D
Don't know what caused the symptoms from my previous attempt but whatever it was seems to have disappeared...

First impressions are positive and I haven't noticed anything amiss sofar - apart fom the aircraft hovering about 50 cms (front wheels) and 20 cms (rear wheels) above the ground when at rest. During the landing flare the rear wheels sink into the ground about half a wheels width but then re-emerge as the front settles down.
However, not being an 'observer' (I only want the out-the-window view) it doesn't bother me at all!

Thanks for the work involved... much appreciated!  I'll keep on using/testing the plugin and report anything that seems 'wrong' to me.

Kind regards
Simon
Title: XView for MAC is here
Post by: mikeindevon on Tue, 5 May 2015 09:30
Hi Simon,

Make sure that you are using the latest mac.xpl from the server.  (1st May 7:44).

The wheels should be properly positioned with respect to the ground.  Check that the main server is connected properly - for example do the falps work in the external view?  Also check that you have selected PSX plane in X-Plane.

If you still have a problem, please tell me where the plane is when you notice this problem.

Mike
Title: XView for MAC is here
Post by: Pierre Theillere on Sat, 16 May 2015 11:16
Hi Mike!

I finally found some time to test it: something strange happens... it isn't recognized by X-Plane 10.35: not listed in the "plugins" list, nor in the "enable / disable" menu... Testing was done on my Mac laptop, under OSX 10.6.8.
File size is 372044 bytes, just to be sure it's the right one, and I tried starting PSx, then X-Plane, then the opposite, but no luck.
Title: XView for MAC is here
Post by: simbro on Sat, 16 May 2015 13:26
Hi Pierre

The file size agres with what I have installed and running on my Mac (OSX 10.9.5).
Are you sure you have the mac.xpl file in the right place?
It should be placed in "Resources/plugins/XView"...

Kind regards
Simon
Title: XView for MAC is here
Post by: Pierre Theillere on Sat, 16 May 2015 13:32
Hi Simon!

Thanks for the confirmation: yep, it is in that very same location... I suspect my OS to be too old maybe (Snow Leopard)... or I'll re-download it later, in case I had a glitch.
Title: XView for MAC is here
Post by: simbro on Sat, 16 May 2015 13:45
Another thought...  I assume you are running the 64-bit version of XPlane 10.35?
It doesn't work using the 32-bit version as far as I know!
Title: XView for MAC is here
Post by: Pierre Theillere on Sat, 16 May 2015 13:52
Hi again Simon!

Yep, X-Plane 10.35 64-bits there... so that's quite a mistery indeed! Thanks a lot for your kind suggestions.
Title: XView for MAC is here
Post by: mikeindevon on Sun, 17 May 2015 17:46
Hi Pierre,

Have you downloaded the one on the ftp site or the one I emailed you back along?

Mike
Title: XView for MAC is here
Post by: Pierre Theillere on Mon, 18 May 2015 05:35
Hi Mike!

It's the one from the ftp site, same size as simbro.
Title: XView for MAC is here
Post by: mikeindevon on Mon, 18 May 2015 10:16
Can you send me the X-Plane log file output.

Mike
Title: XView for MAC is here
Post by: Pierre Theillere on Wed, 27 May 2015 09:50
Hi Mike!

You have some mail... sorry for the delay! I found some references to XView on the log.txt that comes with my mail...
Title: Re: XView for MAC is here
Post by: firstcapt on Tue, 23 Aug 2016 17:06
I'm trying to download xview for mac but when I try to connect to the ftp server with user and password provided it gives me a "Login authentication failed" error.

Do you know if there are new usr/pwd to access the server?

Thank you very much
Title: Re: XView for MAC is here
Post by: JohnH on Tue, 20 Dec 2016 22:07
I have been running PSX on my iMac with no problems. I then downloaded the beta of X-plane 11 along with Xview for X-plane. I could never get the two programs to connect so I tried to install Xcode for Mac from the iTunes store (it's free). I then started PSX and X-plane, and after starting the boost server in PSX it worked fine, go figure. Maybe this can help others with the same problem.

John
Title: Re: XView for MAC is here
Post by: mikeindevon on Wed, 21 Dec 2016 11:25
I have put the original version of mac.xpl on the server (larkshayes(dot)com).  As John says, it currently needs XCode to be installed on the Mac for it to work.  If anybody knows how to link in the required libraries into the binary so we don't need XCode, please let me know.

Mike
Title: Re: XView for MAC is here
Post by: teeloo on Wed, 21 Dec 2016 19:30
Hi Mike,

thanks for the updates and uploads! Very much appreciated.

Is it correct, that the mac.xpl does not support the external lighting switches? None work here. The Win.xpl is great!

Tee
Title: Re: XView for MAC is here
Post by: mikeindevon on Wed, 21 Dec 2016 21:06
Hi Tee,

I will look into it.  It should work as the code is identical to the Win version with the exception of a few OS specific mods to basic comms routines, threads etc.

Mike
Title: Re: XView for MAC is here
Post by: teeloo on Thu, 22 Dec 2016 21:17
mh... can't find the problem. I do have quite a few plug-ins running. Maybe one of them interferes. I'll remover all but xview.
Keep you posted.
Title: Re: XView for MAC is here
Post by: teeloo on Fri, 23 Dec 2016 17:36
Update:
No luck on shutting down all plugins. I removed all of them out of the folder except Xview obviously.
None of the lights respond to the light switches.

Anyway, the good news is that my Christmas tree lights do work among others.
Happy Holidays all!

Tee
Title: Re: XView for MAC is here
Post by: teeloo on Wed, 28 Dec 2016 19:06
I tried mac.xpl on XP11.
The server and boost connection work. Which is great.
However the lights don't.
I do have xcode installed and work on OSX Sierra.

Tee
Title: Re: XView for MAC is here
Post by: mikeindevon on Fri, 30 Dec 2016 14:02
Laminar Research corrected the landing lights bug in  XP11 beta 3.  mac.xpl should be ok now.  Mike
Title: Re: XView for MAC is here
Post by: teeloo on Fri, 30 Dec 2016 19:37
I have quite a few problems with 11 pb3. It crashes to desktop quite often. Maybe it's because I use the demo version.
But I want to make sure all works before I buy it.

Tee
Title: Re: XView for MAC is here
Post by: teeloo on Sun, 1 Jan 2017 20:49
Sooo.. after several attempts I pretty much give up on the light issue.
I can get mac.xpl xview to work on XP11 pb3. But the lights don't work, period.

Is this maybe a demo issues? I didn't buy 11 yet.

T

Title: Re: XView for MAC is here
Post by: philmw on Sun, 28 Jun 2020 15:47
Is this still available?  I can't get in to the ftp site.
Title: Re: XView for MAC is here
Post by: philmw on Wed, 12 Aug 2020 19:42
So, decided to have a go and program one myself.  Two versions, one that just positions the X-Plane aircraft according to whatever PSX is doing (lefthand side on the video below), the other doing the same but also controlling the aircraft whilst the 'physics engine' is running on X-Plane (righthand side on the video below).  The former is quicker, the latter affords better visuals.  Now working on getting this to interpolate better and run faster.

https://youtu.be/nfdtk_IVbGQ (https://youtu.be/nfdtk_IVbGQ)

(PSX running on an iMac, X-Plane on a MacBook Pro)
Title: Re: XView for MAC is here
Post by: cagarini on Wed, 12 Aug 2020 20:28
@philmy - Congratulations!  Looks promising ;-)
Title: Re: XView for MAC is here
Post by: vnangli on Wed, 12 Aug 2020 20:34
Quote from: philmw on Wed, 12 Aug 2020 19:42
So, decided to have a go and program one myself....

This is not my complaint, but experience which prompted me to move away from X-Plane to generate scenery....

I would start PSX and then X Plane (Xview addon). The Xplane would freeze initially for about a couple of seconds and pick up the location/position from PSX. Its all good till this point..The problem comes when I want to shutdown the Xplane..I have always had to force exit/quit Xplane..During which my PSX performance was also being affected...

Also, given the limitation of my Curved 27" Samsung screen I really didnt see any value for my experience splitting the screen between PSX and Xplane. The experience was also disappointing when it came to "REPLAY"ing the flight in XPlane, after a successfull landing...The animations (like switching on the lights, flaps, spoilers....) would not "REPLAY" in Xplane, but would be active when the flight is live. It would only look nice from an ATC position viewing, because the actions like spoilers and reversers action would be faintly visible.

At that point (about a couple of months ago) I decided to not pair PSX and XPlane at all. I am really enjoying the PSX experience running all by itself, especially the 70+ FPS. The FPS was being affected when Xplane was running alongside...I have also been watching a lot of these Microsoft 2020 videos. I have learnt, if you are keen on how the flight looks from outside then go for the scenery generators. If the intent is to seriously be involved inside cockpit, the scenery shouldnt matter.. Otherwise, stay with PSX...And thats what I will doing for a long time to come....

Starting sometime early April, I may have practiced about 600 to 700 landings in PSX. Every landing has been very educating....Thanks to the forum here to help me