pw-dev_script icon indicating copy to clipboard operation
pw-dev_script copied to clipboard

Script causes crashes on multiplayer

Open raven06a opened this issue 9 months ago • 10 comments

I was having problems with DCS crashing when joining multiplayer servers. Started 3 weeks ago and it has persisted. Everything is up to date, did a clean installation of DCS, repaired everything and then I moved the folders one by one back into the SavedGames folder.

The only thing that makes DCS crash is the UFC script. I have tried removing it completely and all the residual files, reinstall, more than a few times. The only constant is once I remove the script everything works fine.

dcs.log

This is what's contained on the export.lua:

pcall(function() local pw=require('lfs');dofile(pw.writedir()..[[Scripts\pw-dev_script\ExportInit.lua]]); end,nil); pcall(function() local TheWayLfs=require('lfs');dofile(TheWayLfs.writedir()..'Scripts/TheWay/TheWay.lua'); end) pcall(function() local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil)

Neither SRS or TheWay interfere with DCS.

raven06a avatar May 04 '24 03:05 raven06a

I am having the exact same issue. Works in SP but crash in MP. Attached is my DCS.log crash file, that might help you out.

dcs.log

InzaneSK avatar May 04 '24 17:05 InzaneSK

Same, I am experiencing instantaneous crash when joining mp server, when the script is not installed I have no issues. dcs.log

edit: Just using the script configurator to remove/delete the script from the DCS did not work, for me completely deleting DCS folder in Saved Games restored the playability of the game.

domagojhack avatar May 07 '24 17:05 domagojhack

Yes, I also had to completely remove the saved games folder and add each file one by one to make sure. There are residual files in Hooks and I think had some problems within the Config folder too.

raven06a avatar May 07 '24 18:05 raven06a

try deleting the "pw_nav-hook.lua" file from the Hooks folder

pet333r avatar May 08 '24 11:05 pet333r

I can confirm that removing "pw_nav-hook.lua" allows connecting to mp servers.

However I am still getting crashes after few minutes. I reuploaded crash log after removing "pw_nav-hook.lua"

dcs.log

domagojhack avatar May 10 '24 18:05 domagojhack

I can confirm this behavior with both the latest version and an older one (a few months old).

I found out that this script was the issue by removing everything (I had a backup) in the saved games/DCS folder and reinstalling the script.

Sadly enough the functionality to remove it using the Script Configurator does not work as it still leaves a script file behind (even though the export lua is empty).

Mayhem93 avatar May 12 '24 20:05 Mayhem93

Any news on this issue?

domagojhack avatar May 15 '24 03:05 domagojhack

I have this issue too. The only workaround I found is to load a flight offline, exit of the flight, and then I can join a multiplayer server (all this without exiting the game, because if you leave the game, you have to repeat the next time). I will looking forward to see this fixed, I mainly use DCS NAV and it is very useful to me with the Huey.

DavidCB75 avatar May 23 '24 13:05 DavidCB75

I have this issue too. The only workaround I found is to load a flight offline, exit of the flight, and then I can join a multiplayer server (all this without exiting the game, because if you leave the game, you have to repeat the next time). I will looking forward to see this fixed, I mainly use DCS NAV and it is very useful to me with the Huey.

This workaround just avoids the crash, unfortunately the App doesn't connect when trying on a MP server.

I have the latest 2024.05.23 script version and the latest 2.9.5.55300 game version.

Mayhem93 avatar May 23 '24 15:05 Mayhem93

Hey guys, I think the issue has been finally fixed. I was able to join a MP server with this mod/script installed with no game crash. You just have to use the newer script configurator then update the script using it.

Mayhem93 avatar Jul 28 '24 18:07 Mayhem93