Jump to content

Barnowl

Members
  • Posts

    31
  • Joined

  • Last visited

Posts posted by Barnowl

  1. No. It seems that the software loads the LUA files when the game starts, and ignores any changes thereafter.

    PS:

    For your alternate gear command, you don't need the value_down and value_up stements.

    This will do:

    {down = iCommandPlaneGearUp, up = iCommandPlaneGearDown, name = _('Alt Landing Gear Control Handle 2-Pos UP/DOWN'), category = {_('Special For Joystick'), _('Left Vertical Panel')}},

    That's because "iCommandPlaneGearUp" and "iCommandPlaneGearDown" are self-contained commands that don't need any arguments.

    Ok, Thanks

  2. Thank you for your help.

     

    What I am trying to do is duplicate what ED's code does but, have the ability for the game to 'Remember' the switch position.

    Example:

    {    down = iCommandPlaneGearUp,                         up = iCommandPlaneGearDown,                                                                        value_down =  1.0,    value_up = 0.0,    name = _('Alt Landing Gear Control Handle 2-Pos UP/DOWN'),                category = {_('Special For Joystick'), _('Left Vertical Panel')}},

    This code knows where my switch position is at all times.

     

    If I understand you correctly, with this code that you use, allows you to 'Extend/Retract' with only one line of code. And with your example it can only be fully Extended or Retracted, nothing in between.

    Again thanks for your help.

  3. I am in need of some assistance with my joystick default.lua file.

    I am trying to modify the speed brake function like I did for the landing gear.

    The problem is that no matter what I do at best I can only see one action in the control panel but, usually none. Ed's is there and working but not mine.

    At first I thought it was because of a naming conflict, 'Alt Speed Brake Switch - EXTEND', 'Alt Speed Brake Switch - RETRACT' but, Ed's is nearly identical, 'Speed Brake Switch - EXTEND', 'Speed Brake Switch - RETRACT' and it still works.

    I am still new at LUA so, it may be something simple. Hopefully someone will spot my error.

    Maybe someone can tell me how to insert code correctly.

     

    Since I don't know how to insert code, I will list my examples below.

    -- ED's approach

    {    down = hotas_commands.THROTTLE_SPEED_BRAKE,                        up = hotas_commands.THROTTLE_SPEED_BRAKE,                        cockpit_device_id = devices.HOTAS,    value_down = -1.0,    value_up = 0.0,    name = _('Speed Brake Switch - EXTEND'),                    category = {_('Throttle Grip'), _('HOTAS')}},
    {    down = hotas_commands.THROTTLE_SPEED_BRAKE,                                                                                        cockpit_device_id = devices.HOTAS,    value_down =  0.0,                    name = _('Speed Brake Switch - OFF'),                        category = {_('Throttle Grip'), _('HOTAS')}},
    {    down = hotas_commands.THROTTLE_SPEED_BRAKE,                                                                                        cockpit_device_id = devices.HOTAS,    value_down =  1.0,                    name = _('Speed Brake Switch - RETRACT'),                    category = {_('Throttle Grip'), _('HOTAS')}},

     

    -- My first

    {    down = hotas_commands.THROTTLE_SPEED_BRAKE,            up = hotas_commands.THROTTLE_SPEED_BRAKE,        cockpit_device_id = devices.HOTAS,                value_down =  1.0,    value_up = 0.0,    name = _('Alt Speed Brake Switch - EXTEND/ON'),                            category = {_('Special For Joystick'), _('Throttle Grip'), _('HOTAS')}},
    {    down = hotas_commands.THROTTLE_SPEED_BRAKE,                                                            cockpit_device_id = devices.HOTAS,                value_down =  1.0,    value_up = 0.0,    name = _('Alt Speed Brake Switch - RETRACT/OFF'),                       category = {_('Special For Joystick'), _('Throttle Grip'), _('HOTAS')}},

     

    -- My current

    {    down = hotas_commands.THROTTLE_SPEED_BRAKE,            up = hotas_commands.THROTTLE_SPEED_BRAKE,        cockpit_device_id = devices.HOTAS,                value_down = -1.0,    value_up = 0.0,    name = _('Alt Speed Brake Switch - EXTEND'),                            category = {_('Special For Joystick'), _('Throttle Grip'), _('HOTAS')}},
    {    down = hotas_commands.THROTTLE_SPEED_BRAKE,                                                            cockpit_device_id = devices.HOTAS,                value_down =  1.0,                    name = _('Alt Speed Brake Switch - RETRACT'),                           category = {_('Special For Joystick'), _('Throttle Grip'), _('HOTAS')}},

  4. Update:

     

    I finally figured it out.

    From the editor, go to Mission Goals and create a goal for each piece of cargo with a score value, and set a condition to Unhook in a zone.

    Select the aircraft, and select the 2nd icon, I think it is Triggers and define a rule for each piece of cargo and a pickup zone. This will create smoke at the delivery zone.

    Upon completion of delivery you will get a score.

  5. I just realized that I posted this to the wrong forum, sorry.

    Ok, I have created a few mods for Mi-8 and the Huey to transport cargo. Besides the rope breaking about 85% of the time, it works. My problem is with trying to get a score. I don't know if it is even possible.

    I have created trigger zones, trigger rules, setting flags and mission goals all to no avail.

    Any help would be greatly appreciated.

  6. Ok, I have created a few mods for Mi-8 and the Huey to transport cargo. Besides the rope breaking about 85% of the time, it works. My problem is with trying to get a score. I don't know if it is even possible.

    I have created trigger zones, trigger rules, setting flags and mission goals all to no avail.

    Any help would be greatly appreciated.

  7. Ok, I have created a few mods for Mi-8 and the Huey to transport cargo. Besides the rope breaking about 85% of the time, it works. My problem is with trying to get a score. I don't know if it is even possible.

    I have created trigger zones, trigger rules, setting flags and mission goals all to no avail.

    Any help would be greatly appreciated.

  8. I have downloaded missions in .zip format that do not have a .miz file.

    Instead they have a l10n folder and 3 files called mission, options and warehouses.

    They have no instructions.

    Where do I put these or how do I handle them?

×
×
  • Create New...