RazorbackNL Posted Monday at 08:20 AM Posted Monday at 08:20 AM I would like to request some help with this thing I've got. I want to make the Intercom Mode Selector knob also be able to turn to the left (ccw). What I did so far: I have copied 2 original lines in below mentioned default.lua files and changed the target line to a negative value_down. DCS OpenBeta\Mods\aircraft\Uh-1H\Input joystick - default.lua {down = device_commands.Button_12,cockpit_device_id = devices.INTERCOM, value_down = 1.0, name = _('Intercom Mode Selector (cw rotary)'), category = _("Intercom Control Panel")}, {down = device_commands.Button_12,cockpit_device_id = devices.INTERCOM, value_down = -1.0, name = _('Intercom Mode Selector (ccw rotary)'), category = _("Intercom Control Panel")}, keyboard - default.lua {combos = {{key = 'Q', reformers = {'RCtrl','RShift'}}},down = device_commands.Button_12,cockpit_device_id = devices.INTERCOM, value_down = 1.0, name = _('Intercom Mode Selector (cw rotary)'), category = _("Intercom Control Panel")}, {combos = {{key = '', reformers = {''}}},down = device_commands.Button_12,cockpit_device_id = devices.INTERCOM, value_down = -1.0, name = _('Intercom Mode Selector (ccw rotary)'), category = _("Intercom Control Panel")}, Ingame I am able to assign a button to the new command Intercom Mode Selector (ccw rotary) but the knob still turns only to the right. I must be missing something. Can someone please have a look? Thanks in advance. Asus ROG Crosshair VIII Hero (Wi-Fi) ★ AMD Ryzen 9 5900X @ 4,5Ghz ★ 128Gb DDR4 3200Mhz ★ beQuiet! Dark Power 12 1200W ★ 2 x 2Tb M.2 Samsung SSD ★ 2 x 4Tb M.2 Samsung SSD ★ Aorus RTX3090 Xtreme 24Gb ★ Windows 11 Pro x64 ★ HOTAS Cougar (heavily modified) ★ MFG Crosswind pedals ★ CH Throttle Quadrant ★ TrackIR5 ★ Oculus Quest 2 ★ VoiceAttack Aviate Navigate Communicate
RazorbackNL Posted 11 hours ago Author Posted 11 hours ago Bumping this post. Please, anyone? I am completely in the dark here. 1 Asus ROG Crosshair VIII Hero (Wi-Fi) ★ AMD Ryzen 9 5900X @ 4,5Ghz ★ 128Gb DDR4 3200Mhz ★ beQuiet! Dark Power 12 1200W ★ 2 x 2Tb M.2 Samsung SSD ★ 2 x 4Tb M.2 Samsung SSD ★ Aorus RTX3090 Xtreme 24Gb ★ Windows 11 Pro x64 ★ HOTAS Cougar (heavily modified) ★ MFG Crosswind pedals ★ CH Throttle Quadrant ★ TrackIR5 ★ Oculus Quest 2 ★ VoiceAttack Aviate Navigate Communicate
flanker0ne Posted 11 hours ago Posted 11 hours ago Check files Clickabledata.lua and Clickable_def.lua SCOPRI DI PIU': https://www.amvi.it/joinus.php DISCORD COMBINEDOPS The Battle Planning Tool
RazorbackNL Posted 1 hour ago Author Posted 1 hour ago 8 hours ago, flanker0ne said: Check files Clickabledata.lua and Clickable_def.lua I have found: DCS World OpenBeta\Mods\aircraft\Uh-1H\Cockpit\Scripts\clickabledata.lua lines 197 to 217: function multiposition_switch_limited(hint_,device_,command_,arg_,count_,delta_,min_,attach_left_,attach_right_)--.Button_8,30,6,0.1,0.0,-1) local min_ = min_ or 0 local delta_ = delta_ or 0.5 return { class = {class_type.TUMB,class_type.TUMB}, hint = hint_, device = device_, action = {command_,command_}, arg = {arg_,arg_}, arg_value = {-delta_,delta_}, arg_lim = {{min_, min_ + delta_ * (count_ -1)}, {min_, min_ + delta_ * (count_ -1)}}, updatable = true, use_OBB = true, cycle = false, class_vr = {class_type.MULTY_TUMB, class_type.MULTY_TUMB}, side = {{},{BOX_SIDE_X_top, BOX_SIDE_X_bottom, BOX_SIDE_Z_top, BOX_SIDE_Z_bottom}}, attach_left = attach_left_ or nil, attach_right = attach_right_ or nil, } end lines 634 and 635: elements["TRANSMIT-INTERPHONE-SWITCH-PTR"] = multiposition_switch_limited(_("Intercom Mode (PVT - hot line; INT - interphone; 1 - VHF FM transmitter; 2 - UHF transmitter; 3 - VHF AM transmitter; 4 - Not used)"),devices.INTERCOM,device_commands.Button_8,30,6,0.1,0.0, {0,120}, {0,60}) elements["TRANSMIT-INTERPHONE-SWITCH-PTR"].turn_box = {180,0,0} Can you see the part which I might be needing to change? I can't find the file Clickable_def.lua. Can you tell me where it should be located? Thanks in advance Asus ROG Crosshair VIII Hero (Wi-Fi) ★ AMD Ryzen 9 5900X @ 4,5Ghz ★ 128Gb DDR4 3200Mhz ★ beQuiet! Dark Power 12 1200W ★ 2 x 2Tb M.2 Samsung SSD ★ 2 x 4Tb M.2 Samsung SSD ★ Aorus RTX3090 Xtreme 24Gb ★ Windows 11 Pro x64 ★ HOTAS Cougar (heavily modified) ★ MFG Crosswind pedals ★ CH Throttle Quadrant ★ TrackIR5 ★ Oculus Quest 2 ★ VoiceAttack Aviate Navigate Communicate
Recommended Posts