Jump to content

Viggen additional 2/3 position (toggle) switches Mod


funkyfranky
 Share

Recommended Posts

Hi guys,

 

before I really get into flying a new aircraft, I need to have a proper assignment for my HOTAS and my button boxes. So I spent the first few hours with this beauty adding as many two and three position (toggle) switches as I could find in the default.lua and extract from the clickabledata.lua.

 

I have attached a zip file with the updated default.lua and correct directory structure, so it should be JSGME/OvGME ready.

 

Once installed, you will find a new category "_My Buttons" at the very end of the list and can assign buttons of your HOTAS or button boxes to your liking.

 

1369919161__MyButtons.thumb.PNG.5c27e1337aa764fdce58e30251432926.PNG

 

Additionally, the updated default.lua contains standard commands that are presently only accessible via keyboard. I guess that gets fixed by LNS soon, but could be handy in the meantime.

Some axes for the cockpit lights were also added. They work well but it is best to assign a user defined curve as depicted in the image.

 

Axis_User_Curve.thumb.PNG.4f71cbdb33f53fcf8e5a89f4698c1b8f.PNG

 

Please, let me know in case I missed anything! Also mind you, that LNS is still working on all this. So some parts might change already with the next update. I will, however, try to keep track and update the files.

 

Hope this helps and saves a bit of your time :)

 

Changelog:

  • v1.2 (15/11/2017) Compatibility with latest DCS patch 10/11/2017. Added contributions from Home Fries and LeCuvier.
  • v1.1 (05/08/2017) Compatibility with 2.1.1U1. Added data cartridge selection (changed default modifier for down because of conflict to IR-missile uncage as suggested by Holton). Added obstacle avoidance mode On/Off as suggested by Home Fries. Added High-pressure Fuel Valve Off/Idle.
  • v1.0 (08/07/2017) Compatibility with DCS 1.57 and 2.11. Use v0.9 for older DCS versions.
  • v0.9 (13/05/2017) Included changes of the last DCS update. Fixes: Added new CW/CCW buttons also to joystick.lua. Added LShift modifier to CCW weapon selector default assignment because of conflict to parking brake.
  • v0.8 (14/04/2017) Added ground crew commands to joystick lua by dannyq8
  • v0.7 (02/04/2017) This version is uses the DCS 1.5.6 open beta and 2.0.5 default.lua
  • v0.6 (25/02/2017) Added individual states for rotary dials (weapon selector, sight selector, data panel mode selector, anti jamming mode selector).
  • v0.5 (10/02/2017) Added Autopilot SPAK/ATT/HÖJD. Added Canopy Jettison.
  • v0.4 (03/02/2017) Update for today's DCS 1.5.6 patch. Added some RWR and CM switches.
  • v0.3 (29/01/2017) Fixed bug that buttons of CK-37 stay depressed when using keyboard or HOTAS commands as suggested by Rlaxoxo here. Added missing commands for Waypoint BX, Button LS, Button L MÅL.
  • v0.2 (29/01/2017) Added T1/T0 and TV/T0 switches for two stage triggers.

 

PS: For completeness, here is the code for the additional switches:

-- flight data unit
{down = 3200, up = 3200, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 0.0, name = 'HÖJD CISI LD/RHM (toggle)', category = '_My Buttons'}, --working, toggle only
{down = 3201, up = 3201, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 0.0, name = 'Slav SI Switch F/T (toggle)', category = '_My Buttons'}, --working, toggle only
{down = 3210, up = 3210, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 0.0, name = 'Pitch Gear Switch Automatic/Landing (toggle)', category = '_My Buttons'}, --working
{down = 3401, up = 3401, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 1.0, name = 'HUD Position Low/High (toggle)', category = '_My Buttons'}, --working, toggle only
{down = 3405, up = 3405, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 0.0, name = 'Ejection Seat Arm/Disarm', category = '_My Buttons'}, --working
{down = 3406, up = 3406, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 0.0, name = 'Canopy Close/Center', category = '_My Buttons'}, --working
{down = 3406, up = 3406, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down =-1.0, value_up = 0.0, name = 'Canopy Open/Center', category = '_My Buttons'}, -- working
{down = 3406, up = 3406, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up =-1.0, name = 'Canopy Close/Open', category = '_My Buttons'}, --working
{down = 3407, up = 3407, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 0.0, name = 'Canopy Jettison', category = '_My Buttons'}, --added v0.5
{down = 3408, up = 3408, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 0.0, name = 'Parking Brake On/Off', category = '_My Buttons'}, --working
{down = 3511, up = 3511, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 1.0, name = 'TILS Channel Layer Selection 1-10/11-20 (toggle)', category = _('_My Buttons')}, --working, toggle only
{down = 3601, up = 3602, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 1.0, name = 'Airbrake Out/In', category = '_My Buttons'}, --working
{down = 3718, up = 3718, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 0.0, name = 'Oxygen Lever On/Off', category = '_My Buttons'}, --working
{down = 3719, up = 3719, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 0.0, value_up = 1.0, name = 'Landing Gear Lever Up/Down', category = _('_My Buttons')}, --working
{down = 3723, up = 3723, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 0.0, name = 'Landing Gear Lever Up/Down (toggle)', category = _('_My Buttons')}, --working
{down = 3301, up = 3302, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 1.0, name = 'Autopilot SPAK/ATT', category = '_My Buttons'}, --added v0.5
{down = 3303, up = 3302, cockpit_device_id = devices.FLIGHTDATAUNIT, value_down = 1.0, value_up = 1.0, name = 'Autopilot HÖJD/ATT', category = '_My Buttons'}, --added v0.5
-- engine panel
{down = 3001, up = 3001, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = "System Start Switch On/Off", category = "_My Buttons"}, --working
{down = 3002, up = 3002, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'Low-pressure Fuel Valve On/Off', category = '_My Buttons'}, --working
{down = 3003, up = 3003, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'Ignition System Man/Aut', category = '_My Buttons'}, --working
{down = 3004, up = 3004, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'Återstart (Restart) Switch On/Off', category = '_My Buttons'}, --added v0.6
{down = 3005, up = 3005, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 1.0, name = "High-pressure Fuel Valve On/Off (toggle)", category = "_My Buttons"}, --working, toggle only
{down = 3006, up = 3006, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = "Manual Afterburner Fuel Regulator On/Off (toggle)", category = "_My Buttons"}, --working
{down = 3007, up = 3007, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = "Manual Fuel Regulator On/Off (toggle)", category = "_My Buttons"}, --working
{down = 3008, up = 3008, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = "Engine De-Ice On/Off (toggle)", category = "_My Buttons"}, --working, toggle only
{down = 3304, up = 3304, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'Autopilot Autothrottle mode AFK', category = '_My Buttons'}, --working
{down = 3913, up = 3913, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'Autopilot Maintenance Testing Mode On/Off', category = '_My Buttons'}, --added v0.6
{down = 3919, up = 3919, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'DME Selector On/Off', category = '_My Buttons'}, --working
{down = 3920, up = 3920, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'IFF/Transponder Power On/Off', category = '_My Buttons'}, --working
{down = 3921, up = 3921, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'IFF Channel Selector A+C/A', category = '_My Buttons'}, --working
{down = 3924, up = 3924, cockpit_device_id = devices.ENGINEPANEL, value_down = 0.0, value_up = 1.0, name = 'Flight Recorder Till/Fran', category = '_My Buttons'}, --working
{down = 3924, up = 3924, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'Flight Recorder Fran/Till', category = '_My Buttons'}, --working
{down = 3925, up = 3925, cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0, value_up = 0.0, name = 'Data Cartridge Insert/Remove', category = '_My Buttons'}, --working
{down = 3925,            cockpit_device_id = devices.ENGINEPANEL, value_down = 1.0,                 name = 'Data Cartridge Insert', category = '_My Buttons'}, --added v0.6
{down = 3925,            cockpit_device_id = devices.ENGINEPANEL, value_down = 0.0,                 name = 'Data Cartridge Remove', category = '_My Buttons'}, --added v0.6
-- lights
{down = 3001, up = 3001, cockpit_device_id = devices.LIGHTS, value_down = 1.0, value_up = 0.0, name = 'Anti Collision Lights On/Off', category = '_My Buttons'}, --working
{down = 3002, up = 3002, cockpit_device_id = devices.LIGHTS, value_down = 1.0, value_up = 0.0, name = 'Navigation Lights Bright/Off', category = '_My Buttons'}, --working
{down = 3002, up = 3002, cockpit_device_id = devices.LIGHTS, value_down =-2.0, value_up = 0.0, name = 'Navigation Lights Dim/Off', category = '_My Buttons'}, --working
{down = 3003, up = 3003, cockpit_device_id = devices.LIGHTS, value_down = 1.0, value_up = 0.0, name = 'Formation Lights On/Off', category = '_My Buttons'}, --working
{down = 3004, up = 3004, cockpit_device_id = devices.LIGHTS, value_down = 1.0, value_up = 0.0, name = 'Position Lights On/Off', category = '_My Buttons'}, --working
-- brightness
{down = 3005, up = 3005, cockpit_device_id = devices.LIGHTS, value_down = 0.2, value_up = 0.0, name = 'Position Lights Brightness 3/1', category = '_My Buttons'}, --working
{down = 3005, up = 3005, cockpit_device_id = devices.LIGHTS, value_down = 0.1, value_up = 0.0, name = 'Position Lights Brightness 2/1', category = '_My Buttons'}, --working
{down = 3005, up = 3005, cockpit_device_id = devices.LIGHTS, value_down = 0.2, value_up = 0.1, name = 'Position Lights Brightness 3/2', category = '_My Buttons'}, --working
{down = 3005, up = 3005, cockpit_device_id = devices.LIGHTS, value_down = 0.0, value_up = 0.1, name = 'Position Lights Brightness 1/2', category = '_My Buttons'}, --working
{down = 3009, up = 3009, cockpit_device_id = devices.LIGHTS, value_down = 1.0, value_up = 0.0, name = 'Taxi/Landing Lights Switch On/Off', category = '_My Buttons'}, --working
{down = 3010, up = 3010, cockpit_device_id = devices.LIGHTS, value_down = 1.0, value_up = 0.0, name = 'Emergency Lights Switch On/Off', category = '_My Buttons'}, --working
-- device "7"
{down = 3001, up = 3001, cockpit_device_id = 7, value_down = 1.0, value_up = 0.0, name = 'Thrust Reverser On/Off', category = '_My Buttons'}, --working
-- electrical system
{down = 3001, up = 3001, cockpit_device_id = devices.ELECTRICSYSTEM, value_down = 1.0, value_up = 0.0, name = 'Main Electric Power On/Off', category = '_My Buttons'}, --working
{down = 3002, up = 3002, cockpit_device_id = devices.ELECTRICSYSTEM, value_down = 1.0, value_up = 0.0, name = 'Generator On/Off', category = '_My Buttons'}, --working
{down = 3003, up = 3003, cockpit_device_id = devices.ELECTRICSYSTEM, value_down = 1.0, value_up = 0.0, name = 'Backup Generator On/Off', category = '_My Buttons'}, --working
-- radar altimeter
{down = 3002, up = 3002, cockpit_device_id = devices.RADARALT, value_down = 1.0, value_up = 0.0, name = 'Radar Altimeter Power On/Off (toggle)', category = '_My Buttons'}, --working
-- weapon system
{down = 3306, up = 3306, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, value_up = 1.0, name = 'Weapon Release Mode Fallsattomkopplare Up/Down', category = '_My Buttons'}, --working
{down = 3307, up = 3307, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, value_up = 1.0, name = 'RB-04/RB-15/BK Release Mode Valb/Prep', category = '_My Buttons'}, --working
{down = 3304,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0,                 name = "Weapon Selector 0 SJÖ/PLAN", category = "_My Buttons"}, -- added v0.6
{down = 3304,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.1,                 name = "Weapon Selector 1 RB75/MARK/DYK", category = "_My Buttons"}, -- added v0.6
{down = 3304,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.2,                 name = "Weapon Selector 2 LUFT/RR", category = "_My Buttons"}, -- added v0.6
{down = 3304,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.3,                 name = "Weapon Selector 3 AKAN/JAKT", category = "_My Buttons"}, -- added v0.6
{down = 3304,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.4,                 name = "Weapon Selector 4 ATTACK", category = "_My Buttons"}, -- added v0.6
{down = 3304,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.5,                 name = "Weapon Selector 5 IR-RB", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 1.0,                 name = "Weapon Interval 00 VÄ", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.9,                 name = "Weapon Interval 01 RAKT", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.8,                 name = "Weapon Interval 02 HÖ", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.7,                 name = "Weapon Interval 03 10m", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.6,                 name = "Weapon Interval 04 15m", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.5,                 name = "Weapon Interval 05 20m", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.4,                 name = "Weapon Interval 06 25m", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.3,                 name = "Weapon Interval 07 30m", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.2,                 name = "Weapon Interval 08 40m", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.1,                 name = "Weapon Interval 09 50m", category = "_My Buttons"}, -- added v0.6
{down = 3305,            cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0,                 name = "Weapon Interval 10 60m", category = "_My Buttons"}, -- added v0.6
-- radios
{down = 3008, up = 3008, cockpit_device_id = devices.TESTRADIO2, value_down = 1.0, value_up = 1.0, name = 'FR22 Radio AM/FM (toggle)', category = '_My Buttons'}, --working, toggle only
-- walkman
{down=3001, up = 3002, cockpit_device_id=devices.WALKMAN, value_down=1.0, value_up = 1.0, name='Walkman Play/Stop',category='_My Buttons'}, --working
-- radar
{down = 3208,            cockpit_device_id = devices.RADAR, value_down = 0.0,                 name = "Anti Jamming Mode (AS) Selector 0", category = "_My Buttons"}, -- added v0.6
{down = 3208,            cockpit_device_id = devices.RADAR, value_down = 0.1,                 name = "Anti Jamming Mode (AS) Selector 1", category = "_My Buttons"}, -- added v0.6
{down = 3208,            cockpit_device_id = devices.RADAR, value_down = 0.2,                 name = "Anti Jamming Mode (AS) Selector 2", category = "_My Buttons"}, -- added v0.6
{down = 3208,            cockpit_device_id = devices.RADAR, value_down = 0.3,                 name = "Anti Jamming Mode (AS) Selector 3", category = "_My Buttons"}, -- added v0.6
{down = 3208,            cockpit_device_id = devices.RADAR, value_down = 0.4,                 name = "Anti Jamming Mode (AS) Selector 4", category = "_My Buttons"}, -- added v0.6
{down = 3208,            cockpit_device_id = devices.RADAR, value_down = 0.5,                 name = "Anti Jamming Mode (AS) Selector 5", category = "_My Buttons"}, -- added v0.6
{down = 3208,            cockpit_device_id = devices.RADAR, value_down = 0.6,                 name = "Anti Jamming Mode (AS) Selector 6", category = "_My Buttons"}, -- added v0.6
{down = 3208,            cockpit_device_id = devices.RADAR, value_down = 0.7,                 name = "Anti Jamming Mode (AS) Selector 7", category = "_My Buttons"}, -- added v0.6
{down = 3209, up = 3209, cockpit_device_id = devices.RADAR, value_down = 1.0, value_up = 0.0, name = "Radar Gain Log/Lin", category = "_My Buttons"}, --working
{down = 3209, up = 3209, cockpit_device_id = devices.RADAR, value_down = 0.0, value_up = 1.0, name = "Radar Gain Lin/Log", category = "_My Buttons"}, --working
{down = 3328, up = 3328, cockpit_device_id = devices.RADAR, value_down = 0.0, value_up = 1.0, name = "Radar Pulse Normal/Short", category = "_My Buttons"}, --working
{down = 3350, up = 3350, cockpit_device_id = devices.RADAR, value_down = 1.0, value_up = 0.0, name = "Radar Passive Recce On/Off", category = "_My Buttons"}, --working
{down = 3914, up = 3914, cockpit_device_id = devices.RADAR, value_down = 1.0, value_up = 0.0, name = "Radar/EL Maintenance Test On/Off", category = "_My Buttons"}, --working
{down = 3918, up = 3918, cockpit_device_id = devices.RADAR, value_down = 1.0, value_up = 0.0, name = "Radar Ignition Coils On/Off", category = "_My Buttons"}, --working
-- doppler
{down = 3001, up = 3001, cockpit_device_id = devices.DOPPLER, value_down = 1.0, value_up = 1.0, name = "Doppler Mode Land/Sea (toggle)", category = "_My Buttons"}, --working, toggle only
-- navigation panel
{down = 3008, up = 3008, cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 1.0, value_up = 0.0, name = "Datapanel Switch In/out", category = "_My Buttons"}, --working
{down = 3008,            cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 1.0,                 name = "Datapanel Switch Input", category = "_My Buttons"}, --added v0.4
{down = 3008,            cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 0.0,                 name = "Datapanel Switch Output", category = "_My Buttons"}, --added v0.4
{down = 3006, up = 3005, cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 1.0, value_up = 1.0, name = "Radar T1/T0 Fix (first detent)", category = "_My Buttons"}, -- added v0.2
{down = 3007, up = 3005, cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 1.0, value_up = 1.0, name = "Radar TV/T0 Fix (second detent)", category = "_My Buttons"}, -- added v0.2
{down = 3009,            cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 0.0,                 name = "Datapanel 0 ID-NR", category = "_My Buttons"}, -- added v0.6
{down = 3009,            cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 0.1,                 name = "Datapanel 1 TAKT", category = "_My Buttons"}, -- added v0.6
{down = 3009,            cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 0.2,                 name = "Datapanel 2 TID", category = "_My Buttons"}, -- added v0.6
{down = 3009,            cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 0.3,                 name = "Datapanel 3 VIND/RUTA/MAL", category = "_My Buttons"}, -- added v0.6
{down = 3009,            cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 0.4,                 name = "Datapanel 4 BANA/GRANS", category = "_My Buttons"}, -- added v0.6
{down = 3009,            cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 0.5,                 name = "Datapanel 5 REF/LOLA", category = "_My Buttons"}, -- added v0.6
{down = 3009,            cockpit_device_id = devices.NAVIGATIONPANEL, value_down = 0.6,                 name = "Datapanel 6 AKT/POS", category = "_My Buttons"}, -- added v0.6
-- RWR
{down = 3001, up = 3002, cockpit_device_id = devices.RWR, value_down = 1.0, value_up = 1.0,  name = 'RWR KB Off/Lights', category = '_My Buttons'}, --added v0.4
{down = 3003, up = 3002, cockpit_device_id = devices.RWR, value_down = 1.0, value_up = 1.0,  name = 'RWR KB Lights+Sound/Lights', category = '_My Buttons'}, --added v0.4
-- countermeasures
{down = 3003, up = 3004, cockpit_device_id = devices.COUNTERMEASURE, value_down = 1.0, value_up = 1.0, name = 'Countermeasure dispense Int/Off', category = '_My Buttons'}, --added v0.4
{down = 3002, up = 3004, cockpit_device_id = devices.COUNTERMEASURE, value_down = 1.0, value_up = 1.0, name = 'Countermeasure dispense Kont/Off', category = '_My Buttons'}, --added v0.4
{down = 3010, up = 3010, cockpit_device_id = devices.COUNTERMEASURE, value_down = 1.0, value_up = 0.0, name = 'Countermeasure KB Stråk Mod 4/0', category = '_My Buttons'}, --added v0.4
{down = 3028, up = 3028, cockpit_device_id = devices.COUNTERMEASURE, value_down = 0.0, value_up = 0.1, name = 'Countermeasure Chaff/Flares Selector R/RF', category = '_My Buttons'}, --added v0.4
{down = 3028, up = 3028, cockpit_device_id = devices.COUNTERMEASURE, value_down = 0.2, value_up = 0.1, name = 'Countermeasure Chaff/Flares Selector F/RF', category = '_My Buttons'}, --added v0.4
-- begin added missing buttons
{down = 3008, up = 3008, cockpit_device_id = devices.NAVIGATION, value_down = 1.0, value_up = 0.0, name = "Navigationpanel Button L MÅL", category = "Navigation"}, --added v0.4
{down = 3009, up = 3009, cockpit_device_id = devices.NAVIGATION, value_down = 1.0, value_up = 0.0, name = "Navigationpanel Button LS", category = "Navigation"}, --added v0.4
{down = 3010, up = 3010, cockpit_device_id = devices.NAVIGATION, value_down = 1.0, value_up = 0.0, name = "Navigationpanel Waypoint BX", category = "Navigation"}, --added v0.4
-- end added missing buttons

_My Buttons AJS-37 Viggen v1.2.zip


Edited by funkyfranky
Uploaded version 1.2
  • Like 13
  • Thanks 1

A warrior's mission is to foster the success of others.

i9-9900K | MSI RTX 3080Ti Suprim X | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

This mod is the best thing since the Viggen was conceived! Thank you good sir! Rep. inbound.

Thanks for the kind words, Jan :)

One thing to add could be a dual stage trigger for T0-T1-TV where releasing the trigger (for the Warthog) reverts back to T0. Again, great work!

There is by default a three position switch for these modes implemented in the Radar category, i.e. "T0 Fix (three position switch)" and "TV Fix (Three position switch)". Is this maybe already what you are looking for?

 

I have not had much time to actually fly the aircraft and see what switches will be handy in practice. But for T0-T1-TV, I saw Bunyap using it in one of his videos and it seemed to work nicely with his Warthog and the two detentes of the trigger button. Anyway, let me know if you need a different setting!

A warrior's mission is to foster the success of others.

i9-9900K | MSI RTX 3080Ti Suprim X | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Thanks for the kind words, Jan :)

 

There is by default a three position switch for these modes implemented in the Radar category, i.e. "T0 Fix (three position switch)" and "TV Fix (Three position switch)". Is this maybe already what you are looking for?

 

I have not had much time to actually fly the aircraft and see what switches will be handy in practice. But for T0-T1-TV, I saw Bunyap using it in one of his videos and it seemed to work nicely with his Warthog and the two detentes of the trigger button. Anyway, let me know if you need a different setting!

 

There is a keybind made for it, but it doesn't work properly with how the dual stage trigger is configured. Currently it's configured for a "normal" 3-way switch (ON-OFF-ON) which translates into T0-T1-TV. That works great if you use something like the boat switch. If one would like to use it with the dual stage trigger on the warthog however the configuration of it is (OFF-ON-ON), so the code doesn't work properly for it. There are workarounds, but I would like the state to revert to T0 when the trigger is released from T1. Currently it sticks in T1 when the trigger is released.

 

I hope this rant makes sense to you. I think it will once you start flying the plane. :)

 

Once again, great work!

Link to comment
Share on other sites

Yes, I just saw the problem in another thread. I added two lines to the code for first and second detent. It always falls back to T0 that way. Hope this is how it makes most sense. Let me know if not ;)

A warrior's mission is to foster the success of others.

i9-9900K | MSI RTX 3080Ti Suprim X | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

I have uploaded a new version (v0.3). This fixes the issue that buttons on the CK-37 panels stay depressed when clicked by keyboard or HOTAS commands. It is based on a fix suggested by Rlaxoxo in this post.

 

Also added missing commands for Waypoint BX and the LS and L MÅL buttons in the "Navigation" category.

 

Note that none of this affects the buttons in the "_My Button" category.

A warrior's mission is to foster the success of others.

i9-9900K | MSI RTX 3080Ti Suprim X | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Uploaded new version 0.4 with changes of today's 1.5.6 patch. Also include some new RWR and CM switches.

A warrior's mission is to foster the success of others.

i9-9900K | MSI RTX 3080Ti Suprim X | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Thank you funkyfranky :)

- Jack of many DCS modules, master of none.

- Personal wishlist: F-15A, F-4S Phantom II, JAS 39A Gripen, SAAB 35 Draken, F-104 Starfighter, Panavia Tornado IDS.

 

| MSI Z87-G45 Gaming | i5-4670K @ 4.3Ghz | 32Gb DDR3 1600 | Asus GTX 1070 Strix OC | Samsung 850 Evo 250 & 500Gb | 40" Sony FullHD | Oculus Rift CV1 | Thrustmaster Warthog Stick (19.5cm extension) & Throttle | MFG Crosswind | Windows 10 |

Link to comment
Share on other sites

Awesome, thanks Franky.

 

Is there any way to add a 3-way toggle for the autopilot? For instance the AP switch on the Warthog hotas has 3 positions. Down could be off, middle could be attitude hold and up altitude hold.

  • Like 1
Spoiler

W10-x64 | Z390 Gigabyte Aorus Ultra | Core i7 9700K @ 4.8Ghz | Noctua NH-D15

Corsair 32Gb 3200 | MSI RTX 3080ti Gaming X

Asus Xonar AE | TM Hotas Warthog

MFG Crosswind pedals | Valve Index

 

Link to comment
Share on other sites

Awesome, thanks Franky.

 

Is there any way to add a 3-way toggle for the autopilot? For instance the AP switch on the Warthog hotas has 3 positions. Down could be off, middle could be attitude hold and up altitude hold.

 

That is a great idea! I have been using the same switch but flicking it down and back to center to engage/disengage attitude hold and up and back to center to engage/disengage altitude hold.

 

Your idea is a lot better though. :) I am confident Franky can pull this off, since he so far has answered pretty much all of my prayers when it comes to Viggen keybinds.

Link to comment
Share on other sites

Hi Mud & Jan, good idea with the autopilot. I'll include it in the next update (probably on Saturday) :)

You really want "OFF/ATT/HÖJD" or better "SPAK/ATT/HÖJD"? (Guess I can include both versions anyway...)

A warrior's mission is to foster the success of others.

i9-9900K | MSI RTX 3080Ti Suprim X | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Yeah, SPAK/ATT/HÖJD !

 

With off I meant SPAK :D

Spoiler

W10-x64 | Z390 Gigabyte Aorus Ultra | Core i7 9700K @ 4.8Ghz | Noctua NH-D15

Corsair 32Gb 3200 | MSI RTX 3080ti Gaming X

Asus Xonar AE | TM Hotas Warthog

MFG Crosswind pedals | Valve Index

 

Link to comment
Share on other sites

Alright, I uploaded a new version with the autopilot stuff included. However, it does not not quite behave as we wanted it to.

 

When all three lights are on and you move the switch from up to middle position, two lights go out, i.e. only SPAK remains on. This is actually the same as when all three lights are on and you click HÖJD or ATT with the mouse when all three are on. Then also two lights go out and the system returns to SPAK. Not sure if this is the way it behaves in RL?

 

You then need to move the switch completely down (still one light) and can move it up again to the middle position (two lights) and up position (three lights). In that direction it works nicely :)

 

Sorry, not ideal, but the best I could do for now.

A warrior's mission is to foster the success of others.

i9-9900K | MSI RTX 3080Ti Suprim X | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

Thanks for the effort, Funky!

 

I'm absolutely loving the Viggen at the moment.

Spoiler

W10-x64 | Z390 Gigabyte Aorus Ultra | Core i7 9700K @ 4.8Ghz | Noctua NH-D15

Corsair 32Gb 3200 | MSI RTX 3080ti Gaming X

Asus Xonar AE | TM Hotas Warthog

MFG Crosswind pedals | Valve Index

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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