Jump to content

Recommended Posts

Posted

The elevator and aileron are fine but the rudder is much too fast for me. I guess they've coded it this way to quickly trim out the huge torque when you go flat out.

Is there an .lua edit that will dial it back a touch?

Posted

Modify the following file:
Mods\aircraft\P-47D-30\Input\P-47D-30\joystick\default.lua

I did it myself as a mod which I enable and disable using ovgme.

Look for the lines I added with "slow".  I did only do my own for pitch and roll though.  But it should be clear enough 🙂

 

-- Port Wall - Trim Control Box ------------------------------------------------------------
-- Aileron Trim Wheel
{                                                           pressed = device_commands.Button_2, cockpit_device_id = devices.CONTROLS, value_pressed = -1.0, name = _('Trim Aileron Right'),     category = _('Flight Control')},
{                                                           pressed = device_commands.Button_2, cockpit_device_id = devices.CONTROLS, value_pressed = 1.0,  name = _('Trim Aileron Left'),      category = _('Flight Control')},
{                                                           pressed = device_commands.Button_2, cockpit_device_id = devices.CONTROLS, value_pressed = -0.5, name = _('Trim Aileron Right Slow'),     category = _('Flight Control')},
{                                                           pressed = device_commands.Button_2, cockpit_device_id = devices.CONTROLS, value_pressed = 0.5,  name = _('Trim Aileron Left Slow'),      category = _('Flight Control')},
-- Elevator Trim Wheel
{                                                           pressed = device_commands.Button_5, cockpit_device_id = devices.CONTROLS, value_pressed = -1.0, name = _('Trim Elevator Up'),       category = _('Flight Control')},
{                                                           pressed = device_commands.Button_5, cockpit_device_id = devices.CONTROLS, value_pressed = 1.0,  name = _('Trim Elevator Down'),     category = _('Flight Control')},
{                                                           pressed = device_commands.Button_5, cockpit_device_id = devices.CONTROLS, value_pressed = -0.5, name = _('Trim Elevator Up Slow'),       category = _('Flight Control')},
{                                                           pressed = device_commands.Button_5, cockpit_device_id = devices.CONTROLS, value_pressed = 0.5,  name = _('Trim Elevator Down Slow'),     category = _('Flight Control')},
-- Rudder Trim Wheel
{                                                           pressed = device_commands.Button_8, cockpit_device_id = devices.CONTROLS, value_pressed = -1.0, name = _('Trim Rudder Left'),       category = _('Flight Control')},
{                                                           pressed = device_commands.Button_8, cockpit_device_id = devices.CONTROLS, value_pressed = 1.0,  name = _('Trim Rudder Right'),      category = _('Flight Control')},
-- ----------------------------------------------------------------------------------------

Br,

Mud

  • Thanks 1
Spoiler

W10-x64 | B650E Gigabyte Aorus Master | AMD Ryzen 7 7800X3D | Noctua NH-D15

G.Skill Trident ZS Neo DDR5-6000 64Gb | MSI RTX 3080ti Gaming X

Asus Xonar AE | TM Hotas Warthog

MFG Crosswind pedals | Valve Index

 

Posted

Brilliant - thnx, Mud.

-- Rudder Trim Wheel
{                                                           pressed = device_commands.Button_8, cockpit_device_id = devices.CONTROLS, value_pressed = -1.0, name = _('Trim Rudder Left'),       category = _('Flight Control')},
{                                                           pressed = device_commands.Button_8, cockpit_device_id = devices.CONTROLS, value_pressed = 1.0,  name = _('Trim Rudder Right'),      category = _('Flight Control')},
{                                                           pressed = device_commands.Button_8, cockpit_device_id = devices.CONTROLS, value_pressed = -0.5, name = _('Trim Rudder Left Slow'),       category = _('Flight Control')},
{                                                           pressed = device_commands.Button_8, cockpit_device_id = devices.CONTROLS, value_pressed = 0.5,  name = _('Trim Rudder Right Slow'),      category = _('Flight Control')},

🙂

Passes IC too.

Posted

My pleasure.  Credit to @scoobie who helped me with this some time ago.
You can play around with the 0.5 number as you like to decrease or increase the increments I reckon.

Spoiler

W10-x64 | B650E Gigabyte Aorus Master | AMD Ryzen 7 7800X3D | Noctua NH-D15

G.Skill Trident ZS Neo DDR5-6000 64Gb | MSI RTX 3080ti Gaming X

Asus Xonar AE | TM Hotas Warthog

MFG Crosswind pedals | Valve Index

 

Posted (edited)
On 2/3/2022 at 11:44 PM, Mud said:

Modify the following file:
Mods\aircraft\P-47D-30\Input\P-47D-30\joystick\default.lua

I did it myself as a mod which I enable and disable using ovgme.

Look for the lines I added with "slow".  I did only do my own for pitch and roll though.  But it should be clear enough 🙂

 

-- Port Wall - Trim Control Box ------------------------------------------------------------
-- Aileron Trim Wheel
{                                                           pressed = device_commands.Button_2, cockpit_device_id = devices.CONTROLS, value_pressed = -1.0, name = _('Trim Aileron Right'),     category = _('Flight Control')},
{                                                           pressed = device_commands.Button_2, cockpit_device_id = devices.CONTROLS, value_pressed = 1.0,  name = _('Trim Aileron Left'),      category = _('Flight Control')},
{                                                           pressed = device_commands.Button_2, cockpit_device_id = devices.CONTROLS, value_pressed = -0.5, name = _('Trim Aileron Right Slow'),     category = _('Flight Control')},
{                                                           pressed = device_commands.Button_2, cockpit_device_id = devices.CONTROLS, value_pressed = 0.5,  name = _('Trim Aileron Left Slow'),      category = _('Flight Control')},
-- Elevator Trim Wheel
{                                                           pressed = device_commands.Button_5, cockpit_device_id = devices.CONTROLS, value_pressed = -1.0, name = _('Trim Elevator Up'),       category = _('Flight Control')},
{                                                           pressed = device_commands.Button_5, cockpit_device_id = devices.CONTROLS, value_pressed = 1.0,  name = _('Trim Elevator Down'),     category = _('Flight Control')},
{                                                           pressed = device_commands.Button_5, cockpit_device_id = devices.CONTROLS, value_pressed = -0.5, name = _('Trim Elevator Up Slow'),       category = _('Flight Control')},
{                                                           pressed = device_commands.Button_5, cockpit_device_id = devices.CONTROLS, value_pressed = 0.5,  name = _('Trim Elevator Down Slow'),     category = _('Flight Control')},
-- Rudder Trim Wheel
{                                                           pressed = device_commands.Button_8, cockpit_device_id = devices.CONTROLS, value_pressed = -1.0, name = _('Trim Rudder Left'),       category = _('Flight Control')},
{                                                           pressed = device_commands.Button_8, cockpit_device_id = devices.CONTROLS, value_pressed = 1.0,  name = _('Trim Rudder Right'),      category = _('Flight Control')},
-- ----------------------------------------------------------------------------------------

Br,

Mud

One tip to remind, if you change the value directly instead of adding one, you must modify another keyboard lua scrpit as well, otherwise the trim will stop working

Edited by brucewhf
  • Thanks 1
Posted
On 2/6/2022 at 11:33 AM, brucewhf said:

One tip to remind, if you change the value directly instead of adding one, you must modify another keyboard lua scrpit as well, otherwise the trim will stop working

 

No, you will just get red or orange lines in Options/Controls as a warning that you have bindings with different functionality but same name.
But it's certainly better practice to add new "slow" bindings. And make sure the slow bindings names are different from the names of the original bindings.

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

  • Recently Browsing   0 members

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