Jump to content
The simFlight Network Forums

Can't see Lua script output on 21:9 monitor


Recommended Posts

Hi Pete,

 

Since upgrading my 24" 1900x1080 main monitor to a 34" Samsung  curved 3440x1440 I can't see the output of a modified Lua script of yours that I was using. The script was 'Display Vals' I think (I don't have access to my desktop at the moment). It was assigned to a keyboard key and I had added my own output/input values I wished to monitor. Since switching monitors they are nowhere to be seen. I have tried your original script Pete as well with the same results. I also previously used another Lua script which placed the info in the bottom left corner of the monitor which I have lost since a complete reinstall FSUIPC and WIDECLIENT are both working as normal otherwise.

 

Do you or anyone else have any idea of what to modify? If I could remember the script that moved the text I'm sure I could modify that, but unfortunately I took about a month break from FSUIPC, which is plenty of time to forget even the basic knowledge of Lua scripting I had.

 

If you, Pete, or anyone else can help needs any more info please let me know, as I will be at my desktop later.

 

Thanks for anyone who can offer some ideas.

 

Regards,

 

Paul

Link to comment
Share on other sites

Since upgrading my 24" 1900x1080 main monitor to a 34" Samsung  curved 3440x1440 I can't see the output of a modified Lua script of yours that I was using. The script was 'Display Vals' I think (I don't have access to my desktop at the moment). It was assigned to a keyboard key and I had added my own output/input values I wished to monitor. Since switching monitors they are nowhere to be seen. I have tried your original script Pete as well with the same results. I also previously used another Lua script which placed the info in the bottom left corner of the monitor which I have lost since a complete reinstall FSUIPC and WIDECLIENT are both working as normal otherwise.

 

You need really to state what Flight Sim you are using. The position of the Window will be stored in a section in whatever saved Flight File you are using.  The section will normally be [Lua display] for FSX, or <Section Name="LUA display"> for a P3D fxml flight file. They are equivalent.

 

Same goes for other types of overlaid windows, maybe with other names.

 

The section will have an undocked "true" or "false" value and two sets of screen coordinates, one for docked one for undocked. You can change those, or just delete the entire section to make the position revert to its normal default.

 

Pete

Link to comment
Share on other sites

You need really to state what Flight Sim you are using. The position of the Window will be stored in a section in whatever saved Flight File you are using.  The section will normally be [Lua display] for FSX, or <Section Name="LUA display"> for a P3D fxml flight file. They are equivalent.

 

Same goes for other types of overlaid windows, maybe with other names.

 

The section will have an undocked "true" or "false" value and two sets of screen coordinates, one for docked one for undocked. You can change those, or just delete the entire section to make the position revert to its normal default.

 

Pete

Sorry Pete, it's FSX I'm using. I will try your fix in about 10 mins or so. 

 

Thanks as always for the prompt feedback.

 

Regards,

Paul

Link to comment
Share on other sites

Hi, I couldn't find any section in my saved flights (which I presume you were referring to) which had a section called LUA Display. Apologies for not getting back to you earlier. I'll a few flights, log LUA and key presses and do some of my own research before I get back to you.

 

Regards,

Paul

Link to comment
Share on other sites

Hi, I couldn't find any section in my saved flights (which I presume you were referring to) which had a section called LUA Display. Apologies for not getting back to you earlier. I'll a few flights, log LUA and key presses and do some of my own research before I get back to you.

 

I don't know of any other reason why a window would not appear on screen, only that the saved coordinates are off-screen. You could try manually adding a section to a FLT file then loading that flight. Here's a typical [LUA Display] section for a .FLT file:

 

[LUA display]
Undocked=False
ScreenUniCoords=500, 500, 1000, 600
UndocCoords=0, 0, 0, 0
 

 

and P3D (for a .fxml file)

 

        <Section Name="LUA display">
            <Property Name="Undocked" Value="False" />
            <Property Name="ScreenUniCoords" Value="500, 500, 1000, 600" />
            <Property Name="UndocCoords" Value="0, 0, 0, 0" />
        </Section>
 

The coordinate numbers are in pixels,  x, y, cx, cy

 

where x, y = top left corner position in FS screen or window, x from left to right, y from top to bottom

cx, cy = size of window.

 

It would be invisible if the x, y position is negative or greater than the FS window size.

 

One other thing occurs to be and that is transparency. I've never used any transparency setting, but maybe this type of window is subject to some other parameter somewhere which has been set to 100% transparent? You could ask over in the FSX Forum on AVSIM about that, or maybe look through the FSX.CFG file.

 

Yet another thing to check. Do you see the Flying Tips window at all? Maybe you have those disabled. Try enabling them. There should already be a [Flying Tip Window] section in your FLT files.

 

Pete

Link to comment
Share on other sites

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.