Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cold & Dark Startup script

Featured Replies

  • Author

Hey Bob,

thanks for the Autoignitions!

Funny thing I fiddled out also this weekend some more code:

 

Autoignition as a toggle on / off switch (both switches in sim are toggled atonce):

 

ipc.sleep(200)

ipc.control(66717, 1)

ipc.sleep(200)

ipc.control(66717, 2)

ipc.sleep(200)

 

 

Autofeather On / off switch:

 

ipc.sleep(200)

ipc.control(66297, 1)

ipc.sleep(200)

 

 

REMEMBER: all these Luas in this thread should also work in the B200 I use them all for both planes!!!

Best regards,

 

Avsim-Banner-2.jpg

  • Replies 34
  • Views 13.7k
  • Created
  • Last Reply

Top Posters In This Topic

andy

yes that is what is so awesome, as you can use either FSUIP parameters, FSX parameters or Lvars, so between those you surely will get an item to do what you want to do.

 

 

tim111

I see I actually did have the oxygen switch in my lua script.

[L] LVar toggle: ASD_SWITCH_MASK_OXYGENE_PILOT = 0

[L] LVar toggle: ASD_SWITCH_MASK_OXYGENE_PILOT = 1

 

--12 OXYGEN System
---- OXYGEN MASK PILOT OFF
ipc.display ("PREPARE SHUTDOWN!\n--------------------------\n-")
ipc.sleep(200)
ipc.display ("PREPARE SHUTDOWN!\n--------------------------\n-Oxygen Mask:")
ipc.sleep(1000)
ipc.writeLvar("L:ASD_SWITCH_MASK_OXYGENE_PILOT",1)
ipc.sleep(200)
ipc.display ("PREPARE SHUTDOWN!\n--------------------------\n-Oxygen Mask: SET OFF")
ipc.sleep(1200)

 

the LVAR for the copilot switch

[L] LVar toggle: ASD_SWITCH_MASK_OXYGENE_COPILOT = 1

[L] LVar toggle: ASD_SWITCH_MASK_OXYGENE_COPILOT = 0

Thanks flying-bob and andy1975. Appreciate all your help with this.

Tim Gyno

  • 2 months later...

For those who haven't been up to the task yet yet, you'll find that this should do that trick...

 

Instructions:

1. Go to the Modules folder of your FSX directory (where FSUIPC would be located).

2. Create a new text file in that folder and paste the code found below.

3. Name the file: BE90_cold_dark.lua

4. In FSX, open the FSUIPC menu and assign an unused key combo to "Lua BE90_cold_dark".

 

ipc.sleep(200)
ipc.writeLvar("L:ASD_SWITCH_INVERTER", 0)
ipc.sleep(200)
ipc.control(66701, 0)
ipc.sleep(200)
ipc.writeLvar("L:ASD_SWITCH_ELEV_TRIM",1)
ipc.sleep(200)
ipc.writeLvar("L:ASD_SWITCH_VENT_BLOWER",-1)
ipc.sleep(200)
ipc.writeLvar("L:ASD_SWITCH_RUDDER_BOOST",1)
ipc.sleep(200)
ipc.writeLvar("L:ASD_SWITCH_EFIS_POWER",0)
ipc.sleep(200)
ipc.control(66488, 1)
ipc.sleep(200)
ipc.control(66489, 1)
ipc.sleep(200)
ipc.control(66374)
ipc.sleep(200)
ipc.control(65767,-16383)
ipc.sleep(200)
ipc.control(65778)
ipc.sleep(200)
ipc.control(66535)
ipc.sleep(200)
ipc.display("Cold and dark script complete")
ipc.sleep(3000)

 

Hi. first of all thanks for your work on this, i have a problem, I did everything you've said but when i press the key combo and the window pops up that everything is done, i still battery ON both GEN ON

 

how can i fiy this? is it becasue i have the default cessna flight which is a cold adn dark situation?

 

OK i found out if i start the flight with the default cessna engine on and switch to the Beech the script works, but if i use my saved cold and dark situation file its not.

 

Thanks again huge help this script:)

  • Author

Hypo,

do you have a Cold & Dark KingAir cockpit before you start the script, I mean are BAT and GEN 1 + 2 in OFF position after loading the KingAir before you start that script?

With your script these could be toggled on as they were off before.

 

This is the script I use for the C90B & B200, I also have a complete cold & dark C172 as default flight loaded, in my King Air the BAT and GEN switches are in off position allready without that script:

 

ipc.sleep(200)

ipc.control(66717, 1)

ipc.sleep(200)

ipc.control(66717, 2)

ipc.sleep(200)

ipc.writeLvar("L:ASD_SWITCH_INVERTER", 0)

ipc.sleep(200)

ipc.control(66701, 0)

ipc.sleep(200)

ipc.writeLvar("L:ASD_SWITCH_VENT_BLOWER",-1)

ipc.sleep(200)

ipc.writeLvar("L:ASD_SWITCH_EFIS_POWER",0)

ipc.sleep(200)

ipc.display("King Air cold and dark")

ipc.sleep(3000)

 

Cheers!

Best regards,

 

Avsim-Banner-2.jpg

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.