frazer84 Posted April 18, 2020 Report Posted April 18, 2020 Hi Pete, I've been strugling with this for a while now, and I think I've tried all ways of doing this without getting it to work properly. First off, let me expain what I want to do:I want an external application, running on another computer than P3D, to be able to reset the flight in P3D (in the case of a flight crash or similar). I've looked around and didn't find any way of doing just this using FSUIPC offsets. This is why I thought this solution would work (but it doesn't): Get current loaded flight from 0x3F04 Remove path and file extension from above string (to only have the flight file name without any directory or .fxml extension). Put this back into 0x3F04 Set 0x3F00 (write only) to 0 (zero) to instruct FSUIPC to Load the flight loaded into 0x3F04 The effect this has on P3D v3.4 is an all-black screen like this: I can get the screen back by pressing ESC and then selecting "CONTINUE" in the menu. This also happens on P3D 4.5. Any ideas on what the problem is, or any alternate suggestions on how to re-create the P3D Scenario->Reset menu option? Thanks!
Pete Dowson Posted April 18, 2020 Report Posted April 18, 2020 2 hours ago, frazer84 said: I want an external application, running on another computer than P3D, to be able to reset the flight in P3D (in the case of a flight crash or similar). I've looked around and didn't find any way of doing just this using FSUIPC offsets. What's wrong with sending the "Situation reset" control (65591) via offset 3110? 2 hours ago, frazer84 said: This is why I thought this solution would work (but it doesn't): Get current loaded flight from 0x3F04 Remove path and file extension from above string (to only have the flight file name without any directory or .fxml extension). Put this back into 0x3F04 Set 0x3F00 (write only) to 0 (zero) to instruct FSUIPC to Load the flight loaded into 0x3F04 Well, some minor comments first: 1. You don't need to "get the current flight" into 3F04 first. The pathname will already be there, as documented. 2.& 3. You don't need to process it to remove the path. It's better if you leave the path as is. 4. So all you need to do is write the 0 to 3F00. I know loading a flight, ANY flight from anywhere works fine, in both P3D4 and P3D5, because I use it regularly. There's a facility built into WideFS to do just that (also to Save flights and to load Flight Plans). As to why you are ending up with a black screen, i've no idea. Try some logging. Did you at least look at the FSUIPC log to see if it logged the flight loading attempt? After all, all FSUIPC does is pass the request on to the Sim. it's the same as using FSUIPC's optional flght loading menu. BTW it's a bit pointless poating a picture of a black rectangle. Just the words describing the problem would beenough. The black rectangle doesn't help. Pete
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