Jump to content

Recommended Posts

Posted
Sorry that I upset anyone but trying to get BS to work on multiple monitors and/or multiple computers tests the very limits of my understanding of what is going on. If anyone needs any help on any US federal tax issues, I would be glad to help as long as I did not have to deal with Lua files. :book:

 

LOL! If you can handle the Internal Revenue Code, then lua is probably within your reach. It's bound to be more logical. (You might want to get it all worked out before 1/1/10 though...) ;)

[sIGPIC][/sIGPIC]

There's no place like 127.0.0.1

  • Replies 289
  • Created
  • Last Reply

Top Posters In This Topic

Posted
Sorry that I upset anyone but trying to get BS to work on multiple monitors and/or multiple computers tests the very limits of my understanding of what is going on. If anyone needs any help on any US federal tax issues, I would be glad to help as long as I did not have to deal with Lua files. :book:

 

Not upset at all. Just wanting to understand if there where issues I didn't know about. All is good my friend!

 

Fear not cause I can't read a lick of tax code. My wife was an accountant pre kids and we definitely didn't talk about work with each other. Instant glazed eyed look on both sides. Ironically I know a lot of IT folks who are married to accountants.

Posted

I'm lost

I followed all the instructions to the letter, trying to setup touchpal on 2 1024x768 monitors, and i get a 'application failed to initialize properly (0xc0000135) error when i try to run the touchpal executable file.

I'm soooo lost and sooooo frustrated

AMD Phenom II 965 BE @ 3.8GHz, 8GB OCZ AMD BE RAM, ATI HD5970 2GB XFX BE @ 875/1215, TM HOTAS Cougar, TM Cougar MFDs, TrackIR 5, CH MFP, GoFlight Switch Panel, iMo Mini-Monster Touch, Mimo 720S, Saitek Pro Flight Headset

Posted

That error is usually caused by not having the touchpal.XML file in the right location. Double check under your my documents directory that you have a Touchpal folder and in that folder you have a touchpal.XML file.

Posted

actual it was because i didn't have one of the microsoft net's installed... so sorted

the only issue is now that i can't get the shkval and abris stuff on the touchpal screen

 

i changed my total resolution to the 2 monitors (2048) but then it just spreads the pic across both screens, underneath touch pal

anything else i tried crashed the program

AMD Phenom II 965 BE @ 3.8GHz, 8GB OCZ AMD BE RAM, ATI HD5970 2GB XFX BE @ 875/1215, TM HOTAS Cougar, TM Cougar MFDs, TrackIR 5, CH MFP, GoFlight Switch Panel, iMo Mini-Monster Touch, Mimo 720S, Saitek Pro Flight Headset

Posted
I'm lost

I followed all the instructions to the letter, trying to setup touchpal on 2 1024x768 monitors, and i get a 'application failed to initialize properly (0xc0000135) error when i try to run the touchpal executable file.

I'm soooo lost and sooooo frustrated

 

Your best bet is probably to post exactly what you did. We may be able to help you better. i.e. what changes did you make in options.lua and in the lua file containing the viewports?

Posted
Your best bet is probably to post exactly what you did. We may be able to help you better. i.e. what changes did you make in options.lua and in the lua file containing the viewports?

Hey mate,

I sorted the error and can run touchpal now... all the buttons work, it syncs fine and is generally lovely... except i can't get the Shkval or ABRIS onto where they should be in touchpal; i just have blank spots.

I'll upload my files and settings when i get home, if anyone is willing to look for me.

I hope i can get it sorted, as i've got a samsung u70 on the way and want to go for the 3mon setup!

AMD Phenom II 965 BE @ 3.8GHz, 8GB OCZ AMD BE RAM, ATI HD5970 2GB XFX BE @ 875/1215, TM HOTAS Cougar, TM Cougar MFDs, TrackIR 5, CH MFP, GoFlight Switch Panel, iMo Mini-Monster Touch, Mimo 720S, Saitek Pro Flight Headset

Posted

Ok, i initially followed this post (http://forums.eagle.ru/showpost.php?p=761810&postcount=1) for the initial install.

I then followed this post (http://forums.eagle.ru/showpost.php?p=767594&postcount=27) for the multi monitor setup.

 

Touchpal Setup:

Description = 'Camera on the left, TouchPal+ABRIS+Shkval on the right'
Viewports =
{
    Center =
    {
         x = 0;
         y = 0;
         width = 1024; --Horizontal res of main monitor
         height = 768; --Vertical res of main monitor
         viewDx = 0;
         viewDy = 0;
         aspect = 1.33; -- Here i tried the standard, then divide the width by height method
    }
}
ABRIS =
{
    x = 1353; --Horizontal res of main monitor + 329
    y = 224;
    width = 366;
    height = 448;
}
Shkval =
{
    x = 1466; --Horizontal res of main monitor + 442
    y = 12;
    width = 312;
    height = 172;
}

 

Multi Monitor Setup:

["multiMonitorSetup"] = "dd_touchpal_2mon"
["fullScreen"] = true, -- also tried false with same results
["height"] = 768, --Vertical res of main monitor
["resolution"] = "1024x768", --Res of main monitor
["width"] = 1024, -- With this setting, the BS cockpit displays normally on my centre screen and touchpal works on the right screen but without Shkval or ABRIS, with 2048 the BS cockpit tries to spread across the 2 monitors and you can see bits of it where the Shkval camera and ABRIS are supposed to be in touchpal.

 

This is using Windows XP SP3 with the monitors both set at 1024x768 and the 'extend windows desktop to this screen' option checked.

AMD Phenom II 965 BE @ 3.8GHz, 8GB OCZ AMD BE RAM, ATI HD5970 2GB XFX BE @ 875/1215, TM HOTAS Cougar, TM Cougar MFDs, TrackIR 5, CH MFP, GoFlight Switch Panel, iMo Mini-Monster Touch, Mimo 720S, Saitek Pro Flight Headset

Posted (edited)
Multi Monitor Setup:

["multiMonitorSetup"] = "dd_touchpal_2mon"
["fullScreen"] = true, -- also tried false with same results
["height"] = 768, --Vertical res of main monitor
["resolution"] = "1024x768", --Res of main monitor
["width"] = 1024, -- With this setting, the BS cockpit displays normally on my centre screen and touchpal works on the right screen but without Shkval or ABRIS, with 2048 the BS cockpit tries to spread across the 2 monitors and you can see bits of it where the Shkval camera and ABRIS are supposed to be in touchpal.

This is using Windows XP SP3 with the monitors both set at 1024x768 and the 'extend windows desktop to this screen' option checked.

Setting fullscreen to false and width to 2048 should be the correct settings. It sounds like it's not correctly reading your dd_touchpal_2mon.lua file. Make sure it is in the same directory as the defualt monitor files and has a lua extension.

 

Edit: actually if you are in XP and using identical resolution you should be able to do full screen with monitor span setup correctly in the nvidia/ati drivers.

Edited by Gadroc
  • Like 1
Posted

Checked and double checked

2048, windowed or full screen, still produces replication of the BS screen across 2 screens

I give up, as i have no idea what else to do. I'm assuming it's a hardware issue at this point (ATI Radeon Mobility x1400), so it'll have to wait till i get a new desktop machine to run.

 

Thanks for this software though, it's still very useful and a great project.

 

One thing as a new DCS:BS user: i got confused with the touchpal screen as it replicates some switches in the cockpit as buttons... so being unfamiliar, it threw me a bit. Just a bit of feedback. Great program with great potential!

AMD Phenom II 965 BE @ 3.8GHz, 8GB OCZ AMD BE RAM, ATI HD5970 2GB XFX BE @ 875/1215, TM HOTAS Cougar, TM Cougar MFDs, TrackIR 5, CH MFP, GoFlight Switch Panel, iMo Mini-Monster Touch, Mimo 720S, Saitek Pro Flight Headset

Posted

I also looked at your values and agree that they look correct with the two exceptions pointed out by Gadroc. Seems that it should work. Odd. What exactly does the screen look like without TouchPal running?

Posted
Checked and double checked

2048, windowed or full screen, still produces replication of the BS screen across 2 screens

I give up, as i have no idea what else to do. I'm assuming it's a hardware issue at this point (ATI Radeon Mobility x1400), so it'll have to wait till i get a new desktop machine to run.

 

Thanks for this software though, it's still very useful and a great project.

 

One thing as a new DCS:BS user: i got confused with the touchpal screen as it replicates some switches in the cockpit as buttons... so being unfamiliar, it threw me a bit. Just a bit of feedback. Great program with great potential!

 

There is something wrong with your multi-screen config in Black Shark. I strongly suspect something is syntactically wrong with Touchpal doesn't do anything except leave a space to see through to them. You might want to check the error logs for black shark and see if it complains about anything in the config files. To troubleshoot this you should run with out touchpal until you can successfully get the monitor config the way you want it.

 

Also make sure you are running with the latest patch. The multi-monitor behavior changed in it and TouchPal requires the changes for it in networking.

Posted

Hi,

 

First message on this forum.

I create a little profil for TouchPal (thanks Gadroc for this amazing soft :) and your profil, it was a model for me !)

 

Here the link : http://www.toofiles.com/fr/oip/documents/rar/kpawprofilv05.html

 

Profil for a 1280x1024 second screen and created for french keyboard (easy to change, relating to key assignation). Some little modifications have to be done to finish it....

- Trouble with eject button (it doesn't work, why ??!)

- Trouble to display the correct images for the 'changing panel' buttons (how to code it ??)

 

Someone can help me ??

 

An overview :

attachment.php?attachmentid=34379&d=1260823881

1760142939_KpawprofilforTP.jpg.a34c817528ffa38b323e9798c4b9527e.jpg

Posted (edited)

Nicely done...too bad my second screen is only 1024x768 but the graphics for your controls are quite nice.

 

With regards to your question about the eject button, the keystroke handling for this sort of thing is a bit odd...but it can be made to work. When I did my profile, I ended up doing this.

 

<Button Name="Eject">
     <NetworkID>5015</NetworkID>
     <Width>44</Width>
     <Height>33</Height>
     <BackgroundImage>blackshark\eject_on.png</BackgroundImage>
     <PushedBackgroundImage>blackshark\eject_on_in.png</PushedBackgroundImage>
     <PushedAction>KD:{LCONTROL}</PushedAction>
     <PushedAction>KD:e</PushedAction>
     <PushedAction>KU:e{LCONTROL}</PushedAction>
     <PushedAction>KD:{LCONTROL}e</PushedAction>
     <PushedAction>KU:e{LCONTROL}</PushedAction>
     <PushedAction>KD:{LCONTROL}e</PushedAction>
     <ReleaseAction>KU:e{LCONTROL}</ReleaseAction>
   </Button>

Doing {LCONTROL}e as the first PushedAction didn't work for some reason. I'd have to look closer at the code to figure out why. So while there may be a cleaner way of doing this, at least it works. Perhaps Gadroc might have some ideas.

Edited by ddahlstrom
Posted
I also looked at your values and agree that they look correct with the two exceptions pointed out by Gadroc. Seems that it should work. Odd. What exactly does the screen look like without TouchPal running?

It's stretched across the 2 screens

 

There is something wrong with your multi-screen config in Black Shark. I strongly suspect something is syntactically wrong with Touchpal doesn't do anything except leave a space to see through to them. You might want to check the error logs for black shark and see if it complains about anything in the config files. To troubleshoot this you should run with out touchpal until you can successfully get the monitor config the way you want it.

 

Also make sure you are running with the latest patch. The multi-monitor behavior changed in it and TouchPal requires the changes for it in networking.

Yep, running the latest patch.

I guess i'll have a look at the error files... but there's nothing i changed 'syntactically' apart from the numbers required.

Yeah, i can see through the shkval and abris boxes in touchpal.

AMD Phenom II 965 BE @ 3.8GHz, 8GB OCZ AMD BE RAM, ATI HD5970 2GB XFX BE @ 875/1215, TM HOTAS Cougar, TM Cougar MFDs, TrackIR 5, CH MFP, GoFlight Switch Panel, iMo Mini-Monster Touch, Mimo 720S, Saitek Pro Flight Headset

Posted

Profil for a 1280x1024 second screen and created for french keyboard (easy to change, relating to key assignation). Some little modifications have to be done to finish it....

- Trouble with eject button (it doesn't work, why ??!)

- Trouble to display the correct images for the 'changing panel' buttons (how to code it ??)

 

You almost have the change panel buttons correct. First give each panel button the same networkid. Second when you push in state 0 you need the action to set the state to 1 and vice versa. This will cause the states to toggle. Third only toggle visibility on each button when it is clicked in it's off state. Last add both controls to each panel. Also make sure your default panel is defined last.

 

Here are the button options I used to get it working.

 

        <Button Name="Mainpanel">
           <NetworkID>5012</NetworkID>
           <Width>40</Width>
           <Height>100</Height>
           <DefaultValue>1</DefaultValue>
           <State>
               <StateValue>0</StateValue>
               <PushedAction>CV:5012=1</PushedAction>
               <PushedAction>PS:MP</PushedAction>
               <PushedAction>PH:SP</PushedAction>
               <Image>pictKpaw\A075p2.png</Image>
           </State>
           <State>
               <StateValue>1</StateValue>
               <Image>pictKpaw\A075p1.png</Image>
              </State>
       </Button>
       
           <Button Name="Secondarypanel">
           <NetworkID>5012</NetworkID>
           <Width>40</Width>
           <Height>100</Height>
           <DefaultValue>1</DefaultValue>
           <State>
               <StateValue>1</StateValue>
               <PushedAction>CV:5012=0</PushedAction>
               <PushedAction>PS:SP</PushedAction>
               <PushedAction>PH:MP</PushedAction>
               <Image>pictKpaw\A076p1.png</Image>
           </State>
           <State>
               <StateValue>0</StateValue>
               <Image>pictKpaw\A076p2.png</Image>
           </State>
       </Button>

<Button Name="Eject">
     <NetworkID>5015</NetworkID>
     <Width>44</Width>
     <Height>33</Height>
     <BackgroundImage>blackshark\eject_on.png</BackgroundImage>
     <PushedBackgroundImage>blackshark\eject_on_in.png</PushedBackgroundImage>
     <PushedAction>KD:{LCONTROL}</PushedAction>
     <PushedAction>KD:e</PushedAction>
     <PushedAction>KU:e{LCONTROL}</PushedAction>
     <PushedAction>KD:{LCONTROL}e</PushedAction>
     <PushedAction>KU:e{LCONTROL}</PushedAction>
     <PushedAction>KD:{LCONTROL}e</PushedAction>
     <ReleaseAction>KU:e{LCONTROL}</ReleaseAction>
   </Button>

Doing {LCONTROL}e as the first PushedAction didn't work for some reason. I'd have to look closer at the code to figure out why. So while there may be a cleaner way of doing this, at least it works. Perhaps Gadroc might have some ideas.

 

Not sure why one doesn't work. I have had problems with my G940 sending keys to fast and Black Shark not recognizing it.

Posted (edited)
It's stretched across the 2 screens

 

if your game cockpit is across both screens then it sounds like a resolution

setting in the options.lua.

a bit rusty but there is a setting in there that sets the in game resolution,

which is different from the overall size of your multi monitor setup.

 

go back to basics, you need to get this working on it's own first.

forget the abris and shkval for now, we will get to that later.

in you options.lua try set it back to a known working setup, eg: 1camera

(either enter it manually or better still select 1camera thru in game options menu)

below is a few extracts from option.lua that should work for you.

 

["graphics"] =

{

["multiMonitorSetup"] = "1camera",

 

["fullScreen"] = false,

["aspect"] = 1.3333333333333,

 

["height"] = 768,

["resolution"] = "1024x768",

["width"] = 2048,

}, -- end of ["graphics"]

} -- end of options

 

now personally i edit the monitorsetup file with numbers that match my settings.

i get a little confused with the * and / business :)

 

example of the 1camera.lua for you below:

 

Description = 'One monitor configuration'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 1024;

height = 768;

viewDx = 0;

viewDy = 0;

aspect = 1.33;

}

}

 

now if that gets the cockpit view on your left screen only,

we can move on to the abris and shkval.

Edited by G3
Posted

Thanks for help all !

I'll try to put your code this evening and I will add Abris brightness control and a button to activate VAC (touch to speak).

 

Edit : And also a selector for HUD mod

Posted
if your game cockpit is across both screens then it sounds like a resolution

setting in the options.lua.

a bit rusty but there is a setting in there that sets the in game resolution,

which is different from the overall size of your multi monitor setup.

 

go back to basics, you need to get this working on it's own first.

forget the abris and shkval for now, we will get to that later.

in you options.lua try set it back to a known working setup, eg: 1camera

(either enter it manually or better still select 1camera thru in game options menu)

below is a few extracts from option.lua that should work for you.

 

["graphics"] =

{

["multiMonitorSetup"] = "1camera",

 

["fullScreen"] = false,

["aspect"] = 1.3333333333333,

 

["height"] = 768,

["resolution"] = "1024x768",

["width"] = 2048,

}, -- end of ["graphics"]

} -- end of options

 

now personally i edit the monitorsetup file with numbers that match my settings.

i get a little confused with the * and / business :)

 

example of the 1camera.lua for you below:

 

Description = 'One monitor configuration'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 1024;

height = 768;

viewDx = 0;

viewDy = 0;

aspect = 1.33;

}

}

 

now if that gets the cockpit view on your left screen only,

we can move on to the abris and shkval.

 

Yep, that displays the cockpit on the left/main screen.

edit - wait one, didn't add the '2048' setting in there. Will check again tonight.

AMD Phenom II 965 BE @ 3.8GHz, 8GB OCZ AMD BE RAM, ATI HD5970 2GB XFX BE @ 875/1215, TM HOTAS Cougar, TM Cougar MFDs, TrackIR 5, CH MFP, GoFlight Switch Panel, iMo Mini-Monster Touch, Mimo 720S, Saitek Pro Flight Headset

Posted

Hi,

 

I update the profil with your suggestions...and it works :thumbup:

So now :

- Eject button works well. Thanks ddahlstrom !!

- 'Changing windows' (I don't know how to say this better in English) button works fine. Thanks Gadroc

- I correct a mistake on brightness for Shkval

- I correct an other mistake for mod selector PVI-800

- I add buttons for Abris brightness

- I add a button for VAC ('s' key allowed VAC to listen you)

- I add a selector for HUD mode but it doesn't work... and I don't know why, I double check arg, value, class type, I declare on export.lua file the ID button (9) and nothing. For this command, arg limit is strange -1,1 ??!! Possible value are -1.0, 0.0 and 1.0 ?! Am I right ?

 

Here the files

Update : keyboard.lua , export.lua, touchpal.xml, excel file about position and size of graphics, and pictKpaw folder.

 

Thanks in advance for help !

Posted (edited)

Kpaw,

just tried out your profile tonight and i have to say it was terrific :thumbup:

love how you have a button to change pages, very nicely done.

also your included pdf was a nice touch,

albeit in french but i looked at the pictures and joined the dots :)

(being "trylingual" is a fault of mine not yours, as in i "try" to read it but she no makey much sensy)

 

i also liked the way your TP profile has it's own folder, requiring nothing more than a touchpal.xml change.

well done, very thorough and a tidy example of how a profile should be done.

 

ddahlstrom,

updated to your new TP.exe and had it all running locally, will be testing across the network next time.

cannot express how impressed i am with how smart you guys are, great work.

tried out your 800x600 profile, yet the 1024 version still displayed gadroc's original, was that the intention?

 

Sobe,

from one simple end user to another, and for anyone using BSVP with TP,

the latest version of TP along with bsvp work together no problem.

sometimes these guys forget we are flat out just getting the software configured,

let alone understanding how the hell they manage to create it in the first place :D

 

my priority now is to get both apps set up on a remote pc and get that TP service setup.

 

after some experimenting last night,

it seems you can place the bsvp gauges in the transparent areas of the TP panel, eg: the abris area.

this opens up the potential for creating a pretty realistic layout of the pit across several screens on a remote pc.

 

digital_steve, when you edit the options.lua to width 2048,

when your shark loads up (the blue background with stuff blowing everywhere)

when you edit to 2048, if working correctly i believe it should stretch this image across both monitors

but in game the pit should display only on the left screen.

Edited by G3
  • Recently Browsing   0 members

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