Jump to content

Recommended Posts

Posted (edited)

Hey all, I'm hitting a problem in DCS on changing planes where all exports stop, frustrating because viacom and  my streamdeck become useless and the wwlights are all out of sync.

I start DCS, jump on a server everything works fine for first flight, if I land, refuel and rearm it's all ok. If I get shot down or pick a new plane everything breaks.

I went through process of elimination and if I remove ww from export.lua nothing breaks except obviously my light sync.

I found the following error in the log on the second plane spawn, does not happen on the first plane spawn.

2024-05-11 00:31:22.418 ERROR   Lua::Config (Main): Call error LuaExportActivityNextEvent:[string "C:\Users\xxx\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:150: attempt to index local 'dev' (a nil value)
stack traceback:
    [C]: ?
    [string "C:\Users\xxx\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:150: in function 'getNet'
    [string "C:\Users\xxx\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:216: in function 'LuaExportActivityNextEvent'
    [string "C:\Users\xxx\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:256: in function <[string "C:\Users\xxx\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:255>.

Note this is a recent problem, have used all these for years with no issue, it either started after a DCS update or a simapp update, not sure which.

 

Edited by Simm0
Posted (edited)

Ya Winwing has struggled with this before. In short, they are trying to perform actions on something that is `nil`, does not exist. The fix here is to add a null check before using what ever object or variable at hand. When ever you update SimApp Pro or hit "repair lua" this file will get overwritten and you will experience the issue again unless you replace the wwtExport.lua file with this one.

I submitted this issue along with a fix back in Jan 2023 on their website help desk and they said "We will look into it".

Also created a forum post highlighting this issue if you want to read more, in hindsight looks like there are other spots (the one you highlighted in your post) where this issue occurs. So don't use that file from the old post, use the one below.

 

Here is an updated file that should have null checks in place (not at my dcs pc to test, but let me know if this works). This is a file diff if you want to see what changed
 

 

wwtExport.lua

Edited by prestonflying
  • Thanks 1
  • Recently Browsing   0 members

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