Jump to content
The simFlight Network Forums

Recommended Posts

Posted (edited)

*** Moved from main support forum to FSUIPC7 support sub-forum ***

Hi,

I have fsuipc7 registered version and try to run the example lua script "display vals.lua". I seem to do something wrong, because I see nothing happening, no display on screen, no logging in the fsuipc7.log

I have this in my fsuipc7.ini:

[LuaFiles]
1=display vals

[Auto]
1=display vals

Attached is my fsuipc7.log

Any help would be much appreciated!

 

FSUIPC7.log

Edited by John Dowson
Moved to FSUIPC7 support forum
Posted
4 minutes ago, Asimov6 said:

I have fsuipc7 registered version

Please use the FSUIPC7 support sub-forum for all support issues. I have moved your post.

5 minutes ago, Asimov6 said:

try to run the example lua script "display vals.lua". I see-m to do something wrong, because I see nothing happening, no display on screen,

That script will not work in MSFS, as it uses the simconnect_text function which has been deprecated in MSFS and is no longer working.
To display values, you need to use the lua WND library instead. I have attached a simple script that shows how to use this - try updating the display vals.lua to use this instead.
When I get a chance (next week maybe) I can convert that script for use with MSFS - should have done this a long time ago really!

John

FPS_MonitorW.lua

Posted

Thanks

I removed the "display vals.lua" script and copied the FPS_MonitorW.lua script to the fsuipc7 installation folder. I still don't get any window appearing and see nothing related to the script or lua in the log. Looks like the lua engine is not or picking up the script somehow.

Posted

Is the script running?

1 hour ago, Asimov6 said:

have this in my fsuipc7.ini:

[LuaFiles]
1=display vals

[Auto]
1=display vals

This is wrong, and should be:

[Auto]
1=Lua display vals

and for the script I attached:

[Auto]
1=Lua FPS_MonitorW

i.e. to auto-run lua scripts, precede the script name with Lua.
Do not edit the [LuaFiles] section - this is managed by FSUIPC.

John
 

  • 2 weeks later...

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.