Jump to content

Recommended Posts

Posted

*disclaimer*

I know there are many posts on this subject. I have been searching, and reading for over a hour since I got home from work. If you don't have anything nice to say about helping, just jog on please!

*end*

 

I have seen how to make the .lua's. I just simply don't understand what to do. Usually I work to find the answer with trial and error, but I don't want to get in over my head, this is past what I can do for the most part. I will give the info of my system, monitors and resolution, perhaps someone does not mind taking a few minutes to explain to me in layman terms for me and the other confused people!! Thanks in advance.

 

AMD 3800+ 2.6 Gig Processor

3 Gig pc 3600 DDR Dual Channel ram

Nvidia 8800 GTS with 512 Memory

Viewsonic 22" wide, set at 1680x1050 (center)

Dell CRT 19" set at 1024x768 (left)

Windows XP

 

All I am trying to do is get the Shkval on the left screen. Nothing complicated I thought... lol

 

Thank you for help, if any!!

Posted

Alright this is what I did, and what it did to the game.

 

Here, C:\Program Files\Eagle Dynamics\Ka-50\Config\MonitorSetup I made this LUA called, pit_camera+abris+shkval

 

 

 

-- Viewports =

{

Center =

{

x = 1024;

y = 0;

width = 1680;

height = 1050;

viewDx = 0;

viewDy = 0;

aspect = 1.6;

}

}

Shkval =

{

x = 3216;

y = 0;

width = 512;

height = 768/2;

}

ABRIS =

{

x = 2704;

y = 0;

width = 512;

height = 768;

 

 

Here, C:\Program Files\Eagle Dynamics\Ka-50\BlackShark\data\scripts I made this change to the options LUA

 

"graphics"] =

{

["multiMonitorSetup"] = "pit_camera+abris+shkval",

["color"] = "32",

["heatBlr"] = 0,

["scenes"] = "medium",

["water"] = 1,

["fullScreen"] = false,

["visibRange"] = "Low",

["aspect"] = 1.6,

["textures"] = 1,

["shadows"] = 2,

["display_mode"] =

{

["avi"] =

{

["bpp"] = 32,

["resolution"] = "640x480",

["full_screen"] = false,

["aspect"] = 1.333333333,

["height"] = 480,

["width"] = 640,

}, -- end of ["avi"]

}, -- end of ["display_mode"]

["effects"] = 2,

["haze"] = 1,

["lights"] = 2,

["height"] = 1050,

["resolution"] = "1680x1050",

["civTraffic"] = 0,

["width"] = 1680,

}, -- end of ["graphics"]

 

 

 

__________________________

Now that is done, if I "span" the monitors, the image is centered with about 1/4 of each screen on the outside, the background. I am not in fullscreen.

 

If I do not span the monitors, I cant even get it to start up.

 

I think the resolutions are what they should be though, what i do see, is the right size.

Posted

I'd like some help also I have no clue what I'm doing but I have a 1920x1080 "MAIN" and 1680x1050 on my "LEFT"

 

Anyone be kind enough to do the math and post the .lua files?

 

Also I'm running Vista64.

 

I tried this once and had to revert back to default it was so messed up.

 

Also thought you only needed the "phantom" monitor when having it on the right side? I also know you have to use windowed mode?

 

Might as well write all this in russian to me IM LOST.

Posted

As soon as I figure this out, I will post here what I did. i am going to try to add a ghost now, and see what happens. Now its all the way across both monitors, but still centered.

Posted

I was able to figure it out today, and it really is simple after getting it. I find it to be a waste with TIR, but I digress...

 

aceflier, what to you want to do with your monitors?

Posted

 

-- Viewports =

{

Center =

{

x = 1024;

y = 0;

width = 1680;

height = 1050;

viewDx = 0;

viewDy = 0;

aspect = 1.6;

}

}

Shkval =

{

x = 512; -- not sure why you had your crazy wide number there

y = 0;

width = 512;

height = 768/2;

}

ABRIS =

{

x = 0; -- not sure why you had your crazy wide number there

y = 0;

width = 512;

height = 768;

 

 

Here, C:\Program Files\Eagle Dynamics\Ka-50\BlackShark\data\scripts I made this change to the options LUA

 

"graphics"] =

{

["multiMonitorSetup"] = "pit_camera+abris+shkval",

["color"] = "32",

["heatBlr"] = 0,

["scenes"] = "medium",

["water"] = 1,

["fullScreen"] = false, -- if you set your main screen to 1280x768, you can use fullscreen for better performance

["visibRange"] = "Low",

["aspect"] = 1.6, -- no, this should be ((1680+1024)/1050) or ((1680+1024)/768) depending on your main screen vertical res

["textures"] = 1,

["shadows"] = 2,

["display_mode"] =

{

["avi"] =

{

["bpp"] = 32,

["resolution"] = "640x480",

["full_screen"] = false,

["aspect"] = 1.333333333,

["height"] = 480,

["width"] = 640,

}, -- end of ["avi"]

}, -- end of ["display_mode"]

["effects"] = 2,

["haze"] = 1,

["lights"] = 2,

["height"] = 1050, -- yes, but if you set your main to 1280x768 you can use fullscreen. make this 768

["resolution"] = "1680x1050", -- yes, but if you change to 1280x768 you'll need to change that here too

["civTraffic"] = 0,

["width"] = 1680, -- no, (1680+1024) = 2704

}, -- end of ["graphics"]

 

 

 

__________________________

Now that is done, if I "span" the monitors, the image is centered with about 1/4 of each screen on the outside, the background. I am not in fullscreen.

 

If I do not span the monitors, I cant even get it to start up.

 

I think the resolutions are what they should be though, what i do see, is the right size.

 

See bold above. I'd recommend using the same vertical res for XP, as a) you can use fullscreen and b) you will not have the issues with the multiplayer screen that you will with asymmetric vertical res.

DCS Wishlist: | Navy F-14 | Navy F/A-18 | AH-6 | Navy A-6 | Official Navy A-4 | Carrier Ops | Dynamic Campaign | Marine AH-1 |

 

Streaming DCS sometimes:

Posted

It would seem that if fullscreen is not working for you, it's because both screens need to be the same resolution (vertical and horizontal) whereas I previously thought it was only the vertical that had to be the same. If this is an issue for you, go to non-fullscreen or set both screens to the same res.

 

cheers

DCS Wishlist: | Navy F-14 | Navy F/A-18 | AH-6 | Navy A-6 | Official Navy A-4 | Carrier Ops | Dynamic Campaign | Marine AH-1 |

 

Streaming DCS sometimes:

Posted
I was able to figure it out today, and it really is simple after getting it. I find it to be a waste with TIR, but I digress...

 

aceflier, what to you want to do with your monitors?

 

Wanting the shkval and abris on left monitor.

 

Win vista Main display 1920x1080 left monitor is 1680x1050.

 

I have gtx 260's in SLI so I hope i can pull this off. Even though SLI is doing squat for me at the moment. :(

Posted

I have not even tried it in fullscreen yet. I will try that change as well. I just wonder, I bought the widescreen to see more, I think if I have to sacrifice it, I wont even do the 2 monitors... what do you think?

Posted

Alright This is the changes since getting home... If I do fullscreen, it wont load all... Obviously... Non full, same thing, split in the center.

 

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 1680;

height = 1050;

viewDx = 0;

viewDy = 0;

aspect = 1.6;

}

}

Shkval =

{

x = 2192;

y = 0;

width = 512;

height = 768/2;

}

ABRIS =

{

x = 2704;

y = 0;

width = 512;

height = 768;

 

++++++++++++++++++++++++++++++++++++++++++++++++++++

pit_camera+abris+shkval",

["color"] = "32",

["heatBlr"] = 0,

["scenes"] = "medium",

["water"] = 1,

["fullScreen"] = false,

["visibRange"] = "Low",

["aspect"] = 2.57524,

["textures"] = 1,

["shadows"] = 2,

["display_mode"] =

{

["avi"] =

{

["bpp"] = 32,

["resolution"] = "640x480",

["full_screen"] = false,

["aspect"] = 1.333333333,

["height"] = 480,

["width"] = 640,

}, -- end of ["avi"]

}, -- end of ["display_mode"]

["effects"] = 2,

["haze"] = 1,

["lights"] = 2,

["height"] = 1050,

["resolution"] = "1680x1050",

["civTraffic"] = 0,

["width"] = 2704,

}, -- end of ["graphics"]

Posted

try this for Shkval/ABRIS on the left:

 

Viewports =

{

Center =

{

x = 1024;

y = 0;

width = 1680;

height = 1050;

viewDx = 0;

viewDy = 0;

aspect = 1.6;

}

}

Shkval =

{

x = 0;

y = 0;

width = 512;

height = 768/2;

}

ABRIS =

{

x = 512;

y = 0;

width = 512;

height = 768;

 

If that doesn't work you might need a 1024x768 phantom screen on the far right.

DCS Wishlist: | Navy F-14 | Navy F/A-18 | AH-6 | Navy A-6 | Official Navy A-4 | Carrier Ops | Dynamic Campaign | Marine AH-1 |

 

Streaming DCS sometimes:

Posted

just did this minus the red words... Same thing, centered across the monitor...

 

Viewports =

{

Center =

{

x = 1024; -- Starts at 1024 because of the 1024x768 "phantom" screen on the left

y = 0;

width = 1680; -- actual pixel width of the main display

height = 1050; -- actual pixel height of the main display

viewDx = 0;

viewDy = 0;

aspect = 1.6; -- =1680/1050

}

}

Shkval =

{

x = 3216; -- as the Shkval starts at the second half of the right monitor, this is 1024 (the phantom width) plus 1680 (the main view width) plus half of 1024 (halfway across the right monitor width)

y = 0;

width = 512; -- half of 1024, the secondary monitor width

height = 768/2; -- to keep the aspect correct, half the height of the secondary screen

}

ABRIS =

{

x = 2704; -- starts at the left of the secondary screen, so 1024 (the width of the phantom) plus 1680 (the width of the main screen)

y = 0;

width = 512; -- half the secondary screen pixel width

height = 768; -- full height of the secondary screen

}

______________________________________________________________

 

"graphics"] =

{

["multiMonitorSetup"] = "pit_camera+abris+shkval", -- the name of the file above, lower case

["color"] = "32",

["heatBlr"] = 0,

["scenes"] = "medium",

["water"] = 0,

["fullScreen"] = false, -- doesn't work in Vista fullscreen

["visibRange"] = "High",

["aspect"] = 3.55048, -- The total width of your displays (including phantom) divided by the largest vertical resolution. In my case, (1024+1680+1024)/1050.

["textures"] = 2,

["shadows"] = 2,

["display_mode"] =

{

["avi"] =

{

["bpp"] = 32,

["resolution"] = "640x480",

["full_screen"] = false,

["aspect"] = 1.333333333,

["height"] = 480,

["width"] = 640,

}, -- end of ["avi"]

}, -- end of ["display_mode"]

["effects"] = 3,

["lights"] = 2,

["haze"] = 1,

["terrPrld"] = "20",

["height"] = 1050, -- largest of your pixel heights

["resolution"] = "1680x1050", -- main screen resolution

["civTraffic"] = 1,

["width"] = 3728, -- total screen pixel width, including phantom

}, -- end of ["graphics"]

Posted
just did this minus the red words... Same thing, centered across the monitor...

 

What do you mean "centred across the monitor" - can you send a photo of the screen?

DCS Wishlist: | Navy F-14 | Navy F/A-18 | AH-6 | Navy A-6 | Official Navy A-4 | Carrier Ops | Dynamic Campaign | Marine AH-1 |

 

Streaming DCS sometimes:

Posted (edited)
just did this minus the red words... Same thing, centered across the monitor...

Viewports =
{
   Center =
   {
        x = 1024; [color=red][i]-- Starts at 1024 because of the 1024x768 "phantom" screen on the left[/i][/color]
        y = 0;
        width = 1680; [color=red][i]-- actual pixel width of the main display[/i][/color]
        height = 1050; [color=red][i]-- actual pixel height of the main display[/i][/color]
        viewDx = 0;
        viewDy = 0;
        aspect = 1.6; [color=red][i]-- =1680/1050[/i][/color]
   }
}
Shkval =
{
   x = 3216; [color=red][i]-- as the Shkval starts at the second half of the right monitor, this is 1024 (the phantom width) plus 1680 (the main view width) plus half of 1024 (halfway across the right monitor width)[/i][/color]
   y = 0;
   width = 512; [color=red][i]-- half of 1024, the secondary monitor width[/i][/color]
   height = 768/2; [color=red][i]-- to keep the aspect correct, half the height of the secondary screen[/i][/color]
}
ABRIS =
{
   x = 2704; [color=red][i]-- starts at the left of the secondary screen, so 1024 (the width of the phantom) plus 1680 (the width of the main screen)[/i][/color]
   y = 0;
   width = 512; [color=red][i]-- half the secondary screen pixel width[/i][/color]
   height = 768; [color=red][i]-- full height of the secondary screen[/i][/color]
}

 

I have no idea if this will help, but speaking purely programming-wise, is it possible you misplaced a curly bracket?

 

From what I can tell from what you say it's almost as if the viewports command only entails the "center" section. So, what if you turned your code into the following:

Viewports =
{
   Center =
   {
        x = 1024; [color=red][i]-- Starts at 1024 because of the 1024x768 "phantom" screen on the left[/i][/color]
        y = 0;
        width = 1680; [color=red][i]-- actual pixel width of the main display[/i][/color]
        height = 1050; [color=red][i]-- actual pixel height of the main display[/i][/color]
        viewDx = 0;
        viewDy = 0;
        aspect = 1.6; [color=red][i]-- =1680/1050[/i][/color]
   }
 [color=purple]<------- Removed curly bracket[/color]
Shkval =
{
   x = 3216; [color=red][i]-- as the Shkval starts at the second half of the right monitor, this is 1024 (the phantom width) plus 1680 (the main view width) plus half of 1024 (halfway across the right monitor width)[/i][/color]
   y = 0;
   width = 512; [color=red][i]-- half of 1024, the secondary monitor width[/i][/color]
   height = 768/2; [color=red][i]-- to keep the aspect correct, half the height of the secondary screen[/i][/color]
}
ABRIS =
{
   x = 2704; [color=red][i]-- starts at the left of the secondary screen, so 1024 (the width of the phantom) plus 1680 (the width of the main screen)[/i][/color]
   y = 0;
   width = 512; [color=red][i]-- half the secondary screen pixel width[/i][/color]
   height = 768; [color=red][i]-- full height of the secondary screen[/i][/color]
}
} <--[color=purple]added curly bracket[/color]

 

Otherwise I think the viewport code may only execute the center part, then find an "end" bracket, and skip the Shkval/ABRIS lines.

 

 

 

-Z

Edited by Zembla

[sigpic][/sigpic]

I aaaaaam ... a banana!

Posted

can you paste your actual config files here? That doesn't look right (obviously!). How are your screens set up in windows/driver display settings?

  • Like 1

DCS Wishlist: | Navy F-14 | Navy F/A-18 | AH-6 | Navy A-6 | Official Navy A-4 | Carrier Ops | Dynamic Campaign | Marine AH-1 |

 

Streaming DCS sometimes:

Posted
is it possible you misplaced an accolade?

 

I know it seems wierd, but that's correct. That's the config straight from my working (Vista) system. Shkval and ABRIS aren't "Viewports" per se.

  • Like 1

DCS Wishlist: | Navy F-14 | Navy F/A-18 | AH-6 | Navy A-6 | Official Navy A-4 | Carrier Ops | Dynamic Campaign | Marine AH-1 |

 

Streaming DCS sometimes:

Posted (edited)

What files do you want, I can zip them and put them for download, or just take up some forum space and try to learn and teach for other guys...?

 

I really appreciate your attention to this!!

 

p.s. that is the direct copy of the vista... the post tutorial does not have how to do it in xp with different rezzes.. I see it all over done in screenshots.

Edited by S7_Viper
Posted

Paste them in a code block here, may as well broadcast the solution

 

the monitor config file and the options.lua graphics section - copied from the actual files you're using.

 

cheers

DCS Wishlist: | Navy F-14 | Navy F/A-18 | AH-6 | Navy A-6 | Official Navy A-4 | Carrier Ops | Dynamic Campaign | Marine AH-1 |

 

Streaming DCS sometimes:

Posted

Options section - the first [

 

This is what I have now, cause I did his math like he said for the ghost screen...

 

 

"graphics"] =

{

["multiMonitorSetup"] = "pit_camera+abris+shkval",

["color"] = "32",

["heatBlr"] = 0,

["scenes"] = "medium",

["water"] = 1,

["fullScreen"] = false,

["visibRange"] = "Low",

["aspect"] = 3.55048,

["textures"] = 1,

["shadows"] = 2,

["display_mode"] =

{

["avi"] =

{

["bpp"] = 32,

["resolution"] = "640x480",

["full_screen"] = false,

["aspect"] = 1.333333333,

["height"] = 480,

["width"] = 640,

}, -- end of ["avi"]

}, -- end of ["display_mode"]

["effects"] = 2,

["haze"] = 1,

["lights"] = 2,

["height"] = 1050,

["resolution"] = "1680x1050",

["civTraffic"] = 0,

["width"] = 3728,

}, -- end of ["graphics"]

 

___________________________________________________

 

Viewports =

{

Center =

{

x = 1024;

y = 0;

width = 1680;

height = 1050;

viewDx = 0;

viewDy = 0;

aspect = 1.6;

}

}

Shkval =

{

x = 3216;

y = 0;

width = 512;

height = 768/2;

}

ABRIS =

{

x = 2704;

y = 0;

width = 512;

height = 768;

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...