xTCEAx Rafale Posted April 14, 2020 Posted April 14, 2020 Actually all 3 positions switches inside the f/a-18c pit : so at least 20 pr 30 I suppose (probe, power,...)... All of the on-on-on functions (of course no problem with (on)-off-(on) as they come back to center position). But I think I would just need 1 example : knowing where is the lua I must edit, how can I edit it (which command, which text,..), how can I save the job to avoid it to be erased at each update. And I could do the all job by myself after. So the Probe extend/retract/emerg extract could be a good example.
Raisuli Posted April 14, 2020 Posted April 14, 2020 I counted 21 3PST switches in my pit...and that's not one of them (what are the chances of EVER needing emergency extend? :) ) However, you asked for probe, so probe you get! Will this work? { down = fuel_commands.ProbeControlSw, up = fuel_commands.ProbeControlSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Probe Control Switch - EXTEND/RETRACT'), category = {_('Left Console'), _('Fuel Control Panel')}}, { down = fuel_commands.ProbeControlSw, up = fuel_commands.ProbeControlSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = -1.0, value_up = 0.0, name = _('Probe Control Switch - RETRACT/EMERG EXTD'), category = {_('Left Console'), _('Fuel Control Panel')}},
Rennes Posted April 15, 2020 Posted April 15, 2020 Can I jump in with a related question? I've been doing this for a while for several switches. But I have to redo it after every patch. The file I am putting them in is: D:\Program Files\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\FA-18C\Input\FA-18C\joystick\default.lua Is there a better place for it that doesn't get over written or is that what everyone has to do?
xTCEAx Rafale Posted April 15, 2020 Posted April 15, 2020 (edited) I counted 21 3PST switches in my pit...and that's not one of them (what are the chances of EVER needing emergency extend? :) ) However, you asked for probe, so probe you get! Will this work? { down = fuel_commands.ProbeControlSw, up = fuel_commands.ProbeControlSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Probe Control Switch - EXTEND/RETRACT'), category = {_('Left Console'), _('Fuel Control Panel')}}, { down = fuel_commands.ProbeControlSw, up = fuel_commands.ProbeControlSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = -1.0, value_up = 0.0, name = _('Probe Control Switch - RETRACT/EMERG EXTD'), category = {_('Left Console'), _('Fuel Control Panel')}}, Thanks a lot, I'll try this today (it's still night at the moment in my country). I totally agree about the emerg probe, but I ordered my switches before learning to fly the f/a18. And just by looking the pit from Dcs. I suppose that flaps would have been a much clever choice. Where should I insert this ? Inside the joystick or keyboard lua ? And where inside these files ? But thanks a lot for your help and the time spent, that's very kind of you. Edited April 15, 2020 by xTCEAx Rafale
xTCEAx Rafale Posted April 15, 2020 Posted April 15, 2020 I counted 21 3PST switches in my pit...and that's not one of them (what are the chances of EVER needing emergency extend? :) ) However, you asked for probe, so probe you get! Will this work? { down = fuel_commands.ProbeControlSw, up = fuel_commands.ProbeControlSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Probe Control Switch - EXTEND/RETRACT'), category = {_('Left Console'), _('Fuel Control Panel')}}, { down = fuel_commands.ProbeControlSw, up = fuel_commands.ProbeControlSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = -1.0, value_up = 0.0, name = _('Probe Control Switch - RETRACT/EMERG EXTD'), category = {_('Left Console'), _('Fuel Control Panel')}}, Hello I tried but it unfortunately didn't worked. Where exactly should I put these lines bro ?
Raisuli Posted April 15, 2020 Posted April 15, 2020 Sorry; had to go into the office for a bit and run a couple errands. Look for these lines in ~\DCS World\Mods\aircraft\FA-18C\Input\FA-18C\joystick\default.lua. I'd put them at the end of this set. If I get a chance tonight I'll hook up a SPDT to one of my spare teensys and see if I can get it working labed up here rather than doing this the hard way, which is "try this" and "do that" with you in CET and me most of a day behind. -- Fuel Control Panel { down = fuel_commands.ProbeControlSw_EXT, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 1.0, name = _('Probe Control Switch - Up'), category = {_('Left Console'), _('Fuel Control Panel')}}, { down = fuel_commands.ProbeControlSw_EXT, cockpit_device_id = devices.FUEL_INTERFACE, value_down = -1.0, name = _('Probe Control Switch - Down'), category = {_('Left Console'), _('Fuel Control Panel')}}, { down = fuel_commands.ProbeControlSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 1.0, name = _('Probe Control Switch - EXTEND'), category = {_('Left Console'), _('Fuel Control Panel')}}, { down = fuel_commands.ProbeControlSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.0, name = _('Probe Control Switch - RETRACT'), category = {_('Left Console'), _('Fuel Control Panel')}}, { down = fuel_commands.ProbeControlSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = -1.0, name = _('Probe Control Switch - EMERG EXTD'), category = {_('Left Console'), _('Fuel Control Panel')}},
xTCEAx Rafale Posted April 15, 2020 Posted April 15, 2020 Hello Don't worry ! It seems that the problem was about my cards. I'm not running leobodnar ou things like that but Pokeys. They act like a keyboard. And when using the "special 3-2 pos for game controller" it seems to work if I register my Pokey card's entry as a joystick button. I just discovered it. So I'll make more investigations tomorrow :)
Raisuli Posted April 15, 2020 Posted April 15, 2020 Well...POO! I don't have a spare teensy put together. I remember needing one for the last 6 analog axis, and I'll bet that's where it went. My hobby desk has my dad's F-22 model on it (airbrush problems have put that on hold) and shooting season starts once it warms up and stops snowing; want steel challenge PCC Grand Master this year (already have RFRO GM, but only Master in PCC), need to get the STI cleaned and ready for the season...might be a while before I get the electronics out again.
Recommended Posts