pet333r / pw-dev_script

Script for DCS World
http://pw-developer.com/
GNU Lesser General Public License v3.0
115 stars 12 forks source link

Script causes crashes on multiplayer #54

Open raven06a opened 6 months ago

raven06a commented 6 months ago

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.

InzaneSK commented 6 months ago

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

domagojhack commented 6 months ago

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.

raven06a commented 6 months ago

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.

pet333r commented 6 months ago

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

domagojhack commented 6 months ago

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

Mayhem93 commented 6 months ago

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).

domagojhack commented 6 months ago

Any news on this issue?

DavidCB75 commented 6 months ago

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.

Mayhem93 commented 6 months ago

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 commented 3 months ago

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.