1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Simtools V3 export.lua solution

Discussion in 'Digital Combat Simulators (DCS)' started by John Murphy, Sep 7, 2023.

  1. John Murphy

    John Murphy Member Gold Contributor

    Joined:
    May 11, 2023
    Messages:
    75
    Occupation:
    Tech Exec
    Location:
    Virginia, USA
    Balance:
    463Coins
    Ratings:
    +20 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor
    For those of you using simtools v3 with DCS... you should:) but... if what's holding you up is that it rewrites the DCS export.lua file and you have other addons which need it, here's the solution.

    1. Make a backup copy of your export.lua before installing the simtools v3 DCS plugin
    2. Once the DCS plugin is installed rename your new export.lua to something appropriate. I renamed mine to SimToolsV3.lua
    3. Copy your backup of the export.lua file you made back to its original name (export.lua of course)
    4. Add the following line to you export.lua file
    local SimToolslfs=require('lfs'); dofile(SimToolslfs.writedir()..'Scripts/SimToolsV3.lua')

    for reference my entire export.lua file is now...

    local vaicomlfs = require('lfs'); dofile(vaicomlfs.writedir()..[[Scripts\VAICOMPRO\VAICOMPRO.export.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')
    local SimToolslfs=require('lfs'); dofile(SimToolslfs.writedir()..'Scripts/SimToolsV3.lua')

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

    (sorry for the small fonts, I didn't want line breaks to confuse things...)
    • Like Like x 1
    • Informative Informative x 1