heclak / community-a4e-c

The Community Repo for A-4E-C and its Official Submods
595 stars 87 forks source link

Add an autostart #220

Open asherao opened 4 years ago

asherao commented 4 years ago

Is your feature request related to a problem? Please describe. I'm always frustrated when i can't remember a start procedure.

Describe the solution you'd like Spawn. Press LWin+Home. Plane starts engines. Plane puts all switches in a generic before-takeoff position.

Describe alternatives you've considered Kneeboard start page.

Additional context None.

callmepartario commented 3 years ago

closing this issue for the foreseeable future. use a hot start if you don't want to start the plane, please.

D4n2021 commented 1 year ago

Please reopen, as this mod is on its' way to be added on the most famous servers (recently already added to the most famous cold war server by Enigma, and all aircraft are cold started there) it will become an increasingly requested feature!

asherao commented 1 year ago

I would like this issue to be reopened. Attached is a 90% solution for autostart. It goes in: C:\Users\...\Saved Games\DCS\Mods\aircraft\A-4E-C\Cockpit\Scripts Limitations include:

Macro_sequencies.zip

The other steps required to enable autostart with the A4:

  1. Add iCommandEnginesStart = 309, into the command_defs.lua file.
  2. Add Autostart {combos = {{key = 'Home', reformers = {'LWin'}}}, down = Keys.iCommandEnginesStart, name = _('Auto Start A4-E-C'), category = _('Cheat')}, into Input\keyboard\default.lua
  3. Put Macro_sequencies.lua in Scripts folder.
  4. Add creators[devices.MACROS] = {"avLuaDevice", LockOn_Options.common_script_path .. "Macro_handler.lua", {}, "",} to cockpit/scripts/device_init.lua
  5. Add devices["MACROS"] = counter() to cockpit/scripts/devices.lua.

The sequence currently takes about 2 minutes to complete. This should be adjusted based on the time a player not using autostart would take.

asherao commented 1 year ago

Due to some commitments, I can no longer work on this issue.

D4n2021 commented 1 year ago

Due to some commitments, I can no longer work on this issue.

"work on this issue"? o_O you never said you would work on this! :O And the sequence above is a nice workaround, or isn't it?

FrankyEverest commented 11 months ago

I would like this issue to be reopened. Attached is a 90% solution for autostart. It goes in: C:\Users\...\Saved Games\DCS\Mods\aircraft\A-4E-C\Cockpit\Scripts Limitations include:

  • Ground power is not automatically connected/disconnected (The sequence gives the user time to do it manually, with instructions. The delay is short for testing purposes, connect ground power before using autostart.)
  • Does not sense start RPM levels, therefore does not detect unfavorable/nostart conditions
  • Still work in progress to include code cleanup, action timing, message timing, and setting action verification

Macro_sequencies.zip

The other steps required to enable autostart with the A4:

  1. Add iCommandEnginesStart = 309, into the command_defs.lua file.
  2. Add Autostart {combos = {{key = 'Home', reformers = {'LWin'}}}, down = Keys.iCommandEnginesStart, name = _('Auto Start A4-E-C'), category = _('Cheat')}, into Input\keyboard\default.lua
  3. Put Macro_sequencies.lua in Scripts folder.
  4. Add creators[devices.MACROS] = {"avLuaDevice", LockOn_Options.common_script_path .. "Macro_handler.lua", {}, "",} to cockpit/scripts/device_init.lua
  5. Add devices["MACROS"] = counter() to cockpit/scripts/devices.lua.

The sequence currently takes about 2 minutes to complete. This should be adjusted based on the time a player not using autostart would take.

Adding an AUTOSTART/RAMPSTART feature to this ship is not adding a "CHEAT" to the ship keybinding controls...the feature is, as supplied in many other flight models, an "ASSIST" feature.

Personnaly, I do not buy or fly DCS aircraft that do not supply a rampstart/autostart feature...and I will not start flying this beautiful A-4E-C mod until this ASSIST feature has been added.

While setting ship hot starting in DCS ME is a work around, on many servers this setting is not implemented. Also, last time I checked in a ME mission, hot starting this jet on an carrier did not work...when entering the jet it is always cold.

An ASSIST AutoStart and Shutdown of the jet will bring a lot of new people to flying this sexy jet...guarantied!!!

Another nice feature to add would be rearming the jet without having to shut it down....this saves sooo much time!

Happy holidays.... Regards,