Problem With TripleHead2Go and FSX 2D View

Matrox TH2Go, MView, Projectors, SofTH, etc.
DB93
Posts: 17
Joined: 25 Apr 2009, 16:15

Problem With TripleHead2Go and FSX 2D View

Post by DB93 »

Hi Tom,

Each aircraft's panel.cfg file can be found in their respective panel folder, usually <path to FSX installation folderSimObjectsAirplanesaircraft's folderpanel>

Note that aircraft that have multiple panel folders, with different 'extensions' (ie: aircraft's folder namepanel.gps as an example), need to have the panel.cfg file in both folders to be fixed separately from each other.

For helicopters, substitute 'Rotorcraft' for 'Airplanes' in the above path.

Just remember to backup the originals before you start editing, so you have something to fall back to in case anything strange happens. Also, take it slow with your first one or two aircraft. Do a couple of small edits, load up the plane and check it to see how things are affected by different settings. Then go back and do a couple more. This will help you get familliar (and more confident) in hand-editing the files. It will also make things easier to fix if things go wrong, because you'll know the last couple of changes that you did, instead of trying to find a problem amid a bunch of changes being done all at once.

Once you've done a couple, you should be able to make the changes in your sleep. lol. :)

Good luck, and let us know how you make out.

-George

edited to add:

I'd recommend using a text editor like notepad to make the changes.

The panel.cfg file may just appear as the word 'panel' in the folder. If this is the case, I'd suggest configuring Windows to *not* hide extensions for known file types. To do this, go to your Control Panel, and double-click on Folder Options. Click on the 'View' tab, then uncheck 'Hide Extensions for Known File Types'. Finally, click on 'Apply', then on 'OK'. You can then close your control panel, and your file extensions should all now be visible. Just thought I'd add this information in case you needed it. :)
TomG628
Posts: 27
Joined: 26 Aug 2009, 21:29

Problem With TripleHead2Go and FSX 2D View

Post by TomG628 »

Thanks again, George. :D I found the panels folder and the cfg files just as you said. Why in the world did they ever put the Airplane folder in SimObjects I'll never know. Anyway, I am off to Cleveland this weekend to see the Browns and Packers so I won't get a chance to experiment with FSX until then. I'll keep you posted how I made out once I get back and edit the panels. Regards, Tom
DB93
Posts: 17
Joined: 25 Apr 2009, 16:15

Problem With TripleHead2Go and FSX 2D View

Post by DB93 »

Hi Tom,

Glad you found the panel folders and files, and I look forward to hearing how everything works out for you. Also, I hope you enjoy your trip to Cleveland, and I hope it's a great game. :)

Have fun!

-George
TomG628
Posts: 27
Joined: 26 Aug 2009, 21:29

Problem With TripleHead2Go and FSX 2D View

Post by TomG628 »

Hi George,
Well, I am back and made some changes. The 2D panel .333 change works fine! :D I can't quite figure out some of the the subpanels though.
I made the first changes to to the FlightOne Cessna 172. When I first opened the radio stack, gps, etc. some opened stretched out and others did not. One or two locked up the sim and the cursor started its thing and I had to reboot. I tried experimenting with the sizes in panel.cfg but couldn't figure out what the changes were doing. I simply dragged the edges and stretched them to a new size and location and saved the configuration.

One panel opens a small icon panel to open the various windows. It is called the Panel Manager in Panel.cfg. No matter what changes I made within panel.cfg, it still appears stretched out and unchanged in the sim. I can't figure out why making changes did not affect the panels size. Anyway, at least now it is usable. If you don't mind, could you explain those numbers and how they affect the subpanels? I understand the .333 being one third of the three monitors, but what about the sizes and positions of the various subpanels such as the gps, radio stack, throttle quadrant, etc.? What is the second number in the pair for? I don't want to do the complicated planes like the Level D 767 until I understand changing the values and how they are affecting the panels first. Thanks again for the great ideas. Regards, Tom
DB93
Posts: 17
Joined: 25 Apr 2009, 16:15

Problem With TripleHead2Go and FSX 2D View

Post by DB93 »

Hi Tom.

The window_size= value is a scale based on a percentage of the game's current resolution with a maximum value of 1.0 (100%). It takes two values: percentage of the game screen width, percentage of game screen height. So, for example, window_size=0.333, 0.5 tells the sim to draw that panel to 1/3 the game screen's width (0.333 = 1/3) while drawing it at half the game screen's height (0.5).

A number of aircraft panel windows already have a window_size= value associated with them, so before editing additional panel windows, look to see if they have a window_size= set of values. If they do have an existing set of values, and the first value (width scale) is NOT 1.0, then you need to divide the first value by 1/3 (3) instead of using the .333 value.

For example, let's say the radio stack has the following entry:
window_size=.875, 0.5

We would need to divide .875 by 3, which would give us a value of 0.2916 (rounded up to 0.292), so the window_size value would read:
window_size=0.292, 0.5 (as an example).

For the position= value, the screen is broken up into nine segments <0 - 8> starting at the top left-hand corner of the screen and ending at the bottom right-hand corner . So an entry that reads
position=7 indicates the window's position should be centered along the bottom of the screen.

Adjusting those two values should allow you to change the starting size and position of each panel window.

For more information on editing values in the panel.cfg file, and what each value does, I'd recommend checking out the following link:
http://msdn.microsoft.com/en-us/library/cc526956.aspx#window00_and_vcockpit00

For the Flight1 C172, I don't own that aircraft, and am not familliar with their panel manager, so I can't say why the changes you're making to it don't seem to be affecting that window. If the additional information here still doesn't help you get that window resized, you may want to ask over at the Flight1 support forums to see if anyone knows a work-around for their panel manager.

Hope this info helps, and let us know how everything works out. :)

-George
TomG628
Posts: 27
Joined: 26 Aug 2009, 21:29

Problem With TripleHead2Go and FSX 2D View

Post by TomG628 »

George,
Thanks again. That was a beautiful explanation. I understand it perfectly. Now I can tweak a bit more and see what results I get. One more quck question if you don't mind. Why do we have to disable text with the "//" entry? I forgot to add this question in my last post. Regards, Tom
DB93
Posts: 17
Joined: 25 Apr 2009, 16:15

Problem With TripleHead2Go and FSX 2D View

Post by DB93 »

Hi again, Tom.

The double-slashes (//) are used to tell FlightSim that the following text is a comment up until the next carriage return. It's typically used for developers to make comments about what a specific section of code does, or to document any changes that they may have recently made. Because of this, text that begins with a double-slash is always considered to be a comment, and as such, FlightSim will ignore the text following the double-slash up until it encounters the next carriage return.

Since FS will ignore any and all text that it considers a comment, if you use a // in front of a line that contains configuration information, then that information is ignored, as FS considers it a comment. It's very useful when changing values to comment out the original line and value, then replace it with a new line that contains your changes. Then you'll always have the original values available for points of reference. Naturally, as long as you backed up the file before editing it, you'll always have the complete, original file to fall back to for reference, or in worst-case scenarios, a replacement if things go wrong.

For example, say the original value for window_size for a particular panel window is:

window_size=0.75, 0.5

Well from that, we know that the panel will be 3/4 game screen width (to scale) and that it will be 1/2 game screen width (also to scale). If we want to make the window take up half the width of the screen instead of 3/4 of it, we know we'll need to change the first value to 0.5. Typically, in the panel.cfg, you would just make the change directly, so it would look like this:

window_size=0.5, 0.5

Now instead of just overwriting the existing values as shown above, you may decide that you want to keep the old values around for reference. You would then comment out the original line, then replace it (preferably directly underneath it, just for ease of your own reference). Here's an example using the values mentioned above.

// window_size=0.75, 0.5
window_size=0.5, 0.5

FlightSim will ignore the line with the 0.75 value in it because it believes that to be a comment and not an actual configuration option. This also works as an easy way to disable an option without having to delete lines, and then having to replace them if they weren't the cause of the problem or if you didn't get the desired result.

Hope this helps, and sorry for the long-winded response. I just wanted to make sure I covered everything I thought you should know about 'em. :)

-George
john bentley
Posts: 123
Joined: 13 Oct 2008, 07:06

Problem With TripleHead2Go and FSX 2D View

Post by john bentley »

Hi Tom,

I refer you to my previous post, with the section "To resize the utility panels, eg Radio Stack, Throttle, etc" > "The panel.cfg method".

George's explanations are accurate. However, note that there are two ways to effect panel (including utility panel) position:

[list]* position=x // where x = 1 to 8 (as george explained); or
* window_pos=x, y

Where x and y represent the percentages of screen. x starts on the left and goes to the right for positive values, just like the convention you learnt at school. Counter to the convention you learnt at school, y starts at the top and goes *down* for positive values. [/list:u]
For example:

Code: Select all

position= 8

   window_pos=0.682,0.42

If a window section has both "position=x" and "window_pos=x,y" then "window_pos=" prevails. It is never a good idea to rely on such quirky program behaviour. Standard practice is to comment out, in the manner george described, the technique you do not want to take effect. This makes things explicit and therefore the file is more readable. eg

Code: Select all

//position=7

   window_pos=0.682,0.42

Note, too, if neither position technique is included FSX defaults to, assumes, position=7.

Useful decimals for x values in window_pos at 5040 are:
1/3 -> 0.333
1/2 * 1/3 -> 0.166
1/9 -> 0.111
1/27 -> 0.037

1 px -> 0.000198 (100/5040)/100
50px -> 0.0099
70px -> 0.0138
100px -> 0.0198

You can add pixel values, expressed as a decimal percentage, to fractional values, expressed as a decimal percentage. Eg
* 2/3rds of a 5040 screen places you on the left edge of the right monitor. window_pos=0.666,y
* Add 70px to allow for bezel management (if 70px is your setting like me), pushing the utility panel further right. window_pos=0.666 + 0.0198,y. That is, window_pos=0.686,y

This gives you theoretically approximate positions. You may like to nudge a panel left or right via trail and error.

The C172sp is a bit of a bitch as there are several main panels ("main panel", "IFR panel", "Landing View") that, if you do not get right, will cause the crazy, hourglass, cursor problem.

So here are my differences (additions and changes) for the C172sp. I thought I'd throw in B737-800 values at no extra charge. They represent changes from the default panel.cfg files for a 5040 resolution. They generally place the radio stack on the right hand monitor, the gps on the left, open them by default, and allow for 70px bezel managment. You can guess what "visible=0" and "visible=1" means.

Code: Select all



   // Cessna 172sp
   
   [Window00] // Main Panel
   window_size= 0.333, 1.00
   //view_window_rect=0,0,8192,4000
   view_window_rect=0,0,8192,3600
   
   [Window03] // IFR Panel
   windowsize_ratio=1.000
   window_size= 0.333, 1.00
   
   [Window04]  // Landing View
   window_size= 0.333, 1.00
   
   // You could ignore changes to Window01 as the main panel already has a radio stack panel embedded
   [Window01] // Radio Stack Panel
   embedded.
   //position=8
   window_size= 0.050,0.58
   window_pos=0.682,0.42
   visible=1
   
   [Window02] // GPS Panel
   window_pos=0.157,0.52  // x,y
   window_size=0.163,0.48  // width, height
   VISIBLE=1


Code: Select all



   // Boeing 737-800
   
   [VIEWS]
   //VIEW_FORWARD_DIR=-1.000, 0.000, 0.000
   
   // The following rotates the nose down a little to see over the dash. Also use Ctrl + Q and Ctrl + Shift + Q in flight.
   VIEW_FORWARD_DIR=5.000, 0.000, 0.000 
   
   [Window00] // Main Panel
   window_size= 0.333,1.00
   
   [Window01] // Radio Stack
   //position=8
   window_size= 0.050,0.58
   window_pos=0.682,0.42
   visible=1
   
   [Window02]  // GPS
   window_pos=0.157,0.52  // x,y
   window_size=0.163,0.48  // width, height
   VISIBLE=1
   
   [Window03] // Throttle Panel
   window_pos=0.734,0.45  // x,y
   window_size=0.10,0.55  // width, height
   visible=1
   
   [Window04] // Overhead Panel
   window_size=0.166,0.7  // width, height
   
   [Window05] // Trim Panel
   window_pos=0.839,0.80  // x,y
   window_size=0.060,0.20  // width, height


John.
DB93
Posts: 17
Joined: 25 Apr 2009, 16:15

Problem With TripleHead2Go and FSX 2D View

Post by DB93 »

George's explanations are accurate. However, note that there are two ways to effect panel (including utility panel) position:

[list]* position=x // where x = 1 to 8 (as george explained); or
* window_pos=x, y [/list:u]


Hi Tom,

I just wanted to point out that if you want the most accurate method of placing the panel windows where you want them, then you should use John's method that utilizes window_pos=x, y. The methods that I use are typically quick and dirty, to get things to appear relatively near where I want them with as little effort as possible. I'm in the habit of resizing and repositioning my panel windows as a part of my pre-flight, so I'm satisfied with the windows being close to the size and position where I'll want them. John's method is much more in-depth, and can give you much greater flexibility and control over the exact placement of your panel windows, which, once configured to your liking, will always open to the size and location you want them for each aircraft that you edit this way.

Hope this info helps. :)

-George
TomG628
Posts: 27
Joined: 26 Aug 2009, 21:29

Problem With TripleHead2Go and FSX 2D View

Post by TomG628 »

Wow, Thanks again George and John. You guys really explained it in easy to understand detail. I'm sure it will help other simmers besides me. :D Now I can start enjoying FSX again. Regards,
Tom
TomG628
Posts: 27
Joined: 26 Aug 2009, 21:29

Problem With TripleHead2Go and FSX 2D View

Post by TomG628 »

Hi George and Jon,
I am making progress in my editing, but it's taking many trials, reboots, and checks. Especially that pesky panel manager. I was wondering if you could take a look at the entries for the default window. Any idea what the "size_mm=90, 728" is for? Thanks again. Tom


[Window07]
Background_color=0,0,0
size_mm=90, 728
position=0
visible=0
ident=110
zorder=9
window_size= 0.51, 0.550
//window_pos= 0.947, 0.002

I tried dividing the .51 and .550 by 3 each (0.17, 0.183) but got a small, unrecognizable rectangle. I added the // to the last line.
john bentley
Posts: 123
Joined: 13 Oct 2008, 07:06

Problem With TripleHead2Go and FSX 2D View

Post by john bentley »

Hi Tom,

Yeah don't touch "size_mm=". I can't get my head around that either. Adjusting this makes adjusting other values difficult.

What aircraft are you editing? What resolution are you using (5040 x 1050)?

You probably don't need to adjust the height component of window_size. Remember having three screens increases the width, not the height, of resolutions compared to having one screen.

So you could try
window_size= 0.17, 0.550

Edit: changed "y component" to "height component"
TomG628
Posts: 27
Joined: 26 Aug 2009, 21:29

Problem With TripleHead2Go and FSX 2D View

Post by TomG628 »

Hi John and George,
Things are going pretty well with setting up the screens. I just did the default Cessna with the G1000, and my Flight1 Pilatus PC-12. The easiest thing for me has been to set any window size that is 1.000 to the 0.333. That gets me started. I then go to the sim and manually try and resize the panels. Most cooperate but some are quite stubborn. I can find the sizing arrow along the edges of most of the panels, but some don't allow the mouse to resize. In the Pilatus the overhead and altitude select window can't be resized with the mouse. So I went into the Panel file and tried to adjust the numbers. Upon returning to the sim, it's as if the sim ignores the changes. The windows remain the same size they were before I changed the size numbers. Any ideas why they won't resize? Thanks. Tom
john bentley
Posts: 123
Joined: 13 Oct 2008, 07:06

Problem With TripleHead2Go and FSX 2D View

Post by john bentley »

Yes, for most aircraft setting the main panel [Window00] from 1.00 to 0.333 is enough to get you started. That is normally enough to stop the crazy cursor. Thereafter you can generally resize the sub panels, as you have been describing, then save the whole result as a flight.

Some aircraft, however, have more than one "main" panel. That is, a default panel, an IFR panel, and possibly a landing panel. I have found you need to fix all of these (setting 1.00 to 0.33) to prevent the crazy cursor.

When within FS and you find yourself unable to resize a panel with your mouse all you need to do is undock it. You will then be able to resize it manually. Once you are happy redock it.

To undock right click over the panel.

Edit: The panels that don't immediately resize with a mouse are those whose image has transparencies at the edge. Your mouse can't get purchase on the invisibility. If the panel isn't rectangular (eg Throttle quadrant on B738) this will apply. Undocking will work for these and all other panels.
DB93
Posts: 17
Joined: 25 Apr 2009, 16:15

Problem With TripleHead2Go and FSX 2D View

Post by DB93 »

Hi guys,

I just wanted to say that I'm happy you're getting through it all, Tom, and wanted to point out that I think John has been doing a great job helping you get through it all. :) Just remember to back up all the panel files you modify to someplace safe (backup CD or the like) in case you ever need to reinstall FSX, so you won't have to redo all your changes and lose all that work.

-George
TomG628
Posts: 27
Joined: 26 Aug 2009, 21:29

Problem With TripleHead2Go and FSX 2D View

Post by TomG628 »

Hi guys. You both have been a big help. I'll keep you posted. :D
Tom
DB93
Posts: 17
Joined: 25 Apr 2009, 16:15

Problem With TripleHead2Go and FSX 2D View

Post by DB93 »

Hi guys. You both have been a big help. I'll keep you posted. :D
Tom


Hi Tom,

Glad to hear back from you, and sounds like you're coming along. How have you made out with the panels that weren't resizing for you, did you get them sorted out?

-George
TomG628
Posts: 27
Joined: 26 Aug 2009, 21:29

Problem With TripleHead2Go and FSX 2D View

Post by TomG628 »

Hi George,
I got the Air Creation Trike up and running by adding the window_size line. (There wasn't one there.) As far as the panels, no luck. When I right click on the panels that can't be resized I have only 2 choices - CLOSE WINDOW or HIDE MENU BAR. There is no option for undocking on these windows. I tried again and there is no way to grab the edge either. I can't think of anything else to do with these windows.

Thanks. Tom
john bentley
Posts: 123
Joined: 13 Oct 2008, 07:06

Problem With TripleHead2Go and FSX 2D View

Post by john bentley »

For the Air Creation Trike I use "window_size=0.330,1.0"

"window_size=0.333,1.0" didn't work for me. So the new rule to add is:

If 1/3 doesn't work, try a little under 1/3.

I can undock (move and resize) all the main and subpanels.

If you ever invoke the crazy cursor, through a mistaken panel.cfg edit, you may need to restart FS before any further changes take effect.
DB93
Posts: 17
Joined: 25 Apr 2009, 16:15

Problem With TripleHead2Go and FSX 2D View

Post by DB93 »

Hi Tom,

For the Aircreation, these are the settings used for my Window.xxx settings (Window.00 - Window.04) in the panel.cfg file that work for me.

Code: Select all



   [Window00]
   file_1024=AirCreation_582SL_background.bmp
   //position=7
   size_mm=1024,768
   window_size=0.333, 1.000
   window_pos=0.333, 0.000
   visible=1
   ident=MAIN_PANEL
   gauge00=Aircreation_582SL!altimeter, 326,624
   gauge01=Aircreation_582SL!compass,   456,624
   gauge02=Aircreation_582SL!asi,       585,624
   gauge04=SimIcons1024!Other Controls Icon, 446, 744
   gauge05=SimIcons1024!Kneeboard Icon,       468, 744
   gauge06=SimIcons1024!ATC Icon,             490, 744
   gauge07=SimIcons1024!Map Icon,             512, 744
   gauge08=SimIcons1024!GPS Icon,             534, 744
   gauge09=SimIcons1024!Radio Icon,           556, 744
   
   [Window01]
   BACKGROUND_COLOR=0,0,0
   size_mm=208,129
   //position=8
   visible=0
   ident=RADIO_STACK_PANEL
   window_size=0.080, 0.320
   window_pos=0.920, 0.680
   
   gauge00=Handheld_Radio!radio,0,0
   
   
   [Window02]
   size_mm=545,354
   //position=2
   BACKGROUND_COLOR=0,0,0
   VISIBLE=0
   ident=GPS_PANEL
   window_size=0.155,0.3625
   window_pos=0.690, 0.620
   
   gauge00=fs9gps!gps_295,            0,0
   
   
   [Window03]
   file=AirCreation_582SL_popup_background.bmp
   windowsize_ratio=1.000
   //position=6
   size_mm=146,226
   ident=MISC_POPUP_1
   window_size=0.080, 0.320
   window_pos=0.590, 0.680
   
   gauge00=Aircreation_582SL!fuel,      16, 142
   gauge01=Aircreation_582SL!rpm,       18, 17
   gauge02=Aircreation_582SL!ignition_switch, 97, 140
   
   
   [Window04]
   //position=7
   size_mm=1024,768
   child_3d=1
   background_color=0,0,0
   ident=MINIPANEL
   window_size=0.100, 0.400
   
   gauge00=Aircreation_582SL!altimeter, 326,624
   gauge01=Aircreation_582SL!compass,   456,624
   gauge02=Aircreation_582SL!asi,       585,624
   


You can either try copying and pasting the above code into your panel.cfg file for the aircreation (pasting over the Window.00 - Window.04 entries), or you can use the code for comparison against your edits to try to determine where you need to make changes.

In any case, as John said, you don't have to set the window_size to 0.333, 1.000. You can start with window_size=0.250, 0.500 with a window_pos of 0.5, 0.5, and then you can tweak the window's size and position from there.

Hope this helps. :)

-George

Edited to add: For many of the default aircraft, the GPS window has a size defined as "window_size=0.5". Remember to either make your size changes to that line, or to comment it out and add a new line with the values you wish to use. This is because adding a second "window_size=" value will be ignored for that window, so either the existing one needs to be edited or commented out to get your changes to show. I just wanted to point that out, as that's messed me up a couple of times. :P

Edited again, to add: Since my involvment in this thread, I've also gone and started editing all my aircraft panel files (and backing up the modified ones as I do so) for position and size, instead of my previous 'quick and dirty, 0.333 and call it a day' methods (thanks for giving me the incentive to do this, John.) As such, I've got a few done (and doing more each day), so if you're stuck on an aircraft, post here, and possibly either John or myself has already done something with that aircraft, and can help get you through it by sharing our code and/or .cfg files if needed.
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest