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

FSXA Electrical config help!

Messages
1,749
Country
unitedstates
I recently changed over to fsx gamepacks and there are a few changes.
The battery amps show 2 amps load with everything off. Although the battery
is still on. When i switch the battery off the 2 amps go away. So I thought it
was one of the parts below. But removing them did nothing.

Another problem is the recog and cabin lights use a load. But none of the others do. And even more strange is these same lights will not turn off with
the battery......??? Strange!

I am using ACCEL GAMEPACKS FULL

Code:
[electrical]
max_battery_voltage = 24.0
generator_alternator_voltage = 28.0
max_generator_alternator_amps = 100.0

;BusType, MaxAmpLoad, MinVoltage    BusTypes:0=MainBus,1=AvionicsBus,2=BatteryBus,3=HotBatteryBus,4-7=Generator/AlternatorBus(1-4)
flap_motor         = 0, 8 , 20.0
autopilot          = 0, 5 , 15.0
avionics_bus       = 2, 5 , 23.0
avionics           = 1, 5 , 23.0
pitot_heat         = 0, 5 , 20.0
additional_system  = 0, 4 , 22.0
marker_beacon      = 1, 5 , 20.0
fuel_pump          = 2, 5 , 20.0
starter1           = 2, 20, 20.0
light_nav          = 2, 5 , 15.0
light_beacon       = 2, 5 , 15.0
light_landing      = 2, 5 , 15.0
light_taxi         = 2, 5 , 15.0
light_strobe       = 2, 5 , 15.0
light_panel        = 2, 5 , 15.0
light_cabin        = 3, 5 , 15.0
light_recognition  = 2, 5 , 15.0

DGH:confused::banghead:
 
Last edited:
The lights won't turn off with the battery and the load will still be there because the lights are connected to the hot battery bus, which does not get switched off with the battery switch - it, in fact, cannot be switched off. Change the bus assignment to 2 to get them to switch off with the battery.
 
Those lights are never on 3 except Cabin.

I posted the code wrong! i use 2.....The code above is now how it normally was.....Sorry!!!

Of course 3 won't work.


But my problem is as i stated above. They will not turn off by the battery.....The only lights recognizing the battery is the non hard coded lights in the config!
All my light's that are not turning off are tagged with visibilty in gmax. But normally I can assign more than 1 visibility tag. I can't do that now! Help!!!

DG:banghead:
 
Last edited:
light's that are not turning off are tagged with visibilty in gmax.

DG:banghead:
Then its your vis code thats causing the hard coded lights to ignore the electrical section
Also note(not related) that at 15volts on a 24volt system, the lights or system will never turn off if battery go's flat...from memory a total flat batt on a 24 volt system is 16 or 17 volts
Wozza
 
Hello,

Here is my actual code....based off the panel fuse box.
I did more testing today. I need to tag 2 visibility codes to 1 part....

I found that the cfg is ignoring all tagged parts. i added fake effects
to the nav and panel, gaining back battery load. But the landing, taxi
and strobes will not work in the cfg.....

So this is all caused by hard coding. If i don't hard code the lights, i lose
multiplayer users from sharing all lights.....

I still need to try hand typing another visual tag to a part and see what happens..

Code:
[electrical]
max_battery_voltage = 24.0
generator_alternator_voltage = 28.0
max_generator_alternator_amps = 100.0

;BusType, MaxAmpLoad, MinVoltage    BusTypes:0=MainBus,1=AvionicsBus,2=BatteryBus,3=HotBatteryBus,4-7=Generator/AlternatorBus(1-

4)
flap_motor         = 0, 15 , 17.0
autopilot          = 0, 5 , 20.0
avionics_bus       = 2, 5 , 23.0
avionics           = 1, 5 , 23.0
pitot_heat         = 0, 5 , 20.0
additional_system  = 0, 5 , 17.0
marker_beacon      = 2, 10 , 8.0
fuel_pump          = 2, 5 , 17.0
starter1           = 2, 20, 20.0
light_nav          = 2, 5 , 17.0
light_beacon       = 2, 5 , 17.0
light_landing      = 2, 10 , 17.0
light_taxi         = 2, 10 , 17.0
light_strobe       = 2, 5 , 15.0
light_panel        = 2, 5 , 8.0
light_cabin        = 2, 5 , 8.0
light_recognition  = 2, 5 , 8.0

I have the aviaonics at 23 volts due to the game will kill it at that voltage!!!

DG:confused:
 
Default codes for all the landing switches....

But all my lights are created in gmax rather than using the config.
But even if i did use the cfg for all my lights, the landing light and taxi
don't show up. must be because it noes i have lights already!

So I am going to stick with what I got. All lights work from switch only. And
most do not have a battery load...:mad:

So I can't get 100 % realism....no matter what way i go.

I tried to use 2 tags like i always did in fs9 and it won't work. That was my
way to hard code and have the battery kill all lights....

I wrote a macro to kill the lights and the switches, but only the switch
goes off....i need to basically kill all lights from the battery without the switches moving!!!

So I have now tried every way to get around this issue.....But my lights system does work perfect, beside battery load and battery switch!

DG:cool:
 
Hi
Is the engine running when you test the battery switch?
if so the alternator or generator are powering the lights...
if you want the lights to switch off with the battery switch regardless of other systems, your going to have to make
a viability control node with the battery switch as its conditions then attach/child the light nodes to it
Wozza
 
Last edited:
Hello,

Code:
[electrical]
max_battery_voltage = 24.0
generator_alternator_voltage = 28.0
max_generator_alternator_amps = 100.0

;BusType, MaxAmpLoad, MinVoltage    BusTypes:0=MainBus,1=AvionicsBus,2=BatteryBus,3=HotBatteryBus,4-7=Generator/AlternatorBus(1-

4)
flap_motor         = 0, 15 , 17.0
autopilot          = 0, 5 , 20.0
avionics_bus       = 2, 5 , 23.0
avionics           = 1, 5 , 23.0
pitot_heat         = 0, 5 , 20.0
additional_system  = 0, 5 , 17.0
marker_beacon      = 2, 10 , 8.0
fuel_pump          = 2, 5 , 17.0
starter1           = 2, 20, 20.0
light_nav          = 2, 5 , 17.0
light_beacon       = 2, 5 , 17.0
light_landing      = 2, 10 , 17.0
light_taxi         = 2, 10 , 17.0
light_strobe       = 2, 5 , 15.0
light_panel        = 2, 5 , 8.0
light_cabin        = 2, 5 , 8.0
light_recognition  = 2, 5 , 8.0

I have the aviaonics at 23 volts due to the game will kill it at that voltage!!!

DG:confused:

Your AVIONIC should not "turn off" at 23 Volts.
In the REAL WORLD, that is totally unrealistic.

18 Volts (25% drop) is far more realistic.

Starter will continue to work below 18 volts, but typically would not have enough power below 18 volts to start a Turbine engine, without the risk of a Hot starts.

Landing Lights, (in fact all lights), will continue to work at lower voltages.
At 12 volts, they will typically be at 1/4 light level.

But the Avionics is the one that is really FAR OUT.

Geoff

Won't get into Lead-Acid vs Nickel cad. (FS seesm to only model lead acid)
 
In modeldef.xml edit all of the various "light" visibility scripts to add a check for master battery:
Code:
  <PartInfo>
    <Name>light_cabin_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:LIGHT CABIN,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>
 
I like that Bill, Why did they not write the codes that way first. When i had seen the vis codes, i thought they made the codes work for developers that hard code......lol

DG:eek:
 
Last edited:
Update your visibility tags if you make lights in your model....

Code:
<!-- exterior and interior lights -->

  <PartInfo>
    <Name>light_panel_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:LIGHT PANEL,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

  <PartInfo>
    <Name>light_strobe_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:LIGHT STROBE,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

  <PartInfo>
    <Name>light_landing_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:light LANDING,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>
  
  <PartInfo>
    <Name>light_taxi_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:LIGHT TAXI,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

  <PartInfo>
    <Name>light_beacon_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:LIGHT BEACON,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

  <PartInfo>
    <Name>light_nav_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:LIGHT NAV,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

  <PartInfo>
    <Name>light_logo_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:LIGHT LOGO,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

  <PartInfo>
    <Name>light_wing_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:LIGHT WING,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

  <PartInfo>
    <Name>light_recog_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:LIGHT RECOGNITION,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

  <PartInfo>
    <Name>light_cabin_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ELECTRICAL MASTER BATTERY,bool)
          (A:LIGHT CABIN,bool)
          and
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

DG:):)
 
Last edited:
Starter will continue to work below 18 volts, but typically would not have enough power below 18 volts to start a Turbine engine, without the risk of a Hot starts.

Landing Lights, (in fact all lights), will continue to work at lower voltages.
At 12 volts, they will typically be at 1/4 light level.

But the Avionics is the one that is really FAR OUT.

Geoff

Won't get into Lead-Acid vs Nickel cad. (FS seesm to only model lead acid)
Hi
The electrical system in fs is pooched, the voltage will only drop to 16 or 17 volts on a 24 volt system and 6 to 7 volts on a 12 volt system(cant remember the exact number) when battery is flat....so anything in the electrical system that has a voltage setting lower than the above wont switch off...

DG looks like Bills sorted your issue out ;)

Wozza
 
Hi
The electrical system in fs is pooched, the voltage will only drop to 16 or 17 volts on a 24 volt system and 6 to 7 volts on a 12 volt system(cant remember the exact number) when battery is flat....so anything in the electrical system that has a voltage setting lower than the above wont switch off...

DG looks like Bills sorted your issue out ;)

Wozza

Not true... If the voltage only dops to say 16 volts, then at 16 volts, all load has been turned off, and the battery is no longer being discharged.

If you were to set a landing light to say 2 volts, turn it on, and the battery will discharge right down to 2 volts.

Note: In real life, the landing lights are operated through a RELAY.

When the voltage drops below the HOLD voltage of the relay, the relay will de-energize, and the lights will go off.
The battery voltage, without the landing lights load, will then rise.
If it rise up ABOVE the "enegize" voltage of the relay, then the lights will come back on again .. etc etc

This is why, for the Starter Motor, it can go "tic - tic -tic" when the battery is low ... (not in FSX, unless you add the code to simulate this )

Geoff
 
Thanks for the help on team speak Geoff....

Now my battery will kill any gauge at the correct min voltage.
And all gauges will stop working as well.

Code:
[electrical]
max_battery_voltage = 24.0
generator_alternator_voltage = 28.0
max_generator_alternator_amps = 100.0

;BusType, MaxAmpLoad, MinVoltage    BusTypes:0=MainBus,1=AvionicsBus,2=BatteryBus,3=HotBatteryBus,4-7=Generator/AlternatorBus(1-4)
flap_motor         = 0, 15 , 15.0
autopilot          = 0, 5 , 20.0
avionics_bus       = 2, 5 , [COLOR="DarkRed"]15[/COLOR].0 [COLOR="DarkRed"]Fixed[/COLOR]
avionics           = 1, 5 , [COLOR="DarkRed"]18[/COLOR].0 [COLOR="DarkRed"]Fixed[/COLOR]
pitot_heat         = 0, 5 , 20.0
additional_system  = 0, 5 , 17.0
marker_beacon      = 2, 10 , 8.0
fuel_pump          = 2, 5 , 17.0
starter1           = 2, 20, 15.0
light_nav          = 0, 2 , 17.0
light_beacon       = 0, 2 , 17.0
light_landing      = 0, 12 , 17.0
light_taxi         = 0, 20 , 17.0
light_strobe       = 0, 5 , 15.0
light_panel        = 0, 2 , 8.0
light_cabin        = 0, 2 , 8.0
light_recognition  = 0, 2 , 8.0

Code:
  <Element>
[COLOR="DarkRed"]<Visible>(A:Circuit Avionics On,bool)</Visible>[/COLOR]
     <Position X="58" Y="0"/>
     <Failures>
[COLOR="DarkRed"]       <GAUGE_COMMUNICATIONS Action="NoDraw"/>
       <SYSTEM_ELECTRICAL_AVIONICS Action="0"/>
        <GAUGE_NAVIGATION_VOR1 Action="Freeze"/>[/COLOR]
     </Failures>
     <Text X="374" Y="26" Length="6" Fixed="Yes" Font="quartz" Adjust="Left" VerticalAdjust="Top" Color="#FF5500" Bright="No">
        <String>%((A:Com active frequency:1,Megahertz))%!6.3f!</String>
     </Text>
  </Element>

I seem to only find 3 or 4 failures. Is there a list in the SDK's? Not sure what to use the vor1 for!!!

DG:eek::D
 
Last edited:
Not true... If the voltage only dops to say 16 volts, then at 16 volts, all load has been turned off, and the battery is no longer being discharged.

If you were to set a landing light to say 2 volts, turn it on, and the battery will discharge right down to 2 volts.

Geoff
Well there you go I stand corrected...... the 30 odd times I posted this finding nobody said a thing ;)
Wozza
 
Back
Top