Jump to content
The simFlight Network Forums

Lua scripts in AUTO sction do not run in MSFS2024


Recommended Posts

Posted

Since today my Lua scripts I have in the [AUTO] section of the .ini file don't run in MSFS2024. In MSFS2020 it works. I have one single FSUIPC installation for both sims. Attached is the .ini file and both logs (2020 and 2024). 

What can possibly cause this? I think MSFS2024 must be the cause because I didn't change anything in FSUIPC and it worked in 2024 this morning but not this afternoon.

Karl

FSUIPC7.zip

Posted

Your log shows that the lua scripts were not started because the lvar/hvar list was not received from the WASM. I am not sure why this happened and will need to see your FSUIPC_WASM.log file, generated with Debug level logging activated in the WASM. This could be due to either the WASM crashing, or a change in the camera (or other) events that prevent the WASM for scanning and sending the lvars.

Can you activate Debug level logging in the WASM (via the FSUIPC_WASM.ini file) and also show me that file for MSFS2024. I will also check this here tomorrow.

Your logs also show some reconnection attempts at start-up for both MSFS2020 and MSFS2024. This is because your ini parameter DetectToConnectDelayAuto is set to low (at 30 seconds). You should change this value to 90.

John

Posted
11 minutes ago, John Dowson said:

This may be related to the recent SU2 update of MSFS2024. I will check this here....

I just tried MSFS2024 here and it seems ok, so I will need to see your FSUIPC_WASM.log for MSFS2024. Should be located under:
   AppData\Roaming\Microsoft Flight Simulator 2024\WASM\MSFS2020\fsuipc-lvar-module\work

You can set Debug level logging in the FSUIPC_WASM.ini file in the same location.

John

Posted
14 minutes ago, John Dowson said:

...so I will need to see your FSUIPC_WASM.log for MSFS2024. Should be located under:
   AppData\Roaming\Microsoft Flight Simulator 2024\WASM\MSFS2020\fsuipc-lvar-module\work

You can set Debug level logging in the FSUIPC_WASM.ini file in the same location.

John, there is no FSUIPC_WASM.log file for MSFS2024. I only could find log files for 2020. 

Attached are 3 screenshots of a file search for the log file on C:, E: and F:

MSFS2020 is on F:, MSFS2024 is on E:

 

Also attached is the FSUIPC_WASM.ini file for 2024 as I changed it to log level DEBUG. THis file is in folder E:\MSFS2024\Community\fsuipc-lvar-module

 

I changed the value for DetectToConnectDelayAut, thank you for the hint.

 

FSUIPC_WASM_ini.zip Screenshots.zip

Posted
13 hours ago, kaha said:

John, there is no FSUIPC_WASM.log file for MSFS2024. I only could find log files for 2020. 

There must be - that location was for steam installs - for MS Store installs it should be under:
    AppData\Local\Packages\Microsoft.Limitless_8wekyb3d8bbwe\LocalState\WASM\MSFS2020\fsuipc-lvarmodule\work
In fact, your screenshots show you have one in that location. Screenshot (2077).png shows the log file for MSFS2024. and Screenshot (2076).png shows the log files for both 2020 and 2024.

There won't be an FSUIPC_WASM.ini file there by default - you have to copy this across from the Community folder. See the section WASM module ini file and parameters on page 51 of the Advanced User guide for details on file locations.

13 hours ago, kaha said:

Also attached is the FSUIPC_WASM.ini file for 2024 as I changed it to log level DEBUG. THis file is in folder E:\MSFS2024\Community\fsuipc-lvar-module

You can also set Debug level logging there. Note that that file gets overwritten when you re-install/update, which is why it is better to change the one under your AppData folder, which also takes precedence (when provided). 

4 hours ago, ark1320 said:

Just as another data point, auto Lua scripts are working for me after the FS2024 SU2 update today.

Ok, then no need to send/show me the WASM log file then. Keep Debug level logging activated, and the next time they don't start show me the WASM log file.

John
 

Posted

I now deleted all FSUIPC_WASM.log files on my system. Then I ran MSFS2024. auto lua scripts did not start.

There is no FSUIPC_WASM.log file to find.

 

I assume it should be in this folder?

Screenshot (2081).png

Posted
5 hours ago, ark1320 said:

Just as another data point, auto Lua scripts are working for me after the FS2024 SU2 update today.

Al

Do you also have MSFS2020 installed?

Posted

As I said, your previous screenshots showed the log files. You are looking in the wrong place - for MS store installs in MSFS2024, it should be under
    AppData\Local\Packages\Microsoft.Limitless_8wekyb3d8bbwe\LocalState\WASM\MSFS2020\fsuipc-lvarmodule\work

as I said....please see the documentation that I previously referenced...

2 minutes ago, kaha said:

Do you also have MSFS2020 installed?

Yes, of course. But I have steam installations, not MS Store.

Posted
5 minutes ago, kaha said:

How can I check that?

You have to enable devmode in MSFS in the Advanced options, then use the Debug->Display WASM debug window, then select the FSUIPC WASM lvar module and then look in the Module section tab.

Just now, kaha said:

Hmm.. strange... "List Lvars" does nothing. And "Reload and List Lvars" also does nothing.

That is because FSUIPC isn't receiving anything from the WASM.

You said that your lua scripts were started earlier, so this means the WASM was running and working at some point. I have no idea why it is no longer working.
Try rebooting and try again.

Posted
18 minutes ago, kaha said:

The FSUIPC WASM module isn't in the list.

Then it isn't running. I have no idea why this is.  Check the logging console (Debug-Console) and search for fsuipc and see what messages you see.

image.thumb.png.9c8425d820f7e8ff29b6caa65537f756.png

Posted

So the WASM is being registered but not mounted and initialized. I have no idea why this is.
It must have ran at some point as you said:

7 hours ago, ark1320 said:

Just as another data point, auto Lua scripts are working for me after the FS2024 SU2 update today.

So something must have changed. Try re-installing FSUIPC7 (and the WASM).

Posted
3 minutes ago, John Dowson said:

...
It must have ran at some point as you said:

So something must have changed. Try re-installing FSUIPC7 (and the WASM).

That wasn't me.

Posted

I un- and then reinstalled FSUIPC but it's still not working in MSFS2024.

What can I do? All my axis concerning throttle, prop, mixture, spoilers, etc. rely on auto scripts, also all my Arduinos.

 

The problem started yesterday afternoon, shortly before the SU2 update was live. I probably used MSFS2024 while the SU2 update went live. Only on the next start of 2024 I got the update. Here's the screenshot of my SU2 update, timestamp 17:03.

Now please check the timestamp of the 2024 log file in my screenshot 2077, that was the last log with timestamp 15:42

 

SU2 Update.zip

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.