News:

Precision Simulator update 10.156 (3 July 2022) is now available.
Navburo update 12 (18 November 2021) is now available.
NG FMC and More is released.

Main Menu

MSFS Smooth Injections Breakthrough - PSX.NET.Internal.WASM

Started by Gary Oliver, Sun, 18 Sep 2022 23:49

Gary Oliver

All,

Mark and I have had some huge successes implementing a Smooth MSFS Injection of PSX in the last few weeks.

Using the same technology in P3D External Sim and some WASM Module magic we have now managed to get ultra smooth position injections into MSFS.

Our main aim has been to get smooth injections for our own simulator, and as such our only aim is to get injections for a cockpit view with the correct lights from PSX.  We have included a very simple exterior model, but there are no animations at this stage.

I would suggest sticking with JP's WidePSX if you require all the other features he has spent alot of time and effort getting working.

Install Guide

Pre Req Download .NET6 Runtime

Download:-
Client Setup from Here
Router Setup from Here
MSFS Aircraft from Here

Copy MSFS Aircraft to your MSFS Community Folder
Run Router and Client from Start Menu and Close them on the correct PC's
Edit the Configs Files which were created in your My Documents Folders

The files will automatically update when there is an update.

More Info

Basically its the same architecture as External Sim but with a much easier config file and GUI.  Hopefully the picture before spells it out.  For those running on a single PC you can run all on a single PC.

You will notice the CameraZoom option in the config file... This along with a new version of Fly-Elise following the release of SU10 will allow multichannel warping for a 3 PC and projector setup.

I suggest locking the MSFS framerate at something sensible - in our case our projectors are 30hz and the FPS it limited to 30FPS.



Let us know how you get on.

Known Fixes
There is currently a bug which will cause MSFS to Crash if you select the WASM module before selecting an airport on the welcome screen.  Select an airport with another aircraft selected first then select the PSX.NET.WASM aircraft.  We are currently trying to resolve this issue.

If you get a failed to load file error on load.  Its probably missing C++ runtimes.  Try This Installer

We send data to the simconnect client at the same rate as boost, it doesn't need to be done at a high refresh as the client does the smoothing.  If the client crashes and restarts try setting the PSX FPS to 60/3 to only send boost at 20hz.

Known Issues
VHF Frequency Not Updated in MSFS
Transponder Doesn't Update in MSFS.
Gear/Flaps Dont Move

Version History
Alpha 1 to 4 - Initial Testing.

Cheers
G


garys

Thanks Gary and Mark.

Looking fwd to SU10 release to give this a try.

joergalv

Excellent! Thanks a lot Gary and Mark!

- I was able to load the Model in MSFS
- I can start the MSFS Client, and it gets connected to MSFS (SU9)

The router however won't start. ( "PSX.NET.MSFS.Router.Winforms.exe", it's the only 'router' exe in that directory, but is that the right one?)
It keeps claiming that I need to install .NET. But installing .NET runtimes v5 and 6, x86 and x64, does not help. Tested on 2 Win 10 PC's, with the same result.

Regards,
Joerg

macroflight

Quote from: joergalv on Mon, 19 Sep 2022 08:25It keeps claiming that I need to install .NET. But installing .NET runtimes v5 and 6, x86 and x64, does not help.
I ran into that problem too, but was able to get it running by installing .NET 5.0 from https://dotnet.microsoft.com/en-us/download/dotnet/5.0. I'm not at my computer right now, but I'm almost certain the package I installed was SDK 5.0.408 for Windows (https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-5.0.408-windows-x64-installer)

And yes, "PSX.NET.MSFS.Router.Winforms.exe" is the router binary.

macroflight

Amazing job by Gary and Mark! It does exactly what Gary says, and does it well. Smoooooth.

Unfortunately it makes vPilot even more confused than WidePSX does. So for now I can only use this for testing offline. Maybe Santa will bring a native PSX VATSIM client this year?

When using PSX.NET.Internal.WASM with vPilot: other VATSIM pilots reported me as "standing on your nosewheel at a 70 degree angle" and VatSpy always showed a groundspeed of 30-90 knots, both at the gate and in cruise. WidePSX is not exactly perfect with vPilot either, but there I only get the occasional "mate, your wheels are smoking" or "why is your 747 hovering?" :)

Gary Oliver

Thanks to several people testing over the last 12 hours or so we now have a list of things to fix before the next version.

Good to see people are seeing the super smooth updates we are too.

Issues List
-MSFS Variables not populated to support VATSIM flights - FIXED IN V3
-Binary Files Confusion  - FIXED Single File EXE
-Option to Not Set Zoom Required for non multiview users - FIXED In Config File
-VHF Frequency Not Updated in MSFS
-Ground Speed Not Updated - FIXED In V3
-CTD When selecting airport is WASM Module Selected
-Runtime Prereqs need defining on initial post. - FIXED - Single EXE includes runtime libaries
-Decimal Seperator - FIXED in V3

Feature Wish List
-'Bodge' factor for heading and pitch for Visual Systems Alignment
-Animated Gear and Flaps
-Disable MSFS Fullscreen gradient shader for 3 projector setups - Possibly EyeAdaption=0 - To be tested.

Gary Oliver

New link posted for Alpha V2.  It should no longer ask you to download any runtime libraries as these have now been published into the single EXE.

If you installed V1 please delete those directories and start fresh.

joergalv

Quote from: macroflight on Mon, 19 Sep 2022 10:06... was SDK 5.0.408 for Windows ..
yes, installed the SDK, and got the router working. (seems already to be fixed anyway).
Very smooth, indeed!

I may add to the issue list though:
- Windows region set to Germany (where ',' is the decimal separator) made the MSFS AC end up orbiting planet earth. Changing the region settings to Great Britian helped.
- Taking off LEMD, the MSFS model did not follow the rotation, but 'jumped' into the air a couple of seconds later. I suspect the high RWY altitude is causing some issues with the initial sync.

Great start! Looking forward for the next versions to come.

Gary Oliver

Quote from: joergalv on Mon, 19 Sep 2022 14:56- Windows region set to Germany (where ',' is the decimal separator) made the MSFS AC end up orbiting planet earth. Changing the region settings to Great Britian helped.

This problem gets me every time :-)  Will take a look.

cavaricooper

Gary- thanks for you and your team's collective efforts on this. The smoothness factor is the reason I keep going back to PSX standalone. Excellent to hear of your progress. I remain obliged- C
Carl Avari-Cooper, KTPA

anthony500

Hi, tried the installation but unfortunately on msfs the view keeps on stalling above water or above earth.
Any idea what I could be doing wrong ?

The connection appears normal and is green on the exe file for both psx and msfs.

Thanks

akatham

Quote from: anthony500 on Tue, 20 Sep 2022 12:43Hi, tried the installation but unfortunately on msfs the view keeps on stalling above water or above earth.
Any idea what I could be doing wrong ?

The connection appears normal and is green on the exe file for both psx and msfs.

Thanks

See post #7, is it probably your windows region settings.

anthony500

Quote from: akatham on Tue, 20 Sep 2022 13:24See post #7, is it probably your windows region settings.

Thanks a lot this did the trick. Really impressed with this so smooth indeed.

JU108

Great work. Even I, a total newbie, managed to get it to fly.

I did manage to crash MSFS. I paused PSX for 10-15 sec, and when resuming the flight MSFS became unresponsive.

macroflight

Alpha2 worked well for me. Still smooth. Now I'm just waiting for V3 :)

GodAtum

Hi Gary and team, thank you so much for this. Can't wait to try it out this weekend  :D  :D  :D

As I mentioned to Nick in Discord, I use 1 PC with a 12900K @ 5GHz and 3090 across 3 4K TVs and get around 30-35 fps. I believe it'll be possible with the 4090 to only have 1 PC instead of 3 and get even better FPS.

One question, do you think using Fly Elise is better then MSFS Su10 multi-monitor?

Gary Oliver

MSFS SU10 Multi monitor support will not allow geometrically correct warping.  However you might get something semi acceptable with TV's.  Performance was woeful though on an i9 with 3080TI

The fly Elise guys put a post on the forum somewhere.

Cheers
G

cavaricooper

Watching with deep interest and looking forward to a stable MSFS... that with PSX will be a 744 driver's dream.

Now, imagine someone inserting PSX into a native 744 in MSFS. For those of us without a 1:1 flight deck, that in VR would be close indeed....

One can dream...
Carl Avari-Cooper, KTPA

Gary Oliver

Well I have just updated all my visuals PC's to 2020, Locked the FPS at 30 and left them running for nearly 24 hours and not a single crash or stutter.

I think we might be there!

Alpha 4 is now available on the first post.  Please let me know how you get on.

Bluestar

Quote from: cavaricooper on Sat, 24 Sep 2022 15:28Watching with deep interest and looking forward to a stable MSFS... that with PSX will be a 744 driver's dream.

Now, imagine someone inserting PSX into a native 744 in MSFS. For those of us without a 1:1 flight deck, that in VR would be close indeed....

One can dream...

Carl,

You know my feeling about MSFS.  Do you thank that it will ever (in the near future) get to where I would move to the dark side?  I've considered the new Xplane 12, but there appears to be little support for it's use in PSX.  I'd hold out for a new P3d, but I'm starting to lose hope. 🤣  Since I'm a night freighter guy, I don't need a lot of bells and whistles, just smooth and reliable. :)

Bode