So here we go, I was just writing a LUA-Script to get my Warthog working.
If you set the datarefs with "do_every_frame", X-Plane will crash with some stack overflows in the Gizmo-Log. After changing the interval to "do_often", no problems on the last few flights. In case s.o. is interested:
-------------------------------------------------------------------------------------------------
-- ############################################################################################ -
-- IXEG B733
-- ############################################################################################ -
-------------------------------------------------------------------------------------------------
if PLANE_ICAO == "B733" then
-- Datarefs
dataref("TRANSPONDER", "ixeg/733/xpdr/xpdr_stby_act", "writable")
--dataref("TRANSPONDERSEL", "1-sim/transponder/systemMode", "writable")
dataref("STROBELIGHT", "ixeg/733/lighting/strobe_lt_act", "writable")
dataref("NAVLOGOLIGHT", "ixeg/733/lighting/position_lt_act", "writable")
dataref("BEACONLIGHT", "ixeg/733/lighting/anti_col_lt_act", "writable")
dataref("TAXILIGHT", "ixeg/733/lighting/taxi_lt_act", "writable")
dataref("LANDINGLIGHT1", "ixeg/733/lighting/l_outboard_ll_act", "writable")
dataref("LANDINGLIGHT2", "ixeg/733/lighting/r_outboard_ll_act", "writable")
dataref("LANDINGLIGHT3", "ixeg/733/lighting/l_inboard_ll_act", "writable")
dataref("LANDINGLIGHT4", "ixeg/733/lighting/r_inboard_ll_act", "writable")
dataref("RWYTURNOFF1", "ixeg/733/lighting/l_rwy_turnoff_act", "writable")
dataref("RWYTURNOFF2", "ixeg/733/lighting/r_rwy_turnoff_act", "writable")
function b733functions()
---------------------------------
-- SQUAWK
---------------------------------
-- WARTHOG THROTTLE UNTERE REIHE KIPPSCHALTER LINKS
if button(HotasThrottle+24) then
-- Schalter oben (Squawk C, Strobes an) [BTN 145]
if STROBELIGHT ~= 1 then STROBELIGHT = 1 end
if TRANSPONDER ~= 2 then TRANSPONDER = 2 end
else
-- Schalter unten (Squawk Stby, Strobes aus)
if STROBELIGHT ~= then STROBELIGHT = end
if TRANSPONDER ~= 1 then TRANSPONDER = 1 end
end
-- WARTHOG THROTTLE UNTERE REIHE KIPPSCHALTER MITTE
if button(HotasThrottle+23) then
-- Schalter oben (Nav und Beacon an) [BTN 144]
if NAVLOGOLIGHT ~= 1 then NAVLOGOLIGHT = 1 end
if BEACONLIGHT ~= 1 then BEACONLIGHT = 1 end
else
-- Schalter unten (Nav und Beacon aus)
if NAVLOGOLIGHT ~= then NAVLOGOLIGHT = end
if BEACONLIGHT ~= then BEACONLIGHT = end
end
-- WARTHOG THROTTLE UNTERE REIHE 3-WEGE SCHALTER RECHTS
if button(HotasThrottle+27) then
-- Schalter unten (Beleuchtung aus) [BTN 148]
if LANDINGLIGHT1 ~= then LANDINGLIGHT1 = end
if LANDINGLIGHT2 ~= then LANDINGLIGHT2 = end
if LANDINGLIGHT3 ~= then LANDINGLIGHT3 = end
if LANDINGLIGHT4 ~= then LANDINGLIGHT4 = end
if RWYTURNOFF1 ~= then RWYTURNOFF1 = end
if RWYTURNOFF2 ~= then RWYTURNOFF2 = end
if TAXILIGHT ~= then TAXILIGHT = end
else
if not button(HotasThrottle+26) and not button(HotasThrottle+27) then
-- Schalter Mitte (Nose auf Taxi)
if LANDINGLIGHT1 ~= then LANDINGLIGHT1 = end
if LANDINGLIGHT2 ~= then LANDINGLIGHT2 = end
if LANDINGLIGHT3 ~= then LANDINGLIGHT3 = end
if LANDINGLIGHT4 ~= then LANDINGLIGHT4 = end
if RWYTURNOFF1 ~= then RWYTURNOFF1 = end
if RWYTURNOFF2 ~= then RWYTURNOFF2 = end
if TAXILIGHT ~=1 then TAXILIGHT = 1 end
else
-- Schalter Oben (Nose auf TO, Landing Lights, RW Turnoff Lights) [BTN 147]
if LANDINGLIGHT1 ~=2 then LANDINGLIGHT1 = 2 end
if LANDINGLIGHT2 ~=2 then LANDINGLIGHT2 = 2 end
if LANDINGLIGHT3 ~=1 then LANDINGLIGHT3 = 1 end
if LANDINGLIGHT4 ~=1 then LANDINGLIGHT4 = 1 end
if RWYTURNOFF1 ~=1 then RWYTURNOFF1 = 1 end
if RWYTURNOFF2 ~=1 then RWYTURNOFF2 = 1 end
if TAXILIGHT ~=1 then TAXILIGHT = 1 end
end
end
end
do_often ("b733functions()")
end
I know it's not the best solution - so many IF-Statements - I added them to lower the rate of setting new dataref values.