Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi,
Recently I've noticed that FSVersion is returning the string 'Any' instead of MSFS etc.
This is the code I use to extract it:

Dim sSimVersion As String = String.Empty
If bConnectedToFS Then
    Dim fsVer As FsVersion = FSUIPCConnection.FlightSimVersionConnected
    sSimVersion = fsVer.ToString
End If

And the extract from a user's flight log:

Flight Log:
[12:22] - C208B Passengers
[12:22] - FS Type: Any
[12:22] - FSUIPC Version: 7.501

Does any one know why it now reports 'Any'?

Thanks.

Posted

Hi Paul,

Certainly happening for MSFS2020 and possibly 2024. Not all the time though!

Edit: Confirmed happening with 2024 as well. Again, not all the time though.

Further edit: It also reported '14'.
image.png.e830537aeaf33ce5f263260310353bfb.png

image.png

Posted

14 is the value for is MSFS2024. I don't think you're using the latest version of the DLL.

The puzzling thing is that you say it's working sometimes. Do you mean that you sometimes see "MSFS2024 (VX.X)"? If so are these on the same machine or are these reports from different users?

Paul

Posted

Thanks Paul.  I've never seen "MSFS2024 (VX.X)" so that could well be the issue: the release version of my program is using an older version. I have updated it in my development version so I'll just have to put up with it until I can roll out the new version!

Thanks again.

  • 2 weeks later...
Posted

Hello,

I have the same issue with the latest dll. After some investigation I did, it looks like that during the loading phase of both FS2020 and FS2024 if we attempt to retrieve the SIM we have "Any" in return. Once the flight situation is loaded, with the aircraft ready, a disconnect and a reconnect of FUSIPCConnection works and finally the sim retrieved is consistent.

Posted
1 hour ago, Gianni NPV1435 said:

I have the same issue with the latest dll. After some investigation I did, it looks like that during the loading phase of both FS2020 and FS2024 if we attempt to retrieve the SIM we have "Any" in return. Once the flight situation is loaded, with the aircraft ready, a disconnect and a reconnect of FUSIPCConnection works and finally the sim retrieved is consistent.

The FS version is not available until FSUIPC is connected to the FS. You can set the FSUIPC7 ini parameter init3308 to 13 (for MSFS2020) or 14 (MSFS2024) to prevent this. In the next FSUIPC7 release, I will also delay the starting of the websocketserver until FSUIPC7 is connected to the FS and the version known - see 

John

Posted

These problems are causes by a recent change added to FSUIPC7 to support MSFS2024. As John says above the version number is now delayed until FSUIPC7 knows what sim it's connected to.

I'm planning to change the DLL so that the connection will fail if there is no FS version. That is, FSUIPC7 is running, but the sim is not loaded/ready.

I think that will avoid the problems and keep the behaviour consistent with older FS versions. If the sim isn't loaded and ready then I don't think the connection should succeed. I don't think there is anything useful that can be done with a connection to FSUIPC7 if it doesn't have a connection to the Flight Sim.

To John: This change would mean the Socket Server would not need to be delayed. It would just retry until the flight sim version is reported.

Paul

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.