Karli D Posted July 29, 2021 Report Share Posted July 29, 2021 Hi, Let's say I'm reading two offsets (like fs version and framerate) again and again. By checking FSUIPCConnection.IsOpen I know if FSUIPC is still there. But how do I know, if the user has by chance closed MSFS and left just FSUIPC running? In such case I'm still getting values from last process, but can't tell if it just didn't change or if the sim has been closed. Already tried Offset.Reconnect() hoping to force FSUIPC to read from the sim and give me f.e. 0 for the fs version or maybe 0 for the framerate, but that didn't do the trick. Somehow I'm stuck... Link to comment Share on other sites More sharing options...
Paul Henty Posted July 30, 2021 Report Share Posted July 30, 2021 Versions prior to FSUIPC7 all ran inside the Flight Sim process, so FSUIPC could never be left running on its own, so this was never a problem. I don't know if John has added an offset to FSUIPC7 to know if the Flight Sim connection has been lost. I can't see anything on the spreadsheet. It might be a good feature to request. For now, you could try something like reading offset 0x0230 (Double) which is a timestamp in seconds. If this doesn't change for a while then you know the connection to MSFS has been lost. Paul Link to comment Share on other sites More sharing options...
Karli D Posted July 30, 2021 Author Report Share Posted July 30, 2021 Thank you, Paul. 0x0230 is a good workaround. Not perfect tho, as it stops sometimes - f.e. when the FS is paused, it delivers no change to the value, but still way better than anything I could find. I think with a combination of timestamp and framerate I'll be able to find out if FS is running or not. An offset that tells us the actual status of the connection between FSUIPC and MSFS would be indeed a niceToHave. 🙂 Link to comment Share on other sites More sharing options...
Paul Henty Posted July 30, 2021 Report Share Posted July 30, 2021 Quote An offset that tells us the actual status of the connection between FSUIPC and MSFS would be indeed a niceToHave. I recommend asking John for this in the FSUIPC7/MSFS forum. He's unlikely to see this thread. https://forum.simflight.com/forum/183-fsuipc7-msfs/ Paul Link to comment Share on other sites More sharing options...
Karli D Posted July 30, 2021 Author Report Share Posted July 30, 2021 2 hours ago, Paul Henty said: I recommend asking John for this in the FSUIPC7/MSFS forum. He's unlikely to see this thread. Will do. Thank you, Paul. Link to comment Share on other sites More sharing options...
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