Jump to content
The simFlight Network Forums

Lua script not executing or logging via [Auto] in FSUIPC7


Recommended Posts

Posted

 

**Dear John,**

I'm testing a minimal Lua script with the latest FSUIPC7 (downloaded April 2025) on MSFS 2020, to confirm if scripts are triggered automatically at flight load via `[Auto]`.

The script contains only:

```lua
ipc.log("started")
When I run it manually via the FSUIPC Add-ons menu, it logs correctly.

However, when triggered via [Auto], nothing appears in the log. Not even the ipc.log("started") line.

Below are the exact files used:

FSUIPC7.ini

ini
Kopiëren
Bewerken
[General]
UpdatedByVersion=7.4.16.2
History=GAIUTUKQZNKZMKJZKQLJJ
Debug=Please
LogExtras=1
AutoScanDevices=Yes

[Auto]
1=Lua testscript

[LuaFiles]
1=testscript
testscript.lua

lua
Kopiëren
Bewerken
ipc.log("started")
(placed in: C:\Users\<username>\Documents\FSUIPC7\testscript.lua)

FSUIPC7.log

text
Kopiëren
Bewerken
********* FSUIPC7, Version 7.4.16.2 (13th March 2024) by John Dowson *********
Running inside MSFS on Windows 11
...
[LuaFiles] Loaded: testscript.lua
[Auto] line 1: Lua testscript
...
(No log entry “started” appears anywhere)
Is there any known reason why [Auto] Lua scripts wouldn’t run (or log) reliably when a flight is loaded in MSFS?

Any suggestion for a workaround or different trigger method would be appreciated.

Best regards,
Marcel Maex
Belgium

fsuipc_test_auto.zip

Posted

The installation log file (which I do not need to see!) shows that you have updated to 7.5.3, but I still need to see an FSUIPC7.log and full FSUIPC7.ini file - the last one you attached is again partial and shows version 7.4.16.2, not 7.5.3.
Did you run FSUIPC7 after installing? You need to do that, and for lua scripts to auto-run you need to to also have MSFS running and a plane loaded and ready to fly. Lua scripts are started after the plane has loaded and lvars/hvars have been received and are available for use.

John

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.