Hello all,
I've written a plugin for vPilot that will insert the appropriate VATSIM traffic into the PSX TCAS.
Now available for beta testing:
Download here (https://www.dropbox.com/s/9dg1efy8en3gbpm/PSX.NET.vPilot.zip?dl=1)
To install
Extract and copy the 'PSX.NET.vPilot.dll' file inside the ZIP to:
%localappdata%\vPilot\Plugins
If your PSX server is on a different computer, install the plugin, run vPilot, then close vPilot after 10+ seconds. Then go to this directory which contains the XML settings file where you can edit the PSX server IP within:
%appdata%\PSX.NET\PSX.NET.vPilot
(If you're unsure how to use the % paths, just copy it into the File Explorer address bar and hit enter)
Please let me know how well it works. When working, it'll look like this (link). (http://www.hoppie.nl/forum/var/TCAS.png)
Many thanks Mark!
Mark
Thanks for your hard work
And for your excellent software
Kev
Thanks Mark!
Peter.
Thanks a lot Mark.
Cheers
Gilles-Gabriel 8)
Hi,
If you are running Vpilot on two machines ie host and remote it needs to go on the Host Machine .
Works lovely
Kev
(only issue is when closing it the program you cant it wont shut down !!)
Quote from: kev32b on Tue, 2 Jan 2018 07:27
(only issue is when closing it the program you cant it wont shut down !!)
If you mean you're trying to close the TCAS window - this is intended behaviour as there is no easy way to respawn it again without restarting vPilot. Closing vPilot should work as normal.
I know it is nearly whining, but a popup explaining why this window won't shut down may actually be helpful. It's sufficiently counter-intuitive.
Hoppie
Thanks Mark!
Forgive my ignorance, does this mean I can use PSX naively without P3D and still have VATSIM traffic injected into PSX?
Felix - not yet, vPilot still has to make a connection to P3D so that it can get the position & other data.
The aim is to eventually resolve this so that P3D is optional for PSX vatsim users if you're happy with just the PSX generated view.
Hello Mark,
having missed the topic in earlier in winter this winter, I gave it try myself tonight. First of all, great nice little program, thank you very much.
Actually, it took some debugging on my side.
Minor issue:
- install the .dll into the vPilot program folder (Plugins subdirectory) and not in the %localappdata% folder. At least on my system, they are different
Not so minor issue:
- after adjusting plugin path and editing the dll, the TCAS plugin recognized and connected to PSX. But I could not see TCAS traffic inside PSX, yet. It took me a while to recognize that I have solved this problem earlier with TrafficPSX, see
http://aerowinx.com/board/index.php?topic=2321.msg23105#msg23105
Like in 2014 I have monitored the Qs450 output of the DLL in a telnet client. Same result.
The problem is that the PSX.net TCAS dll is using the (Windows) system decimal seperator which may be either "," (comma) or "." (decimal point) on different systems. But PSX is using a fixed decimal seperator which is a decimal point but never a comma.
Changing the system decimal seperator on my German language Windows usually has side effects (breaks MS Excel, ... ).
The better solution - programming-wise - is to use a fixed decimal seperator in your program code (most languages have a system variable for that), e.g. like
DecimalSeparator := '.';
This would be a permanent stable solution, it worked well for VisualPSX.
Thanks,
Markus
I used this program with Vpilot on the wekend with great success.
Thanks Mark for another great program.
Same here, I flew a VATSIM event (Kai Tak!) with plenty of airplanes to watch (cockpit window and TCAS on the ND) in plenty of holding patterns.
Greg, you might have noticed my TCAS blip in the ABBEY/ALPHA holding pattern. I left the stack just as you entered, I think.
Markus
p.s.
turning in a holding pattern back to the fix when one enters 1000' below and, simultaneously, another 1000' above you - priceless.
Hi
my vpilot is on a remote pc to PSX - installed the dll in the plugins folder, started vpilot and shut it after apx 15 sec
edit: The little tcas/traffic window opens, says not connected to PSX
http://farrokhchothia.com/slists/vatsim/vpilot2.JPG
http://farrokhchothia.com/slists/vatsim/vpilot1.JPG
this generates a PSX.NET folder in /roaming and the xml, but it is an empty file.... there's no text in it....
any idea what im doing wrong?
fc
Hi all,
with the latest vPilot release for AFV (2.3.x. branch), the PSX.net vPilot plugin refused to load on my P3D machine. .... While typing the error report, I have already solved the issue.
This is the vPilot debug log:
[11:44:07.027] Error loading plugin from file "D:\Programme\vPilot\Plugins\PSX.NET.vPilot.dll": Die Datei oder Assembly "file:///D:\Programme\vPilot\Plugins\PSX.NET.vPilot.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Der Vorgang wird nicht unterstützt. (Ausnahme von HRESULT: 0x80131515)
which translates to
Could not load file or assembly 'file:///D:\Programme\vPilot\Plugins\PSX.NET.vPilot.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
The solution is given here:
https://blogs.msdn.microsoft.com/brada/2009/12/11/visual-studio-project-sample-loading-error-assembly-could-not-be-loaded-and-will-be-ignored-could-not-load-file-or-assembly-or-one-of-its-dependencies-operation-is-not-supported-exception-from/
Because the file PSX.Net.vPilot.dll was downloaded from the internet, it was flagged as "unsecure" by Windows. This was not an issue in vPilot 2.2 but apparently is now in 2.3. To solve the problem, right click on the dll and change the security setting to "Allow" (my system) or "Unblock".
Markus
Many thanks Markus... I wondered what might have happened to cause this. Running fine here now .
This fix doesn't work for me - I have all the rest of the new voice working but still getting the error on loading the dll, I'm afraid...:-(
Edit - fixed it! I was trying to do it all under the "Security" Tab in properties but the unblock feature is in the "General" Tab.
Thanks Markus!
Peter
Glad that it worked for you guys and helps you to run the TCAS module again.
Markus
This plug-in seems no longer to work using the latest version of vPilot. I wondered why and found this thread - see the final post: https://forums.vatsim.net/topic/24636-vpilot-plugin-developmentdebugging/
Is anyone able to help?
Thank you,
M
yep needs a recompile..... I'll do that tomorrow
New version available at https://www.dropbox.com/s/0qr3finqtaytbvg/PSX.NET.vPilotV2.0.0.zip?dl=1 (https://www.dropbox.com/s/0qr3finqtaytbvg/PSX.NET.vPilotV2.0.0.zip?dl=1) to work with new vPilot.
Quote from: Gary Oliver on Thu, 18 Feb 2021 14:40
New version available at https://www.dropbox.com/s/0qr3finqtaytbvg/PSX.NET.vPilotV2.0.0.zip?dl=1 (https://www.dropbox.com/s/0qr3finqtaytbvg/PSX.NET.vPilotV2.0.0.zip?dl=1) to work with new vPilot.
Thanks so much, Gary!
Gary, sorry to report this, but the new file doesn't load. Here's the debug log:
[15:28:44.215] vPilot version 2.8.1
[15:28:44.277] Performing version check...
[15:28:44.765] Server list download succeeded. 7 servers found.
[15:28:45.208] Version check complete. You are running the latest version.
[15:28:45.211] Checking for updated model matching data...
[15:28:45.643] Model matching data check complete. You have the most up-to-date data.
[15:28:45.653] Checking for changes to installed models...
[15:28:45.754] No changes found.
[15:28:45.765] Attempting simulator connection...
[15:28:45.765] Error loading plugin from file "C:\Users\marti\AppData\Local\vPilot\Plugins\PSX.NET.vPilot.dll": Could not load file or assembly 'file:///C:\Users\marti\AppData\Local\vPilot\Plugins\PSX.NET.vPilot.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
[15:28:45.913] Connected to simulator: Lockheed Martin® Prepar3D® v4 (4.5.13.32097)
[15:28:45.917] Custom model matching rules loaded.
[15:28:45.920] Model matching rules generated.
[15:28:45.922] Reevaluating model selection for all aircraft
[15:28:45.927] Radio state changed
Martin,
Did you unblock the DLL after downloading? Windows puts a 'mark of the web' on the file which prevents it being loaded.
Right click the DLL and go Properties and tick the unblock box (or press unblock if you have a button instead)
https://prnt.sc/100raws
Cheers
G
Quote from: Gary Oliver on Fri, 19 Feb 2021 11:14
Did you unblock the DLL after downloading? Windows puts a 'mark of the web' on the file which prevents it being loaded.
Ah - whoops - all sorted now. Many thanks, Gary.
M
All,
A quick pre world flight update which will light up the HF L call button on a Selcal Check from VATSIM.
https://www.dropbox.com/s/7l331c0p8vgq9ux/PSX.NET.vPilotV3.0.0.zip?dl=1
Cheers
G
Wonderful - can't wait - thanks so much Gary. M
I'm running the plugin from PSX.NET.vPilotV3.0.0.zip. It's detected by vPilot, and if I launch vPilot with /dbgwin I can see that it's sending data to PSX:
[...]
(0.61809;-1.76870;88029;442;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;)
[23:21:58.420] From plugin: "PSX.NET.vPilot": PSX.NET.vPilot transmitted to PSX. (0.61809;-1.76870;88029;442;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;)
[23:22:00.426] From plugin: "PSX.NET.vPilot": PSX.NET.vPilot transmitted to PSX. (0.61807;-1.76884;87254;443;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;)
But I'm not seeing the "TCAS window" described here, just the normal vPilot one. And I'm not seeing any TCAS traffic in PSX. What can be wrong?
Edit: and now it works. No idea why... does PSX log injected TCAS traffic somewhere?
I removed the traffic pop up window in a later version - the debug window is the best to view.... I can see it was trying to inject one traffic from the 4 values at the beginning.
I might have been confused by WidePSX, which also can inject traffic into PSX... I used it on and off yesterday, it might have been running when I could see aircraft on TCAS.
Anyway, I'm currently flying 11nm behind BAW47C, same altitude (according to VAT-Spy).
TFC is shown on the ND, but no TCAS traffic. TCAS panel set to neutral and TA/RA.
The last loglines from vPilot:
[16:52:56.425] From plugin: "PSX.NET.vPilot": PSX.NET.vPilot transmitted to PSX. (0.59491;-2.00246;359762;436;0.59327;-2.00768;319667;437;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;)
[16:52:58.428] From plugin: "PSX.NET.vPilot": PSX.NET.vPilot transmitted to PSX. (0.59491;-2.00246;359762;436;0.59320;-2.00791;319676;437;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;)
See a few posts above. I had the same problem and it was simply because I hadn't unblocked the DLL file. Could it be that? M
Quote from: Martin Baker on Sat, 3 Sep 2022 16:00
See a few posts above. I had the same problem and it was simply because I hadn't unblocked the DLL file. Could it be that? M
I don't think so, I checked it yesterday and again now. Wouldn't the plugin be unable to run at all if that was the problem?
I edited the plugin config file and changed the port number to an unused port. Then I don't get any log lines "PSX.NET.vPilot transmitted to PSX". So it seems as if vPilot is indeed connecting to PSX, but it's not getting displayed for some reason.
Is the traffic data received by PSX logged somewhere?
Probably a silly question but have you selected the TCAS display on in PSX itself?
Quote from: Martin Baker on Sat, 3 Sep 2022 18:35
Probably a silly question but have you selected the TCAS display on in PSX itself?
It turned out Traffic was set to "Off" in the situ file I was using (but TA/RA + TFC was on in the cockpit). Stupid mistake... Not sure how it happened, that situ file was the only one with TfcMode=0. Clumsy me, I guess.
Thanks for the silly question :)
Oh good - if it helps,you're not the first person to make this mistake. :-[
Almost feels like we need PSX sim checklists... "too much simulator for one man to fly."
http://www.atchistory.org/how-the-pilots-checklist-came-about-2/
The Forum serves as a kind of QRH, but we all know that finding old postings (or anything, really) based on a simple key word matching engine is neigh impossible.
However a QRH Forum section or such won't maintain itself. It will need work. Would there be a way to make this a distributed effort so that it isn't going to be a one-person work of love?
Hoppie
QuoteHowever a QRH Forum section or such won't maintain itself. It will need work. Would there be a way to make this a distributed effort so that it isn't going to be a one-person work of love?
Would be worth trying to set something up: you only need a couple of people with time and stamina ;-)
Suppose we create one post in the Tutorials forum:
"PSX FAQ and QRH"
Only Forum Moderators (there are a few) can go back and edit this post. So to collate and nurture the post we will need some volunteer work over time.
Everybody can reply to the post and grow the list or comment/improve on it.
Once a reply has been sort of finished, moderators can/should/will copy the final new QRH entry into the main (first) posting. This may be merely a direct pointer to the finished entry, for simplicity and to retain the history etc.
Hoppie
All,
vPilot plugin has been updated to correct TCAS altitudes, this is more evident when using MSFS as a scenery generator.
https://www.dropbox.com/s/9dg1efy8en3gbpm/PSX.NET.vPilot.zip?dl=1
Cheers
G
Quote from: Mark on Sat, 30 Dec 2017 22:00If your PSX server is on a different computer, install the plugin, run vPilot, then close vPilot after 10+ seconds. Then go to this directory which contains the XML settings file where you can edit the PSX server IP within:
%appdata%\PSX.NET\PSX.NET.vPilot
I cant locate this file. Anyone able to offer any suggestions?
I type %appdata% in the start-run box and then it's psx.net and in there.
Cheers
G
Updated to V2 - This stops the TCAS traffic jumping around (a degree is not a radian)
Cheers
G
Using the new file now on a flight from CVG to IAH. TCAS targets are rock solid. No "jumping".
Quote from: Mark on Sat, 30 Dec 2017 22:00Hello all,
I've written a plugin for vPilot that will insert the appropriate VATSIM traffic into the PSX TCAS.
Now available for beta testing:
Download here (https://www.dropbox.com/s/9dg1efy8en3gbpm/PSX.NET.vPilot.zip?dl=1)
To install
Extract and copy the 'PSX.NET.vPilot.dll' file inside the ZIP to:
%localappdata%\vPilot\Plugins
If your PSX server is on a different computer, install the plugin, run vPilot, then close vPilot after 10+ seconds. Then go to this directory which contains the XML settings file where you can edit the PSX server IP within:
%appdata%\PSX.NET\PSX.NET.vPilot
(If you're unsure how to use the % paths, just copy it into the File Explorer address bar and hit enter)
Please let me know how well it works. When working, it'll look like this (link). (http://www.hoppie.nl/forum/var/TCAS.png)
Hey Mark - finally got it working after many many days of tinkering. Any chance to update the first post stating that indeed we still need "." as decimator instead of "," which is not the default in many regions.
With that changed it works as a charm 👍
Thanks for a great add on.
Kurt
I'll update it this week to support ,
Cheers
Gary
Kurt,
Can you try
https://www.dropbox.com/s/pxpzbz4eyphzorf/DecimalFix.zip?dl=1
for me?
PS: don't forget to right click properties on the DLL and click Unblock when you have copied into the plugins directory.
Cheers
G
Used this Plugin for the first time last night... worked beautifully. Thanks!
C
Quote from: Gary Oliver on Wed, 29 Mar 2023 18:08Kurt,
Can you try
https://www.dropbox.com/s/pxpzbz4eyphzorf/DecimalFix.zip?dl=1
for me?
PS: don't forget to right click properties on the DLL and click Unblock when you have copied into the plugins directory.
Cheers
G
Hi Gary - happy to report that the new DLL works no matter if "." or"," is set as decimal separator.
Well done - thanks :D
BR
Kurt
Quote from: Gary Oliver on Wed, 29 Mar 2023 18:08PS: don't forget to right click properties on the DLL and click Unblock when you have copied into the plugins directory.
This was the missing piece to the puzzle! All working now - excellent, thanks
Awesome plugin! Got it working after reading this thread.
Question:
Which DLL is the correct one? Because with the 'DecimalFix' version, I still needed to change the Windows 11 Intl.cpl Decimal settings to . (point) instead of , (comma):
Debug from vPilot
[23:50:12.475] From plugin: "PSX.NET.vPilot": PSX.NET.vPilot transmitted to PSX. (0,91539;0,08292;22565;18738;0,91571;0,08263;20901;13711;0,91270;0,08292;322253;5027;0,91116;0,07733;74947;25383;0,90489;0,07061;51187;7945;0,91087;0,04702;212481;5379;0;0;0;0;)
[23:50:13.328] Received aircraft configuration info from KLM1123: {"config":{"engines":{"1":{"is_reversing":false},"2":{"is_reversing":false}}}}
Many thanks!!!
https://www.dropbox.com/s/pxpzbz4eyphzorf/DecimalFix.zip?dl=1
Thank you very much for this plugin Gary. With the DecimalFix edition, I still see the comma as Decimal Symbol in the values:
[09:40:40.954] From plugin: "PSX.NET.vPilot": PSX.NET.vPilot transmitted to PSX. (0,91553;0,08239;18585;18914;0,90563;0,08273;114581;21059;0,90038;0,09215;183701;16770;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;)
Manual changed in Windows 11 intl.cpl to use point as Decimal Symbol:
[09:44:34.218] From plugin: "PSX.NET.vPilot": PSX.NET.vPilot transmitted to PSX. (0.91057;0.08499;81671;11848;0.89924;0.07777;201696;20988;0.89760;0.09339;19157;21621;0.92495;0.11135;208640;23273;0;0;0;0;0;0;0;0;0;0;0;0;)
I flew online for the first time in 18 months and had a problem tuning ATC frequencies. Any frequencies ending in a 5, such as 118.055 were correctly tuned in PSX but vPilot showed it as 118.050, rounding the 5 down to a zero. I had to disconnect in the end as I couldn't communicate on various frequencies either by voice or by text. The vPilot behaviour is the same either connected or disconnected from Vatsim.
I'm using vPilot 3.7.0, PSX.NET.P3D.ExternalSim.Router 2.5.0, and have the latest PSX.NET.vPilot.dll unblocked and in the correct folder.
Examples:
118.005 (PSX) shows as 118.000 (vPilot)
118.015 (PSX) shows as 118.010 (vPilot)
118.025 is fine
118.035 (PSX) shows as 118.030 (vPilot)
118.055 (PSX) shows as 118.050 (vPilot)
and so on...
Can anyone help?
Thanks, M.
Martin,
This is similar to a problem that was experienced with MSFS. Gary posted an update earlier to fix the MSFS problem.
The only solution is for Gary to come in and apply the same fix to P3d.
Hopefully Gary see this post and post a fix.
Quote from: Bluestar on Sun, 18 Feb 2024 02:57The only solution is for Gary to come in and apply the same fix to P3d
(this is untested as I don't have P3D installed)
PSX.NET.P3D.ExternalSim (https://aerowinx.com/board/index.php/topic,3629.0.html) (if you have the latest version 2.5.0) has a setting to disable radio injection. If you edit ...\AppData\Roaming\PSX.NET\PSX.NET.P3D.ExternalSim.Router\PSX.NET.P3D.ExternalSim.Router.xml and set DisableRadioInjection to true, you should then be able to use the normal vPilot commands (e.g ".com1 123.450") to tune the VATSIM radio.
Quote from: macroflight on Sun, 18 Feb 2024 09:16PSX.NET.P3D.ExternalSim[/url] (if you have the latest version 2.5.0) has a setting to disable radio injection. If you edit ...\AppData\Roaming\PSX.NET\PSX.NET.P3D.ExternalSim.Router\PSX.NET.P3D.ExternalSim.Router.xml and set DisableRadioInjection to true, you should then be able to use the normal vPilot commands (e.g ".com1 123.450") to tune the VATSIM radio.
Thanks Macro. I didn't know about the .com1 option - I've always hidden vPilot and changed frequency from PSX - but it works as you describe. I've not edited the Router.xml as I want to be able to change frequencies easily. So when necessary I go to vPilot and type, and it doesn't seem to be overridden by ExternalSim which is great. M
Sorry to bump this thread, but I still have problems using this plugin: the DecimalFix version doesn't seem to work without changing the system to use a period "." as decimal separator. Maybe I've overlooked a setting somewhere?
I did use the https://www.dropbox.com/s/pxpzbz4eyphzorf/DecimalFix.zip?dl=1 version, doesn't seem to do the trick unfortunately, so I'm probably doing it wrong :-)