- Messages
- 24
- Country
Can someone give me a basic idea on how this works? I've discovered you can use the state.cfg file in conjunction with the systems.cfg to save the state of switches when you exit the aircraft. Is there more to it than that? Because I can set the switches and see the state is being written to the state.cfg file when I exit. But when I reload the plane, the switches are back to their default on positions.
What I'm working on, is trying to set the learjet 35a fuel switches to off when the plane loads. These are defined as:
GENERIC_LEAR_FUEL_MAINPUMP1_1=0
GENERIC_LEAR_FUEL_MAINPUMP2_1=0
In the state.cfg
And I have them in the systems.cfg as:
LocalVar.55 = GENERIC_LEAR_FUEL_MAINPUMP1_1
LocalVar.56 = GENERIC_LEAR_FUEL_MAINPUMP2_1
and
LocalVarDefault.55 = 0
LocalVarDefault.56 = 0
Is there another place these need to be set, or some other code that I'm not aware of?
What I'm working on, is trying to set the learjet 35a fuel switches to off when the plane loads. These are defined as:
GENERIC_LEAR_FUEL_MAINPUMP1_1=0
GENERIC_LEAR_FUEL_MAINPUMP2_1=0
In the state.cfg
And I have them in the systems.cfg as:
LocalVar.55 = GENERIC_LEAR_FUEL_MAINPUMP1_1
LocalVar.56 = GENERIC_LEAR_FUEL_MAINPUMP2_1
and
LocalVarDefault.55 = 0
LocalVarDefault.56 = 0
Is there another place these need to be set, or some other code that I'm not aware of?