744 Forum

Apron => Accessories => Topic started by: CHEDHKG on Fri, 1 Apr 2022 14:17

Title: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 1 Apr 2022 14:17
Good afternoon gents,

As a hobby, I have been learning C for the last few weeks. And what better project idea could there be to write yet another scenery bridge between PSX and MSFS. I have been flying hours with the PSX+MSFSPSX combo and all seems to function properly. But then there are surely tons of bugs and many things could certainly be better written in C....


Just a few remarks:
* When loading a new situ, it might be beneficial to reload the same situ a few seconds after the first load (MSFS tends to be lazy in updating himself)
* Works fine with the standard 747 of MSFS, and did not try other models, but should be fine too, since I do not change any MSFS config file.


So here is still a very very beta version, but which seems to work quite well (at least on my Win10 environment).

It is a no-frills application, running in console mode under Win10, but who does the job.

One of the main goals was to have a tool that would work out of the box and would not require any MSFS configuration file or modification of existing setup.
Just drop the exe and you should be ready to go (OK, almost.....)

The Git repository can be found at :
https://github.com/TheChed/PSXMSFS

Please check the README.md file that contains some info on how running this tool.

The compiled binaries are now in the Release page (which can be found on the right hand side of the git Mainpage)
or directly here :

https://github.com/TheChed/PSXMSFS/releases (https://github.com/TheChed/PSXMSFS/releases)


Just grab the simconnect.DLL if you do not have it yet and the PSXMSFS.EXE file, copy them somewhere in your Win10 and launch the exe in console.


As of today it smoothly enslaves the standard 747 to PSX. I am adding more and more features if I think of them. As of now, all lighting, flaps, spoilers, gears should be functional.





15/05/2023

Basic configuration is done via a PSXMSFS.ini file that is automatically created on first launch of the program
values of this ini file are pretty much self-explanatory:
* LOG_VERBOSITY: from 1 (very verbose + creation of a DEBUG.TXT file), to 4 (errors only)
* SLAVE: 0 MSFS is enslaved to PSX. 1 PSX enslaved to MSFS
* ELEV_INJECT: inject MSFS elevation to PSX
* INHIB_CRASH_DETECT: no crash detection for 20 seconds after loading a new situ
* ONLINE: adjust the indicated FL to fix a bug in online networks (IVAO, VATSIM, ...)

Correct indicated FL sent to online networks (IVAO, VATSIM) (adjustable via .ini variable)
Enhanced altitude handling depending on flight phase
More smooth landing + taking off
Internal code clean-up
More safe thread operations
Added some log levels via .ini file




07/05/2022

MSFS can now inject its position into PSX
This is done by pressing the P key in MSFS.
Pressing the P key toggles MSFS between slave/master



26/04/2022:

V1.0 Release
Smoothed ground <-> Air transition
Fixed minor stability bugs

Next on to do list:
make it MSFS enslaved, or the opposite


20/04/2022:
Ironed out some stability issues.
Removed the need for external Pthread DLLs


12/04/2022:
Added Altimeter synch

10/04/2022:
Added Traffic
Added TCAS + COM synchronization

03/04/2022:
Added Nose gear steering sync
Added parsing command line
Added server+ports selections

02/04/2022:
Added time synchronization with PSX
Added rudder+elevator+aileron sync. Seems that there is a bug in MSFS: when ailerons move, spoilers move too.
Added PArking brakes sync



TODO:
*Sync Tyler
*add AI traffic (useful for IVAO+VATSIM usage)
*inject weather
*provide several startup options (DEBUG, VERBOSE, etc)
* create a graphical interface if needed or requested
*provide an optional config file
*etc.

Feel free to give it a try and if you find it useful and wish to add some features, just buzz me

Cheers,

-Stephan

Title: Re: New scenery bridge between PSX and MSFS
Post by: B747-400 on Fri, 1 Apr 2022 16:32
Hi Stephan,

sounds interesting. But there is no exe in the repository.

Cheers
Hans
Title: Re: New scenery bridge between PSX and MSFS
Post by: CHEDHKG on Fri, 1 Apr 2022 16:35
Sorry, forgot to put it.... It was in my Makefile cleaning rules
Should be there now
Title: Re: New scenery bridge between PSX and MSFS
Post by: B747-400 on Fri, 1 Apr 2022 17:06
THX ... will check it out ...
Cheers
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Fri, 1 Apr 2022 17:45
Hi,

first flight with the standard asobo 747-8i went well.

The landing lights OutBd / InBd / R / L are switchable accordingly and independently by PSX. Thats excellent!

But the Landing and RWY Turnoff are not working properly. All nosegear lights goes on / off with RWY Turnoff L.
Turnoff R and Taxi switch are without function.

Not so important to me, because I'm in a fullsize cockpit: I had no moving elevator, ailerons, rudder etc. Flaps / spoilers are OK!

Good job so far, have fun learning C   ;)

Cheers
Hans
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 1 Apr 2022 17:49
Thanks for the feedback.

Indeed I did not modelize  (yet) the elevators, ailerons, rudders, but should be fairly easy to do.
Let me check the lighting mechanism. On my side it works but it might depend on the model and config you chose.

On my side it produces the below:

https://www.dropbox.com/s/gbxtbhnffge1a02/lights.mkv?dl=0 (https://www.dropbox.com/s/gbxtbhnffge1a02/lights.mkv?dl=0)


Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Fri, 1 Apr 2022 18:22
You're welcome! Which model are you using?

My standard MSFS (asobo) 747-8 reacts direct in MSFS (without PSX) same as with your connector and PSX.

So obviously it is my model ...

Cheers
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 1 Apr 2022 20:03
Hans,

I am using a Cargolux model, but with any other model it seems to work.
What is your model ?
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Fri, 1 Apr 2022 20:11
I tested it with the standard 747-8i and a Lufthansa freeware mod.

It was a glitch on my side - now working perfect, each switch operates the correct light. Your code is OK!!

Just to confirm: PSX time is not transferred to MSFS right now, correct?

Looking forward to upcoming releases!

Cheers
Hans
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 1 Apr 2022 20:24
Thanks Hans,

Yes, correct, I did not yet transfer the times. Will put it on the to-do list !

Cheers
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Sat, 2 Apr 2022 13:17
Quote from: B747-400 on Fri,  1 Apr 2022 20:11

Just to confirm: PSX time is not transferred to MSFS right now, correct?


Done. MSFS now synchronizes with PSX
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Will on Sat, 2 Apr 2022 14:33
Stephan,

Thanks for your work on this. I don't have MSFS yet, so this is a bit theoretical for me... but how easy is it in your implementation to just have the terrain displayed? (E.g. no cockpit, no aircraft, just the landscape.)
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Sat, 2 Apr 2022 15:30
Quote from: CHEDHKG on Sat,  2 Apr 2022 13:17
Done. MSFS now synchronizes with PSX

Thanks, works fine!

Cheers
Hans
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Sat, 2 Apr 2022 16:37
Quote from: Will on Sat,  2 Apr 2022 14:33
Stephan,

Thanks for your work on this. I don't have MSFS yet, so this is a bit theoretical for me... but how easy is it in your implementation to just have the terrain displayed? (E.g. no cockpit, no aircraft, just the landscape.)

Hi Will,
Actually I do not deal at all with that, this is all done at MSFS level. IF you want to just have the landscape you can set up a view just in front of the cockpit and you wont see the aircraft.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: joergalv on Sat, 2 Apr 2022 17:11
Stephan,

great tool! Works quite well, and I like the smoothness. Very well done so far!

What I noticed, while testing with MSFS default B747-8
- Parking Break is not synced
- the nose wheel does not turn, i.e. is not synced with tiller movements.
- time gets not updated in MSFS when it is changed in PSX Instructor Station.
- sudden 'visual' altitude changes during take off roll / lift off. (probably due differences in reference altitudes in PSX and MSFS Scenery ??)

Tested with P3D V5.3 as well..
You'r tool seems to connect in the first place (i.e. I get the 3 connect messages) but then it issues a 'SIMCONNECT_RECVD_ID_QUIT' message, and P3D gets not synced.

One suggestion for your future development would be to allow for different IP Addresses for PSX main and boost.

Enjoy your 'C' exercise!

Regards
Joerg
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Sat, 2 Apr 2022 17:51
Hi Joerg,

Correct, I did not sync the parking break. Will do it in the next releases. Same goes for the nose wheel.
For the time sync, I added that feature a few hours ago. Just grab the latest exe.

As for P3D, I cannot tell you what is wrong since I dont have it. But let me see if I can be a bit more verbose.
As MSFS and P3D share almost the same SDK, connections should work. I will have a look

-S.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Tue, 5 Apr 2022 15:53
THX ... will try
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Toga on Thu, 7 Apr 2022 14:22
It works very well and works straight out of the box. Congrats and keep up the good work! If there's a possibility to sync PSX radios with MSFS so we can connect to vatsim through vpilot that would be the icing on the cake!The connection works already and the work around currently is to just use the msfs radios to tune the required vatsim frequencies.

Title: Re: New scenery bridge tool between PSX and MSFS
Post by: b744erf on Fri, 8 Apr 2022 00:03
I am very looking forward to the weather sync function which means a lot to pilot training, and will be the biggest difference from other visual app. Thank you very much! For now it works perfectly.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 8 Apr 2022 09:33
Quote from: Toga on Thu,  7 Apr 2022 14:22
It works very well and works straight out of the box. Congrats and keep up the good work! If there's a possibility to sync PSX radios with MSFS so we can connect to vatsim through vpilot that would be the icing on the cake!The connection works already and the work around currently is to just use the msfs radios to tune the required vatsim frequencies.

Sure. Should be easy to do and should be in one of the next release
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 8 Apr 2022 09:33
Quote from: Jack love 744ERF on Fri,  8 Apr 2022 00:03
I am very looking forward to the weather sync function which means a lot to pilot training, and will be the biggest difference from other visual app. Thank you very much! For now it works perfectly.

Ah Good idea.... but that would probably be quite challenging. Let me see what I can do
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747pilotusa on Sat, 9 Apr 2022 20:52
this is a great tool I really like it, any chance for the weather injection, definitely, as someone said, is very important for the training, and definitely will be awesome to be able to see a display

my best  regards

JC
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Peter Lang on Sun, 10 Apr 2022 11:05
Hello,

maybe a stupid question, but how did you guys get this program to work?

When I open the console (Win +R), search the path and enter psxmsfs.exe, a message pops up, which tells me that the software cannot be executed on this PC.

When I open the DosBox via cmd and try to start the program there I get the following message:

-------------
Microsoft Windows [Version 10.0.19043.1586]
(c) Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\Peter>e:

E:\>cd E:\MSFS\PSXMSFS

E:\MSFS\PSXMSFS>psxmsfs.exe
Die Version von E:\MSFS\PSXMSFS\PSXMSFS.exe ist mit der ausgeführten Windows-Version nicht kompatibel. Überprüfen Sie die Systeminformationen des Computers, und wenden Sie sich anschließend an den Herausgeber der Software.

E:\MSFS\PSXMSFS>
---------------

It says psxmsfs.exe is not compatible with my windows version. An additional popup window tells me, that this is a 16 bit program which cannot be executed.
I assume you all have Win 10 64 bit systems, so what did I miss here?

My system is german Win 10, 64 bit professional.
All 4 files are in the directory as described here: https://github.com/TheChed/PSXMSFS/tree/main/bin

Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Sun, 10 Apr 2022 12:54
Quote from: B747pilotusa on Sat,  9 Apr 2022 20:52
this is a great tool I really like it, any chance for the weather injection, definitely, as someone said, is very important for the training, and definitely will be awesome to be able to see a display

my best  regards

JC

That will be my next challenge... not sure what I can do. Will start looking at it tomorrow
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Sun, 10 Apr 2022 12:57
Quote from: Peter Lang on Sun, 10 Apr 2022 11:05
Hello,

maybe a stupid question, but how did you guys get this program to work?

When I open the console (Win +R), search the path and enter psxmsfs.exe, a message pops up, which tells me that the software cannot be executed on this PC.

[...]


Hi Peter,

Weird error indeed.... May be trying to run the program as admin ?
I uploaded also a new version (with some added features, and probably a lot of bugs). Can you try with it ?
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: JohnH on Sun, 10 Apr 2022 16:46
I run PSX on computer A and FS2020 on computer B, is it possible to run your program across a network? If yes what do I need to change?

Thanks for the program, John
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Peter Lang on Sun, 10 Apr 2022 17:04
Quote from: CHEDHKG on Sun, 10 Apr 2022 12:57

Hi Peter,

Weird error indeed.... May be trying to run the program as admin ?
I uploaded also a new version (with some added features, and probably a lot of bugs). Can you try with it ?

Hi Stephan,

thanks for your fast reply. I just downloaded the new version, but the same compatibility error occurs. Also trying to run the program as admin does not help.

Just an idea, in former time such strange things happened due to county specific settings e.g. "." and ", " which caused trouble. But I'm not sure if these things still can happen.

Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Sun, 10 Apr 2022 17:45
I have Win10 and tessted it on it....

If you go to :

Start->Settings->About

What does the line "System Type" indicate ?
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Peter Lang on Sun, 10 Apr 2022 20:39
Quote from: CHEDHKG on Sun, 10 Apr 2022 17:45
I have Win10 and tessted it on it....

If you go to :

Start->Settings->About

What does the line "System Type" indicate ?

Hi Stephan,
thats what the system tells me:

Gerätename   FS-VIEW
Prozessor   AMD Ryzen 9 3900XT 12-Core Processor              3.80 GHz
Installierter RAM   32,0 GB
Geräte-ID   A7D8E102-D171-4DE0-9066-8089AC4A9F3E
Produkt-ID   00330-75020-25318-AAOEM
Systemtyp   64-Bit-Betriebssystem, x64-basierter Prozessor
Stift- und Toucheingabe   Für diese Anzeige ist keine Stift- oder Toucheingabe verfügbar.

Edition   Windows 10 Pro
Version   21H2
Installiert am   ‎22.‎03.‎2021
Betriebssystembuild   19044.1586
Leistung   Windows Feature Experience Pack 120.2212.4170.0

Hope this is the information you need

Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jeroen Hoppenbrouwers on Sun, 10 Apr 2022 21:23
Quote from: JohnH on Sun, 10 Apr 2022 16:46
I run PSX on computer A and FS2020 on computer B, is it possible to run your program across a network? If yes what do I need to change?

Typically you run this kind of program on the FS2020 machine and point it at the PSX machine by feeding the program the IP address of the PSX machine, instead of the default 127.0.0.1.  I don't know whether the program already has this option; it most likely comes out of the box with 127.0.0.1.


Hoppie
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: JohnH on Sun, 10 Apr 2022 22:14
Quote from: Jeroen Hoppenbrouwers on Sun, 10 Apr 2022 21:23
Quote from: JohnH on Sun, 10 Apr 2022 16:46
I run PSX on computer A and FS2020 on computer B, is it possible to run your program across a network? If yes what do I need to change?

Typically you run this kind of program on the FS2020 machine and point it at the PSX machine by feeding the program the IP address of the PSX machine, instead of the default 127.0.0.1.  I don't know whether the program already has this option; it most likely comes out of the box with 127.0.0.1.

Hoppie

Thanks for the info, yes when I start it on the FS2020 PC it shows 127.0.0.1, I am not sure how or if you can change that?

John
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: asboyd on Sun, 10 Apr 2022 22:22
John,
If you start the PSXMSFS in a cmd box with "-help" or "-h" you will get a list of command line options. You can then use a command line setting to set the IP addresses of both the main and boost servers.

Cheers,
AlexB

Update example: d:\PSXMSFS.exe -m 192.168.92.246 -p 30474 -b 192.168.92.246 -c 30475
-m IP address of main server
-p Port of same
-b IP address of boost server
-c Port of same.
:)
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Mon, 11 Apr 2022 02:53
Quote from: JohnH on Sun, 10 Apr 2022 22:14
Quote from: Jeroen Hoppenbrouwers on Sun, 10 Apr 2022 21:23
Quote from: JohnH on Sun, 10 Apr 2022 16:46
I run PSX on computer A and FS2020 on computer B, is it possible to run your program across a network? If yes what do I need to change?

Typically you run this kind of program on the FS2020 machine and point it at the PSX machine by feeding the program the IP address of the PSX machine, instead of the default 127.0.0.1.  I don't know whether the program already has this option; it most likely comes out of the box with 127.0.0.1.

Hoppie

Thanks for the info, yes when I start it on the FS2020 PC it shows 127.0.0.1, I am not sure how or if you can change that?

John

John,

if you launch the program with the switch -h it will give you options to change both the main and/or boost server.
In a nutshell you would launch it on the MSFS machine with the option:

PSXMSFS -m xxx.xxx.xxx.xxx  (this would log in to  the main server at xxx.xxx.xxx.xxx)
you can then add the option -b yyy.yyy.yyy.yyy to specify another boost server address, but by default it will pick up the xxx.xxx.xxx.xxx you specified for the main server
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Mon, 11 Apr 2022 10:23
Hi Peter,

really strange ... Win 10 has some kind of a compatibility checker.

Right click the exe file, click on "Eigenschaften" (Properties) and then follow the menu items.

See here:

(http://www.b747-400.net/downloads/Compatibility.PNG)

Let's see, what Windows is going to tell us about ...

Servus aus Wien
Hans
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Mon, 11 Apr 2022 11:07
Hi,

With the latest features added to the tool, are you guys experiencing any lags, crashes, weird behaviours etc, or is it still running (reasonably) smoothly ?

My test platform is a bit limited (I am running it inside a Win10 virtual machine, hosted on a Linux box) and I experience some of the above which I cannot explain or systematically reproduce (probably due to my very poor coding techniques....)

But nonetheless, I will continue adding features if you guys find it usefull.

Next on my plate is to handle the weather

Cheers,

-S.

Cheers,


Title: Re: New scenery bridge tool between PSX and MSFS
Post by: JohnH on Mon, 11 Apr 2022 17:31
I managed to get connected and command prompt says,,

connected to psx main server on xxx.xxx.x.x:10747
connected to psx boost server on xxx.xxx.x.x:10749
connected to MSFS

However the 747 in MSFS is in the middle of the ocean somewhere?

Thanks John
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jeroen Hoppenbrouwers on Mon, 11 Apr 2022 17:37
Middle of the ocean probably is in the Gulf of Guinea, lat/lon (0,0).
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: JohnH on Mon, 11 Apr 2022 18:30
I had the same issue with ExternalSim and it was a firewall issue. I have the firewall off but still get the problem?

John
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Peter Lang on Mon, 11 Apr 2022 20:38
Quote from: B747-400 on Mon, 11 Apr 2022 10:23
Hi Peter,

really strange ... Win 10 has some kind of a compatibility checker.

Right click the exe file, click on "Eigenschaften" (Properties) and then follow the menu items.

See here:

(http://www.b747-400.net/downloads/Compatibility.PNG)

Let's see, what Windows is going to tell us about ...

Servus aus Wien
Hans

Hi Hans,

thank you for your input.

I checked the Properties (Eigenschaften). They revealed one issue, but solving it unfortunately did not solve the problem.

1. on Common Page (Allgemeines) below Attributes (and checkboxes for write protected and hidden) there was a text with a checkbox telling me that the file was from a private programmer and therefore blocked. After unchecking the box the text dissapeared. Then I tried again to run the program, but without success.

2. in the compatibility section I checked problemsolving mode, everything down to Win 95 and the settings. No effect

3. in the security section, I added a new user (Jeder = everybody) which often helps with network permissions. No effect. clicking on the extension Button (Erweitert) the same.

4. on the details page there I should have the possibility to remove attributes and personal informations. Here my system does not allow to remove anything.

5. previous versions shows nothing...

So up to now no chance to run the software It still shows the same message that my 64 bit system cannot execute a 16 bit program. 

Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: asboyd on Mon, 11 Apr 2022 22:36
Ensure you have UAC turned off in Windows 10. and Also make sure you install the program in a directory that is owned by you, in other words do not use any of the Windows system folders.... "Windows", "User" (eg Desktop or libraries), "Program Files", etc.
I have a separate Directory called f:\flightstuff\PSX which contains my add-on programs in their own directories.

Cheers,
AlexB
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: GustavoLaPasta on Mon, 11 Apr 2022 22:55
Great tool man, works great and is super simple to launch and connect, very well done!

It would be nice if you could add an altimeter setting synchronisation between PSX and FS2020, as far as i could see the altimeter on FS2020 was always set to 29.92 inches while PSX one was different, thanks for whatever you can do.

GustavoLaPasta
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Peter Lang on Tue, 12 Apr 2022 06:55
Quote from: asboyd on Mon, 11 Apr 2022 22:36
Ensure you have UAC turned off in Windows 10. and Also make sure you install the program in a directory that is owned by you, in other words do not use any of the Windows system folders.... "Windows", "User" (eg Desktop or libraries), "Program Files", etc.
I have a separate Directory called f:\flightstuff\PSX which contains my add-on programs in their own directories.

Cheers,
AlexB

Hi Alex,

thanks for your hints. The files are already on separate drives in separate directories, similar to your setup. Turning off UAC completely also does not change the situation.

Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: asboyd on Tue, 12 Apr 2022 07:49
Have you tried right clicking on the exe and selecting properties, then under compatibility setting the run as administrator option?

Cheers,
AlexB
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Peter Lang on Tue, 12 Apr 2022 09:06
Quote from: asboyd on Tue, 12 Apr 2022 07:49
Have you tried right clicking on the exe and selecting properties, then under compatibility setting the run as administrator option?

Cheers,
AlexB

Hi Alex,

yes, see previous post (reply to Hans), I also checked the BOIS in the meantime, but to be honest I'm not so familiar with these settings. And I also tried it on several other win 10 PCs and Notebooks (with no MSFS installed). Everywhere the same result. Changing my country settings also did not help..., ok perhaps, because it is still a german version. It is really strange.

Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jeroen Hoppenbrouwers on Tue, 12 Apr 2022 09:46
Ok, we entered the "anything goes" territory.

I recently managed to miscopy a file and its result was zero bytes long, but the name was correct. It was a Windows .exe file. When I attempted to run it, Windows started complaining that this version of Windows could not understand this file and that I'd better download something appropriate from the Microsoft Store. Yes it took quite a while before I found out what the problem actually was.

So it can be that your original downloaded copy has been mutilated in some way (not necessarily by becoming zero length) and that the header data structure no longer matches what the Windows binary loader expects to see. If you then used this broken file to try out on all other computers, you indeed would get the same effect.

This is one reason why people publish checksums and byte lengths of files that you can download.

Hoppie
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Tue, 12 Apr 2022 10:30
Quote from: Peter Lang on Tue, 12 Apr 2022 09:06
..., ok perhaps, because it is still a german version. It is really strange.

Should not be the DE version. As my MSFS server is EN, for testing purpose I started the bridge on a DE Win 10 PC without any compatibility issue. Me too suggests, re-downloading the file ... perhaps something went wrong.

As you tested on different PCs, it looks very much as a damaged download. Or, you have exactly the same system image running on the other PCs ...

Hans
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Tue, 12 Apr 2022 13:02
Quote from: GustavoLaPasta on Mon, 11 Apr 2022 22:55
Great tool man, works great and is super simple to launch and connect, very well done!

It would be nice if you could add an altimeter setting synchronisation between PSX and FS2020, as far as i could see the altimeter on FS2020 was always set to 29.92 inches while PSX one was different, thanks for whatever you can do.

GustavoLaPasta

Hi Gustavo,

New version with altimeter synch.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Tue, 12 Apr 2022 13:04
Quote from: Jeroen Hoppenbrouwers on Tue, 12 Apr 2022 09:46
[...]

This is one reason why people publish checksums and byte lengths of files that you can download.

Hoppie

And added a MD5 checksum.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: GustavoLaPasta on Tue, 12 Apr 2022 13:54
Quote from: CHEDHKG on Tue, 12 Apr 2022 13:02
Quote from: GustavoLaPasta on Mon, 11 Apr 2022 22:55
Great tool man, works great and is super simple to launch and connect, very well done!

It would be nice if you could add an altimeter setting synchronisation between PSX and FS2020, as far as i could see the altimeter on FS2020 was always set to 29.92 inches while PSX one was different, thanks for whatever you can do.

GustavoLaPasta

Hi Gustavo,

New version with altimeter synch.

Thank you so much!
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: JohnH on Tue, 12 Apr 2022 19:21
Quote from: asboyd on Sun, 10 Apr 2022 22:22
John,
If you start the PSXMSFS in a cmd box with "-help" or "-h" you will get a list of command line options. You can then use a command line setting to set the IP addresses of both the main and boost servers.

Cheers,
AlexB

Update example: d:\PSXMSFS.exe -m 192.168.92.246 -p 30474 -b 192.168.92.246 -c 30475
-m IP address of main server
-p Port of same
-b IP address of boost server
-c Port of same.
:)

Thank Alex, I tried what you suggested and PSXMSFS connected to PSX however the MSFS 747 does not move with the PSX aircraft??

John
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Peter Lang on Tue, 12 Apr 2022 20:13
Quote from: Jeroen Hoppenbrouwers on Tue, 12 Apr 2022 09:46
Ok, we entered the "anything goes" territory.

I recently managed to miscopy a file and its result was zero bytes long, but the name was correct. It was a Windows .exe file. When I attempted to run it, Windows started complaining that this version of Windows could not understand this file and that I'd better download something appropriate from the Microsoft Store. Yes it took quite a while before I found out what the problem actually was.

So it can be that your original downloaded copy has been mutilated in some way (not necessarily by becoming zero length) and that the header data structure no longer matches what the Windows binary loader expects to see. If you then used this broken file to try out on all other computers, you indeed would get the same effect.

This is one reason why people publish checksums and byte lengths of files that you can download.

Hoppie

Hi Hoppie,

problem solved. You hit the point. The .exe file indeed was corrupted.

Usually I download files with a right mouse click and then save it as and so on. So I did it here. From the bin directory. Several times. Also from the other PCs. Same procedure with the .dll files. The .exe file always had the same size of 120 kb. After your hint I searched for a download button. By using this method, the .exe file had 155 kb.
I tried it and it worked. Without any popups, hesitations, etc.

Interestingly this right mouse click download method only affected the .exe file and is reproducable. So when I downlod via button it has 155 kb, via right click it has 120 kb. Every time (at least on my system). The .dll files are not affected, no matter if I download them via button or right click.

So thank you all very much for your ideas, efforts and help.

Stephan, I just ran a short test. Program runs fine and smooth. Lights work. Thank you very much for this excellent tool and keep up your great work.

Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jeroen Hoppenbrouwers on Tue, 12 Apr 2022 20:38
*boggle*

Which web browser do you use?
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Peter Lang on Tue, 12 Apr 2022 21:27
Quote from: Jeroen Hoppenbrouwers on Tue, 12 Apr 2022 20:38
*boggle*

Which web browser do you use?

Opera
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: asboyd on Tue, 12 Apr 2022 22:24
Peter,
When in github, if you left click on the exe file it will open a new window with a download button...this is the safest way of downloading with Opera.... I used to use Opera but changed to Vivaldi when I found out Opera was starting to data mine....

Cheers,
AlexB
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Peter Lang on Wed, 13 Apr 2022 07:22
Quote from: asboyd on Tue, 12 Apr 2022 22:24
Peter,
When in github, if you left click on the exe file it will open a new window with a download button...this is the safest way of downloading with Opera.... I used to use Opera but changed to Vivaldi when I found out Opera was starting to data mine....

Cheers,
AlexB

Hi Alex,

thank you for the information. I will check it out. Btw aren't they all doing data mining?

Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: asboyd on Wed, 13 Apr 2022 08:03
The guys that wrote Chrome have written Vivaldi and have set it up so it does not data mine.

Cheers,
AlexB
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Wed, 13 Apr 2022 13:21
I seem to be missing something here..
MSFS working...
I have C:/PSXMSFS with all the downloaded files, with "bin" and "include" as sub-folders.. (I haven't placed anything in my MSFS folders).
Using WIN/R I can find and run PSXMSFS.exe but after a brief flash showing the 127.0.0.1 message, nothing happens.
The -h flag doesn't produce anything.

Help needed! I'm not good at this dll/Simconnect stuff!

Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Wed, 13 Apr 2022 13:31
Things improving - it works with PSX on the same PC as MSFS.
Now I need to get it across the network :-)
Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Wed, 13 Apr 2022 13:38
Sorted - my problem was that every file in the PSXMSFS directory had to be "unblocked" in Windows.
Does anyone know how to get rid of this automatic blocking feature? Very annoying...
Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Wed, 13 Apr 2022 13:48
Stephan,

Now that I'm a happy bunny again (!) I have a feature request?
It would be great to have a feature similar to the one that Jean-Phillipe utilized, where the master/slave relationship between PSX and MSFS could be switchable?
This has greatly helped me in the past for saving PSX situation files to the exact gate in MSFS, using the excellent WIDEPSX
Since we are all freeware here now I hope JP won't mind me mentioning it?
Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 13 Apr 2022 14:02
Hi Peter,

Indeed, this is something a few of you asked and since it seems to be a popular demand, I will start workign on it.

My original goal was to have MSFS being a slave, but then, what the heck..... let's see how I can have a switch between who is the master and who is the slave.

How would you guys have this work:
Via a time out (MSFS starts as the master then after x seconds it is PSX turn) ?
Via a key that could be configured in MSFS (pressing this key in MSFS would make MSFS the slave and vice versa) ?
Other ?

-S.

PS: I fixed some nasty bugs recently and now the tool is much more stable. I would suggest to download the latest version that irons out some of those bugs
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Wed, 13 Apr 2022 15:35
Thanks Stephan,

For me a key would be best for the slave swap - it can take some time to get the MSFS position right before slaving PSX to it..
Thanks for all this - particularly impressed by the immediate time changes from PSX to MSFS!

Peter.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Wed, 13 Apr 2022 15:56
Hi Stephan,

great job! Thanks for all your efforts!

As some of us are running a full cockpit and may have no (easy) chance to enter some keypresses in MSFS: a Keypress in PSX (perhaps a CDU command?) can trigger this as well?

Cheers
Hans
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 13 Apr 2022 16:28
Quote from: B747-400 on Wed, 13 Apr 2022 15:56
Hi Stephan,

great job! Thanks for all your efforts!

As some of us are running a full cockpit and may have no (easy) chance to enter some keypresses in MSFS: a Keypress in PSX (perhaps a CDU command?) can trigger this as well?

Cheers
Hans

Well,
I guess both are doable. Let me see how I can do that.

-Stephan
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jeroen Hoppenbrouwers on Thu, 14 Apr 2022 23:35
Go for a keypress or so first. MCDU support is much more involved than may seem at first sight. You need to program a complete terminal emulator to get acceptable stuff.

Unless you really only install a <SLAVE   <MASTER   LSK on the MAIN MENU.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 15 Apr 2022 07:28
Quote from: Jeroen Hoppenbrouwers on Thu, 14 Apr 2022 23:35
Go for a keypress or so first. MCDU support is much more involved than may seem at first sight. You need to program a complete terminal emulator to get acceptable stuff.

Unless you really only install a <SLAVE   <MASTER   LSK on the MAIN MENU.

Jeroen,

I was also going for that approach. The only worry I have is that people can customize their MSFS setup, and thus assigning a key could potentially have some weird effects....

The other solution I thought of was to, as you mention, use the MCDU, one of the TELEX pages to trigger the fact that PSX should behave as slave
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: VolleyballCALVA on Sun, 17 Apr 2022 12:11
Quote from: JohnH on Tue, 12 Apr 2022 19:21

Thank Alex, I tried what you suggested and PSXMSFS connected to PSX however the MSFS 747 does not move with the PSX aircraft??

John

Same here, I tried to connect PSX with MSFS but sometimes the aircraft is in the middle of ocean, sometimes the aircraft in MSFS seems to be under ground, and every time the aircraft in MSFS doesn't move with PSX, same with the lights etc.

Any help would be appreciated. Thanks in advanced
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Sun, 17 Apr 2022 16:07
Hi Volleyball,

Some more details would be helpful in trying to debug your situation.

What is your set-up ? Are PSX and MSFS on the same computer ? Are you networking ?
Do you launch PSXMSFS only once you have MSFS up and running?

By default PSXMSFS tries to position your aircraft at LFPG, then only it tries to position itself according to PSX.

-Stephan
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: VolleyballCALVA on Mon, 18 Apr 2022 12:23
Hello Stephan,

Thank you very much for the reply.
I have only one computer, so PSX and MSFS are on the same computer. I assume in this case, I can use the default IP address of 127.0.0.1?
The actions I done was like this:
1. Start MSFS
2. Set the start position ( In this case, EBBR RWY 01), Select aircraft (Default B747-8i), Press Fly on bottom right.
3. After the loading done, press fly again, and I was sit in the cockpit of MSFS' 747.
4. Start Aerowinx PSX and wait to loading complete. Set position of PSX to EBBR gate 228 or RWY07R.
5. Start PSXMSFS.exe (tried both with or without admin)
Then I got the result I described.

System is Windows 10 Professional. I have downloaded both the bin and include folder, tried to mix the 2 into 1 folder but same result.

Please tell me if you need more information. Thank you!
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Mon, 18 Apr 2022 15:42
Looks good to me...
Just a thought, any special local settings, such as comma separator, etc ?
When you launch PSXMSFS.exe, what messages are shown in the console window?

I built another exe with some additional debug info:

https://www.dropbox.com/s/gz4exd8pbbhqimg/PSXMSFS_DEBUG.exe?dl=0 (https://www.dropbox.com/s/gz4exd8pbbhqimg/PSXMSFS_DEBUG.exe?dl=0)

Could you try with this one? It should create a file called DEBUG.TXT with some more info.

Thanks
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: VolleyballCALVA on Mon, 18 Apr 2022 20:28
Thank you! I tried the debug one but is it normal that it only runs for about 3 to 5 seconds then disappeared by itself? And I have no idea where it create the debug.txt.
The first 4 row of text showed on the debug window is the same with the normal one. Which as follows:

opening: 127.0.0.1:10747
Connected to PSX main server on 127.0.0.1:10747
Connected to PSX boost server on 127.0.0.1:10749
Connected to MSFS

On the debug one, there are one more row
***** EXCEPTION=3 SendID=2 Index=-1 cbData=24

Thank you.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jeroen Hoppenbrouwers on Tue, 19 Apr 2022 10:49
Just to avoid confusion: most people nowadays just click on .exe files in a folder browser, and therefore they lose the command window immediately after the program exits.
For most command window applications, it is technically better to run them manually in a window. Typically:

* Browse to the file in the normal Windows Explorer.
* Click in the Explorer file name bar, which then swaps into the file name of the folder you're in.
* Type cmd and enter.

You now have a command window in the correct folder.
On the command line type the whatever.exe and enter.

Now when the program ends, you don't lose its output.


Hoppie
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Tue, 19 Apr 2022 11:04
Quote from: VolleyballCALVA on Mon, 18 Apr 2022 20:28
Thank you! I tried the debug one but is it normal that it only runs for about 3 to 5 seconds then disappeared by itself? And I have no idea where it create the debug.txt.
The first 4 row of text showed on the debug window is the same with the normal one. Which as follows:
[...]
Thank you.

Volley,
Forgot to mention, please launch the exe with the -v flag (verbose flag). And the file DEBUG.TXT should be created in the same directory as the exe

-Stephan
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: VolleyballCALVA on Tue, 19 Apr 2022 15:56
Quote from: Jeroen Hoppenbrouwers on Tue, 19 Apr 2022 10:49
Just to avoid confusion: most people nowadays just click on .exe files in a folder browser, and therefore they lose the command window immediately after the program exits.
For most command window applications, it is technically better to run them manually in a window. Typically:

* Browse to the file in the normal Windows Explorer.
* Click in the Explorer file name bar, which then swaps into the file name of the folder you're in.
* Type cmd and enter.

You now have a command window in the correct folder.
On the command line type the whatever.exe and enter.

Now when the program ends, you don't lose its output.


Hoppie

Cool! I never know this tip, I always use the cd commend that's way slower. Thank you very much for the tip!
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: VolleyballCALVA on Tue, 19 Apr 2022 17:31
Quote from: CHEDHKG on Tue, 19 Apr 2022 11:04

Volley,
Forgot to mention, please launch the exe with the -v flag (verbose flag). And the file DEBUG.TXT should be created in the same directory as the exe

-Stephan

Thank you! Both the debug one and normal one worked with the -v flag and I have done a flight from EBBR RWY25R to EBBR RWY19 with smoothness. But the problem is it seems like the PSXMSFS won't sync the terrain data from MSFS to PSX. So in MSFS I seem to be on the RWY, but in fact, I was under ground. So after I rotate and the aircraft lift off into the air mode, I jumped to under ground and gone through the runway surface into air. Same thing happened on landing that I sunk into the ground and when touch down, I jumped back to the runway surface. I think it's normal for now?

Following is the debug.txt generated by the PSXMSFS_Debug.exe
***** EXCEPTION=3  SendID=2  Index=-1  cbData=24
***** EXCEPTION=3  SendID=3  Index=-1  cbData=24
***** EXCEPTION=3  SendID=4  Index=-1  cbData=24
***** EXCEPTION=3  SendID=42  Index=1  cbData=24
***** EXCEPTION=24  SendID=43  Index=1  cbData=24
Tue Apr 19 16:26:32 2022
PSX:     Alt: 156   Lat: 50.901   Long: 4.488   Head: 154.6   Pitch: 0.00   Bank: -0.10   TAS: 0.0   IAS: 0.0   VS: 0.0   
Tue Apr 19 16:26:32 2022
MSFS:     Alt: 191   Lat: 50.901   Long: 4.488   Head: 154.6   Pitch: 0.00   Bank: -0.10   TAS: 0.0   IAS: 0.0   VS: 0.0   GearDown: 1.0   FlapsPosition: 0.0   Speedbrake: 0.0   Lights: 0000000100001   rudder: 0.0   elevator: -3120.8   ailerons: 4096.0   

Thank you.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 20 Apr 2022 02:14
Quote from: VolleyballCALVA on Tue, 19 Apr 2022 17:31

Thank you! Both the debug one and normal one worked with the -v flag and I have done a flight from EBBR RWY25R to EBBR RWY19 with smoothness. But the problem is it seems like the PSXMSFS won't sync the terrain data from MSFS to PSX. So in MSFS I seem to be on the RWY, but in fact, I was under ground. So after I rotate and the aircraft lift off into the air mode, I jumped to under ground and gone through the runway surface into air. Same thing happened on landing that I sunk into the ground and when touch down, I jumped back to the runway surface. I think it's normal for now?
[...]
Thank you.

Glad it worked now !
Indeed I have to think about how to handle those jumps in ground elevation... I wanted to have strictly MSFS as a slave, but seems I need to tweek a little.

On my todo list

Cheers,

-S.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: VolleyballCALVA on Wed, 20 Apr 2022 15:03
Thank you very much for your help! It seems I have to go with -v every time? Really looking forward to the future updates. Thank you for the effort!

Best Regards,
-V.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jeroen Hoppenbrouwers on Wed, 20 Apr 2022 23:06
This problem has been encountered before, of course -- there were about 8 scenery generator linkers before. At altitude the small differences don't matter but close to the ground, the scenery generator HEIGHT above ground needs to match the PSX HEIGHT above ground. There have been various solutions, ranging from "PSX dictates from its database and MSFS needs to be tweaked" to "MSFS scenery dictates and PSX needs to be tweaked". An interesting issue is for example that PSX recognizes sloped runways and MSFS does not (maybe the latest re-issue does, I don't know; X-plane does).

I think you need to look around what others did and make use of the special variables PSX has to make this problem easier to solve. Unfortunately I don't have sufficient knowledge of this particular problem to help out much.


Hoppie
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 21 Apr 2022 01:28
Quote from: Jeroen Hoppenbrouwers on Wed, 20 Apr 2022 23:06
This problem has been encountered before, of course -- there were about 8 scenery generator linkers before. At altitude the small differences don't matter but close to the ground, the scenery generator HEIGHT above ground needs to match the PSX HEIGHT above ground. There have been various solutions, ranging from "PSX dictates from its database and MSFS needs to be tweaked" to "MSFS scenery dictates and PSX needs to be tweaked". An interesting issue is for example that PSX recognizes sloped runways and MSFS does not (maybe the latest re-issue does, I don't know; X-plane does).

I think you need to look around what others did and make use of the special variables PSX has to make this problem easier to solve. Unfortunately I don't have sufficient knowledge of this particular problem to help out much.


Hoppie

Hi Hoppie,

Absolutely. I have already tried various different approaches some of which are more interesting that others. I am still trying though to keep MSFS enslaved to PSX as much as possible. Let's see what comes out of it. I might offer two different options too, if not too complicated to implement.

-Stephan

Title: Re: New scenery bridge tool between PSX and MSFS
Post by: kiek on Thu, 21 Apr 2022 14:33
Hi guys,

MSFS has sloped runways and taxiways. 

In PSXseeconTraffic (https://www.lekseecon.nl) I have solved that by monitoring 5 times per second (via SimConnect) whether the aircraft is on the ground ("SIM ON GROUND") and if so taking the groundAltitude ("Ground Altitude") +  the static altitude of the ac to the ground from center of gravity ("Static CG to Ground") for the next altitude of the aircraft in MSFS.

Works good.

Aircraft now also perfectly follow the slopes of the bridge over the motorway from runway 25R to the EDDF airport stands.

Nico
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 21 Apr 2022 16:09
Quote from: kiek on Thu, 21 Apr 2022 14:33
Hi guys,

MSFS has sloped runways and taxiways. 

In PSXseeconTraffic (https://www.lekseecon.nl) I have solved that by monitoring 5 times per second (via SimConnect) whether the aircraft is on the ground ("SIM ON GROUND") and if so taking the groundAltitude ("Ground Altitude") +  the static altitude of the ac to the ground from center of gravity ("Static CG to Ground") for the next altitude of the aircraft in MSFS.

Works good.

Aircraft now also perfectly follow the slopes of the bridge over the motorway from runway 25R to the EDDF airport stands.

Nico

Hi Nico,

Thanks !  I have been playing with those variables, but the least to say is that the doc of Simconnect is not at its best...
The following variables are all deemed to be settable, but obviously not..

PLANE ALT ABOVE GROUND MINUS CG
PLANE ALT ABOVE GROUND
PLANE ALTITUDE

But it gives some room to wigle
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Markus Vitzethum on Thu, 21 Apr 2022 17:20
Hi Stephan,

you might also want to search the forum (if not already done so) for post on the Qi198 "Elev" variable. You'll find some experience and discussion on how to inject external scenery elevation data into PSX.

Markus

p.s.
Checking out your new scenery bridge is still on my to-do list, looking forward to try it on my system.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: kiek on Thu, 21 Apr 2022 17:28
Quote from: CHEDHKG on Thu, 21 Apr 2022 16:09
Quote from: kiek on Thu, 21 Apr 2022 14:33
Hi guys,

MSFS has sloped runways and taxiways. 

In PSXseeconTraffic (https://www.lekseecon.nl) I have solved that by monitoring 5 times per second (via SimConnect) whether the aircraft is on the ground ("SIM ON GROUND") and if so taking the groundAltitude ("Ground Altitude") +  the static altitude of the ac to the ground from center of gravity ("Static CG to Ground") for the next altitude of the aircraft in MSFS.

Works good.

Aircraft now also perfectly follow the slopes of the bridge over the motorway from runway 25R to the EDDF airport stands.

Nico

Hi Nico,

Thanks !  I have been playing with those variables, but the least to say is that the doc of Simconnect is not at its best...
The following variables are all deemed to be settable, but obviously not..

PLANE ALT ABOVE GROUND MINUS CG
PLANE ALT ABOVE GROUND
PLANE ALTITUDE

But it gives some room to wigle
I have given you the names of the SimConnect variables to use in my post (between parenthesis and quotes).  They are all to be read (only).
To set the altitude of an aircraft you should use the "SimConnect_SetDataOnSimObject" function.

I use SimConnect now for about 8 years and have no problems at all, works rock solid. You can use the same SimConnect interface for FSX, P3D and MSFS.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 22 Apr 2022 01:17
Quote
I have given you the names of the SimConnect variables to use in my post (between parenthesis and quotes).  They are all to be read (only).
To set the altitude of an aircraft you should use the "SimConnect_SetDataOnSimObject" function.

I use SimConnect now for about 8 years and have no problems at all, works rock solid. You can use the same SimConnect interface for FSX, P3D and MSFS.

Indeed Kiek,
This is exactly what I am doing and it works flawlessly. I was just pointing out the indigent documentation of MSFS SDK, bloated with contradictions and incorrect statements.. That does not help :)

Cheers,
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Tue, 26 Apr 2022 13:16
Hi guys,

Just uploaded to Github what might be the v1.0 release of this tool. (cf. first post for details)

It should now have some smoother air<->ground transition as well as getting rid of the new for some external DLLs.

The only caveat is that in some situ loading, you might want to load the situ twice as MSFS has some difficulties in loading its scenario which might confuse PSX.

I have tested it for quiet a few long haul flights without any significant bug or crash. Please feel free to test it and report any bug/crash.


Next on the to-do list: allow PSXMSFS to be enslaved to MSFS for easy positioning for example.

Cheers

Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Tue, 26 Apr 2022 13:22
Hi Stephan,

thanks for your efforts.

Cheers
Hans
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Berndo on Tue, 26 Apr 2022 20:21
Hi Stephan!

Thanks for your tool, I like it.  :)

As I got in with version 0.99 and now 1.00 I may have missed some stuff regarding the handling:

) The default 747-8i has to have the engines or APU running, otherwise comm radios won't work (e.g. the radios of vPilot stay silent as the MSFS avionics are off). The engine/APU/generator stuff is not synced, correct?

) The transponder state is not synced (e.g. STBY, TA/TA). Is that planned for a future update?

) Altitude during cruise differs between PSX and MSFS. I guess this will go away once you sync the weather?

Cheers,
Bernd
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Wed, 27 Apr 2022 12:12
Hi Stephan,

With 1.00 the 747 Centre position appears to be wrong. It appears to be now far to the rear, close to where the fuselage tapers upwards?
Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 27 Apr 2022 12:26
Quote from: Britjet on Wed, 27 Apr 2022 12:12
Hi Stephan,

With 1.00 the 747 Centre position appears to be wrong. It appears to be now far to the rear, close to where the fuselage tapers upwards?
Peter

Hi Peter,
That' s weird... I did not change anything regarding that. Let me have a look
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 27 Apr 2022 12:29
Quote from: Berndo on Tue, 26 Apr 2022 20:21
Hi Stephan!

Thanks for your tool, I like it.  :)

As I got in with version 0.99 and now 1.00 I may have missed some stuff regarding the handling:

) The default 747-8i has to have the engines or APU running, otherwise comm radios won't work (e.g. the radios of vPilot stay silent as the MSFS avionics are off). The engine/APU/generator stuff is not synced, correct?

) The transponder state is not synced (e.g. STBY, TA/TA). Is that planned for a future update?

) Altitude during cruise differs between PSX and MSFS. I guess this will go away once you sync the weather?

Cheers,
Bernd

1/ Yes that is correct, you need to start MSFS ready for take off and not cold and dark
2/ Should be sync' ed, you might need however to make one initial change in PSX for it to be reflected in MSFS
3/ Let me have a look. That might come indeed from local pressure and weatehr settings
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: andrej on Wed, 27 Apr 2022 12:56
Quote from: Berndo on Tue, 26 Apr 2022 20:21

) Altitude during cruise differs between PSX and MSFS. I guess this will go away once you sync the weather?


Bernd,

this I believe is still (un)resolved bug in the MSFS (not sure about recent Update 9). Altitude (even if PSX is in STD) changes based on a real world weather. Whenever I fly online and I am in a cruise, I change to "Clear Skies". Descent and climb are real world weather. This reduced confusion with the ATC (but once explained, they are accommodation).

More information:

https://forums.flightsimulator.com/t/vatsim-ivao-pilotedge-users-be-aware-of-an-important-bug/426142/450
https://forums.flightsimulator.com/t/vatsim-altitude-disagree-with-in-game-altitude/489150/38 (https://forums.flightsimulator.com/t/vatsim-ivao-pilotedge-users-be-aware-of-an-important-bug/426142/450%3Cbr%20/%3Ehttps://forums.flightsimulator.com/t/vatsim-altitude-disagree-with-in-game-altitude/489150/38)

Best,
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 27 Apr 2022 13:47
Quote from: Britjet on Wed, 27 Apr 2022 12:12
Hi Stephan,

With 1.00 the 747 Centre position appears to be wrong. It appears to be now far to the rear, close to where the fuselage tapers upwards?
Peter

Peter,

How did you notice that effect ? I am using actually the coordinates from the flight desk, but indeed applying them to the center of the aircraft in MSFS....  I noticed that while testing the slave<-> master and switching back and forth: the plane jumped a few meters ahead

Probably need to do some trigonometry here.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Berndo on Wed, 27 Apr 2022 14:40
@CHEDHKG

Thanks for your quick reply, I will try it with a running plane in MSFS, that may also have influenced the transponder.

@andrej

Oh, I didn't know that. Could well be, I'll read that thread.

Cheers,
Bernd
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Hardy Heinlin on Wed, 27 Apr 2022 15:12
Quote from: CHEDHKG on Wed, 27 Apr 2022 13:47
I am using actually the coordinates from the flight desk, but indeed applying them to the center of the aircraft in MSFS....

Probably need to do some trigonometry here.

My flightdeck position formula that I implemented is somewhere on the forum, I think. Did you notice that post or did you develop a formula on your own? Just asking before I start a long search ...


|-|ardy
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 27 Apr 2022 16:14
Quote from: Hardy Heinlin on Wed, 27 Apr 2022 15:12
Quote from: CHEDHKG on Wed, 27 Apr 2022 13:47
I am using actually the coordinates from the flight desk, but indeed applying them to the center of the aircraft in MSFS....

Probably need to do some trigonometry here.

My flightdeck position formula that I implemented is somewhere on the forum, I think. Did you notice that post or did you develop a formula on your own? Just asking before I start a long search ...


|-|ardy

Hi Hardy,

Yes just saw now the formula: https://aerowinx.com/board/index.php?topic=2969.msg29917#msg29917 (https://aerowinx.com/board/index.php?topic=2969.msg29917#msg29917)
Will amend my code accordingly.

Thanks for pointing that out
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Berndo on Wed, 27 Apr 2022 18:36
Regarding the transponder I have to say that the code is perfectly transferred to MSFS, the state (STBY, TA, TA/RA) however is not.
I tried to move the MSFS one manually, to get an intial sync but that also didn't work.

Is it syncing for everyone else? Cause if so, I've got to dig deeper into my MSFS installation.

Cheers,
Bernd
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 28 Apr 2022 00:16
Quote from: Berndo on Wed, 27 Apr 2022 18:36
Regarding the transponder I have to say that the code is perfectly transferred to MSFS, the state (STBY, TA, TA/RA) however is not.
I tried to move the MSFS one manually, to get an intial sync but that also didn't work.

Is it syncing for everyone else? Cause if so, I've got to dig deeper into my MSFS installation.

Cheers,
Bernd

Let me check if that can be synch' ed in MSFS.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Thu, 28 Apr 2022 10:27
I found the X- axis position problem because all my saved positions in PSX are now inside the terminal building!
Basically it's too far aft by several metres.
Rotating the aircraft using the heading slider on the Aerodynamics page shows the rotation about the X-axis somewhere near where the fuselage starts to slope up toward the tail.
Hope that helps!
Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 28 Apr 2022 10:36
Quote from: Britjet on Thu, 28 Apr 2022 10:27
I found the X- axis position problem because all my saved positions in PSX are now inside the terminal building!
Basically it's too far aft by several metres.
Rotating the aircraft using the heading slider on the Aerodynamics page shows the rotation about the X-axis somewhere near where the fuselage starts to slope up toward the tail.
Hope that helps!
Peter

Thank you Peter.
I did not realize some coordinates related to the flightdeck and some to the aircraft center. SHould be easy to fix.
I can send you a link with this fix probably tonight (together with a switch to enslave PSX to MSFS)
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Berndo on Thu, 28 Apr 2022 16:53
Quote from: CHEDHKG on Thu, 28 Apr 2022 00:16
Quote from: Berndo on Wed, 27 Apr 2022 18:36
Regarding the transponder I have to say that the code is perfectly transferred to MSFS, the state (STBY, TA, TA/RA) however is not.
Cheers,
Bernd

Let me check if that can be synch' ed in MSFS.

Thanks for looking into it!

Cheers,
Bernd
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Sat, 30 Apr 2022 10:28
Thanks, Stephan!
No rush..:-)
Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Sat, 7 May 2022 12:24
Quote from: Britjet on Sat, 30 Apr 2022 10:28
Thanks, Stephan!
No rush..:-)
Peter

Hi Peter,

Just uploaded a new version. This one should be better in positioning.

This version also allows MSFS to act as a master and update PSX's position.

-S.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Sun, 8 May 2022 19:32
Thanks Stephan!
Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Mon, 9 May 2022 12:30
Quote from: CHEDHKG on Sat,  7 May 2022 12:24
Quote from: Britjet on Sat, 30 Apr 2022 10:28
Thanks, Stephan!
No rush..:-)
Peter

Hi Peter,

Just uploaded a new version. This one should be better in positioning.

This version also allows MSFS to act as a master and update PSX's position.

-S.

Fixed a very nasty bug when loading a situ file.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Wed, 11 May 2022 12:58
Stephan,

All working very nicely now, thanks!
The P key working well. Is there a way to know which "mode" the reposition is in?

Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 11 May 2022 15:33
Quote from: Britjet on Wed, 11 May 2022 12:58
Stephan,

All working very nicely now, thanks!
The P key working well. Is there a way to know which "mode" the reposition is in?

Peter

Should be written out on the console. I can try to add some more explicit message though. What would you prefer to have ?
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Will on Thu, 12 May 2022 03:33
Hello Stephan,

I just joined the bandwagon! I'll get a chance to try it out in the nest few days, and I'll let you know how it goes. Thanks for your contribution to the community.

Will

Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Thu, 12 May 2022 19:03
Stephan,
You mean the CMD box "console" ? I never have that visible..Using full screen on MSFS so it doesn't naturally show..

However, I've found that changing time in PSX shows which mode I am in. If PSX is the slave then obviously time of day lighting doesn't change.
Peter
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 13 May 2022 04:42
Quote from: Britjet on Thu, 12 May 2022 19:03
Stephan,
You mean the CMD box "console" ? I never have that visible..Using full screen on MSFS so it doesn't naturally show..

However, I've found that changing time in PSX shows which mode I am in. If PSX is the slave then obviously time of day lighting doesn't change.
Peter

Peter,

Let me check if I can print a message in MSFS, or alternatively, I can try to print something on the MCDU
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jeroen Hoppenbrouwers on Fri, 13 May 2022 11:20
It is simple to make an EICAS message of your own choice appear.

Hoppie
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 13 May 2022 13:38
Quote from: Jeroen Hoppenbrouwers on Fri, 13 May 2022 11:20
It is simple to make an EICAS message of your own choice appear.

Hoppie

Yup, I was going into that too. Just making sure it won´t interfere with something. But then, when MSFS is master and PSX slave, you don´t really care....
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Fri, 13 May 2022 14:08
Quote from: Jeroen Hoppenbrouwers on Fri, 13 May 2022 11:20
It is simple to make an EICAS message of your own choice appear.

Hoppie

And new version uploaded that prints a message on EICAS whenever MSFS is the master
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Britjet on Sat, 14 May 2022 09:58
What a star!
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: asboyd on Tue, 17 May 2022 07:16
Hi Stephan,
I tried your bridge with P3DV5.3 and the commend window shows a "Simconnect_ID" error and quits.
I tried with each of the Simconnect.dll's that come with P3DV5 and none of them work correctly with your bridge.

I have not set it up to connect to MSFS yet to try it out... Will give it a go at some stage..
Cheers,
AlexB
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: cavaricooper on Tue, 17 May 2022 11:33
Stephan-
First, thank-you.

You asked for interest in a GUI and I'd like to confirm that there is, please.

Second-
For those using this project, can you please comment on smoothness of the slave camera? For me, that has been every prior scenery generator's Achilles Heel.... Leading me to often fly PSX in stand alone mode.

Third-
If someone has crib notes on getting this to work (An Idiot's Guide) this idiot would appreciate a copy.

Ta- C
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Gary Oliver on Tue, 17 May 2022 11:49
Carl,

Smoothness is the main issue with MSFS injection at the moment.  It's just about okay on a monitor but on a projector unless it's frame synced or acceleration injections it just feels  very unnatural  (as I've been used to the ultimate smoothness with external sim and the projectors on 30hz).

I was in contact with the asobo CEO who promised to get this looked at but since my initial email all of my others have been ignored.

I went down the route of trying to disable the flight mode and inject accelerations but you just cannot do it with the current sim itself.

It's great to see so many people doing psx links! And I did try this and found it good on a monitor but just too stuttery especially in turns on a wraparound display - nothing to do with the coding of this link, just the underlying API from Asobo.

Fingers crossed!  I can't wait to retire P3D!

Cheers
G
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Tue, 17 May 2022 12:49
Quote from: asboyd on Tue, 17 May 2022 07:16
Hi Stephan,
I tried your bridge with P3DV5.3 and the commend window shows a "Simconnect_ID" error and quits.
I tried with each of the Simconnect.dll's that come with P3DV5 and none of them work correctly with your bridge.

I have not set it up to connect to MSFS yet to try it out... Will give it a go at some stage..
Cheers,
AlexB

Hi Alex,

I have to point out that indeed I have only tried with MSFS and not P3D as I do not have P3D. That is probably due to some discrepancies between the two DLL.
If I can manage a way of trying with the P3D simconnect, I will give ti a shot.

-S.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Tue, 17 May 2022 12:54
Quote from: Gary Oliver on Tue, 17 May 2022 11:49
[...] - nothing to do with the coding of this link, just the underlying API from Asobo.

[...]

Not so sure..... 6 months ago I knew nothing about coding. Let me see if I can further smoothen the link. Will try working on a frame based injection and will let you guys know.

-S.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: cavaricooper on Tue, 17 May 2022 17:47
Thanks Gary... hope springs eternal...

C
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Gary Oliver on Tue, 17 May 2022 18:26
Just an update from Asobo - It's on the team backlog and they are currently looking at our request :-)

Good work team PSX!
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: cavaricooper on Tue, 17 May 2022 23:29
Great news!  Thanks for all that you do for us all!

C
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: cavaricooper on Tue, 17 May 2022 23:41
Stephan-

I was able to get it to connect to MSFS with just the IP of the PSX Server (boost was same). 

Would it be possible to use a very simple aircraft like an ultralight (damage off) and save a new proper viewpoint height to use MSFS for out the window (smooth) visuals only?

I'm not particularly bothered with the VC or exterior views, but in search of an absolutely smooth performance.

It's probably hare brained.... but....

Ta- C
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 18 May 2022 01:16
Quote from: cavaricooper on Tue, 17 May 2022 23:41
Stephan-

Would it be possible to use a very simple aircraft like an ultralight (damage off) and save a new proper viewpoint height to use MSFS for out the window (smooth) visuals only?

That should be possible already, but I did not try. I don't remember having anything specific to the MSFS 747
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: cavaricooper on Wed, 18 May 2022 12:33
Thanks- I will report back. Obviously lights will be missing but if the difference in smoothness is acute, I can fly during the day only for now :).

I hope you will consider a simple GUI for the .exe when time permits.

Thanks for your work!

C
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jeroen Hoppenbrouwers on Wed, 18 May 2022 12:40
To improve smoothness, also consider reducing the level of detail or animation or whatever MSFS offers in this area. Just drop everything all the way down and see what that does. If it still stutters, then probably no new airplane will help, either.


Hoppie
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: asboyd on Wed, 18 May 2022 22:42
Hi Stephan,
Having a small issue with PSXMSFS.. when I have started PSX and MSFS and am waiting at the end of the runway, I start PSXMSFS and suddenly I am plunged into darkness and, although I am set for system time in both PSX and MSFS, I am now in night time....
I tried setting the PSX time to night but that did not change anything.

Cheers,
AlexB
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jeroen Hoppenbrouwers on Wed, 18 May 2022 23:54
Australia opposite UTC.  Maybe something reads a local time instead of zulu?
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 19 May 2022 00:18
Quote from: asboyd on Wed, 18 May 2022 22:42
Hi Stephan,
Having a small issue with PSXMSFS.. when I have started PSX and MSFS and am waiting at the end of the runway, I start PSXMSFS and suddenly I am plunged into darkness and, although I am set for system time in both PSX and MSFS, I am now in night time....
I tried setting the PSX time to night but that did not change anything.

Cheers,
AlexB

Alex,

does the time change in MSFS when you change the time slider in PSX?
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: asboyd on Thu, 19 May 2022 02:37
No and my boost server shuts down and does not restart as per Hardy's info on other topic.
There appears to be a few things going strange with my networked setup.
If I change the situ on one of my client PC's it changes the situ on the server pc...
This is very strange.

I have also noticed that PSXMSFS does not appear in my task manager and I suspect when it bombs out it causes the boost to shut down and I cannot restart PSXMSFS. I will need to do some logging and see what is going on. Maybe there is a conflict as I already have Simconnect active in MSFS and maybe there is a conflict with the one provided by Stephan.

Cheers,
AlexB
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 19 May 2022 03:10
Quote from: asboyd on Thu, 19 May 2022 02:37
No and my boost server shuts down and does not restart as per Hardy's info on other topic.
There appears to be a few things going strange with my networked setup.
If I change the situ on one of my client PC's it changes the situ on the server pc...
This is very strange.

I have also noticed that PSXMSFS does not appear in my task manager and I suspect when it bombs out it causes the boost to shut down and I cannot restart PSXMSFS. I will need to do some logging and see what is going on. Maybe there is a conflict as I already have Simconnect active in MSFS and maybe there is a conflict with the one provided by Stephan.


Cheers,
AlexB

Alex,

The Simconnect.dll file should be the same. You can use the one you have in your MSFS folders.
Send me a mail with your network set-up, as that could help me understand what is going on.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 19 May 2022 07:18
Quote from: asboyd on Thu, 19 May 2022 02:37
No and my boost server shuts down and does not restart as per Hardy's info on other topic.
There appears to be a few things going strange with my networked setup.
If I change the situ on one of my client PC's it changes the situ on the server pc...
This is very strange.

I have also noticed that PSXMSFS does not appear in my task manager and I suspect when it bombs out it causes the boost to shut down and I cannot restart PSXMSFS. I will need to do some logging and see what is going on. Maybe there is a conflict as I already have Simconnect active in MSFS and maybe there is a conflict with the one provided by Stephan.

Cheers,
AlexB

Alex,

Try to launch PSXMSFS with the -v option. That should print out some debug messages and create (hopefully) a DEBUTGTXT file with some info too
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Hardy Heinlin on Thu, 19 May 2022 08:46
Quote from: asboyd on Thu, 19 May 2022 02:37
If I change the situ on one of my client PC's it changes the situ on the server pc...
This is very strange.

Why should this be strange? PSX instances are synchronized by the main network only.
PSX instances need no boost network. The boost server is just a service for add-ons.

PSX instances can synchronize by the slower 5-Hz-position updates from the main network because each PSX instance uses the same predictive aerodynamic model which keeps the motion smooth. Scenery add-ons don't have this model and therefore need higher update rates which are provided by the boost server.


|-|ardy
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Sun, 3 Jul 2022 11:15
Gents,

Back from holidays and thus, back to PSX.
I have been doing some long haul flights using PSXMSFS and connected at the same time on IVAO.

Everything ran smoothly and controllers could see me properly.

If some of you are using PSXMSFS and encounter some issues, please do report them to me so I can (try to) fix them.

I am now waiting for Microsoft to release their weather API, so I can include it too.

Cheers,
-Stephan


Title: Re: New scenery bridge tool between PSX and MSFS
Post by: cavaricooper on Tue, 12 Jul 2022 11:15
Stephan-

If I could, may I ask for a simple GUI when you have workload capacity... repeatedly easier for all the village idiots like me...

Thanks for considering... Carl
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 13 Jul 2022 01:25
Hi Carl,

That is indeed the next item on my to-do list. I am looking around to find what is the best way to achieve that
Hopefully in the next weeks...

Cheers,

-S.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: cavaricooper on Wed, 13 Jul 2022 03:59
That's great to hear, thanks! Looking forward to using MSFS going forward... P3D is off my system for good. Thanks again!

C
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: SIMU-3G7 on Sun, 17 Jul 2022 20:57
Thank you for your wonderfull work, Amazing...
;)
Happy flying...... 8)

Gilles-Gabriel
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: VolleyballCALVA on Mon, 18 Jul 2022 15:38
Hello, Good day.
Recently in some of the test flights that the PSXMSFS.exe would stop the connect by itself and the last time it doing this, my aircraft in MSFS started to make a aileron roll to almost 180 degrees before I can finally got reconnected. Is this a known issue? Thank you.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Tue, 19 Jul 2022 01:32
Quote from: VolleyballCALVA on Mon, 18 Jul 2022 15:38
Hello, Good day.
Recently in some of the test flights that the PSXMSFS.exe would stop the connect by itself and the last time it doing this, my aircraft in MSFS started to make a aileron roll to almost 180 degrees before I can finally got reconnected. Is this a known issue? Thank you.

Hi Calva,
I did not experience that in my latest test flights. I had a similar issue, but that was on a previous version of the tool. It was a bug that should be corrected now. Can you make sure you have the latest version?

Thanks
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: VolleyballCALVA on Tue, 19 Jul 2022 17:15
It should be the one released with the MSFS slave - master one.
And I think it's the latest one on Github. But I found one problem, there's no EICAS message when MSFS is master, and I have downloaded the one on github again but still no EICAS message. So I assume this is not the latest version?
Thank you.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Mon, 15 May 2023 14:36
Hi gents,

Since I had some free time recently, a few updates on this small project.
Still keeping it to a bare minimum, without any config files to modify.

Cheers,
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: DrRSG on Wed, 17 May 2023 09:29
OK I give in. Ive read through the posts and the readme but I cannot get it to work; although it could be my age related stupidity.

I'm running PSX and MSFS on the same PC under Windows 10. I have the PSXMSFS exe together with simconnect.dll in a folder on my desktop. I start MSFS and place the default 747 on the runway.
I start PSX and then click on PSXMSFS.exe. A message appears that PSX and MSFS are connected. I load a situ file and nothing happens in MSFS. What am I missing?

Thanks

Richard
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 17 May 2023 14:50
Richard,

After the messages telling you that you are connected to MSFS, do you get some other messages ?
Can you please also check that a file PSXMSFS.ini is created in the same folder ?
If yes, could you please change the value of LOG_VERBOSITY to 2, and re-run ?

-Stephan
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: DrRSG on Wed, 17 May 2023 17:34
There are no other messages.
The ini file is created.
I changed the log verbosity to 2 the log file shows

17:27:31[+0.014s]   Connecting to PSX main server on: 127.0.0.1:10747
17:27:31[+0.020s]   Connected to PSX main server.
17:27:31[+0.023s]   Connecting to PSX boost server on: 127.0.0.1:10749
17:27:31[+0.027s]   Connected to PSX boost server.
17:27:31[+0.039s]   Connected to MSFS.
17:27:31[+0.088s]   MSFS 11.0 (build 282174.999) Simconnect 11.0 (build 62651.3)
17:27:31[+0.092s]   Freezing Altitude, Attitude and Coordinates in MSFS.

Thanks

Richard
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Aleks on Wed, 17 May 2023 21:56
What is the difference between this and Gary's smooth injector?
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 18 May 2023 04:20
Quote from: Aleks on Wed, 17 May 2023 21:56What is the difference between this and Gary's smooth injector?

Quite a few actually:
* Gary's one is more full fledged and uses a different technology then mine (dare I say, more professional)
* Mine is just a pure very lightweight C application that does not need to change any MSFS configuration file.
* PSXMSFS should work well with the default 747 and should interact quite nicely with it (outside views, lights, gears, flaps, etc)

Happy to tell you more, or answer any questions you could have
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 18 May 2023 04:25
Quote from: DrRSG on Wed, 17 May 2023 17:34There are no other messages.
The ini file is created.
I changed the log verbosity to 2 the log file shows

17:27:31[+0.014s]   Connecting to PSX main server on: 127.0.0.1:10747
17:27:31[+0.020s]   Connected to PSX main server.
17:27:31[+0.023s]   Connecting to PSX boost server on: 127.0.0.1:10749
17:27:31[+0.027s]   Connected to PSX boost server.
17:27:31[+0.039s]   Connected to MSFS.
17:27:31[+0.088s]   MSFS 11.0 (build 282174.999) Simconnect 11.0 (build 62651.3)
17:27:31[+0.092s]   Freezing Altitude, Attitude and Coordinates in MSFS.

Thanks

Richard


Hi Richard,

So far so good.... Just to make sure the set-up is correct, you have to start PSXMSFS once the default 747 from MSFS is loaded (at any airport).

If you still have problems, try increasing the LOG_VERBOSITY to 1 and check any additional messages. And if still nothing, then send me a mail, we will try to work something out.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: DrRSG on Thu, 18 May 2023 08:40
Hi Stephan, I attach the log from my latest unsuccessful attempt using verbosity 1.

17:27:31[+0.014s]   Connecting to PSX main server on: 127.0.0.1:10747
17:27:31[+0.020s]   Connected to PSX main server.
17:27:31[+0.023s]   Connecting to PSX boost server on: 127.0.0.1:10749
17:27:31[+0.027s]   Connected to PSX boost server.
17:27:31[+0.039s]   Connected to MSFS.
17:27:31[+0.088s]   MSFS 11.0 (build 282174.999) Simconnect 11.0 (build 62651.3)
17:27:31[+0.092s]   Freezing Altitude, Attitude and Coordinates in MSFS.
08:09:47[+0.008s]   Connecting to PSX main server on: 127.0.0.1:10747
08:09:49[+2.052s]   Error connecting to the PSX socket. Exiting...
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 18 May 2023 10:02
Quote from: DrRSG on Thu, 18 May 2023 08:40Hi Stephan, I attach the log from my latest unsuccessful attempt using verbosity 1.

17:27:31[+0.014s]   Connecting to PSX main server on: 127.0.0.1:10747
17:27:31[+0.020s]   Connected to PSX main server.
17:27:31[+0.023s]   Connecting to PSX boost server on: 127.0.0.1:10749
17:27:31[+0.027s]   Connected to PSX boost server.
17:27:31[+0.039s]   Connected to MSFS.
17:27:31[+0.088s]   MSFS 11.0 (build 282174.999) Simconnect 11.0 (build 62651.3)
17:27:31[+0.092s]   Freezing Altitude, Attitude and Coordinates in MSFS.
08:09:47[+0.008s]   Connecting to PSX main server on: 127.0.0.1:10747
08:09:49[+2.052s]   Error connecting to the PSX socket. Exiting...

Richard,

The time lines do not make sense here.... 17h27, then 08h09. I guess those are not consecutive attempts.

That being said and just to make sure : PSX and MSFS are running on the same computer ? If yes, try to input the local IP address in the file PSXMSFS.ini (something like 192.168.1.xxx)

-stephan
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: DrRSG on Thu, 18 May 2023 11:45
Running on same PC and have tried with local IP address with same result.

11:40:54[+0.003s]   Connecting to PSX main server on: 192.168.1.64:10747
11:40:54[+0.007s]   Connected to PSX main server.
11:40:54[+0.009s]   Connecting to PSX boost server on: 192.168.1.64:10749
11:40:54[+0.015s]   Connected to PSX boost server.
11:40:54[+0.026s]   Connected to MSFS.
11:40:54[+0.073s]   MSFS 11.0 (build 282174.999) Simconnect 11.0 (build 62651.3)
11:40:54[+0.076s]   Freezing Altitude, Attitude and Coordinates in MSFS.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 18 May 2023 11:53
Quote from: DrRSG on Thu, 18 May 2023 11:45Running on same PC and have tried with local IP address with same result.

11:40:54[+0.003s]   Connecting to PSX main server on: 192.168.1.64:10747
11:40:54[+0.007s]   Connected to PSX main server.
11:40:54[+0.009s]   Connecting to PSX boost server on: 192.168.1.64:10749
11:40:54[+0.015s]   Connected to PSX boost server.
11:40:54[+0.026s]   Connected to MSFS.
11:40:54[+0.073s]   MSFS 11.0 (build 282174.999) Simconnect 11.0 (build 62651.3)
11:40:54[+0.076s]   Freezing Altitude, Attitude and Coordinates in MSFS.


Richard,

Send me a mail at psxmsfs@theched.org
Let's take this offline and debug your issue
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: SwissMark on Thu, 8 Jun 2023 08:04
Good day Stephan,

Sincerely appreciated these efforts for the community. Whenever I am back in HKG, I will buy you a coffee!

This has been brought up a few times, but still I would like to inquire please:

will there ever be a version or availability for P3D (4.5+)?
P3D have just released an update to P3D, and we are confident that P3D will release V6 fairly soon.
Not all of us want to "play" MSFS; I will stick with P3D and XP11 and my beloved 744F.
So ..... can your program at the moment "handle" P3D or would you be willing to look into it?
Happy to gather up some folks for "Beta" testing all who are devoted P3D lovers.

Have a wonderful day and all the best,

Mark
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 8 Jun 2023 15:55
I can try to make one for P3D...
I just need to check whether I can get P3D on my desktop
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: asboyd on Thu, 8 Jun 2023 22:41
I have P3D V5.4 and I prefer it over MSFS (Which I also have via Game Pass Ultimate). I just find MSFS uses way more resources than P3D and always seems to have something go wrong with Video drivers.

I would be willing to test a new version of the bridge...

Cheers,
AlexB
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: SwissMark on Fri, 9 Jun 2023 08:27
Quote from: CHEDHKG on Thu,  8 Jun 2023 15:55I can try to make one for P3D...
I just need to check whether I can get P3D on my desktop

Thank you
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: SwissMark on Fri, 9 Jun 2023 08:31
Quote from: asboyd on Thu,  8 Jun 2023 22:41I have P3D V5.4 and I prefer it over MSFS (Which I also have via Game Pass Ultimate). I just find MSFS uses way more resources than P3D and always seems to have something go wrong with Video drivers.

I would be willing to test a new version of the bridge...

Cheers,
AlexB

That, and a few other reasons why I stick with P3D ( 5.3 at the moment).
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: VolleyballCALVA on Mon, 12 Jun 2023 14:11
Thank you for the update!
I'd like to ask if the Master / Slave switch was disabled in this version?
I tried last night but can't switch to make MSFS as master with the "P" key as in previous version.
Thanks in advanced!
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Wed, 14 Jun 2023 01:49
Quote from: VolleyballCALVA on Mon, 12 Jun 2023 14:11Thank you for the update!
I'd like to ask if the Master / Slave switch was disabled in this version?
I tried last night but can't switch to make MSFS as master with the "P" key as in previous version.
Thanks in advanced!

I will have to check that.. I might have disabled it and forgot to put it back
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: VolleyballCALVA on Thu, 15 Jun 2023 19:45
Roger that, thank you very much.
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jelsomino on Wed, 19 Jul 2023 19:17
Dear Stefan,
pshhhhhh..... one hundred hours left trying to connect my msfs2020(steam version) with PSX.

1. I have two diff comp - one with msfs other with psx (the Garry's connector working good, but no lights worked and each time airplane still under the ground....sorry)
2. I use Simconnector.dll from msfs development SDK (putting it in the same folder as msfs.exe and psxmsfs.exe)
3. I born the config file with IP settings (after run exe under console) thank you -stephan, I use the same IP settings as with Garry's connector and f...g X-plane before...
4. After PSX start as a Server I start msfs with default 747 and run your .exe

Mmmm, window appears but nothing going on and then closed.

5. No .ini files in the same folder
6. localhost, 127.0.0.1 , 192.168.1.... doesn't change anything... with connection

I am not from Mars)) so, what's going on)) Please advise

Thank you
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Wed, 19 Jul 2023 20:51
Hi Jelsomino,

the below ground issue should be solved with the last version (auto update). Re-check, if you're running last version of router, client and wasm model. Light also works fine, except the nose-gear taxi lights. They are not modeled, but I asked Gary if this can be realised ourselves - will see his answer on that.

I don't know your location, perhaps it is the mentioned Region settings issue (I had them as well some time ago) - more infos here (https://aerowinx.com/board/index.php?msg=74482) and in the other postings in this thread.

Hope that helps a bit.

Regards
Hans
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: CHEDHKG on Thu, 20 Jul 2023 01:46
Quote from: Jelsomino on Wed, 19 Jul 2023 19:17Dear Stefan,
pshhhhhh..... one hundred hours left trying to connect my msfs2020(steam version) with PSX.

1. I have two diff comp - one with msfs other with psx (the Garry's connector working good, but no lights worked and each time airplane still under the ground....sorry)
2. I use Simconnector.dll from msfs development SDK (putting it in the same folder as msfs.exe and psxmsfs.exe)
3. I born the config file with IP settings (after run exe under console) thank you -stephan, I use the same IP settings as with Garry's connector and f...g X-plane before...
4. After PSX start as a Server I start msfs with default 747 and run your .exe

Mmmm, window appears but nothing going on and then closed.

5. No .ini files in the same folder
6. localhost, 127.0.0.1 , 192.168.1.... doesn't change anything... with connection

I am not from Mars)) so, what's going on)) Please advise

Thank you


Jelsomino,

You are facing a very similar issue another user reported (due to some old Windows DLLs present), which I fixed.
Drop me a mail on PSXMSFS@theched.org and I will send you an updated exe.

If that also solves your issue, then I will publish this new exe. And if not, let's try to find a solution !

-Stephan
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: Jelsomino on Thu, 20 Jul 2023 11:41
Hi Hans,

Thank you so much for assistance,
yea, The Client show me "WASM Module is out of date" and bla bla bla
But any idea how to update it by reason I use the final version from this forum.
In this case I search another way here how to connect the best PSX and best MSFS with lights, with good position on the ground and not "upside down" in Hangar))

Mmmm, I don't like to start immediately from Holding point, or from Active RWY.
With my Grandson we proceed a long way from the gate or stand or ramp thru full airport, near different cars, loaders, aircrafts, building etc. with Ext cam view))
Well, It's very heartwarming to see big round eyes..

P.S. Regarding regions I use last update Data with NavBuro, all updates of MSFS202o with all regions.

Best regards,
Jels


Quote from: B747-400 on Wed, 19 Jul 2023 20:51Hi Jelsomino,

the below ground issue should be solved with the last version (auto update). Re-check, if you're running last version of router, client and wasm model. Light also works fine, except the nose-gear taxi lights. They are not modeled, but I asked Gery if this can be realised ourselves - will see his answer on that.

I don't know your location, perhaps it is the mentioned Region settings issue (I had them as well some time ago) - more infos here (https://aerowinx.com/board/index.php?msg=74482) and in the other postings in this thread.

Hope that helps a bit.

Regards
Hans
Title: Re: New scenery bridge tool between PSX and MSFS
Post by: B747-400 on Thu, 20 Jul 2023 12:37
Hi Jels,

as soon as you download & install the versions linked in the WASM-thread (https://aerowinx.com/board/index.php?msg=73937), they will update automatically. Important is: before you install the newly downloaded files, delete the old ones!

Yes, the plane still flips over in the hangar when setting up the flight. But all is fine and stable during flight. No probs here! So, simply ignore or laugh about the flipped plane  ;)

When I start MSFS, I load a previously saved .PLN which places the plane on LOWW RWY 29. Then, I start & connect with router and client to PSX - instantly, MSFS is repositioned correctly. No difference if PSX is on ground, mid-flight, paused, frozen or active.

Region: I mean the Region settings of your Windows OS!! This is vital - pls see the link to the corresponding thread I sent in previous reply.

Best regards
Hans

PS: perhaps we will head over to the WASM-thread, if we need to discuss more items. I dont want to hijack this thread ...