Jocman Posted February 18, 2010 Posted February 18, 2010 Hi all. In my future projects, I'm planning to use multiple monitors (very soon at least 3 + 1, later maybe about 5+1) Currently I'm trying to configure 2 monitors: the main (24" wide 1920*1080) and the secondary (12" touchscreen 800*600) Ah, I'm running Win7-32. I unchecked the "full screen" option. Then I modified the option.lua and the custom monitor.lua as follow OPTION.LUA ["height"] = 1080, -THIS SHOULD BE THE MAX HEIGHT ["resolution"] = "1920x1080", -MAIN SCREEN RESOLUTION ["civTraffic"] = 0, ["width"] = 2720, -TOTAL WIDTH (1920+800) }, -- end of ["graphics"] and my custom monitor .lua file Description = 'Jocman' Viewports = { Center = { x = 0; -IT MEANS THE COCKPIT IN IN THE MAIN SCREEN y = 0 width = 1920 height = 1080 viewDx = 0; viewDy = 0; aspect = 16/10; } } Shkval = { x = 1920; -IT MEANS THE SHKVAL START IN THE SECONDARY y = 0; width = 800; -SHKVAL WIDTH (RES OF THE SECONDARY) height = 600; -SHKVAL HEIGHT (RES OF THE SECONDARY) } I tryied both with and without phantom monitor (I'm running BS 1.01) The configuration above is without phantom. In Win7 monitor properties, the secondary is placed up right the main monitor (coord. 1920;0). Well, when I start BS to test the views, it happens that the SHKVAL is placed in the main monitor left side (coord 0;0) for about 3/4 of the total width, the cockpit is placed in the main too for the last 1/4 of the total width, then only the upper right quarter of ht ecockpit is shown in the secondary....... I don't understand why..... Anyone can suggest me something to fix it??? Thanks Jocman Jocman "For once you have tasted flight you will walk the earth with your eyes turned skywards, for there you have been and there you will long to return" (L. Da Vinci) Prev. Projects: https://forums.eagle.ru/showthread.php?t=50071
Jocman Posted February 19, 2010 Author Posted February 19, 2010 I tried to move the secondary screen on tge right side in the win/diplay properties (now the coord. are -800;0), without changing any value in lua files. In theory, I'd espect that SHKVAL now is displayed in 12" screen: NOPE. same resoult. Some suggestion? Jocman Jocman "For once you have tasted flight you will walk the earth with your eyes turned skywards, for there you have been and there you will long to return" (L. Da Vinci) Prev. Projects: https://forums.eagle.ru/showthread.php?t=50071
Jocman Posted February 20, 2010 Author Posted February 20, 2010 wow, guys, 2 days and no suggestion? Jocman Jocman "For once you have tasted flight you will walk the earth with your eyes turned skywards, for there you have been and there you will long to return" (L. Da Vinci) Prev. Projects: https://forums.eagle.ru/showthread.php?t=50071
G3 Posted February 21, 2010 Posted February 21, 2010 (edited) at first glance your figures appear correct, will have a look at mine to confirm. you are very close, it will be something simple i bet, stay tuned. confirm you have the in game options showing your 1920x1080 resolution, and you also have your monitor config "Jocman" selected there also. ------------------------------------------------------------------ ok here we go, lets get this sorted. forget the phantom stuff, that was bs v1.0 check your editing: it's easy to neglect your colon, :D at the end of the lines with edited values make sure you have ";" and not "," i left one out altogether and BS failed to start, all from a simple typo, big chance this is it if what you posted was a cut n paste? i suggest compare your custom one against an un edited monitor config the Jocman test config ok, just did a quick test on the laptop, to compare with your desired result i listed these settings for the following configuration: (laptop camera view 1280x800, with a second screen 1280x1024 for shkval on the right) and i must say it worked a treat. in windows 7: (mine is x64 but can't imagine it would matter) the #1 screen is the laptop, #2 is for the shkval screen (when you hit identify) make sure it says multiple displays: extend these displays. when you have selected screen #1, in your case the 1920x1080, it should also say "this is your main screen" make sure in the options.lua, the multimonitor section says fullscreen = false these are the figures: options.lua height = 1024 (max high of second screen in this case) res = 1280x800 (laptop screen) width = 2560 (total as you know) the monitor config: center x = 0 y = 0 width = 1280 height = 800 aspect = 1.6 shkval x = 1280 y = 0 width = 1280 height = 1024 now if you get it right, when it starts up the blue screen with the shark blowing stuff around, it should display across both the screens to some extent if not completely. see below for a screenshot, which by the way crashes the game, i went printscreen, alt tab, open a new bitmap, edit, paste and save :D you can see how the area between height 800 and 1024 is blank on the main, this is because the main is only 800 high and and second screen is 1024 :) as defined in the options lua height setting of 1024, if you main screen is the tallest, you will not get this. as far as i can see your figures are good to go, hope this helps. good luck with it. Edited February 22, 2010 by G3
Jocman Posted February 21, 2010 Author Posted February 21, 2010 Great help, ggg87 !!!! I checked the semicolon problem. Well, actually I've seen there where commas instead of semicolon. I don't understand why, but all the lines in LUA files have the comma, even the lines I didn't modify (it means i just edited the lines I was interesting in). BTW, I replaced all the commas with semicolons, and tried.... IT WORKS!!!! I've just to fix a problem with Toych Buddy (I made an interface with trasparent background where to display the SHKVAL, but it doesn't work - this is a minor problem) Thanks a lot! Jocman Jocman "For once you have tasted flight you will walk the earth with your eyes turned skywards, for there you have been and there you will long to return" (L. Da Vinci) Prev. Projects: https://forums.eagle.ru/showthread.php?t=50071
Jocman Posted February 22, 2010 Author Posted February 22, 2010 Hi ggg87, here again to ask more help (sorry....) Well, I fixed the problem with touch buddy too (now evrything works great). BTW, I tried to make some test so to show more...items in teh same monitor. I'm interesting in showing (on a third monitor) the ABRIS and the EKRAN. Actually, I don't know if it's possible to show the EKRAN, but I tried. I tested it in my 12" touchscreen. I modified the monitor file (jocman.lua) simply by coping the lines concerning the SHKVAL, and renaming the head in "ABRIS" and "EKRAN" (ABRIS should work, as the default BS options allow to choose Shval+cam+ABRIS). Here they come: Shkval = { x = 1920; y = 0; width = 800; height = 300; } ABRIS = { x = 1920; y = 300; width = 600; height = 300; } EKRAN = { x = 2520; y = 300; width = 200; height = 300; } (all with semicolon :D) I remember I found some hint concerning the fact that is mandatory to write the heads (as ABRIS or so) in the right way (capitol letter or low case, where need it), but I don't remember if I'm right and where I found it.... I got as follows: upper side of the touchscreen: SHKVAL resized in the right way lower side: nothing, just the BS splash screen (I expected 2/3 left ABRIS and 1/3 right EKRAN - no matter if a stretched image or not, it was just a test) Ok, maybe the EKRAN is not allowed (I tought).....I deleted the lines concerning EKRAN, then run it again. No changes: I see the upper side in the correct way I expect, but the lower side shows again the BS splash screen Any other suggestion? It will be basic for the future develope of my cockpit's front panel, as I plan to use a separate monitor to show ABRIS, EKRAN and BSVP gauges Thanks for your kindness Jocman Jocman "For once you have tasted flight you will walk the earth with your eyes turned skywards, for there you have been and there you will long to return" (L. Da Vinci) Prev. Projects: https://forums.eagle.ru/showthread.php?t=50071
G3 Posted February 22, 2010 Posted February 22, 2010 not sure about the ekran being an option, but i do like your thinking. touchpal has a functional ekran. hopefully one day the MonitorSetup will contain a whole list of different viewports and instrument view options. options lua has "," while the monitorsetup lua's have ";" after values my advice would be to create a copy of the included 3 monitor setup this will have just what you are after, only the values need changing. look for "Shkval+Camera+Abris", create a copy and call it whatever, edit only the values you need to, select it in the in game options. your options lua can stay as is also it's always good to have a backup of all these type files if you need to restore after tinkering :) see how that goes.
Jocman Posted February 23, 2010 Author Posted February 23, 2010 (edited) HI ggg87. Quick answert, as for the next 2 dyas I'll be too busy at work to test something. I'll try as you suggest me (using an autogenerated monitor LUA wir Abris+camera+Shkval the modify it), then I'll let you know. About Touchpal, I made a google search, but I found only version for mobile phone device or pocket PC.... Is that what I need? Or where can I download it with some docs? Jocman EDIT: I found it :-D Stay tuned for the test jocman Edited February 23, 2010 by Jocman Jocman "For once you have tasted flight you will walk the earth with your eyes turned skywards, for there you have been and there you will long to return" (L. Da Vinci) Prev. Projects: https://forums.eagle.ru/showthread.php?t=50071
Recommended Posts