Jump to content
The simFlight Network Forums

Grendel

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by Grendel

  1. Blake, could I trouble you with one more question?

    With the gear in transit I get flashing green gear lights which extinguish or turn solid as appropriate when the movement is completed. Ideally though the lights would be solid red whilst the gear in transit. I've tried making alterations to the section copied below but nothing I've tried results in solid green (down) solid red (transit) and lights off (up). Do you have any suggestions? Thanks.

    if self._is_failed then
    	       set_gear_led(self._led,GEARIND_RED,(not (self:isDown() and GearHandleIsDown:isTrue())))
          else
             if self:isUp() and GearHandleIsDown:isFalse() then
                set_gear_led(self._led,GEARIND_OFF)
             elseif SimIsOnGround:isFalse() or GearHandleIsDown:isTrue() then
                set_gear_led(self._led,GEARIND_GREEN,self:isInTrans())
             else -- why is the gear handle up when the sim is on the ground?
                set_gear_led(self._led,GEARIND_RED,true)
             end
          end
       else
          set_gear_led(self._led,GEARIND_OFF)

     

  2. Thank you both. The gear control offset shows a value of 255 but I don't know whether this is correct or not.

    Blake, could you kindly clarify... 

    21 minutes ago, Blake Buhlig said:

    In the code, everywhere it says "GearIsRetractable:isTrue()" you could change to "true".

    Line 254 reads "...and GearHandleIsDown:isFalse() and GearIsRetractable:isTrue()))".

    Should that be altered to read "and GearHandleIsDown:isFalse() and true()"? Also should I retain the two extra closed brackets at the end of the line? Similarly lines 304 and 305?

    Sorry to keep troubling you both, it feels as if I'm very close so your help continues to be much appreciated.

  3. Thank you Blake, downloading it from the new link got it going and I now have the parking brake light and the master caution light working. However I still can't get the gear lights to illuminate.

    On 6/19/2021 at 1:38 PM, John Dowson said:

    I got the gear lights working by making the following changes:
       - Change the initialization of GearIsRetractable variable (line 211) to
            GearIsRetractable=ipc.readUB(OFFSET_IS_GEAR_RETRACTABLE);

    John, I've been trying to use your solution (above) but this hasn't cracked it for me yet. The line I've tried changing is GearIsRetractable = SimVar(0x060C,"UB",true) which is shown in the file as line 237 rather than 211. Are you able to suggest what I might be doing wrong?

    Thanks,

    Gary

  4. On 7/6/2021 at 11:02 AM, John Dowson said:

    ,

    My thanks again. The file is listed in the auto section but when it loads I see the following (or a variation, it's not always 341) in the FSUIPC log;

    1402766 *** LUA Error: ...ram Files (x86)\Microsoft Games\Flight Simulator 9\MODULES\Bravoleds.lua:341: unexpected symbol near 'Â'
      1402984 *** LUA Error: ...ram Files (x86)\Microsoft Games\Flight Simulator 9\MODULES\Bravoleds.lua:341: unexpected symbol near 'Â'

    Presumably this refers to line 341 in the lua file but there's nothing on that line that seems to correspond to the 'unexpected symbol' message.

    Any suggestions would be welcomed, thank you.

     

  5. Thanks to you both but I'm still unable to get any lights to illuminate on my Bravo so I assume I've done something wrong. I've copied Blake's coding into a file named bravoleds.lua and placed this in the modules folder. FSUIPC recognises this and offers me the option of assigning a button or keypress to activate it but nothing happens when I do this. Is there anything either of you can suggest? As I say, I'm using FS2004 and FSUIPC 3.999z9b.

    Many thanks.

     

  6. I'm just trying to get to grips with this and am assuming I'll need the hidBravoButtons.lua file to have a chance of getting it to work. I see there is a link to this file in the forum dated 9th January but the file itself is shown as unavailable. Is there anywhere else I might be able to get hold of it?

    Thanks,

    Gary

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.