Jump to content
The simFlight Network Forums

Lua Scripts Not Loading or Being Recognized in FSUIPC7 (v7.5.4) — Need Help!


Recommended Posts

Posted

Hello everyone,

I'm currently facing an issue with FSUIPC7 (version 7.5.4) where Lua scripts are not loading or being recognized at all. Despite following all the recommended troubleshooting steps, I have not been able to resolve the issue.

Here’s a summary of the situation and the steps I’ve taken:


FSUIPC Environment:

  • Version: FSUIPC7 v7.5.4 (13th July 2025)

  • Operating System: Windows 11 Pro, Build 26100

  • FSUIPC Installation Path: C:\FSUIPC7

  • User Permissions: FSUIPC7 is running with administrator privileges

  • MSFS Version: MSFS 2020 (Steam)

Troubleshooting Steps Taken:

  1. Lua Setup:

    • Created Scripts folder under C:\FSUIPC7\Scripts\

    • Placed hello.lua with the following content:

       
       
      ipc.display("Lua OK", 3)
    • File Encoding: Ensured the file is UTF-8 (without BOM) using Notepad++

  2. FSUIPC7.ini Configuration:

    • In C:\FSUIPC7\FSUIPC7.ini, added:

       
       
      [LuaFiles] 1=hello [Auto] 1=Lua hello
    • Converted FSUIPC7.ini from GB2312 encoding to UTF-8

  3. FSUIPC7 Log Review:

    • Checked FSUIPC7.log, but found no entries like Lua plug-in "hello" loaded or any other Lua-related messages

    • The script doesn’t appear in the dropdown list of “Control sent when button pressed”

  4. Manual Tests:

    • Tried manually triggering Lua scripts through “Buttons & Switches”

    • Ensured no other conflicting versions or installations of FSUIPC7 exist (removed all traces of old installs)

What’s Happening:

  • FSUIPC7 successfully starts, connects to MSFS, and recognizes all hardware devices.

  • However, Lua scripts are not being recognized or executed.

  • There are no Lua logs in FSUIPC7.log, and the script does not display "Lua OK" on screen.

  • I’ve followed all suggested steps, and have checked file paths, encodings, and configurations, but the problem persists.

What I Need Help With:

  • Is there something I’m missing with the Lua setup or configuration?

  • Could this issue be related to a bug in FSUIPC7 or an incompatibility with certain versions?

  • I would appreciate any advice or troubleshooting tips that might help get Lua scripts to load and execute properly.

If anyone has encountered this issue or has any suggestions, please let me know! I can provide my FSUIPC7.ini file, hello.lua script, and FSUIPC7.log for further review if needed.

Thank you in advance for your help!


Tags: FSUIPC7, Lua, MSFS2020, Lua not working, Lua script

Posted
9 minutes ago, chenpu66 said:

Created Scripts folder under C:\FSUIPC7\Scripts\

By default, lua scripts are only loaded/recognised when placed in the FSUIPC7 installation folder. If you are using a subfolder, you need to add
   LuaPath=Scripts
to your [LuaFiles] section.

9 minutes ago, chenpu66 said:

[LuaFiles] 1=hello [Auto] 1=Lua hello

Do NOT manually edit or change the [LuaFiles] section (apart from the LuaPath entry) unless you know what you are doing. The list if lua files is maintained by FSUIPC.

9 minutes ago, chenpu66 said:

Placed hello.lua with the following content:

ipc.display("Lua OK", 3)

The ipc.display function is no longer reliable in MSFS, as it depends on the Simconnect_Text function which is no longer available. You need to use the Wnd library for display. The documentation for this function does say:

Quote

Note that there are currently many issues with the simconnect message display functionality. It is recommended to use the wnd library for the time being.

This was working for basic display in earlier versions of MSFS. but has basically been unavailable for quite a while. I will update the documentation to make this clear.

John

Posted

Thank you, John. I understand now that the ipc.display function is deprecated and no longer reliable. I will switch to ipc.log() for testing.
Also, just to confirm: If I place my .lua scripts under the Scripts subfolder, I must add LuaPath=Scripts under [LuaFiles] in FSUIPC7.ini, correct?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.