marc2990 Posted Sunday at 08:54 AM Report Posted Sunday at 08:54 AM **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
John Dowson Posted yesterday at 10:37 AM Report Posted yesterday at 10:37 AM Please update to the latest version of FSUIPC7 - v 7.5.3 (only the latest version is supported). If you still have issue, please show me/attach the full .log and .ini files, not edited extracts. John
marc2990 Posted 7 hours ago Author Report Posted 7 hours ago John, I attached a zip with the full log and ini files + the lua script. Did you not receive it? I attach them again. I work with the download that I installed on April1st, Is something wrong there? FSUIPC7.ini FSUIPC7.log testscript.lua
marc2990 Posted 6 hours ago Author Report Posted 6 hours ago Excuse me, I saw now that the ini and log files were indeed not complete. They were made for me by Chatgpt. Seems I should not rely on them too much. These are the complete ones as the appear in my fsuipc directory now. InstallFSUIPC7.log FSUIPC7.ini
John Dowson Posted 5 hours ago Report Posted 5 hours ago 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now