Jump to content

LiveBait

Members
  • Posts

    218
  • Joined

  • Last visited

Posts posted by LiveBait

  1. Hold master caution to re-stack the caution messages. It’ll move them all to the lower right and out of the way, and get rid of the empty spaces.

     

    Thanks for the info. Didn't know that about the Master Caution Button.

     

    However, until ED changes the code and the Advisories and Cautions line disappears when no valid Advisories exist, this will remain a valid workaround for me.

  2. Here is how to remove the masking (the black box that extends right across the DDI).

     

    attachment.php?attachmentid=226036&stc=1&d=1580280301

     

    Navigate to

    C:\DCS World OpenBeta\Mods\aircraft\FA-18C\Cockpit\Scripts\Multipurpose_Display_Group\Common\indicator\Pages\MPD

     

    open "CautAdvAndMenuPage.lua" (with Notepad++)

     

    Scroll down to line 181 and edit to look like this

    local AdvisoriesTotalSymbolsNum = 0

     

    If the page you are on has text where the ADV- is they will both be visible and hence unreadable. Simply come back to the SUPT/TAC page to read them and clear the advisories

     

    attachment.php?attachmentid=226037&stc=1&d=1580280405

     

    ===================================================================================

     

    If you want to move the "ADV-" line

    Scroll down to line 14 of the same file "CautAdvAndMenuPage.lua"

     

    local CautionsAdvisoriesPlaceholder = addPlaceholder("CautionsAdvisoriesPlaceholder", {-450, -412}, nil, {{"MPD_CautionsAdvisoriesVisibilityAndPos", 500}})

     

    Adjust {-450, -412} values. First value is horizontal, second is vertical,from the centre of the DDI i believe.

    The values I'm using at the moment (see pic) {-280, -440}

     

    ===================================================================================

     

    Finally you may like to remove the blank spaces between different Advisories to shorten the overall length of the message (still separated by a comma)

    Open "MPD_AdvisoriesDefs.lua" (with Notepad++) in the same directory listed above.

    Scroll down to line 63 and comment out the lines 63 to 70 and it should look like this

    --addAdvisory(" ") -- empty 2 spaces

    --addAdvisory(" ") -- empty 3 spaces

    --addAdvisory(" ") -- empty 4 spaces

    --addAdvisory(" ") -- empty 5 spaces

    --addAdvisory(" ") -- empty 6 spaces

    --addAdvisory(" ") -- empty 7 spaces

    --addAdvisory(" ") -- empty 8 spaces

    --addAdvisory(" ") -- empty 9 spaces

     

     

    I have flown a few flights and not noticed anything wrong, but if you backup the files first you have the origionals to place back in if anything does go wrong

    OR

    use JSGME/OvGME

    Screen_200129_171232.thumb.png.e8a7e48e04a39273031832f00f6ed852.png

    Screen_200129_171711.thumb.png.c76cbc833f882635bd17956f705f34ab.png

    • Like 1
    • Thanks 1
  3. Sobe, put a comma at the end of the second line (in red below):

     

    { pressed = hmd_commands.BrtKnob, cockpit_device_id = devices.HMD_INTERFACE, value_pressed = -0.5, name = _('HMD OFF/BRT Knob - CCW/Decrease'), category = {_('Instrument Panel')}},

    { pressed = hmd_commands.BrtKnob, cockpit_device_id = devices.HMD_INTERFACE, value_pressed = 0.5, name = _('HMD OFF/BRT Knob - CW/Increase'), category = {_('Instrument Panel')}},

  4. Alerax, thanks for deciding to share this mod with the community. Also for the time and effort invested into developing it.

     

    I could not recommend this highly enough to anyone flying carrier traps, awesome job!

     

    I would also like to thank Highway, who I saw put more hours than he will admit, into testing this.

  5. Radios

     

    --UHF MODE

    {down = device_commands.Button_1,cockpit_device_id = devices.UHF_RADIO, value_down = 0.0, name = _('UHF MODE O'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.UHF_RADIO, value_down = 0.165, name = _('UHF MODE FF'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.UHF_RADIO, value_down = 0.33, name = _('UHF MODE NA'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.UHF_RADIO, value_down = 0.495, name = _('UHF MODE SV'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.UHF_RADIO, value_down = 0.66, name = _('UHF MODE DL'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.UHF_RADIO, value_down = 0.825, name = _('UHF MODE G'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.UHF_RADIO, value_down = 1.0, name = _('UHF MODE EN'), category = _('MODDED')},

    Something funky going on here, there is no Ch4 in the controls menu and the existing Ch5 is really ch4 so below registers as Ch5 (even comes up in the controls as Ch5 if i name it Ch4 :huh:) I assume this will be fixed sooner rather than later so i put it in its own category so i remember about it (same name but with capitals)

    --UHF CH4

    {down = device_commands.Button_10, up = device_commands.Button_10, cockpit_device_id = devices.UHF_RADIO, value_down = 1, value_up = 0,name = _('SA342 UHF 5'), category = _('UHF RADIO')},

     

     

    -- FM RADIO

    {down = device_commands.Button_1,cockpit_device_id = devices.FM_RADIO, value_down = 0.0, name = _('FM SELECTOR AR'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.FM_RADIO, value_down = 0.2, name = _('FM SELECTOR TRAFFIC'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.FM_RADIO, value_down = 0.4, name = _('FM SELECTOR CH OTAN'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.FM_RADIO, value_down = 0.6, name = _('FM SELECTOR REL'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.FM_RADIO, value_down = 1.0, name = _('FM SELECTOR TST'), category = _('MODDED')},

     

    {down = device_commands.Button_2,cockpit_device_id = devices.FM_RADIO, value_down = 0.0, name = _('FM CH 1'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.FM_RADIO, value_down = 0.142, name = _('FM CH 2'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.FM_RADIO, value_down = 0.284, name = _('FM CH 3'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.FM_RADIO, value_down = 0.426, name = _('FM CH 4'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.FM_RADIO, value_down = 0.568, name = _('FM CH 5'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.FM_RADIO, value_down = 0.715, name = _('FM CH 6'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.FM_RADIO, value_down = 0.855, name = _('FM CH 0'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.FM_RADIO, value_down = 1.0, name = _('FM CH RG'), category = _('MODDED')},

     

     

    --ADF RADIO SELECTOR

    {down = device_commands.Button_3,cockpit_device_id = devices.ADF, value_down = 0.0, name = _('ADF SELECTOR OFF'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.ADF, value_down = 0.33, name = _('ADF SELECTOR ANT'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.ADF, value_down = 0.66, name = _('ADF SELECTOR ADF'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.ADF, value_down = 1.0, name = _('ADF SELECTOR TEST'), category = _('MODDED')},

  6. -- [sTBY HA]

    {down = device_commands.Button_4, up = device_commands.Button_4, cockpit_device_id = devices.FLIGHT_CONTROLS, value_down = 1, value_up = 0, name = _('STBY HA Unlock'), category = _('MODDED')},

    {down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id = devices.FLIGHT_CONTROLS, value_down = 0.1, name = _('STBY_HA_butRot CW'), category = _('MODDED')},

    {down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id = devices.FLIGHT_CONTROLS, value_down = -0.1, name = _('STBY_HA_butRot CCW'), category = _('MODDED')}

     

    The trick to get this to rotate while you have the knob pulled out is to assign the same modifier (ctrl / shift / alt) to all three commands, in DCS controls. If you have different modiers pushed at the same time, the following key press is not recognized.

    eg:

    STBY HA UNLOCK-------RSHIFT A

    STBY HA CW------------RSHIFT S

    STBY HA CCW----------RSHIFT D

  7. Devrim, i remembered that HighwaymanEd had mad some lua changes for the warthog throttle to recognize 3-way switches for the huey. Heres a sample he did for the position light switch. In Mods\aircraft\Uh-1H\Input\UH-1H\joystick\Throttle - HOTAS Warthog.lua

     

    -- Position Lights - 3 Way

    {down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 1.0, value_up = 0.0, name = 'Nav Lights Steady / Off', category = 'MODDED'},

    {down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = -1.0, value_up = 0.0, name = 'Nav Lights Flash / Off', category = 'MODDED'},

    And here is an example of a 2-way switch

     

    -- Position Lights Brightness - 2 Way

    {down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 1.0, value_up = 0.0, name = "Position Lights BRIGHT / DIM", category = "MODDED"},

     

    Hope it helps you but it looks like your trying to get 3 possible positions out of a 2-way switch and this is as much help as i can offer.

    • Like 1
  8. I was playing around with the radar alt. this morning. I didnt bother with the test fuction and the bug will only move in small increments with each button push you assign to it (relates to the 0.1 values)

     

    -- RADAR ALTIMETER

    {down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id = devices.RADAR_ALTIMETER, value_down = 1, name = _('RADAR ALTIMETER OFF'), category = _('MODDED')},

    {down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id = devices.RADAR_ALTIMETER, value_up = -1, name = _('RADAR ALTIMETER ON'), category = _('MODDED')},

     

     

    -- RADAR ALTIMETER BUG

    {down = device_commands.Button_1, up = device_commands.Button_1, cockpit_device_id = devices.RADAR_ALTIMETER, value_down = 0.1, name = _('RADAR ALTIMETER BUG UP'), category = _('MODDED')},

    {down = device_commands.Button_1, up = device_commands.Button_1, cockpit_device_id = devices.RADAR_ALTIMETER, value_up = -0.1, name = _('RADAR ALTIMETER BUG DN'), category = _('MODDED')},

     

     

    Would you guys mind taking a look and fix the code?

    I only know very little about lua's from stuffing around in DCS which would be very obvious to someone who knows what they are doing. I really have no idea if theres a better way to do this, its all trial and error for me to work it out.

    Glad i can help and share, like you did with some exports and Devrim does with his great mods.

    What goes around, comes around.........

  9. While i'm at it here is all the switches ive got working so far:

     

     

     

    --MODDED

     

    --NADIR mode SELECTOR

    {down = device_commands.Button_2,cockpit_device_id = devices.NADIR, value_down = 0.0, name = _('SA342 NADIR OFF'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.NADIR, value_down = 0.2, name = _('SA342 NADIR STANDBY'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.NADIR, value_down = 0.4, name = _('SA342 NADIR GROUND'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.NADIR, value_down = 0.6, name = _('SA342 NADIR SEA'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.NADIR, value_down = 0.8, name = _('SA342 NADIR AIR SPEED'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.NADIR, value_down = 1.0, name = _('SA342 NADIR GROUND TEST'), category = _('MODDED')},

     

     

    --NADIR parameter SELECTOR

    {down = device_commands.Button_3,cockpit_device_id = devices.NADIR, value_down = 0.0, name = _('SA342 NADIR WIND'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.NADIR, value_down = 0.2, name = _('SA342 NADIR MAG DEV'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.NADIR, value_down = 0.4, name = _('SA342 NADIR GND SPEED'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.NADIR, value_down = 0.6, name = _('SA342 NADIR CALC TIME'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.NADIR, value_down = 0.8, name = _('SA342 NADIR CYRR POS'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.NADIR, value_down = 1.0, name = _('SA342 NADIR WPT'), category = _('MODDED')},

     

     

    --VCB MODE DIAL

    {down = device_commands.Button_7,cockpit_device_id = devices.PE, value_down = 0.0, name = _('VCB MODE DIAL OFF'), category = _('MODDED')},

    {down = device_commands.Button_7,cockpit_device_id = devices.PE, value_down = 0.2, name = _('VCB MODE DIAL TRAVEL'), category = _('MODDED')},

    {down = device_commands.Button_7,cockpit_device_id = devices.PE, value_down = 0.5, name = _('VCB MODE DIAL STBY'), category = _('MODDED')},

    {down = device_commands.Button_7,cockpit_device_id = devices.PE, value_down = 0.7, name = _('VCB MODE DIAL MANUAL'), category = _('MODDED')},

    {down = device_commands.Button_7,cockpit_device_id = devices.PE, value_down = 1.0, name = _('VCB MODE DIAL TRACK'), category = _('MODDED')},

     

     

    --ArtVisVhfDop-PTR

    {down = device_commands.Button_7,cockpit_device_id = devices.FLIGHT_CONTROLS, value_down = 0.0, name = _('ArtVisVhfDop-ART'), category = _('MODDED')},

    {down = device_commands.Button_7,cockpit_device_id = devices.FLIGHT_CONTROLS, value_down = 0.3, name = _('ArtVisVhfDop-VIS'), category = _('MODDED')},

    {down = device_commands.Button_7,cockpit_device_id = devices.FLIGHT_CONTROLS, value_down = 0.6, name = _('ArtVisVhfDop-VHF'), category = _('MODDED')},

    {down = device_commands.Button_7,cockpit_device_id = devices.FLIGHT_CONTROLS, value_down = 1.0, name = _('ArtVisVhfDop-WPT'), category = _('MODDED')},

     

     

    --TRIM ON/OFF

    {down = device_commands.Button_6,cockpit_device_id = devices.AUTOPILOT, value_down = 1, name = _('TRIM On'), category = _('MODDED')},

    {down = device_commands.Button_6,cockpit_device_id = devices.AUTOPILOT, value_down = 0.0, name = _('TRIM Off'), category = _('MODDED')},

     

    -- FLARE DISPENSER

    {down = device_commands.Button_1,cockpit_device_id = devices.FD, value_down = 1.0, name = _('FLARES L'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.FD, value_down = 0.0, name = _('FLARES BOTH'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.FD, value_down = -1.0, name = _('FLARES R'), category = _('MODDED')},

     

    {down = device_commands.Button_3,cockpit_device_id = devices.FD, value_down = 1.0, name = _('FLARE SLOW'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.FD, value_down = 0.0, name = _('FLARE FAST'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.FD, value_down = -1.0, name = _('FLARE OFF'), category = _('MODDED')},

     

    {down = device_commands.Button_2,cockpit_device_id = devices.FD, value_down = 1.0, name = _('FLARE SINGLE'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.FD, value_down = 0.0, name = _('FLARE SEQ'), category = _('MODDED')},

     

     

    --WEAPS DAY NIGHT

    {down = device_commands.Button_1,cockpit_device_id = devices.PH, value_down = 0.0, name = _('WEAPS TEST2'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.PH, value_down = 0.3, name = _('WEAPS TEST1'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.PH, value_down = 0.5, name = _('WEAPS OFF'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.PH, value_down = 0.8, name = _('WEAPS DAY'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.PH, value_down = 1.0, name = _('WEAPS NIGHT'), category = _('MODDED')},

     

  10. --WEAPS DAY NIGHT

    {down = device_commands.Button_1,cockpit_device_id = devices.PH, value_down = 0.0, name = _('WEAPS TEST2'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.PH, value_down = 0.3, name = _('WEAPS TEST1'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.PH, value_down = 0.5, name = _('WEAPS OFF'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.PH, value_down = 0.8, name = _('WEAPS DAY'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.PH, value_down = 1.0, name = _('WEAPS NIGHT'), category = _('MODDED')},

  11. Edit: i just reread your post and realized that you have it working but want to put it on a 2-way switch. Sorry cant help there.

     

     

     

    hey Devrim, heres what im using and it works:

     

    -- FLARE DISPENSER

    {down = device_commands.Button_1,cockpit_device_id = devices.FD, value_down = 1.0, name = _('FLARES L'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.FD, value_down = 0.0, name = _('FLARES BOTH'), category = _('MODDED')},

    {down = device_commands.Button_1,cockpit_device_id = devices.FD, value_down = -1.0, name = _('FLARES R'), category = _('MODDED')},

     

    {down = device_commands.Button_3,cockpit_device_id = devices.FD, value_down = 1.0, name = _('FLARE SLOW'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.FD, value_down = 0.0, name = _('FLARE FAST'), category = _('MODDED')},

    {down = device_commands.Button_3,cockpit_device_id = devices.FD, value_down = -1.0, name = _('FLARE OFF'), category = _('MODDED')},

     

    {down = device_commands.Button_2,cockpit_device_id = devices.FD, value_down = 1.0, name = _('FLARE SINGLE'), category = _('MODDED')},

    {down = device_commands.Button_2,cockpit_device_id = devices.FD, value_down = 0.0, name = _('FLARE SEQ'), category = _('MODDED')},

    • Like 1
×
×
  • Create New...