Gadroc Posted October 4, 2009 Share Posted October 4, 2009 (edited) I was inspired by DickDastardly's profile for Touch Buddy, to go out and get a touch screen monitor. Unfortunately for my free time I was not satisfied since none of the indicators on the touch screen kept in sync with those in the virtual cockpit. Touch Buddy didn't seem to allow for the simulation to update button states, so I set about writing my own. I have finally got to a point where I think it's ready for other people to try it out. I am open sourcing the code and I have created a google code site and will be updating documentation on how to create your own profiles and the network protocol that TouchPal uses to communicate with the simulation. I've created a profile based on DickDastardly's TouchBuddy graphics, but made it fully synced with the virtual cockpit. The only item I could not extract from blackshark was the PVI-800 LED read out. Otherwise as soon as the simulation connects TouchPal will set all switches it displays to the values of the mission, and will reflect changes based on both clicking on the touch screen or using in game controls. Step 1 - Download TouchPal TouchPal-0.4.zip Extract it to where every you want it. This is the application itself and the xsd which describes the configuration files. Step 2 - Download Blackshark Profile TouchPal-Blackshark-2-0.zip Create a folder called TouchPal inside your My Documents folder and extract this file into that directory. You should end up with a TouchPal directory containing a blackshark directory, touchpal.xml and Export.lua. Step 3 - Backup & Copy Export Backup your existing Export.lua located in the Config/Export directory underneath the install folder for Blackshark. Once you have backed it up copy the the Export.lua file contained in the TouchPal directory created by Step 2 into the Config/Export directory. Step 4 - Customize Layout Open touchpal.xml in the TouchPal directory created by Step 2 in your favorite text editor. Locate the Layout section. The X, Y, Width and Height values here represent where you want the touchpal window to open. X and Y should be set to the top left of your touchscreen monitor. <Layout> <X>1920</X> <Y>0</Y> <Width>1024</Width> <Height>768</Height>Limitations This is a first release of TouchPal so there are a few limitations. I hope to resolve all of them over time. Feel free to have a look at the code and send me any patches to fix them. TouchPal will not scale graphics. The profile I have uploaded is 1024x768. TouchPal does not have any UI to select between multiple profiles. TouchPal does not have any client/server capability, it is designed to run on the same machines as the game. Step 5 - Setup Multi-monitor Follow the directions in this excellent post to setup the ABRIS and shkval at the appropriate locations. Important! This setup REQUIRES patch 1.0.1. The Export.lua which gets data from the simulation uses functions that where not available until the patch. Mr Dastardly let me know if you have an issue with my using your graphics and I'll take it down. Edited October 21, 2009 by Gadroc 4 Link to comment Share on other sites More sharing options...
Gadroc Posted October 5, 2009 Author Share Posted October 5, 2009 I have uploaded a new version of TouchPal which fixes the bug where key presses where not processed on 64 bit versions of windows. Link to comment Share on other sites More sharing options...
Flim Posted October 6, 2009 Share Posted October 6, 2009 do you have any screen shots of this working? Would this work in FALCON AND OTHER SIMS? Link to comment Share on other sites More sharing options...
Gadroc Posted October 6, 2009 Author Share Posted October 6, 2009 A screen shot will look very much like DickDastardly's touch buddy profile (http://forums.eagle.ru/showthread.php?t=38379&highlight=nirvana). The difference is this version displays all the lamp status lights and station indicators just like in the virtual cockpit. I have removed the yellow load out bar as the station indicators and ammo count displays work just like on the weapons panel in game. I'll try and shot a video sometime in the next couple days of this in action. It will work with any application that can send/receive data via TCP. I'll document the configuration files over the next few nights. All of the buttons and commands/keys they send are configured through an XML file. Much like TouchBuddy you could create a set of panels for any game if you are so inclined. I will be updating the profile here over the next few weeks. Mr Dastardly was kind enough to share some of his original photoshop files so I can create all the button states needed. I intend to do profiles for with and with out shkval and potentially add the laser warning system as well. Link to comment Share on other sites More sharing options...
HuggyBear Posted October 6, 2009 Share Posted October 6, 2009 Thanks Gadroc, This is a fantastic application. -HuggyBear Pacifism is a shifty doctrine under which a man accepts the benefits of the social group without being willing to pay - and claims a halo for his dishonesty. - Robert A. Heinlein Link to comment Share on other sites More sharing options...
G3 Posted October 6, 2009 Share Posted October 6, 2009 sounds very promising, will try it for sure. real time light/button states, awesome.:thumbup: Link to comment Share on other sites More sharing options...
Gadroc Posted October 10, 2009 Author Share Posted October 10, 2009 (edited) New version posted! Thanks to DickDastardly's help as he supplied some new graphics and designed the screen layout. Enhancements: Added LWS, Warning Lights and EKRAN Added toggle between SHK and above added panels Enhanced the CMS so it forces sync on client connect UDP Networking. Now you can start and stop TouchPal after Black Shark and it will sync back up. Fixed some dodgy buttons I did with DickDastardly's work. Every button on the profile now depresses and lights up when appropriate TouchPal-04.zip TouchPal-Blackshark-2.0.zip - Fixed Link! Edited October 10, 2009 by Gadroc 2 Link to comment Share on other sites More sharing options...
ED Team Groove Posted October 10, 2009 ED Team Share Posted October 10, 2009 Fantastic job Gadroc! Our Forum Rules: http://forums.eagle.ru/rules.php#en Link to comment Share on other sites More sharing options...
SytRep Posted October 10, 2009 Share Posted October 10, 2009 Impressive Wow There's a lot of work gone into this project and the results are truly impressive, I'm a avid Touch-buddy user and I believe that this application could evolve to do all that touch buddy does and more. The addition of network commands which relate to sim values makes this feel part of the sim not an addition. Do you intend this to be developed for other sims, such as Falcon, FSX, etc or perhaps you plan for other parties to do this. As the project stands at the moment it makes a brilliant add on for Blackshark :thumbup: Well done chap! 'Rep Link to comment Share on other sites More sharing options...
PoleCat Posted October 10, 2009 Share Posted October 10, 2009 Thank you to the original creator of the TB profile Mr Dastardly, and to Gadrock for the hard work on TouchPal. Nice job to you both! Out 1 http://www.104thphoenix.com/ Link to comment Share on other sites More sharing options...
CyBerkut Posted October 11, 2009 Share Posted October 11, 2009 Thank you to the original creator of the TB profile Mr Dastardly, and to Gadrock for the hard work on TouchPal. Nice job to you both! Out Yeah, what he said! :thumbup: [sIGPIC][/sIGPIC] There's no place like 127.0.0.1 Link to comment Share on other sites More sharing options...
Thunderbird Posted October 12, 2009 Share Posted October 12, 2009 this work on LOMAC? Link to comment Share on other sites More sharing options...
Gadroc Posted October 12, 2009 Author Share Posted October 12, 2009 this work on LOMAC? It's possible. Would require a new profile and an Export.lua rewritten to use the LOMAC export functions. I don't have LOMAC myself. Link to comment Share on other sites More sharing options...
Thunderbird Posted October 12, 2009 Share Posted October 12, 2009 anyone tried on LOMAC before? Link to comment Share on other sites More sharing options...
dnnzed Posted October 14, 2009 Share Posted October 14, 2009 (edited) This. Is. F***ing. Great! :-) ;-) This is what I'm looking for! (I couldn't setup correctly with DickDastardly's version) So, thank you DickDastardly and Gadroc! But I have just a little problem... The ABRIS and the Shkval is missing, in these places on touchpal appears a big purple colour. :-S What's wrong? Thanks in advance! (DCS 1.0.1, XPSP3) Edit> sometimes not the big purple colour but nothing (the windows desktop) appears. Edited October 14, 2009 by dnnzed Link to comment Share on other sites More sharing options...
blaster454 Posted October 14, 2009 Share Posted October 14, 2009 Hi, dnnzed. This has to be set up in DCS:BS multi-monitor mode the same as DickDastardly's TB profile. I'm pretty sure you have to set the multi-monitor Lua files up to display the ABRIS and Schkval screens in the cutout portions (where you can see the desktop or another background). The big advantage with Gadroc's version is that it reads the Lua exports from BS and keeps the indicators in synch (and it's a big advantage :thumbup:). WH_Blaster (Larry) :beer: US Air Force (Retired, 1961-1981) Join us for fun with the DCS series and other games at the War Hawks Squad website ... we are a mature gaming group that enjoys realism and having fun! http://war-hawks.net System: i7=950 @ 3.3 GHz, GA-X58-UDR3 MB, 6GB RAM, GTX770, 256GB system SSD, 128GB gaming SSD, TIR5, TM HOTAS WH, HannsG 28-in, Acer 23-in touch screen. Link to comment Share on other sites More sharing options...
dnnzed Posted October 14, 2009 Share Posted October 14, 2009 Ahhhaaa, I seeee... So I have to set it up as a multimonitor setup too, I have to calculate the proper/correct positions of the ABRIS/Shkval to match with the TB's window display, right? Link to comment Share on other sites More sharing options...
dnnzed Posted October 14, 2009 Share Posted October 14, 2009 Hmmm. I tried it. I can't able to make it to work... :-S If I start DCS with TouchPal with a 2 monitor display setup in DCS where I configure the ABRIS and Shkval's display positions to match to TP's windows, doesn't work. DCS is "over" the whole display, I just see the DCS background on my secondary screen (and not the TP panel). If I Alt+Tab to TP, the whole secondary monitor will start flashing... Gadroc, may I ask you to make a detailed installation procedure, that contains any DCS related changes and/or setup files? Thanks. Link to comment Share on other sites More sharing options...
Gadroc Posted October 14, 2009 Author Share Posted October 14, 2009 Hey Dnnzed, There really isn't more to it than what you've done. If you setup the Multimonitor and run with out TouchPal do the screens show up roughly where you want them? The pink color should not be visible those should be transparent areas where you can see through to the desktop. In addition TouchPal should force it's way to the top most application. That way you see the black shark screens from behind the touchpal application. The one thing I would say is I have not tested this on XP. Link to comment Share on other sites More sharing options...
dnnzed Posted October 15, 2009 Share Posted October 15, 2009 (edited) Hello Gadroc, thanks for replying! Hey Dnnzed, There really isn't more to it than what you've done. If you setup the Multimonitor and run with out TouchPal do the screens show up roughly where you want them? The pink color should not be visible those should be transparent areas where you can see through to the desktop. In addition TouchPal should force it's way to the top most application. That way you see the black shark screens from behind the touchpal application. The one thing I would say is I have not tested this on XP. Yes, I have a "standard" 2 monitor setup what I have configured for my two 1280x1024 monitor, when I choose this setup it works properly (on the secondary monitor there are ABRIS and Shkval that I positioned), no problems at all. So, I made from this multimonitor setup lua file another one for your TP, where I point the abris/shkval to TP's own positions. And yes, both of the two displays appears the right position. Edit: now I'm in the state that TP is working, DCS running fine (with the secondary monitor displays) but TP's abris/shkval area is black/pink. Buttons are working. Edited October 15, 2009 by dnnzed Link to comment Share on other sites More sharing options...
dnnzed Posted October 15, 2009 Share Posted October 15, 2009 Baahh, I give up. I'm afraid it is an XP related bug... :-S But I figured out something. The abris/shkval doesn't need to to match onto TP's layout. What I have only need is TP's clickable layout (and I will place on my sec. monitor beside the shkval/abris display!). Gadroc, may I ask you to create a modified panel that doesn't contains the ABRIS rectangle? And "slew" the other panels to the left. Like this: Thank you in advance! Link to comment Share on other sites More sharing options...
Gadroc Posted October 15, 2009 Author Share Posted October 15, 2009 One more things to ask/try. Are your running in window or full screen mode. If you are using fullscreen mode then try running in windowed mode. Link to comment Share on other sites More sharing options...
dnnzed Posted October 15, 2009 Share Posted October 15, 2009 Yeah, I have tried both. First I tried with Fullscreen On; caused nothing worked; the only thing what I can is press "Esc" and quit... :cry: The above working setup is done with Disabled Fullscreen option. Link to comment Share on other sites More sharing options...
emenance Posted October 15, 2009 Share Posted October 15, 2009 Uh I am planning on jumping into setup soon if my x52 can keep working. I think its developed the swine flu. I am running xp sp3 also. Will report. I hope to get to it maybe sunday. Asus P8Z68-V GEN3/ 2500k 4.4ghz / Corsair 64gb SSD Cache / Corsair 8g 1600 ddr3 / 2 x 320gb RE3 Raid 0 /Corsair 950w/ Zotac 560TI AMP 1gb / Zalman GS1200 case /G940/ Link to comment Share on other sites More sharing options...
Gadroc Posted October 15, 2009 Author Share Posted October 15, 2009 @dnnzed I do have one other thing to try. I'll PM you tonight with a test executable. Link to comment Share on other sites More sharing options...
Recommended Posts