CougarFool Posted February 7 Report Posted February 7 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.
Paul Henty Posted February 7 Report Posted February 7 Which sim are you connected to? If it's MSFS2024 you just need to update to the latest version of the DLL. Paul
CougarFool Posted February 8 Author Report Posted February 8 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'.
Paul Henty Posted February 8 Report Posted February 8 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
CougarFool Posted February 9 Author Report Posted February 9 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.
Gianni NPV1435 Posted 3 hours ago Report Posted 3 hours ago 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.
John Dowson Posted 2 hours ago Report Posted 2 hours ago 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
Paul Henty Posted 1 hour ago Report Posted 1 hour ago 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now