• 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.

Messages
1
Country
germany
Hi,

i would like to send this LVAR (>L:SWS_LIGHTING_Switch_Light_Landing, Enum) to Simconnect which should turn off the Landing Lights of the Simworks Studios Kodiak Quest 100, however even after extensive search i just did not make any progress so far.
When i google for "WASM" or "sending LVAR" i always get Threads about using Mobiflight which i can not do since it doesnt support my Teensyduino Board Hardware which i am using.
I am not a programmer but i put together my own code by lots of trial and error and it went very well so far and am able to send events however i dont think i understand enough WASM and LVARS.

Do i need to manually enter this LVAR "SWS_LIGHTING_Switch_Light_Landing, Enum" into the "events.txt" or "events.user.txt" file in "mobiflight-event-module" which sits in my Community folder or not?
If yes then which format to use exactly?

I tried it like this:
SWS_LIGHTING_Switch_Light_Landing#0 (>L:SWS_LIGHTING_Switch_Light_Landing, Enum)
SWS_LIGHTING_Switch_Light_Landing#1 (>L:SWS_LIGHTING_Switch_Light_Landing, Enum)
SWS_LIGHTING_Switch_Light_Landing#2 (>L:SWS_LIGHTING_Switch_Light_Landing, Enum)
But no success.

The farthest if have come so far was turning on the Landing lights of the Kodiak but regardless which Enum (0 - Off, 1 - Pulse, 2 - On) i use the Lights always just turn on but unable to set it to Pulse or to Off.
Below are two examples of other events which work for me, one is a KVAR for Asobo Default Nav Lights and the next i a HVAR example about pushing an G1000 MFD Button through Mobiflight's WASM.

Now i would really appreciate if someone could explain to me with how to get this LVAR (>L:SWS_LIGHTING_Switch_Light_Landing, Enum) to work or if someone could just show me just the way i show below in the examples. 😓

1 (>K:NAV_LIGHTS_SET)
Turn Nav Lights On / Set Nav Lights to 1 :

static enum EVENT_ID {NAV_LIGHTS_SET,};
hr = SimConnect_MapClientEventToSimEvent(hSimConnect, NAV_LIGHTS_SET, "NAV_LIGHTS_SET");
hr = SimConnect_AddClientEventToNotificationGroup(hSimConnect, GROUP_A, NAV_LIGHTS_SET);
hr = SimConnect_TransmitClientEvent(hSimConnect, 0, NAV_LIGHTS_SET, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);


(>H:AS1000_MFD_SOFTKEYS_11)
Push G1000 MFD Button 11:

static enum EVENT_ID {MobiFlight_AS1000_MFD_SOFTKEYS_11,};
hr = SimConnect_MapClientEventToSimEvent(hSimConnect, MobiFlight_AS1000_MFD_SOFTKEYS_11, "MobiFlight.AS1000_MFD_SOFTKEYS_11");
hr = SimConnect_AddClientEventToNotificationGroup(hSimConnect, GROUP_A, MobiFlight_AS1000_MFD_SOFTKEYS_11);
hr = SimConnect_TransmitClientEvent(hSimConnect, 0, MobiFlight_AS1000_MFD_SOFTKEYS_11, 0, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);
 
Last edited:
Back
Top