We are using some H events posted from one HTML gauge and triggered in another one.
That works fine until we issue a flight restart.
Then the posted H event is not the one sent to the other gauge by the engine.
We have found a workaround that consists of disabling the SimVar watcher feature:
postHEvent(event) {
let useWatcher = SimVar.g_bUseWatcher;
if(useWatcher)
SimVar.g_bUseWatcher = false;
SimVar.SetSimVarValue("H:" + event, "number", 0);
if(useWatcher)
SimVar.g_bUseWatcher = true;
}
I suspect that a flight restart doesnāt reset some internal engine H event table indexed by number.
We suspect this error to occur from SU14 but we are not sure about that. We never seen it before. It currently happens on v1.36.2.0