Page 1 of 1

Using compiled shared C++ libraries (dll files) for FS19 mods

Posted: Wed May 25, 2022 1:34 am
by DonutGaz
Hello everyone,

Sorry for the overly technical question. I have a C++ library that I wrote that can be executed from Lua scripts. I've compiled said library into a .dll (.so for those familiar with Unix systems), and a test Lua script that I wrote successfully executes said library when I call it.

However, when I try to require the library from my mod files, I get the following error:

Code: Select all

attempt to call global 'require'
My require looks like this:

Code: Select all

windSimulatorUsb = require 'windSimulatorUsb'


Am I doing something wrong here? Does FS19 prohibit the usage of shared libraries?

Re: Using compiled shared C++ libraries (dll files) for FS19 mods

Posted: Sun Jun 19, 2022 11:33 pm
by Dezza69
Have you seen SimHubDashboard?