demoteam44 Posted June 7, 2018 Posted June 7, 2018 I'm currently trying to figure out how to edit the F-18's default.lau file so that I can have say the APU switch on my Warthog HOTAS work with the landing gear. As of now I can only get the switch to work by clicking the switch twice as opposed to the switch matching the landing gear lever. Such as switch FWD, gear up, switch AFT gear down. I've added this line: { down = iCommandPlaneGear, up = iCommandPlaneGear, value_down = 1.0, value_up = 0.0, name = _('Alternate Gear Up') category = _('Systems')}, and I'm not even seeing the new control in the menu. Any help would be really appreciated! Thanks
demoteam44 Posted June 7, 2018 Author Posted June 7, 2018 (edited) It was yes, but after scrolling through and finding the "Special HOTAS" section I'm now trying this line { down = ctrl_commands.GearSw, up = ctrl_commands.GearSw, cockpit_device_id = devices.CONTROL_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Alternate Landing Gear'), I've managed to get the control listing into the menu, but i'm having a hard time finding how to actually bind the "new control" to the actual gear lever. If that makes any sense? Edited June 7, 2018 by demoteam44
demoteam44 Posted June 7, 2018 Author Posted June 7, 2018 I really apprecite the help! So thank you! I'm totally clueless when it comes to reading code. I managed to get gear lever to work with this: { down = iCommandPlaneGear, up = iCommandPlaneGear, cockpit_device_id = devices.CONTROL_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Alternate Landing Gear'), Now using the file you pointed me to I'm trying to get the Hook Handle to work with this: { down = ctrl_commands.HookHandle, up = ctrl_commands.HookHandle, cockpit_device_id = devices.CONTROL_INTERFACE, value_down = 0.0, value_up = 1.0, name = _('Alternate Hook Handle'), category = {_('Special For Joystick'), _('Right Vertical Panel')}}, and not getting a thing. I'm only guessing im sooo close? lmao
demoteam44 Posted June 7, 2018 Author Posted June 7, 2018 Perfect! It worked! So how do I figure out the "Up" "Down" system? No matter what I try with the 0's and 1's, It always seems to be the opposite, unless I click the gear handle in game to "sync" the switch to handle.
demoteam44 Posted June 7, 2018 Author Posted June 7, 2018 I manged to get most of the switches I needed done except for the APU and Launch Bar. { down = gear_commands.LaunchBarSw, up = gear_commands.LaunchBarSw, cockpit_device_id = devices.GEAR_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Alternate LaunchBar'), category = {_('Special For Joystick'), _('Right Vertical Panel')}}, thats the code I put in reference to: elements["pnt_233"] = default_button2(_("Launch Bar Control Switch, EXTEND/RETRACT"), devices.GEAR_INTERFACE, gear_commands.LaunchBarSw, 233, anim_speed_default) They do not show up in the controls list the only thing I can think of is that both move by themselves at some point. I.E APU shuts off after a certain time, and launch bar goes up after carrier launch. Any ideas?
mx22 Posted June 7, 2018 Posted June 7, 2018 Here are my commands for gear and hook. Gear, 2 way switch, down - gear down, up - gear up: { down = gear_commands.GearHandle, up = gear_commands.GearHandle, cockpit_device_id = devices.GEAR_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Landing Gear Control Handle - 2 POS'), category = {_('Special For Joystick'), _('Left Vertical Panel')}}, Arresting Hook, 2 way switch, down - hook down, up - hook up: { down = gear_commands.HookHandle, up = gear_commands.HookHandle, cockpit_device_id = devices.GEAR_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Arresting Hook Handle - 2 POS'), category = {_('Special For Joystick'), _('Right Vertical Panel')}}, Just keep in mind that unless you have 'Synchronize cockpit controls with HOTAS...' option checked, I don't think first click on the switch will work. So, for example, to get gear down, the first time around you would need to cycle it once up and down before it starts working.
demoteam44 Posted June 8, 2018 Author Posted June 8, 2018 Awesome! Aside from those two switches I'm all set up! Thanks guys, happy flying!
Recommended Posts