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 yesterday at 09:30 AM Author Posted yesterday at 09:30 AM 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 yesterday at 10:14 AM Posted yesterday at 10:14 AM 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 23 hours ago Author Posted 23 hours 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
flanker0ne Posted 12 hours ago Posted 12 hours ago (edited) The first part is actually the DEFINITION of the implemented COMMAND in the second part Those were splitted in 2 different files in subsequent modules, so you have anything you need Edited 12 hours ago by flanker0ne SCOPRI DI PIU': https://www.amvi.it/joinus.php DISCORD COMBINEDOPS The Battle Planning Tool
Recommended Posts