How to programmatically detect end of mission / air craft destroyed?
-
Hi.
Is there a way via shared memory or other means to programmatically detect when a mission ends or your aircraft has been destroyed?
Ta.
-
@scubapics is there a “last-update” timestamp, tick-count or frame-count? if that goes stale for more than a couple seconds, it’s presumably game-over.
not sure at what point the whole shared-mem segment goes away… or does the handle from the consuming process keep it open forever?
I’m away from desktop, will take a closer look later.
-
IVibeData.h has
bool IsEndFlight; // ending the flight from 3d bool IsEjecting; // we've ejected bool In3D; // in 3D? bool IsExitGame; // did we exit Falcon?
close enough?
-
@r00t said in How to programmatically detect end of mission / air craft destroyed?:
IVibeData.h has
bool IsEndFlight; // ending the flight from 3d bool IsEjecting; // we've ejected bool In3D; // in 3D? bool IsExitGame; // did we exit Falcon?
close enough?
That should do it! Thanks!
-
@r00t that worked, thanks. Expect another update in the morning
-
@scubapics said in How to programmatically detect end of mission / air craft destroyed?:
@r00t said in How to programmatically detect end of mission / air craft destroyed?:
IVibeData.h has
bool IsEndFlight; // ending the flight from 3d bool IsEjecting; // we've ejected bool In3D; // in 3D? bool IsExitGame; // did we exit Falcon?
close enough?
That should do it! Thanks!
If I remember correctly when we made the program to save the flight hours of our wing pilots, the iVibe values are correct while sitting in our aircraft, if we change the exterior view with 8 for friendly aircraft and ctrl+8 for Enemy aircraft iVibe changes to the value of the aircraft you are looking at. As I remember it was like this at 4.36 and 4.37. I have no idea if this condition is maintained since through another method we obtain the data to know if the aircraft is operational or not.
-
@VIPER-0 said in How to programmatically detect end of mission / air craft destroyed?:
@scubapics said in How to programmatically detect end of mission / air craft destroyed?:
@r00t said in How to programmatically detect end of mission / air craft destroyed?:
IVibeData.h has
bool IsEndFlight; // ending the flight from 3d bool IsEjecting; // we've ejected bool In3D; // in 3D? bool IsExitGame; // did we exit Falcon?
close enough?
That should do it! Thanks!
If I remember correctly when we made the program to save the flight hours of our wing pilots, the iVibe values are correct while sitting in our aircraft, if we change the exterior view with 8 for friendly aircraft and ctrl+8 for Enemy aircraft iVibe changes to the value of the aircraft you are looking at. As I remember it was like this at 4.36 and 4.37. I have no idea if this condition is maintained since through another method we obtain the data to know if the aircraft is operational or not.
That’s useful to know. I am only using IsExitGame and In3D. I don’t they will be affected.