Open r2dseu opened 2 months ago
It looks like when reloading missions, there seems to be a conflict between Vaicompro and DCRealistic's lua export where the former's doesn't load correctly and doesn't recognize the module with None Detected
on PTT.
Looking at export.lua:
local vaicomlfs = require('lfs'); dofile(vaicomlfs.writedir()..[[Scripts\VAICOMPRO\VAICOMPRO.export.lua]]) --[[RKAPPS_REFERENCE]]dofile("C:\\Users\\Ryan\\Desktop\\Standalone Softwares\\DCRealistic/Plugins\\rkApps_Export.lua") --[[DCREALISTIC_AUTOSTART]]os.execute('start "" "C:\\Users\\Ryan\\Desktop\\Standalone Softwares\\DCRealistic\\DCRealistic.exe"')
commenting out rkApps's lua scripts seems to have fixed the problem (reloading the mission loads the module in the PTT correctly).
rkApp has obfuscated their script so I can't debug it further but can't be sure if the issue is on their side. I'll file a bug on their discord.
Testing a bit further, it looks like the buggy behavior occurs only when:
os.execute()
call is in the export scriptIt seems like Vaicom does not like the fact that os.execute trys to invoke DCSRealistic.exe
again when it's already running?
The windows start command returns 0 even when the executable is started again so I don't think vaicom is erroring out on a return error.
OTOH, I'm not sure if it's exactly safe for DCRealistic to be invoking a shell command in the lua export script that has to play nicely with other mods.
Describe the bug
To Reproduce Steps to reproduce the behavior:
Preferences
Start DCS and enter into a mission
Use "Options" command will show you the command options
Either reload the missions or exit the mission and restart
Use "Options" command will NOT show you the command options
VoiceAttack logs shows that the commands were recognized
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Additional context