Jump to content
The simFlight Network Forums

Mugz

Members
  • Posts

    67
  • Joined

  • Last visited

Posts posted by Mugz

  1. Currently, if I choose to log each LUA script individually, I get a constantly appended log file for every script that is running.
    Is it possible to add an option like LuaLogClear so that each script run overwrites the Log file instead of appending it?

    Thanks!

  2. I have small question about free FSUIP7 version.

    Sorry for asking if it suddenly seems disrespectful.

    Can the free version run LUA scripts?

    If not, is it possible in the future to make limited functionality for launching LUA scripts for the free version?

    For example, allow only reading offsets and writing to com.writefeature?

     

  3. Hi there.

    I wrote small scripts for VPC Virpil devices.

    https://github.com/mixMugz/vpc_virpil_fsuipc_led

    This is example for my own devices, but you can modify it for yours.
    All scripts tested and working with Microsoft FlightSimulator 2020 (But i think it also will work with P3D/FSX)

    Supported devices:
    - VPC Constellation Alpha Grip with MT-50CM2 (Right Hand)
    - VPC Throttle MT-50CM3 (Left Hand)
    - VPC Panel #2 (Left Hand)

    Realized LED:
    - VPC Constellation Alpha Grip color
    1. Aircraft on ground - Orange color
    2. Aircraft on ground, parking brake on - Blink Red/Black color
    3. Aircraft in flight, autopilot off - Blue color
    4. Aircraft in flight, autopilot on - Green color

    - VPC Throttle color
    1. Default state - black color
    2. Autopilot FMS NAV Hold ON - B1 Green
    3. Yaw Damper ON - B2 Green
    4. Flight Director ON - B3 Green
    5. Autopilot Approach mode ON - B4 Green
    6. Autopilot Back Course ON - B5 Green
    7. Autopilot Master ON - B6 Green

    - VPC Panel #2 color
    1. Gear down - 3 down gear led green color (for each gear, left, center, right)
    2. Gear up - 3 upper gear led red color
    3. Gear deploying - middle gear led blink orange color
    4. Gear not retractably - middle gear led blue color

    Instalation:
    Please make sure the LUA files are listed in the [LuaFiles] section of FSUIPC7.ini file.
    Example:

    [LuaFiles]
    1=VPC_Base
    2=VPC_LP_#2
    3=VPC_LT_MT50CM3
    4=VPC_RCA_MT50CM2

    Add to [Auto] section of FSUIPC7.ini

    [Auto]
    1=Lua VPC_RCA_MT50CM2
    2=Lua VPC_LT_MT50CM3
    3=Lua VPC_LP_#2

    Short video:

     

  4. 4 minutes ago, John Dowson said:

    I'm not sure if this is the final solution though, as I think this will add a delay to terminating all lua scripts, event if they do not use event.terminate.
    I will look into this further tomorrow.

    Yes. Solution is work. I have delay but it's ok for now. You can close topic. 

    About crash FSUIPC i need open new topic? Or can you ask for any tasks that I need to do through private messages?

  5. 3 minutes ago, Pete Dowson said:

    Before FSUIPC receives ANY data from Sim all of the offsets populated by SimVars will be zero. FSUIPC doesn't invent any of these values!

    Try using the Offsets facility in FSUIPC's logging in order to show the values in the log as they change. This will not only show the offset itself but also the actual value read from SimConnect. It sounds like SimConnect is first sending the default (on ground) value when initialised, but this additional logging will show. you'll need to set this logging option in one session so it starts off enabled in the next.

    FSUIPC can only pass on what it gets. it may change to scaled value, to maintain compatibility with past FS versions, but it doesn't do any real state changes on its own.

    Pete

    It will be great if you tell me how to do this. All what i can (and know) now - read offset data and print to log

  6. 13 minutes ago, John Dowson said:

    So, is this the correct value? If so, there is no issue with 'read wrong offset value if load in mid-flight', but the crash is an issue.

    Forgive me, I seem to be very bad with the English language, but I really ask you to pay attention to the fact at which moment the incorrect data is given.
    Loading steps:
    - MSFS2020 -> FSUIPC -> Select the departure in the air -> Press FLY (the data is correct)
    - MSFS2020 -> Select airborne departure -> Press FLY -> start FSUIPC (data will be incorrect).

    At the moment, I only noticed this for Landing Gear Position.

  7. Just now, John Dowson said:

    So what is the issue you are referring to? The log does not show FSUIPC7 closing/exiting properly. Did it crash again?

    Yes it crashed

     

    Just now, John Dowson said:

    The log shows the value in the offsets was again 0:

    Yes. As i said. If FSUIPC running before i start flight, all work correct. If i start FSUIPC (after crash) in exist session, it's show not correct values.

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