prestonflying Posted January 24, 2023 Posted January 24, 2023 Users have posted on Discord and Facebook about this issue, so I am sharing a fix for it here. If you have any questions please ask. The updated lua file includes safe-guards to protect against using null objects when the player's aircraft crashes. Here is a file-diff of the added checks if anyone is curious. Although this is a simple 1 line change, Winwing has not resolved the issue for some time now. Myself and others have filed bug tickets but no fix as been put out by Winwing and often the response is along the lines of "repair your lua file or re-install SimApp Pro". Both of which are not the solution . I hope users find this fix helpful. Only applies to those who play on multiplayer servers Steps to fix: Download the the fixed wwtExport.lua file. Replace the existing file in `<USER>/Saved Games/<DCS_INSTALL>/Scripts/wwt/wwtExport.lua` Note: SimApp Pro may override this file until Winwing updates SimApp Pro. requring you to re-add the updated file. Play online and die/re-slot without losing in-game sync data such as light/vibration. Steps to reproduce issue: Use a Winwing device such as take-off panel, combat panel, F16 Ex Stick, or anything that uses in-game data to match state. Load into a multiplayer server Ensure Winwing device matches plane state (AA/AG lights, Landing gear, stick vibration, etc). Crash the airplane Re-slot in same or different plane type slot Notice AA/AG lights do not work, landing gear light does not flash, no stick vibration, no light sync. Pull up the logs located at: `<USER>/Saved Games/<DCS_INSTALL>/Logs/dcs.log` and notice the error message This is due to an accessing an object that is null, the fix above includes a working lua file to avoid this. 2023-01-24 18:07:26.835 ERROR Lua::Config (Main): Call error LuaExportActivityNextEvent:[string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:164: bad argument #1 to 'type' (value expected) stack traceback: [C]: ? [C]: in function 'type' [string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:164: in function 'sendNet' [string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:217: in function 'LuaExportActivityNextEvent' [string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:255: in function <[string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:254>. 4 1
Harley Posted December 20, 2023 Posted December 20, 2023 (edited) On 1/24/2023 at 11:02 AM, prestonflying said: Users have posted on Discord and Facebook about this issue, so I am sharing a fix for it here. If you have any questions please ask. The updated lua file includes safe-guards to protect against using null objects when the player's aircraft crashes. Here is a file-diff of the added checks if anyone is curious. Although this is a simple 1 line change, Winwing has not resolved the issue for some time now. Myself and others have filed bug tickets but no fix as been put out by Winwing and often the response is along the lines of "repair your lua file or re-install SimApp Pro". Both of which are not the solution . I hope users find this fix helpful. Only applies to those who play on multiplayer servers Steps to fix: Download the the fixed wwtExport.lua file. Replace the existing file in `<USER>/Saved Games/<DCS_INSTALL>/Scripts/wwt/wwtExport.lua` Note: SimApp Pro may override this file until Winwing updates SimApp Pro. requring you to re-add the updated file. Play online and die/re-slot without losing in-game sync data such as light/vibration. Steps to reproduce issue: Use a Winwing device such as take-off panel, combat panel, F16 Ex Stick, or anything that uses in-game data to match state. Load into a multiplayer server Ensure Winwing device matches plane state (AA/AG lights, Landing gear, stick vibration, etc). Crash the airplane Re-slot in same or different plane type slot Notice AA/AG lights do not work, landing gear light does not flash, no stick vibration, no light sync. Pull up the logs located at: `<USER>/Saved Games/<DCS_INSTALL>/Logs/dcs.log` and notice the error message This is due to an accessing an object that is null, the fix above includes a working lua file to avoid this. 2023-01-24 18:07:26.835 ERROR Lua::Config (Main): Call error LuaExportActivityNextEvent:[string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:164: bad argument #1 to 'type' (value expected) stack traceback: [C]: ? [C]: in function 'type' [string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:164: in function 'sendNet' [string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:217: in function 'LuaExportActivityNextEvent' [string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:255: in function <[string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:254>. Has this truly been fixed? Because I am still having the issue where a crash results in a de-sync, and have to exit to correct it. It's now late December. All SimApp Pro software is updated, but this still happens to me. Edited December 20, 2023 by Harley Added more
Harley Posted December 21, 2023 Posted December 21, 2023 (edited) That's a confirm. Tried to update, but the latest version is the same revision number, and respawning will de-sync PCR panel switches/lights at JETT stations and A/A-A/G mode lights, as well as the UFC LEDs. All function normally, it is only the lights for these buttons and the display for the UFC that don't sync up after a respawn. Edited December 21, 2023 by Harley
Harley Posted December 21, 2023 Posted December 21, 2023 On 1/24/2023 at 11:02 AM, prestonflying said: Users have posted on Discord and Facebook about this issue, so I am sharing a fix for it here. If you have any questions please ask. The updated lua file includes safe-guards to protect against using null objects when the player's aircraft crashes. Here is a file-diff of the added checks if anyone is curious. Although this is a simple 1 line change, Winwing has not resolved the issue for some time now. Myself and others have filed bug tickets but no fix as been put out by Winwing and often the response is along the lines of "repair your lua file or re-install SimApp Pro". Both of which are not the solution . I hope users find this fix helpful. Only applies to those who play on multiplayer servers Steps to fix: Download the the fixed wwtExport.lua file. Replace the existing file in `<USER>/Saved Games/<DCS_INSTALL>/Scripts/wwt/wwtExport.lua` Note: SimApp Pro may override this file until Winwing updates SimApp Pro. requring you to re-add the updated file. Play online and die/re-slot without losing in-game sync data such as light/vibration. Steps to reproduce issue: Use a Winwing device such as take-off panel, combat panel, F16 Ex Stick, or anything that uses in-game data to match state. Load into a multiplayer server Ensure Winwing device matches plane state (AA/AG lights, Landing gear, stick vibration, etc). Crash the airplane Re-slot in same or different plane type slot Notice AA/AG lights do not work, landing gear light does not flash, no stick vibration, no light sync. Pull up the logs located at: `<USER>/Saved Games/<DCS_INSTALL>/Logs/dcs.log` and notice the error message This is due to an accessing an object that is null, the fix above includes a working lua file to avoid this. 2023-01-24 18:07:26.835 ERROR Lua::Config (Main): Call error LuaExportActivityNextEvent:[string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:164: bad argument #1 to 'type' (value expected) stack traceback: [C]: ? [C]: in function 'type' [string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:164: in function 'sendNet' [string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:217: in function 'LuaExportActivityNextEvent' [string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:255: in function <[string "C:\Users\Preston\Saved Games\DCS.openbeta\Scripts/wwt/wwtExport.lua"]:254>. Ok. Looks like that repaired .lua fixes things. I like that! Thank you for figuring that out! Panels seem to sync up exactly as they should after a respawn. Good detective work!
prestonflying Posted December 21, 2023 Author Posted December 21, 2023 @Harley Glad you got it working, and thank you!
Harley Posted December 28, 2023 Posted December 28, 2023 On 12/21/2023 at 8:51 AM, prestonflying said: @Harley Glad you got it working, and thank you! I have one more question about this lua file. It seems as time goes by the way it does, winwing has updated their firmware, and it wants to update this corrected file. If it does update, which is optional, do I simply need to re-add/edit in the corrected code? Because I found that when it updates, the newer script doesn't retain the correction, and we're back to having the same issue that this lua fixes.
TrigaNZ Posted April 21 Posted April 21 (edited) Have tried the updated .lua but nothing will work in multiplayer except the F/A-18C. Everything works in single player. Any ideas? dcs.log Edited April 21 by TrigaNZ
Recommended Posts