• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Receiving mission events

Messages
1
Country
germany
Hello,

does anybody know how to receive mission events like trigger, dialogs... with simconnect?

The following C# code seems to do nothing at all:

Code:
simconnect.OnRecvCustomAction += new SimConnect.RecvCustomActionEventHandler(simconnect_OnRecvCustomAction);

simconnect.MapClientEventToSimEvent(EVENTS.EVENT_MISSION_ACTION, "EVENT_MISSION");

simconnect.AddClientEventToNotificationGroup(NGROUP.EVENT_GROUP, EVENTS.EVENT_MISSION_ACTION, false);

void simconnect_OnRecvCustomAction(SimConnect sender, SIMCONNECT_RECV_CUSTOM_ACTION data)
        {
            Guid nummer = new Guid("{388B86F0-D051-45C4-8718-B6256DDFDD4D}");
            if (data.guidInstanceId ==nummer)
                bremse.Text = "Event received";
        }

Is there an error (of course there is :confused: )? Has anybody suggestions or having a working snippet?

Thanks.
 
Messages
3
Country
germany
I too am having this problem

Hi,
did you ever figure this one out?. I too am unable to receive my Custom Action Events. Everything else works fine.
 
Messages
3
Country
germany
Got it!

simconnect.SubscribeToSystemEvent(EVENTS.EVENT_MISSION_ACTION, "CustomMissionActionExecuted");
simconnect.OnRecvCustomAction += new SimConnect.RecvCustomActionEventHandler(simconnect_OnRecvCustomAction);


That all thats needed.
 
Messages
1
Country
hungary
Hi!

Can you help me?

I'm receiving the custom actions with the same way, but I can only get the first letter of the szPayload... Don't know, how to get the full string.

Thanks.
 
Top