Jump to content

How To Modify The Autostart Sequence


Bailey

Recommended Posts

I have modified my autostart to include weapon systems, lights, and of course, the fans. Here is how I did it. If you just want to file you can download the OvGME Ready .lua here: https://www.digitalcombatsimulator.com/en/files/3317103/ . Remember, this mod will have to be reapplied after DCS updates or repairs.

(This guide was created on desktop using dark mode. Apologies for any format errors on your device.)
 

Let's get started with the knowledge. You will need to play with 2 files.

1. Backup and then open ‘DCS World OpenBeta\Mods\aircraft\Mi-24P\Cockpit\Scripts\Macro_sequencies.lua’ with Notepad++.

2. Backup and then open ‘DCS World OpenBeta\Mods\aircraft\Mi-24P\Cockpit\Scripts\clickabledata.lua’ with Notepad++.

 

Let me teach you the basic format of a single command:
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.RectifierLeft, value = 1.0, message = _("VU left"), message_timeout = std_message_timeout})

 

- Tells DCS that this commands happens in the AutoStart sequence. Don't change this.

 

- This is the duration of the command in seconds. Typically you will see this as 1.0 (1 second) for switches.

 

- The device name. Think of it as like the name of the avionics panel. It will be found in ‘clickabledata.lua’.

 

- The action to be taken on the device. Think of it as which switch to move. It will be found in ‘clickabledata.lua’, directly after the appropriate device name entry.

 

- The value that you want to give the action. Typically, on a two-way switch, 1.0 = on and 0.0 = off. You may have to experiment with this number.

 

- The message that the user will see.


- The time the message will remain on screen in seconds. In this case you can see that it is a variable that was defined earlier in the file.

Both ‘message’ and ‘message_timeout’ can be omitted if you desire, like this:
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.RectifierLeft, value = 1.0})

 

 

Practical Example:

 

I want the autostart to turn on the fan when it is done. Open the two files mentioned at the top of this guide. In ‘clickabledata.lua’ search for “fan”. You should see it around Line 841. Line 842 says something about the Pilot Fan, so we will focus on that one. Because we wanted to turn the fan on at the end of the autostart, search ‘Macro_sequencies.lua’ for “AUTOSTART COMPLETE”. You should see it around Line 169. We will put our custom command at Line 170. Copy a generic ‘push_start_command’, like this one:

push_start_command(1.0,{device = devices.AUTOPILOT, action =  autopilot_commands.ButtonTon, value = 0.0})

 

And paste it under Line 169 to make it Line 170. Now refer back to ‘clickabledata.lua’ Line 842. Copy ‘devices.CPT_MECH’ and paste it over ‘devices.AUTOPILOT’ in ‘Macro_sequencies.lua’ Line 170. Then refer back to ‘clickabledata.lua’ Line 842 and copy ‘cockpit_mechanics_commands.Command_CPT_MECH_FAN_PILOT’ and paste it over ‘autopilot_commands.ButtonTon in ‘Macro_sequencies.lua’ Line 170. Now change the ‘value’ to “1.0” (because we want the switch to be turned on) in Line 170. Your ‘Macro_sequencies.lua’ should now have something like this:

push_start_command(5.0,{message = _("AUTOSTART COMPLETE"),message_timeout = std_message_timeout})
push_start_command(0.1,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_FAN_PILOT, value = 1.0})

Save the ‘Macro_sequencies.lua’ and you are now done. The next time you autostart you should see the fan turn on at the end. Note that ‘Macro_sequencies.lua’ is read on every load into a mission. This means that you can quickly change, adjust, and diagnose these changes in singleplayer. You can put your modifications near the beginning of the Autostart, the end as we did here, or anywhere else you feel brave enough.

- All changes I have made are IC safe so you can use them in multiplayer.

- If you make a typo you will likely break the autostart.

- These files will most likely be overwritten when you update DCS. You can either keep a copy of it somewhere or use OvGme to replace the file after updates. I suggest updating it by hand because ED may change the autostart file. If you blindly update you will be using an older version and may see unintended results.

-You can apply this guide to the F-18 and other modules...if you can locate the correct files... I'll leave that as an excersize for you to enjoy.


Here is a pic of what a part of my ‘Macro_sequencies.lua’ file looks like.
LG75jxH.jpg


Here is the code I use in ‘Macro_sequencies.lua’ in full: 
 

Spoiler

dofile(LockOn_Options.script_path.."command_defs.lua")
dofile(LockOn_Options.script_path.."devices.lua")

std_message_timeout = 15

local t_start = 0.0
local t_stop = 0.0
local delta_t_com = 2.0

start_sequence_full = {}
stop_sequence_full = {}

function push_command(sequence, run_t, command)
	sequence[#sequence + 1] =  command
	sequence[#sequence]["time"] = run_t
end

function push_start_command(delta_t, command)
	t_start = t_start + delta_t
	push_command(start_sequence_full,t_start, command)
end

function push_stop_command(delta_t, command)
	t_stop = t_stop + delta_t
	push_command(stop_sequence_full,t_stop, command)
end

NO_FUEL = 1
COLLECTIVE = 2
BATTERY_LOW	= 3
APU_START_FAULT = 4
FUEL_PUMP_FAUL = 5
LEFT_ENGINE_START_FAULT = 6
RIGHT_ENGINE_START_FAULT = 7

alert_messages = {}
alert_messages[COLLECTIVE] = { message = _("SET THE COLLECTIVE STICK DOWN"), message_timeout = 10}
alert_messages[NO_FUEL] = 	 { message = _("CHECK FUEL QUANTITY"), message_timeout = 10}
alert_messages[BATTERY_LOW] = { message = _("POWER SUPPLY FAULT. CHECK THE BATTERY"), message_timeout = 10}
alert_messages[APU_START_FAULT] = { message = _("AI-9 NOT READY TO START ENGINE"), message_timeout = 10}
alert_messages[FUEL_PUMP_FAUL] = { message = _("FEEDING FUEL TANK PUMP FAULT"), message_timeout = 10}
alert_messages[LEFT_ENGINE_START_FAULT] = { message = _("LEFT ENGINE START FAULT"), message_timeout = 10}
alert_messages[RIGHT_ENGINE_START_FAULT] = { message = _("RIGHT ENGINE START FAULT"), message_timeout = 10}

push_start_command(2.0,{message = _("AUTOSTART SEQUENCE IS RUNNING"),message_timeout = std_message_timeout})

push_start_command(1.0,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_GENERAL_DOORS_CLOSE, value = 0.0})

push_start_command(0.1,{device = devices.ENGINE_INTERFACE,action = engine_commands.LEVER_Left_Engine_Lock, value = 0.0, message = _("LEFT ENGINE UNLOCK"),message_timeout = std_message_timeout})
push_start_command(2.0,{device = devices.ENGINE_INTERFACE,action = engine_commands.LEVER_Right_Engine_Lock, value = 0.0, message = _("RIGHT ENGINE UNLOCK"),message_timeout = std_message_timeout})
push_start_command(2.0,{device = devices.ENGINE_INTERFACE,action = engine_commands.LEVER_Rotor_Lock, value = 0.0, message = _("ROTOR BRAKE OFF"),message_timeout = std_message_timeout})

push_start_command(2.0,{action = Keys.iCommand_PlaneAUTDecreaseRegime})
push_start_command(0.1,{action = Keys.iCommand_PlaneAUTDecreaseRegime})
push_start_command(0.1,{action = Keys.iCommand_PlaneAUTIncreaseRegime,		message = _("ENGINES THROTTLES SET TO AUTO"),message_timeout = 10})
push_start_command(1.0,{action = Keys.iCommand_ThrottleDecrease,			message = _("CORRECTION SET TO LEFT"),message_timeout = 10})
push_start_command(1.0,{device = devices.ENGINE_INTERFACE, action = engine_commands.COLLECTIVE, value = -1.0, message = _("COLLECTIVE SET TO FULL DOWN"),message_timeout = 10})
--push_start_command(0.1,{device = devices.ENGINE_INTERFACE, action = engine_commands.Button_70, value = -1.0})
push_start_command(4.0,{action = Keys.iCommand_ThrottleStop})

push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.BatteryRight, value = 1.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.BatteryLeft, value = 1.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.DCGangSwitcher, value = 0.22})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.Rotary115vConverterCover, value = 1.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.Rotary115vConverter, value = 1.0})
push_start_command(1.0,{device = devices.ELEC_INTERFACE,action =  elec_commands.CB_FRAME_LEFT, value = 1.0})
push_start_command(1.0,{device = devices.ELEC_INTERFACE,action =  elec_commands.CB_FRAME_LEFT, value = 0.0})
push_start_command(1.0,{device = devices.ELEC_INTERFACE,action =  elec_commands.CB_FRAME_RIGHT, value = 1.0})
push_start_command(1.0,{device = devices.ELEC_INTERFACE,action =  elec_commands.CB_FRAME_RIGHT, value = 0.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.NetworkToBatteriesCover, value = 1.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.NetworkToBatteries, value = 1.0})
--push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.GroundCheckCover, value = 1.0})
--push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.GroundCheck, value = 1.0})
-- hydro system
push_start_command(0.1,{device = devices.HYDRO_SYS_INTERFACE,action =  hydraulic_commands.MainHydro, value = 1.0})
--push_start_command(0.1,{device = devices.HYDRO_SYS_INTERFACE,action =  hydraulic_commands.DisableAuxiliaryHydro_EXT, value = 1.0})
push_start_command(1.0,{device = devices.ECS_INTERFACE,action =  ecs_commands.Sealing_valve, value = 0.0, message = _("DOORS SEALED"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.ECS_INTERFACE,action =  ecs_commands.CabinUnseal, value = 1.0})
push_start_command(1.0,{device = devices.ECS_INTERFACE,action =  ecs_commands.BlowdownConditioning, value = 1.0})
--fuel system
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveTank1, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveTank2, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveLeftEngineCover, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveRightEngineCover, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveLeftEngine, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveRightEngine, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveDelimiter, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.Tank1Pump, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.Tank2Pump, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.Tank4Pump, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.Tank5Pump, value = 1.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveLeftEngineCover, value = 0.0})
push_start_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveRightEngineCover, value = 0.0})

-- ППС:
push_start_command(0.1,{device = devices.FIRE_EXTING_INTERFACE, action =  fire_commands.Power, value = 1.0, message = _("EXTINGUISHING"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.FIRE_EXTING_INTERFACE, action =  fire_commands.SensorControl, value = 1.0})
push_start_command(0.1,{device = devices.FIRE_EXTING_INTERFACE, action =  fire_commands.Pyro1, value = 1.0})
push_start_command(1.0,{device = devices.FIRE_EXTING_INTERFACE, action =  fire_commands.Pyro1, value = 0.0})
push_start_command(0.1,{device = devices.FIRE_EXTING_INTERFACE, action =  fire_commands.Pyro2, value = 1.0})
push_start_command(1.0,{device = devices.FIRE_EXTING_INTERFACE, action =  fire_commands.Pyro2, value = 0.0})

--панель запуска двигателей
push_start_command(0.1,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_APU_Launch_Method, value = -1.0, check_condition = FUEL_PUMP_FAUL})
push_start_command(0.1,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_APU_StartUp, value = 1.0, message = _("APU START"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_APU_StartUp, value = 0.0})

push_start_command(25.0,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_Engine_Launch_Method, value = 0.0, check_condition = APU_START_FAULT})
push_start_command(0.1,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_Engine_Select, value =  1.0, check_condition = COLLECTIVE})
push_start_command(0.1,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_Engine_StartUp, value = 1.0, message = _("LEFT ENGINE START"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_Engine_StartUp, value = 0.0})

push_start_command(55.0,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_Engine_Select, value = 0.0, check_condition = LEFT_ENGINE_START_FAULT})
push_start_command(0.1,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_Engine_StartUp, value = 1.0, message = _("RIGHT ENGINE START"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_Engine_StartUp, value = 0.0})

push_start_command(55.0,{action = Keys.iCommand_ThrottleIncrease,message = _("CORRECTION SET TO RIGHT"),message_timeout = 10, check_condition = RIGHT_ENGINE_START_FAULT})
push_start_command(4.0,{action = Keys.iCommand_ThrottleStop})

push_start_command(10.0,{message = _("TURN ON GENERATORS"),message_timeout = std_message_timeout})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.ACGeneratorLeft, value = 1.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.ACGeneratorRight, value = 1.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.Transformer115vMainBackup, value = 1.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.Transformer36vMainBackup, value = 1.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.RectifierLeft, value = 1.0, message = _("VU left"), message_timeout = std_message_timeout})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.RectifierRight, value = 1.0, message = _("VU right"), message_timeout = std_message_timeout})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.ACGangSwitcher, value = 0.5})
--push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.GroundCheckCover, value = 0.0})
--push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.GroundCheck, value = 0.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.Rotary115vConverterCover, value = 0.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.Rotary115vConverter, value = 0.0})

push_start_command(1.0,{device = devices.ENGINE_INTERFACE,action =  engine_commands.STARTUP_APU_Stop, value = 1.0, message = _("APU STOP"), message_timeout = std_message_timeout})

push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.NetworkToBatteriesCover, value = 0.0})
push_start_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.NetworkToBatteries, value = 0.0})

--Left Panel
push_start_command(1.0,{device = devices.SPUU_52, action =  spuu_commands.On_Off, value = 1.0, message = _("SPUU-52"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.RADAR_ALTIMETER, action =  ralt_commands.POWER, value = 1.0, message = _("RADAR ALTIMETER"), message_timeout = std_message_timeout})
 
--Right Panel
push_start_command(1.0,{device = devices.DISS_15, action =  diss_commands.POWER, value = 1.0, message = _("DISS-15"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.MGV1SU_1, action =  mgv1su_commands.POWER, value = 1.0, message = _("MGV1-1"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.MGV1SU_2, action =  mgv1su_commands.POWER, value = 1.0, message = _("MGV1-2"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.MGV1SU_1, action =  mgv1su_commands.CAGE, value = 1.0})
push_start_command(1.0,{device = devices.MGV1SU_2, action =  mgv1su_commands.CAGE, value = 1.0})
push_start_command(1.0,{device = devices.GREBEN, action =  greben_commands.POWER, value = 1.0, message = _("GREBEN"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.SPU_8, action =  SPU_8_Mi24_commands.CMD_SPU8_NETWORK_1, value = 1.0, message = _("SPU-8 NETWORK 1"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.SPU_8, action =  SPU_8_Mi24_commands.CMD_SPU8_NETWORK_2, value = 1.0, message = _("SPU-8 NETWORK 2"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.JADRO_1I, action =  jadro_commands.POWER, value = 1.0, message = _("JADRO-1A"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.EUCALYPT_M24, action =  eucalypt_commands.POWER_ON_OFF2, value = 1.0, message = _("R-828"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.R_863, action =  r863_commands.POWER, value = 1.0, message = _("R-863"), message_timeout = std_message_timeout})
--[[
FLASHER
--]]
push_start_command(1.0,{device = devices.INT_LIGHTS_SYSTEM, action =  int_lights_commands.BlinkerSystem, value = 1.0, message = _("FLASHER"), message_timeout = std_message_timeout})

push_start_command(1.0,{device = devices.GREBEN, action =  greben_commands.SETUP_OPER, value = 1.0})
push_start_command(1.0,{device = devices.GREBEN, action =  greben_commands.MODE, value = 0.0})
push_start_command(1.0,{device = devices.MGV1SU_1, action =  mgv1su_commands.CAGE, value = 0.0})
push_start_command(1.0,{device = devices.MGV1SU_2, action =  mgv1su_commands.CAGE, value = 0.0})

push_start_command(1.0,{device = devices.AUTOPILOT, action =  autopilot_commands.ButtonKon, value = 1.0, message = _("AUTOPILOT ROLL CHANNEL"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.AUTOPILOT, action =  autopilot_commands.ButtonKon, value = 0.0})
push_start_command(1.0,{device = devices.AUTOPILOT, action =  autopilot_commands.ButtonTon, value = 1.0, message = _("AUTOPILOT PITCH CHANNEL"), message_timeout = std_message_timeout})
push_start_command(1.0,{device = devices.AUTOPILOT, action =  autopilot_commands.ButtonTon, value = 0.0})

push_start_command(5.0,{message = _("AUTOSTART COMPLETE"),message_timeout = std_message_timeout})

---------------------------------
-- Bailey Custom Start
push_start_command(0.1,{message = _("Doing Bailey things..."),message_timeout = 0.1 * 16}) --replace the last number with the number of custom commands

-- Weapons
push_start_command(0.1,{device = devices.ASP_17V, action =  asp_commands.Range_Auto_Manual, value = 1.0}) -- Sight distance MANUAL/AUTO
push_start_command(0.1,{device = devices.ASP_17V, action =  asp_commands.Power, value = 1.0}) -- Sight Power ON/OFF
push_start_command(0.1,{device = devices.ASP_17V, action =  asp_commands.Manual_Auto, value = 1.0}) -- Sight mode MANUAL/AUTO
push_start_command(0.1,{device = devices.ASP_17V, action =  asp_commands.Sync_Async, value = 1.0}) -- Sight mode SYNC/ASYNC
push_start_command(0.1,{device = devices.WEAP_SYS, action =  weapon_commands.Pilot_SWITCHER_FIRE_CONTROL, value = 1.0}) -- Weapon Control ON/OFF
push_start_command(0.1,{device = devices.WEAP_SYS, action =  weapon_commands.Pilot_TEMP_NPU30, value = 0.0}) -- Cannon Fire Rate SLOW/FAST

-- Weapons Operator Seat
push_start_command(0.1,{device = devices.WEAP_SYS, action =  weapon_commands.Operator_SWITCHER_SAFE_WEAP, value = 1.0}) -- Main Weapon Safe Switch
push_start_command(0.1,{device = devices.WEAP_SYS, action =  weapon_commands.Operator_URS_POWER, value = 1.0}) -- Missiles Power
push_start_command(0.1,{device = devices.PKP72M_INTERFACE, action =  pkp72m_interface_commands.PKP72MoperatorSwitch, value = 1.0}) -- ADI Switch, ON/OFF
push_start_command(0.1,{device = devices.ASP_17V, action =  asp_commands.USR, value = 1.0}) -- USR power
push_start_command(0.1,{device = devices.WEAP_SYS, action =  weapon_commands.Operator_POWER_SHO_SWITCHER, value = 1.0}) -- SCHO Power
push_start_command(0.1,{device = devices.I9K113, action =  i9K113_commands.Command_POWER_PN, value = 1.0}) -- Sight Power Switch
push_start_command(0.1,{device = devices.I9K113, action =  i9K113_commands.Command_NABL, value = 1.0}) -- OBSERVE

-- General Systems
push_start_command(0.1,{device = devices.IFF, action =  IFF_6201_commands.CMD_IFF_Power_Sw, value = 1.0}) -- IFF Transponder Power Switch, ON/OFF
push_start_command(0.1,{device = devices.MAP_DISPLAY, action =  map_display_commands.Scale, value = 1.0}) -- Map Scale Selector
push_start_command(0.1,{device = devices.MAP_DISPLAY, action =  map_display_commands.Lights, value = 1.0}) -- Map Highlight  BRIGHT/OFF/DIM
--push_start_command(0.1,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_ParkingBrake, value = 1.0}) -- Parking Brake Handle

-- Lights
push_start_command(0.1,{device = devices.INT_LIGHTS_SYSTEM, action =  int_lights_commands.OperatorCabinLightingWhiteRed, value = 1.0}) -- LTG-COCKPIT-OP-PTR
push_start_command(0.1,{device = devices.INT_LIGHTS_SYSTEM, action =  int_lights_commands.PilotCabinLightingWhiteRed, value = 1.0}) -- LTG-COCKPIT-PTR
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commands.PilotTaxiLight, value = 1.0}) -- TAXILIGHT-PTR
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commands.OperatorTaxiLight, value = 1.0}) -- Operator Taxi LT Switch, ON/OFF
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commands.NavLtSwitch, value = 1.0}) -- Navigation Lights Switch, BRIGHT/OFF/DIM
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commandsFormationLights, value = 1.0}) -- Formation Lights Switch, BRIGHT/OFF/DIM
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commands.TipLights, value = 1.0}) -- Tip Lights Switch, ON/OFF
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commands.StrobeLight, value = 1.0}) -- Strobe Light Switch, ON/OFF

-- Radios
push_start_command(0.1,{device = devices.ARC_U2, action =  ARC_U2_commands.CMD_ARC_U2_ON_OFF, value = 1.0}) -- ARC-U2 switcher On/Off
push_start_command(0.1,{device = devices.ARC_15_PANEL_P, action =  arc15_commands.MODE, value = 0.23}) -- ARC 15 RADIO TO ANT Pilot
push_start_command(0.1,{device = devices.ARC_15_PANEL_O, action =  arc15_commands.MODE, value = 0.23}) -- ARC 15 RADIO TO ANT Operator
-- push_start_command(0.1,{device = devices.ARC_15_PANEL_O, action =  arc15_commands.MODE, value = 1.0}) -- ARC-15 mode OFF/COMPASS/ANT/FRAME Operator (1 = loop)
-- push_start_command(0.1,{device = devices.ARC_15_PANEL_P, action =  arc15_commands.MODE, value = 1.0}) -- ARC-15 mode OFF/COMPASS/ANT/FRAME Pilot (1 = loop)
push_start_command(0.1,{device = devices.JADRO_1I, action =  jadro_commands.POWER, value = 1.0}) -- Jadro-1I ON/OFF
push_start_command(0.1,{device = devices.JADRO_1I, action =  jadro_commands.MODE, value = 0.3}) -- JADRO RADIO TO AM

-- RWR Test
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_POWER, value = 1.0}) -- RWR Power
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_SIGNAL, value = 1.0}) -- RWR Signal
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_CHECK, value = 1.0}) -- Check RWR

-- Flare Panel
push_start_command(0.1,{device = devices.ASO_2V, action =  avASO_2V_commands.ASO_2V_Set_I_II_III, value = 0.1}) -- COUNTERMEASURE I/II/III to I
push_start_command(0.1,{device = devices.ASO_2V,	action =  avASO_2V_commands.ASO_2V_Left, value = 1.0}) -- LEFT COUNTERMEASURE
push_start_command(0.1,{device = devices.ASO_2V,	 action =  avASO_2V_commands.ASO_2V_Right, value = 1.0}) -- RIGHT COUNTERMEASURE
push_start_command(0.1,{device = devices.SIGNAL_FLARES, action =  signal_flares_commands.CMD_Cassette1_Power, value = 1.0}) -- SIGNAL FLARES TOP
push_start_command(0.1,{device = devices.SIGNAL_FLARES, action =  signal_flares_commands.CMD_Cassette2_Power, value = 1.0}) -- SIGNAL FLARES BOTTOM

-- RWR Test Complete
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_CHECK, value = 0.0}) -- Check RWR
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_SIGNAL, value = 0.0}) -- RWR Signal

-- Fans
push_start_command(0.1,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_FAN_PILOT, value = 1.0}) -- Pilot Fan, ON/OFF
push_start_command(0.1,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_FAN_OPERATOR, value = 1.0}) -- Operator Fan, ON/OFF

--push_start_command(0.1,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_Elements_Hide, value = 1.0}) -- HIDE STICK
push_start_command(0.1,{message = _("Bailey things...Done"),message_timeout = std_message_timeout}) -- ...DONE
-- Bailey Custom End
---------------------------------


---------------------------------
--- Stop sequence
push_stop_command(2.0,{message = _("AUTOSTOP SEQUENCE IS RUNNING"),message_timeout = std_message_timeout})

push_stop_command(1.0,{device = devices.INT_LIGHTS_SYSTEM, action =  int_lights_commands.BlinkerSystem, value = 0.0, message = _("FLASHER"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.SPUU_52, action =  spuu_commands.On_Off, value = 0.0, message = _("SPUU-52"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.RADAR_ALTIMETER, action =  ralt_commands.POWER, value = 0.0, message = _("RADAR ALTIMETER"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.DISS_15, action =  diss_commands.POWER, value = 0.0, message = _("DISS-15"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.MGV1SU_1, action =  mgv1su_commands.POWER, value = 0.0, message = _("MGV1-1"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.MGV1SU_2, action =  mgv1su_commands.POWER, value = 0.0, message = _("MGV1-2"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.GREBEN, action =  greben_commands.POWER, value = 0.0, message = _("GREBEN"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.SPU_8, action =  SPU_8_Mi24_commands.CMD_SPU8_NETWORK_1, value = 0.0, message = _("SPU-8 NETWORK 1"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.SPU_8, action =  SPU_8_Mi24_commands.CMD_SPU8_NETWORK_2, value = 0.0, message = _("SPU-8 NETWORK 2"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.JADRO_1I, action =  jadro_commands.POWER, value = 0.0, message = _("JADRO-1A"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.EUCALYPT_M24, action =  eucalypt_commands.POWER_ON_OFF2, value = 0.0, message = _("R-828"), message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.R_863, action =  r863_commands.POWER, value = 0.0, message = _("R-863"), message_timeout = std_message_timeout})

--push_stop_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM,action =  ext_lights_commands.NavLtSwitch, value = 0.0})
--push_stop_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM,action =  ext_lights_commands.FormationLights, value = 0.0})
--push_stop_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM,action =  ext_lights_commands.TipLights, value = 0.0})
--push_stop_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM,action =  ext_lights_commands.StrobeLight, value = 0.0})

push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.ACGeneratorLeft, value = 0.0, message = _("GENERATORS OFF"), message_timeout = std_message_timeout})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.ACGeneratorRight, value = 0.0})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.Transformer115vMainBackup, value = 0.0})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.Transformer36vMainBackup, value = 0.0})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.RectifierLeft, value = 0.0, message = _("VU left OFF"), message_timeout = std_message_timeout})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.RectifierRight, value = 0.0, message = _("VU right OFF"), message_timeout = std_message_timeout})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.Rotary115vConverter, value = 0.0, message = _("PO-750 NEUTRAL"), message_timeout = std_message_timeout})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.Rotary36vConverter , value = 0.0, message = _("PT-125 NEUTRAL"), message_timeout = std_message_timeout})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action = elec_commands.ACGangSwitcher, value = 0.0})

push_stop_command(0.1,{action = Keys.iCommand_ThrottleDecrease,message = _("CORRECTION SET TO LEFT"),message_timeout = 10})
push_stop_command(4.0,{action = Keys.iCommand_ThrottleStop})

push_stop_command(5.0,{device = devices.ENGINE_INTERFACE,action = engine_commands.LEVER_Left_Engine_Lock, value = 1.0, message = _("LEFT ENGINE STOP"),message_timeout = std_message_timeout})
push_stop_command(2.0,{device = devices.ENGINE_INTERFACE,action = engine_commands.LEVER_Right_Engine_Lock, value = 1.0, message = _("RIGHT ENGINE STOP"),message_timeout = std_message_timeout})

push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveTank1, value = 0.0})
push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveTank2, value = 0.0})
push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveLeftEngineCover, value = 1.0})
push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveRightEngineCover, value = 1.0})
push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveLeftEngine, value = 0.0})
push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveRightEngine, value = 0.0})
push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.ValveDelimiter, value = 0.0})
push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.Tank1Pump, value = 0.0})
push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.Tank2Pump, value = 0.0})
push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.Tank4Pump, value = 0.0})
push_stop_command(0.1,{device = devices.FUELSYS_INTERFACE,action =  fuel_commands.Tank5Pump, value = 0.0})

for i = elec_commands.CB_LEFT_HOMING_MISSILE_POWER, elec_commands.CB_LEFT_HOMING_MISSILE_POWER+28, 1 do
	push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action =  i, value = 0.0})
end

for i = elec_commands.CB_RIGHT_CONTROL_FORCE_MECHANISM, elec_commands.CB_RIGHT_CONTROL_FORCE_MECHANISM+29, 1 do
	push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action =  i, value = 0.0})
end

push_stop_command(65.0,{device = devices.ENGINE_INTERFACE,action = engine_commands.LEVER_Rotor_Lock, value = 1.0, message = _("ROTOR BRAKE ON"),message_timeout = std_message_timeout})
push_stop_command(1.0,{device = devices.ECS_INTERFACE, action =  ecs_commands.Sealing_valve, value = 1.0})
push_stop_command(1.0,{device = devices.ECS_INTERFACE, action =  ecs_commands.CabinUnseal, value = 1.0})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.BatteryRight, value = 0.0, message = _("BATTERIES OFF"), message_timeout = std_message_timeout})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.BatteryLeft, value = 0.0})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.NetworkToBatteriesCover, value = 0.0})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.NetworkToBatteries, value = 0.0})
push_stop_command(0.1,{device = devices.ELEC_INTERFACE,action =  elec_commands.DCGangSwitcher, value = 0.0})
push_stop_command(1.0,{device = devices.ELEC_INTERFACE,action =  elec_commands.CB_FRAME_LEFT, value = 0.0})
push_stop_command(1.0,{device = devices.ELEC_INTERFACE,action =  elec_commands.CB_FRAME_RIGHT, value = 0.0})

push_stop_command(1.0,{message = _("AUTOSTOP COMPLETE"),message_timeout = std_message_timeout})

 


Enjoy!


Edited by Bailey
  • Like 6
  • Thanks 8
Link to comment
Share on other sites

Nice! Excellent write up. Thanks for this.

 

One thing I've found is that the Mi-24 autostart will abort with "CHECK FUEL QUANTITY"  for anything less than about 38% fuel. Just something to keep in mind.

  • Like 1

CPU:5600X | GPU:RTX2080 | RAM:32GB | Disk:860EVOm.2

Link to comment
Share on other sites

Here are some more commands that I've found useful for the auto-start

 

push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_POWER, value = 1.0}) -- RWR
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_SIGNAL, value = 1.0}) -- RWR SOUND

push_start_command(0.1,{device = devices.SIGNAL_FLARES, action =  signal_flares_commands.CMD_Cassette1_Power, value = 1.0}) -- SIGNAL FLARES TOP
push_start_command(0.1,{device = devices.SIGNAL_FLARES, action =  signal_flares_commands.CMD_Cassette2_Power, value = 1.0}) -- SIGNAL FLARES BOTTOM

push_start_command(0.1,{device = devices.ARC_15_PANEL_P, action =  arc15_commands.MODE, value = 0.23}) -- ARC 15 RADIO TO ANT
push_start_command(0.1,{device = devices.JADRO_1I, action =  jadro_commands.MODE, value = 0.3}) -- JADRO RADIO TO AM

push_start_command(0.1,{device = devices.ASO_2V, action =  avASO_2V_commands.ASO_2V_Left, value = 1.0}) -- LEFT COUNTERMEASURE
push_start_command(0.1,{device = devices.ASO_2V, action =  avASO_2V_commands.ASO_2V_Right, value = 1.0}) -- RIGHT COUNTERMEASURE
push_start_command(0.1,{device = devices.ASO_2V, action =  avASO_2V_commands.ASO_2V_Set_I_II_III, value = 0.1}) -- COUNTERMEASURE I/II/III to I

push_start_command(0.1,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_Elements_Hide, value = 1.0}) -- HIDE STICK

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Thanks Dagger. With some more tinkering and some tips from yours, my autostart now has the below:
 

Spoiler

---------------------------------
-- Bailey Custom Start
push_start_command(0.1,{message = _("Doing Bailey things..."),message_timeout = 0.1 * 16}) --replace the last number with the number of custom commands

-- Weapons
push_start_command(0.1,{device = devices.ASP_17V, action =  asp_commands.Range_Auto_Manual, value = 1.0}) -- Sight distance MANUAL/AUTO
push_start_command(0.1,{device = devices.ASP_17V, action =  asp_commands.Power, value = 1.0}) -- Sight Power ON/OFF
push_start_command(0.1,{device = devices.ASP_17V, action =  asp_commands.Manual_Auto, value = 1.0}) -- Sight mode MANUAL/AUTO
push_start_command(0.1,{device = devices.ASP_17V, action =  asp_commands.Sync_Async, value = 1.0}) -- Sight mode SYNC/ASYNC
push_start_command(0.1,{device = devices.WEAP_SYS, action =  weapon_commands.Pilot_SWITCHER_FIRE_CONTROL, value = 1.0}) -- Weapon Control ON/OFF
push_start_command(0.1,{device = devices.WEAP_SYS, action =  weapon_commands.Pilot_TEMP_NPU30, value = 0.0}) -- Cannon Fire Rate SLOW/FAST

-- Weapons Operator Seat
push_start_command(0.1,{device = devices.WEAP_SYS, action =  weapon_commands.Operator_SWITCHER_SAFE_WEAP, value = 1.0}) -- Main Weapon Safe Switch
push_start_command(0.1,{device = devices.WEAP_SYS, action =  weapon_commands.Operator_URS_POWER, value = 1.0}) -- Missiles Power
push_start_command(0.1,{device = devices.PKP72M_INTERFACE, action =  pkp72m_interface_commands.PKP72MoperatorSwitch, value = 1.0}) -- ADI Switch, ON/OFF
push_start_command(0.1,{device = devices.ASP_17V, action =  asp_commands.USR, value = 1.0}) -- USR power
push_start_command(0.1,{device = devices.WEAP_SYS, action =  weapon_commands.Operator_POWER_SHO_SWITCHER, value = 1.0}) -- SCHO Power
push_start_command(0.1,{device = devices.I9K113, action =  i9K113_commands.Command_POWER_PN, value = 1.0}) -- Sight Power Switch
push_start_command(0.1,{device = devices.I9K113, action =  i9K113_commands.Command_NABL, value = 1.0}) -- OBSERVE

-- General Systems
push_start_command(0.1,{device = devices.IFF, action =  IFF_6201_commands.CMD_IFF_Power_Sw, value = 1.0}) -- IFF Transponder Power Switch, ON/OFF
push_start_command(0.1,{device = devices.MAP_DISPLAY, action =  map_display_commands.Scale, value = 1.0}) -- Map Scale Selector
push_start_command(0.1,{device = devices.MAP_DISPLAY, action =  map_display_commands.Lights, value = 1.0}) -- Map Highlight  BRIGHT/OFF/DIM
--push_start_command(0.1,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_ParkingBrake, value = 1.0}) -- Parking Brake Handle

-- Lights
push_start_command(0.1,{device = devices.INT_LIGHTS_SYSTEM, action =  int_lights_commands.OperatorCabinLightingWhiteRed, value = 1.0}) -- LTG-COCKPIT-OP-PTR
push_start_command(0.1,{device = devices.INT_LIGHTS_SYSTEM, action =  int_lights_commands.PilotCabinLightingWhiteRed, value = 1.0}) -- LTG-COCKPIT-PTR
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commands.PilotTaxiLight, value = 1.0}) -- TAXILIGHT-PTR
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commands.OperatorTaxiLight, value = 1.0}) -- Operator Taxi LT Switch, ON/OFF
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commands.NavLtSwitch, value = 1.0}) -- Navigation Lights Switch, BRIGHT/OFF/DIM
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commandsFormationLights, value = 1.0}) -- Formation Lights Switch, BRIGHT/OFF/DIM
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commands.TipLights, value = 1.0}) -- Tip Lights Switch, ON/OFF
push_start_command(0.1,{device = devices.EXT_LIGHTS_SYSTEM, action =  ext_lights_commands.StrobeLight, value = 1.0}) -- Strobe Light Switch, ON/OFF

-- Radios
push_start_command(0.1,{device = devices.ARC_U2, action =  ARC_U2_commands.CMD_ARC_U2_ON_OFF, value = 1.0}) -- ARC-U2 switcher On/Off
push_start_command(0.1,{device = devices.ARC_15_PANEL_P, action =  arc15_commands.MODE, value = 0.23}) -- ARC 15 RADIO TO ANT Pilot
push_start_command(0.1,{device = devices.ARC_15_PANEL_O, action =  arc15_commands.MODE, value = 0.23}) -- ARC 15 RADIO TO ANT Operator
-- push_start_command(0.1,{device = devices.ARC_15_PANEL_O, action =  arc15_commands.MODE, value = 1.0}) -- ARC-15 mode OFF/COMPASS/ANT/FRAME Operator (1 = loop)
-- push_start_command(0.1,{device = devices.ARC_15_PANEL_P, action =  arc15_commands.MODE, value = 1.0}) -- ARC-15 mode OFF/COMPASS/ANT/FRAME Pilot (1 = loop)
push_start_command(0.1,{device = devices.JADRO_1I, action =  jadro_commands.POWER, value = 1.0}) -- Jadro-1I ON/OFF
push_start_command(0.1,{device = devices.JADRO_1I, action =  jadro_commands.MODE, value = 0.3}) -- JADRO RADIO TO AM

-- RWR Test
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_POWER, value = 1.0}) -- RWR Power
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_SIGNAL, value = 1.0}) -- RWR Signal
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_CHECK, value = 1.0}) -- Check RWR

-- Flare Panel
push_start_command(0.1,{device = devices.ASO_2V, action =  avASO_2V_commands.ASO_2V_Set_I_II_III, value = 0.1}) -- COUNTERMEASURE I/II/III to I
push_start_command(0.1,{device = devices.ASO_2V,	action =  avASO_2V_commands.ASO_2V_Left, value = 1.0}) -- LEFT COUNTERMEASURE
push_start_command(0.1,{device = devices.ASO_2V,	 action =  avASO_2V_commands.ASO_2V_Right, value = 1.0}) -- RIGHT COUNTERMEASURE
push_start_command(0.1,{device = devices.SIGNAL_FLARES, action =  signal_flares_commands.CMD_Cassette1_Power, value = 1.0}) -- SIGNAL FLARES TOP
push_start_command(0.1,{device = devices.SIGNAL_FLARES, action =  signal_flares_commands.CMD_Cassette2_Power, value = 1.0}) -- SIGNAL FLARES BOTTOM

-- RWR Test Complete
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_CHECK, value = 0.0}) -- Check RWR
push_start_command(0.1,{device = devices.SPO_10, action =  SPO_commands.Command_SPO_SIGNAL, value = 0.0}) -- RWR Signal

-- Fans
push_start_command(0.1,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_FAN_PILOT, value = 1.0}) -- Pilot Fan, ON/OFF
push_start_command(0.1,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_FAN_OPERATOR, value = 1.0}) -- Operator Fan, ON/OFF

--push_start_command(0.1,{device = devices.CPT_MECH, action =  cockpit_mechanics_commands.Command_CPT_MECH_Elements_Hide, value = 1.0}) -- HIDE STICK
push_start_command(0.1,{message = _("Bailey things...Done"),message_timeout = std_message_timeout}) -- ...DONE
-- Bailey Custom End
---------------------------------

 

I even have the RWR test beep at me to signal that the autostart is done. And if I miss that, the fans will also tell me visually.
First post has been updated.
 

 

  • Like 1
Link to comment
Share on other sites

Thanks for this 🙂

System:

 

I9 9900KS 5.0GHz : 2080Ti : MSI Z390 GODLike : 32Gb Vengance 4000MHz DDR4 : Samsung 970 1TB Evo Plus, Samsung 950 Pro 512GB : ViewSonic 4K 32"

Windows 10 : HOTAS - Warthog : TPR Pedals : HP Reverb Pro

Link to comment
Share on other sites

15 hours ago, iLOVEwindmills said:

Maybe it makes sense to package this up as a mod?

Maybe. I'll think about it. Thanks for the idea.

Link to comment
Share on other sites

On 6/19/2021 at 7:46 PM, iLOVEwindmills said:

Maybe it makes sense to package this up as a mod?

Upload is pending review on ED userfiles. 

  • Like 1
Link to comment
Share on other sites

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 months later...
On 7/20/2021 at 3:20 PM, hasole said:

Thank you for this @Bailey.  I'm going to spend the next few days working on one for the F-16C Viper

No problem. Sweet. I hope it turned out well.

Link to comment
Share on other sites

  • 9 months later...
On 6/17/2021 at 1:03 AM, Bailey said:

1. Backup and then open ‘DCS World OpenBeta\Mods\aircraft\Mi-24P\Cockpit\Scripts\Macro_sequencies.lua’ with Notepad++.

Hi @Bailey. I would like to try making this for the MiG-21bis but that acft has no Scripts folder and no Macro_sequencies.lua. Should I create a Scripts folder and put my modified (for the MiG-21) Macro_sequencies.lua in that folder?

Link to comment
Share on other sites

4 hours ago, II.JG1_Vonrd said:

Hi @Bailey. I would like to try making this for the MiG-21bis but that acft has no Scripts folder and no Macro_sequencies.lua. Should I create a Scripts folder and put my modified (for the MiG-21) Macro_sequencies.lua in that folder?

I do not know. I’d you do find something out that works, it would help quite a lot. 

Link to comment
Share on other sites

  • 3 weeks later...
1 hour ago, Cr33p3r said:

How do you start the autostart process with this lua script?

The normal way autostart is used. Look ingame for your aircrafts Start Procedure keybind. 

Link to comment
Share on other sites

On 7/29/2022 at 1:06 PM, II.JG1_Vonrd said:

I'll give it a shot. I assume that if it screws stuff up I should be able to just delete. If not, a repair should fix it.

Some modules don't have that script like the F-14 Tomcat.  It all depends on who developed it.

I modified the F-16 one so it would turn on my CMS, HMCS and RWR.

Link to comment
Share on other sites

  • 4 months later...

Does anyone know if it's possible to add things like "labels on/off" to the startup script?

I like to fly with labels off, but be able to pop them on if I find it absolutely necessary. If you have labels enabled they default to on, which  means having to toggle them off at the start of every single flight.

Thanks for any clarification or guidance.

CPU:5600X | GPU:RTX2080 | RAM:32GB | Disk:860EVOm.2

Link to comment
Share on other sites

11 minutes ago, wowbagger said:

Does anyone know if it's possible to add things like "labels on/off" to the startup script?

I like to fly with labels off, but be able to pop them on if I find it absolutely necessary. If you have labels enabled they default to on, which  means having to toggle them off at the start of every single flight.

Thanks for any clarification or guidance.

Not to my knowledge. I typically use VoiceAttack for this. 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...