walmis / VPforce-TelemFFB

DCS FFB Telemetry Effects (for VPforce FFB)
GNU General Public License v3.0
49 stars 13 forks source link

nil value referenced #47

Open sturlaj opened 5 months ago

sturlaj commented 5 months ago

Very small issue, but recording it nevertheless. It seems like the script throws an error for missions without units (or in observer mode)

2024-05-20 12:25:34.635 ERROR Lua::Config (Main): Call error LuaExportAfterNextFrame:[string "C:\Users\sturla\Saved Games\DCS.openbeta\Scripts/TelemFFB.lua"]:236: attempt to index local 'wind' (a nil value) stack traceback:

[C]: in function 'data_send'
[string "C:\Users\sturla\Saved Games\DCS.openbeta\Scripts/TelemFFB.lua"]:1097: in function 'AfterNextFrame'
[string "C:\Users\sturla\Saved Games\DCS.openbeta\Scripts/TelemFFB.lua"]:1132: in function <[string "C:\Users\sturla\Saved Games\DCS.openbeta\Scripts/TelemFFB.lua"]:1131>.

Noticed it when running some of the MOOSE demo missions. Example.