Jump to content

Luasql - getting DCS to talk to mysql


SoW Reddog

Recommended Posts

I've been pratting around with this for a couple of days. Seems a few old threads point to it being done in the FC3 days but nothing very recent.

 

Can someone (anyone!) confirm that all I theoretically need to do is have a luasql folder containing the dll in the dcs world\bin folder, and correct syntax in a lua file. I don't need to point the lua file to reference the dll in any way?

Link to comment
Share on other sites

  • 3 weeks later...

try

 


local net               = require('net')

local status, err = pcall(function() 
   env=luasql.mysql ()
end)

if err then    
   net.log("mysql failed to load - "..err)
end

 

This should write something to the log.

Twitch2DCS - Bring twitch chat into DCS.

SplashOneGaming.com - Splash One is a community built on combat flight simulation. S1G Discord

 

twitch / youtube / facebook / twitter / discord

Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

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