s-d-a / DCS-ExportScripts

DCS World Export Scripts
GNU Lesser General Public License v3.0
114 stars 52 forks source link

Interaction with Simple Radio Standalone export script #9

Open Couby opened 4 years ago

Couby commented 4 years ago

Hi,

Trying to install Ikarus I'm first encountering a problem with DCS-ExportScripts preventing DCS-SRS interaction.

image

I paid attention adding lines at the end of export.lua, that prevents anyway interactions between DCS and SRS.

@ciribob if you could also have a look to this interaction between export scripts...

synackack commented 4 years ago

Check your dcs error log.

The lua to process exports will always abnormally end if something doesn't process.

This is my "export.lua", which works fine.

dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\ExportScript.lua]]) dofile(lfs.writedir()..[[Scripts\SimShaker-export-core\ExportCore.lua]]) local SimShakerlfs=require('lfs'); dofile(SimShakerlfs.writedir()..'Scripts/SimShaker.lua') local Tacviewlfs=require('lfs');dofile(Tacviewlfs.writedir()..'Scripts/TacviewGameExport.lua') -- DCS SRS pcall(function() local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil); --Vaicom local vaicomlfs = require('lfs'); dofile(vaicomlfs.writedir()..[[Scripts\VAICOMPRO\VAICOMPRO.export.lua]])

H-J-P commented 4 years ago

It's nice that you're helping each other. Very good.

CU Heinz

PS: ... die 1000 Kleinigkeiten ... und halte es einfach (keep it simple) ...

On 11.08.202033, at 18:35, synackack notifications@github.com wrote:

Check your dcs error log.

The lua to process exports will always abnormally end if something doesn't process.

This is my "export.lua", which works fine.

dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\ExportScript.lua]]) dofile(lfs.writedir()..[[Scripts\SimShaker-export-core\ExportCore.lua]]) local SimShakerlfs=require('lfs'); dofile(SimShakerlfs.writedir()..'Scripts/SimShaker.lua') local Tacviewlfs=require('lfs');dofile(Tacviewlfs.writedir()..'Scripts/TacviewGameExport.lua') -- DCS SRS pcall(function() local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil); --Vaicom local vaicomlfs = require('lfs'); dofile(vaicomlfs.writedir()..[[Scripts\VAICOMPRO\VAICOMPRO.export.lua]])

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/s-d-a/DCS-ExportScripts/issues/9#issuecomment-672075445, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADF4TYMQGY464FQQSAFGLNDSAFXNHANCNFSM4PDMHJUA.

Couby commented 4 years ago

Thanks @synackack for this orientation. I'll take a look and report asap (next week).

Very best regards.

JS312RAF commented 1 year ago

I'm having the same issue. Tried countless export.lua variations. Please help. :'(

JS312RAF commented 1 year ago

Looks like the issue was the ";" at the end of the pcall function. Without it it works flawless. So my Export.lua now is:

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