Jump to content
The simFlight Network Forums

Verybumpy

Members
  • Posts

    6
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Verybumpy

  1. I press Shift+E to 'open' this lua and then 1 or 2 but it does not function.

    Can someone point out to me why this doesn't work?

    Edit: Getting this error:

       120781 KEYDOWN: VK=69, Waiting=0, Repeat=N, Shifts=1
       120828 .. This key is programmed in FSUIPC4 'Keys' options
       120828 LUA.2: beginning "K:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\DC6exitPickTgle.lua"
       120828 *** LUA Error: ...Microsoft Games\Microsoft Flight Simulator X\Modules\DC6exitPickTgle.lua:46: unexpected symbol near 'â'

     

    Edit2: ^^^^Figured out the above error. Its was because of the odd font characters carried over from a copy/paste of the pdf within the function of the event.key lines.

    Edit3: So "DC6_Fwd_Toggle" was left in the code causing only fwd exit to work. Removed that line and now everything works. Just need to put some sort of exit Lua command after each door toggle and hopefully voila.

     

    --Calling this Lua with Shift+E in Key Presses
    --fwd below
    function DC6_ExitFwd_open ()
    
        ipc.writeLvar("dc6_446_obj", 1)
        ipc.display("Front Door OPEN")
        ipc.sleep(4000)
    end
    
    function DC6_ExitFwd_close ()
    
        ipc.writeLvar("dc6_446_obj", 0)
        ipc.display("Front Door CLOSED")
        ipc.sleep(4000)
    end
    
    function DC6_ExitFwd_toggle ()
    	if ipc.readLvar("dc6_446_obj") == 0 then
           DC6_ExitFwd_open ()
    	else
           DC6_ExitFwd_close ()
    	end
    end
    
    DC6_ExitFwd_toggle ()
    --aft below
    function DC6_ExitAft_open ()
        ipc.writeLvar("dc6_451_obj", 1)
        ipc.display("Rear Door OPEN")
    end
    
    function DC6_ExitAft_close ()
        ipc.writeLvar("dc6_451_obj", 0)
        ipc.display("Rear Door CLOSED")
    end
    
    function DC6_ExitAft_toggle ()
    	if ipc.readLvar("dc6_451_obj") == 0 then
           DC6_ExitAft_open ()
    	else
           DC6_ExitAft_close ()
    	end
    end
    --cargo below soon
    
    event.key(49, 8, “DC6_ExitFwd_toggle”)
    event.key(50, 8, “DC6_ExitAft_toggle”)
    --event.key(51, 8, “DC6_ExitCargo_toggle”)

     

  2. Hi,

    I can take the easy route and use a non-standard key combination to command door specific Lua's to open exits but prefer not to.

    Being a newbie, I can't quite figure out a way to make Ctrl+E+1 or 2 or 3 work for corresponding forward, aft and cargo doors.

    Obviously, like a dozen other key normal commands, the default Ctrl+E+1 FSX input does not work in this plane. Any solution suggestions are appreciated.

    This is with the far from perfect PMDG DC-6 in FSX btw.

     

    -- forward door toggling Lua code--

    function DC6_ExitFwd_open ()

        ipc.writeLvar("dc6_446_obj", 1)
        
    return
    end

    function DC6_ExitFwd_close ()

        ipc.writeLvar("dc6_446_obj", 0)
        
    return
    end

    function DC6_ExitFwd_toggle ()
        if ipc.readLvar("dc6_446_obj") == 0 then
           DC6_ExitFwd_open ()
        else
           DC6_ExitFwd_close ()
        end
    end

    DC6_ExitFwd_toggle ()
    return

     

     

  3. Thank you for the replies.

    I've attached a log using my usual setup with the DC-6. Hopefully the in log notes are understandable. I've delete a bunch of repeat lines btw.

    Bottom line: All throttle inputs work the plane EXCEPT the gamepad (wired Xbox360) button press.

     

    Does this provide any insight if registered FSUIPC can be programmed to handle my item #1?

     

     

    FSUIPC4PMDGforums.zip

  4. Hello,

    I'm posting this in hopes to find out if by purchasing this product, it can 'repair' the PMDG DC-6.

    Normally, and most all planes I've purchase, can do all of the list below, but not the DC-6.

    1. throttle increase/decrease using game controller buttons
    2. Propeller Low/Propeller High using keyboard keys
    3. Mixture control using keyboard keys
    4. Shift+E then # door activation using keyboard keys
    5. map appropriate lights to default keyboard keys

     

    Can the payed version of FSUIPC possibly solve everything on this list? i.e. force map this plane's functions to keys or buttons

    I'm sorry I'm not very familiar with FSUIPC or its limitations so any help is appreciated.

    Please let me know if more details are needed.

    Thank you.

×
×
  • 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.