Dummies Guide For The "MonitorSetup - Lua"1.0.2
Dummies Guide For The "MonitorSetup - Lua"1.0.2
Dummies Guide For The "MonitorSetup - Lua"1.0.2
lua
and placing/positioning different view-ports 1.0.1
1.
2.
Overview
PeterP
http://forums.eagle.ru/member.php?u=59989
28/05/2012
1. Overview
To keep it simple at the beginning, we will start with a Singel-Monitor setting to place
the default available view-ports.
For the A-10C = Right/Left MFCD
For the Ka-50 = Abris/Shkval
Later on in this document we will head to examples using more than one monitor and
view-ports of non-default available avionic displays similar like this:
3 Screen
MFCD
So we see that it is possible to let the MFCDs always be visible, but this is not quit what
we are looking for remember: we want to have the R/L MFCD on our screen always
visible , but keeping the cockpit at the greatest possible size.
So let's have a look what the documentation (and I'm sure you already read it!!!) says
abut it:
e.g. A-10 GUI Manual , page 16:
Notepad++ is a free (as in "free speech" and also as in "free beer") source code editor
and Notepad replacement that supports several languages. Running in the MS
Windows environment, its use is governed by GPL License.
Download : http://notepad-plus-plus.org/
Now install it! ready?! good!
Lets navigate to the \Eagle Dynamics\DCS World\Config\MonitorSetup
folder.
The folder looks by default like this:
This looks familiar to what you see when opening the monitors drop-down menu in
DCS.
Here are some fundamentals that you need to know when editing a
MonitorSetup.lua
All values can be negative/positive.
X coordinate expressions are always drawn from left to right
and
Y coordinate expressions are always drawn from top to bottom
They can be written as number or as expression or even as mathematical abstraction.
When a expression is used like screen.height it equals always the same value that is
set in your
C:\Users\>your user name<\Saved Games\DCS\Config\Options.lua
The Options.lua < This file stores all your In-game setting
So when you use 1024x768 as in-game resolution,
screen.width is 1024 pixels,
screen.height is 768 pixels,
screen.aspect is 1,333333333333333 ( because 1024/768 = 4/3 = 1,333333333333333)
mathematical functions that can be used:
+ = plus
- = minus
* = multiply
/ = divide
That means that you can write
1024
or
screen.height + (screen.width / 4 )
when using 1024x768 as in-game resolution.
Because: 768 + ( 1024 / 4 ) = 1024
another example:
you can write
screen.aspect or
4/3 or
1024 / 768
OK?!
So please read this above again to fully understand This will be important later on.
2.1
Now lets have a look at the 1.Camera.lua and I already edited and add explanations
(in Green) what every value does.
Open it simultaneously also in your Notpad++ and edit it exactly like I.
So you can practice a little and you will also have some hints in it. You will use this file
for further editing/practice of your own setting.
Now save this file after you have edited it like I have in the picture above, as
My Practice.lua in the \Eagle Dynamics\DCS World\Config\MonitorSetup folder.
Make sure you don't overwrite your 1Camera.lua !!!
We will use this file to add more functions later on.
For our first practice will re-size the center view-port to 800x600 and move it inside the
in-game resolution to the bottom right corner,
while the in-game Simulation screen stays at 1024x768.
So please set your in-game resolution to 1024x768
(windowed or full-screen. What works best for you)
Now open your My Practice.lua with Notepad++ and do this edits:
1.
2.
3.
4.
5.
x = 1024 - 800;
y = 768 - 600;
width = 800;
height = 600;
aspect = 800 / 600;
WOW!
You now learned how to move/re-size a view-port! Congrats!
Now lets add the MFCDs!
2.2
Now save this file and start DCS. (Double-check for a missing semicolon !)
Select My setting in Monitors and set the resolution to 1024x768. - When you now
start a mission it should look like this:
A ideal setup has always the same vertical resolution on all monitors. As DCS
renders always a square. So the goal is to configure a in-game resolution
that is exactly matching your combined resolution of your both monitors.
3.1 Two Monitors with same resolution
Lets start by setting up our monitors:
Good:
Bad:
Now we can use all newly learned and to edit our MY Practice.lua to let it work with
the Two monitors.
We will edit a setting like this:
And I did made two versions that will appear the same on a 2048x768 resolution.
But the second one will work for every set-up that uses two monitor of the same size
side by side.
Please compare them to realize how it is done.
Now you should have enough knowledge to position the view-ports everywhere you
want. !!!
And it is almost the same for a Triple-head set-up.
Now we take a look at different sized Monitors.
I will also introduce a new view-port that is dedicated to the Simulation GUI, that is
showing the Briefing screen, Multi-player GUI, rearm-menu and so on.
So keep on reading! - and dont miss the link list with important workarounds for known
problems/bugs when using more than one screen.
3.1
It is basically the same as before, but now we must ask our-self first how to place them,
because using monitors that are not equal in height will always come with some
problems.
Lets have a look again at the desktop properties we assume that we have two screens.
One (the main-screen) is 1280x1024 and the second is 1024x768.
A:
Perfect conditions
The second screen in Portrait. Use almost the same method like for the
two screen setup in 3.1, the in-game resolution would be 2048x1024.
B:
Good conditions
We will not be able to see parts of the right bottom-line
So we will not be able to see the whole info-bar in the out-side views see the
Red space.
C:
Bad conditions
We will have heavy problems with the communication menu and the Map-view to
use all buttons/options see the Red space.
For all problems that I mentioned above are workarounds via some file edits available,
but some of them are quite complex so I will not explain them here . You will check the
link-list at the end how to fix them.
Lets do a edit for example B. And this time we will use the Ka-50.
But all what is shown works almost the same for the A-10C.
This pre-sets will switch on the export of avionics to dedicated view-ports - just
by simple copy'n'paste. One of the pre-sets will also only disable the in-cockpit
MFCDs for better performance.
SoftTH NEWS
a in-sight overview about SofTH. SoftTH is donation-ware and let you do what the
big GPU company's don't allow you to do or only at high costs.
SoftTh let you render every monitor combination at High FPS in full-screen mode.
You can even Mix SoftTH with AMD-Eyefinity and/or TH2GO,NVIDIA-Surround !
Especially interesting for DCS. -SoftTH let you use full-screen Mode If you export
MDFS/ABRIS ect. on additional screens . You are not forced to use Windowed
mode any more.
Even Helios is working with DCS in Fullscreen on all secondary heads.
And Yes , it will gain your performance!
Multi-monitor set-up guide & help (unofficial)
Please post your question(s) in this thread above if you having problems that you
can't solve by using this guide. Many helping folks visit this thread and will sure
help you too!
Thanks for reading I hope I could help you to enjoy DCS even more!
See you in the forums! :)
>>> http://forums.eagle.ru/index.php
PeterP
http://forums.eagle.ru/member.php?u=59989
28/05/2012