Jump to content

Recommended Posts

Posted

Hi,

 

Does anyone know of any updates to the export.lua script or of any listing of the statistics that can be exported from Black Shark via lua scripts.

 

From what I can tell so far the ability to export data is lacking in Black Shark in comparison to LockOn.

 

Currently I am working on a small project to export data so as to collect this and display it within the Logitech G15 keyboard display, and a lot of the examples in the export.lua provided with Black Shark do no generate any data.

 

Any assistance would of course be greatly appreciated.

 

Regards,

Posted

Alex O'Kean posted a newer export.lua script here:

 

http://forums.eagle.ru/showpost.php?p=586769&postcount=48

 

However I don't think it will help you with the engine data exporting problem, LoGetEngineInfo() is implemented at C/C++ level (you can check it yourself with Lua's debug.getinfo() library function).

 

Also note that the LoSetCommand() function now seems to have the ability to control the Ka-50 from the export script. See the attachment in Chizh's post here, which includes the greatly expanded list of parameters that you can pass to the LoSetCommand() function:

 

http://forums.eagle.ru/showpost.php?p=567615&postcount=14

Posted

I find this very interesting at the bottom of the default export.lua:

 

-- you can export render targets via shared memory interface 
-- using next functions  
--        LoSetSharedTexture(name)          -- register texture with name "name"  to export
--        LoRemoveSharedTexture(name)   -- copy texture with name "name"  to named shared memory area "name"
--        LoUpdateSharedTexture(name)    -- unregister texture
--       texture exported like Windows BMP file 
--      --------------------------------
--      |BITMAPFILEHEADER   |
--      |BITMAPINFOHEADER |
--      |bits                                  |
--      --------------------------------
--      sample textures   :  "mfd0"    -  full  SHKVAL screen
--                                      "mfd1"     -  ABRIS map screen
--                                      "mfd2"    - not used
--                                      "mfd3"    - not used
--                                      "mirrors" - mirrors

 

If I read that right, it is possible to network the ABRIS and Shkval...

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

That certainly appears to be the indication, although I am unsure as to how complete the functionality currently is, as there are other elements discussed in the export.lua that do not appear to currently function properly within BS.

 

But certainly an interesting area for further investigation.

 

Regards,

Posted

Hi Skippy, I just have to say that your work on the G15 / LockOn mod is great!! and has been the inspiration for my starting to write a similar tool for Black Shark.

 

I currently have a basic console application written in Visual C++ that acts as a TCP socket server and receives the data pushed from Black Shark and in turn parses that data so that it can be assigned to different variables. In due course I will then include the G15 SDK into the project so that various pages can be defined and the variables stored in a number of different ways, and perhaps look at provide a configuration page to better deal with customisation as required.

 

The issue that appears to be apparent is that not all of the objects that are exportable from LockOn via export.lua are available within DCS and looks as though this area of the product was not complete at the time that the product was released. Hopefully this will be better addressed upon the release of the next patch release.

 

Regards,

Bravo020.

  • 9 months later...
Posted

I did get it partially functioning, in the fact that I could get an image from the shared memory and display it. The graphics did have some wrong colors (which could be coding error on my part.) But notice it says "ABRIS map screen", it literally is just the map and none of the textual information.

 

I abandoned working on this as just enabling the shared memory dropped 15-20 off the fps. It turned out I could get much better performance using multiple video cards on the same computer.

Posted
I did get it partially functioning, in the fact that I could get an image from the shared memory and display it.

@Gadroc: Could you post your code/files here plz. Maybe we can improve/correct it if needed. At least I would be happy to know how you did it :thumbup:

Would be very very nice :smilewink:

  • Recently Browsing   0 members

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