RazorbackNL Posted October 13 Posted October 13 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 October 16 Author Posted October 16 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 October 16 Posted October 16 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 October 16 Author Posted October 16 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 October 17 Posted October 17 (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 October 17 by flanker0ne SCOPRI DI PIU': https://www.amvi.it/joinus.php DISCORD COMBINEDOPS The Battle Planning Tool
flanker0ne Posted October 18 Posted October 18 (edited) I found the time to check what you asked. The files I suggested are related to mouse interactions, and after some check the intercom knob work as it should Those interaction use "Button_8" of the Device The "Button_12" looks like a special button, created in the DLL to be limited (sadly) to one direction Edited October 18 by flanker0ne 1 SCOPRI DI PIU': https://www.amvi.it/joinus.php DISCORD COMBINEDOPS The Battle Planning Tool
RazorbackNL Posted October 18 Author Posted October 18 3 hours ago, flanker0ne said: I found the time to check what you asked. The "Button_12" looks like a special button, created in the DLL to be limited (sadly) in one direction Thank you for taking time to dig a little bit deeper, flankerone. Too bad the limitation is hardcoded into the module. Appreciate your effort trying to get it sorted. 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
Recommended Posts