Asimov6 Posted January 3 Report Posted January 3 (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 January 3 by John Dowson Moved to FSUIPC7 support forum
John Dowson Posted January 3 Report Posted January 3 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
Asimov6 Posted January 3 Author Report Posted January 3 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.
John Dowson Posted January 3 Report Posted January 3 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
Asimov6 Posted January 3 Author Report Posted January 3 Ah, that "Lua" prefix was missing all the time. Now it is working. I missed that. Thanks a lot!
John Dowson Posted January 3 Report Posted January 3 1 minute ago, Asimov6 said: Ah, that "Lua" prefix was missing all the time. Now it is working. I missed that. Thanks a lot! 👍
John Dowson Posted 4 hours ago Report Posted 4 hours ago I have updated the display vals.lua script to use the Wnd library in the attached version. John display_valsW.lua
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