• There seems to be an up tick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Bear Studios - Flanker Animations

Seahawk72s

SOH-CM-2023
Some of the Bear Studios "Flankers" have a "refueling probe" and "refueling spot light" which are animated
to extend from the aircraft. I'm trying to identify what "key commands" can be used to run the animation outside of the cockpit switches.
I've tried guessing some possible keys with no luck. With the VC coded into an mdl file are there any utilities that could monitor what commands are being used..?
 
Some of the Bear Studios "Flankers" have a "refueling probe" and "refueling spot light" which are animated
to extend from the aircraft. I'm trying to identify what "key commands" can be used to run the animation outside of the cockpit switches.
I've tried guessing some possible keys with no luck. With the VC coded into an mdl file are there any utilities that could monitor what commands are being used..?

It would be very common that there is no "key" controlling the function. Most likely it is controlled by variables (LVARs) in the gauge code of the VC.

Both FSUIPC and LINDA have the capability to log the LVAR's being used by the gauge programmers to animate and operate the various systems on an FSX sim. I have used LINDA a LOT to find the variables and write snippets of LUA code to assign to my HOTAS.

If you can bear (all puns intended) with me until return home this evening, I will run LINDA with the Flanker and see if we can determine what is going on.
 
It would be very common that there is no "key" controlling the function. Most likely it is controlled by variables (LVARs) in the gauge code of the VC.

Both FSUIPC and LINDA have the capability to log the LVAR's being used by the gauge programmers to animate and operate the various systems on an FSX sim. I have used LINDA a LOT to find the variables and write snippets of LUA code to assign to my HOTAS.

If you can bear (all puns intended) with me until return home this evening, I will run LINDA with the Flanker and see if we can determine what is going on.


I'll look forward to it, thanks.
 
Thanks. I've tried different variations of code to see about a mouse click area to operate the probe with no luck.

(>K:SWITCH_PROBE_REFUEL) 0 Any suggestions...?

This is really the only tracing I've done with the SU-33 and have not written any code for it. There was some odd behavior during the tracing where the switch would work the probe but the LVAR would not change.

It could be there is interaction with another variable.
 
This is really the only tracing I've done with the SU-33 and have not written any code for it. There was some odd behavior during the tracing where the switch would work the probe but the LVAR would not change.

It could be there is interaction with another variable.

Could you do a trace of the "refuel light" for me please...? I do appreciate your help...
 
switch_probe_refuel is actuating the probe much more reliably than AirRefuel

"Refuel Light" is reliably actuating the light switch


Capture1.JPG
 
Not an expert on this but seeing what Seahawk72s is doing, can this same technique be used to assign LVARs to various VC switches/buttons that a payware developer failed to do? I've got a VC full of correctly animated switches with no FSX functions assigned.
 
Not an expert on this but seeing what Seahawk72s is doing, can this same technique be used to assign LVARs to various VC switches/buttons that a payware developer failed to do? I've got a VC full of correctly animated switches with no FSX functions assigned.

Absolutely. I use LINDA and FSUIPC to do this for all my aircraft. I have a default FSX profile that applies to every aircraft, then an additional profile with developer specific controls for a given airframe. Last count I had about 15 profiles.
 
Here is some code for the Iris PC-21. The last bit for trim reset will work with any FSX aircraft.

function PC21_Pitot_Heat_On ()
ipc.writeLvar("L:pC21_SW2_FS_RC_PROBE_DEICE", 1)
end

function PC21_Pitot_Heat_Off ()
ipc.writeLvar("L:pC21_SW2_FS_RC_PROBE_DEICE", 0)
end

function PC21_Fuel_Cutoff_Toggle ()
FuelCutoffState = ipc.readLvar("L:pC21_SW2_FS_LC_FUEL_CUTOFF")
if FuelCutoffState == 0
then ipc.writeLvar("L:pC21_SW2_FS_LC_FUEL_CUTOFF", 1)
else ipc.writeLvar("L:pC21_SW2_FS_LC_FUEL_CUTOFF", 0)
end
end

function PC21_Land_Light_On ()
ipc.writeLvar("L:pC21_SW2_FS_RC_LIGHT_LAND", 1)
end

function PC21_Land_Light_Off ()
ipc.writeLvar("L:pC21_SW2_FS_RC_LIGHT_LAND", 0)
end

function PC21_AntiCol_Light_On ()
ipc.writeLvar("L:pC21_SW2_FS_RC_LIGHT_ANTICOL", 1)
end

function PC21_AntiCol_Light_Off ()
ipc.writeLvar("L:pC21_SW2_FS_RC_LIGHT_ANTICOL", 0)
end

function Trim_Reset ()
-- rudder trim reset
ipc.writeUW("0C04", 0)
-- aileron trim reset
ipc.writeUW("0C02", 0)
-- elevator trim reset
ipc.control (65706, 1)
ipc.control (65706, 0)
end
 
...VC switches/buttons that a payware developer failed to do?...

Victory103,

Wanted to clarify my statement about "Absolutely" and change it to a "Depending" after reading your question more closely.

The connection between the animated switch and FSX happens with the gauge programming and to a large degree depends on the animations in the VC model. If the animation has a "hook" or event associated with it in the gauge programming, then you can link other code to it to make it function.

Sorry for any confusion I caused by replying too hastily to your question.

Highly recommend the combo of LINDA and FSUIPC if you are interested in exploring this on a specific aircraft.
 
Victory103,

Wanted to clarify my statement about "Absolutely" and change it to a "Depending" after reading your question more closely.

The connection between the animated switch and FSX happens with the gauge programming and to a large degree depends on the animations in the VC model. If the animation has a "hook" or event associated with it in the gauge programming, then you can link other code to it to make it function.

Sorry for any confusion I caused by replying too hastily to your question.

Highly recommend the combo of LINDA and FSUIPC if you are interested in exploring this on a specific aircraft.

So do you have a profile for the Bear Studios Flanker...?
I ask as I am trying to id the landing light var, I did manage to get the taxi light, but both seem to be associated with the same var...(L:GearLight Mode, bool)
 
Seahawk72s,

Unfortunately have not had time to do as much work with the Flanker as I would like. Started some detailed checklists with the intent of flying it full time for a while. Trying to finish another project first before starting this one :mixed-smiley-010:
 
Back
Top