Jump to content

Recommended Posts

Posted (edited)

Do you have a second monitor and don't know what to do with it?

Do you want to clearly visualize the Gs you are puling in a dogfight?

Now there is a solution for YOU!

 

cj8YFCn.jpg

* ED changed some stuff, again, so now it works with FC3 aircrafts AND A-10C!

 

DOWNLOAD:

For monitors with 1280 vertical resolution or above.

For monitors with 1024 or 1080 vertical resolution, a 'compact' version.

 

 

INSTALATION:

Add this code to your

C:\Users\~\Saved Games\DCS\Scripts\Export.lua

(If the 'Export.lua' or the 'Scripts' folder do not exist, just create them)

 

------------------------------------------------
------------START OF GEE-METER CODE-------------
------------------------------------------------
function LuaExportStart()
package.path  = package.path..";.\\LuaSocket\\?.lua"
package.cpath = package.cpath..";.\\LuaSocket\\?.dll"
socket = require("socket")
host = "localhost"
port = 1625
c = socket.try(socket.connect(host, port))
c:setoption("tcp-nodelay",true)
end
------------------------------------------------
function LuaExportAfterNextFrame()
local Gee = LoGetAccelerationUnits()
socket.try(c:send(string.format("%+.2f",Gee.y)))
end
------------------------------------------------
function LuaExportStop()
c:close()
end
------------------------------------------------
--------------END OF GEE-METER CODE-------------
------------------------------------------------

 

Extract the previously downloaded folder to the path of your liking and run the executable.

 

When you first run it, the windows firewall thingy might pop-up, click "allow access" for your private network. Nothing fishy here, DCS is using a socket to communicate data to it.

 

Have fun!

 

NOTE: If you have "Python 3" installed on your system, you can use the python scripts:

Github

Edited by Crash_Horror
ED changed some stuff, again, so now it works with FC3 aircrafts AND A-10C!
  • Like 1

[sIGPIC][/sIGPIC]

http://buddyspike.net/

  • 2 weeks later...
  • 2 years later...
Posted

With the new damage model I figured giving this a shot would be a helpful learning tool. Seems useful except it only seems to work for a few minutes before freezing with the last value shown.

 

Single & Multiplayer

 

The dcs.log shows these lines:

 

00342.502 ERROR Lua::Config: Call error LuaExportAfterNextFrame:<LUA_TTABLE>

stack traceback:

[C]: ?

[C]: in function 'try'

[string "C:\Users\--\Saved Games\DCS.openbeta\Scripts\Export.lua"]:17: in function 'PrevLuaExportAfterNextFrame'

[string "C:\Users\--\Saved Games\DCS.openbeta\Scripts\Export.lua"]:2002: in function <[string "C:\Users\--\Saved Games\DCS.openbeta\Scripts\Export.lua"]:1997>.

00342.974 WARNING LOG: 47 duplicate message(s) skipped.

00342.984 ERROR Lua::Config: Call error LuaExportAfterNextFrame:<LUA_TTABLE>

stack traceback:

[C]: ?

[C]: in function 'try'

[string "C:\Users\--\Saved Games\DCS.openbeta\Scripts\Export.lua"]:17: in function 'PrevLuaExportAfterNextFrame'

[string "C:\Users\--\Saved Games\DCS.openbeta\Scripts\Export.lua"]:2002: in function <[string "C:\Users\--\Saved Games\DCS.openbeta\Scripts\Export.lua"]:1997>.

00371.725 WARNING LOG: 2938 duplicate message(s) skipped.

00371.734 ERROR Lua::Config: Call error LuaExportAfterNextFrame:<LUA_TTABLE>

stack traceback:

[C]: ?

[C]: in function 'try'

[string "C:\Users\--\Saved Games\DCS.openbeta\Scripts\Export.lua"]:17: in function 'PrevLuaExportAfterNextFrame'

[string "C:\Users\--\Saved Games\DCS.openbeta\Scripts\Export.lua"]:2002: in function <[string "C:\Users\--\Saved Games\DCS.openbeta\Scripts\Export.lua"]:1997>.

00422.926 WARNING LOG: 5503 duplicate message(s) skipped.

 

Pasted code as shown into local saved games \DCS.openbeta\Scripts\Export.lua I wouldn't know where to start to fix this but looks like it needs a tweak after one of the last patches perhaps?

иɪɢнтмдяᴇ

 

http://www.51st.org/

  • Recently Browsing   0 members

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