Translations for our friends around the world.

Click on banner for Tacview website

Author Topic: Running Tacview on a DCS World 1.5.8 Multiplayer Server  (Read 7514 times)

0 Members and 1 Guest are viewing this topic.

Offline samoht

  • New member
  • *
  • Posts: 2
  • New member
Running Tacview on a DCS World 1.5.8 Multiplayer Server
« on: December 23, 2017, 10:13:56 PM »
I run the Aerobatics Online DCS World servers.  For all versions of DCS World released after the harrier, I am unable to create Tacview recordings of player activity.  My previous implementation was to have an entry in the Scripts/Export.lua citing:
   local Tacviewlfs=require('lfs');dofile(Tacviewlfs.writedir()..'Scripts/TacviewExportDCS.lua')
In addition, the TacviewExportDCS.lua existed in Scripts as well.  This version was from Tacview 1.5.2 and has worked until now.  I did not have the actual Tacview program installed on my DCS World servers as it was not necessary for file generation.

This capture method stopped working with the release of 1.5.8 and 2.2.0.  Simply moving those files to Scripts/Hooks (and updating paths) did not solve the issue.  I downloaded Tacview 1.6.4, made the entry into the Options.lua, and replicated the file structure in the Saved Games\DCS folder from the install folder, and while it does show in the mission and the DCS logs that Tacview is running, it produces ~1kb track files that are essentially empty.

I downloaded Tacview 1.7.0 Beta 4 and files in the installation folder, I created the following file structure in my Saved Games\DCS folder:
Saved Games\DCS\Mods\Tech\Tacview\ -> all directories and files copied over.
Saved Games\DCS\Scripts\Hooks\TacviewGameGUI.lua
Saved Games\DCS\Scripts\Export.lua
Saved Games\DCS\Scripts\TacviewGameExport.lua
Saved Games\DCS\Scripts\TacviewGameGUI.lua -> duplicate file, with a different date stamp?

This time, it creates files with data, but opening the ACMI file produces the error:  "The file format of [filename] is not supported.  Check the official website to know if there is a newer version of Tacview or another edition which can read this file."  Examining the ACMI file, it looks like it's still compressed, but it's not a valid zip file.

Where am I going wrong with my installation or configuration?
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions

Offline Vyrtuoz

  • Moderator
  • *****
  • Posts: 188
  • Tacview Developer
    • Tacview The Universal Flight Analysis Tool
Re: Running Tacview on a DCS World 1.5.8 Multiplayer Server
« Reply #1 on: December 24, 2017, 02:39:11 PM »
You have done the right thing: Installing the latest beta of Tacview 1.7.0 should fix the export for the new versions of DCS World.

Now, it looks like that your acmi files are corrupted because of a crash in DCS World at exit. If this happens often, you can ask the ACMI exporter to not compress the acmi files. Uncompressed files can always be read by Tacview, even if they are incomplete/corrupted by a DCS World crash.

Go in DCS World Special / Tacview options and set the file compression to none, this should fix your problem. (The option panel should be properly displayed with Tacview 1.7.0 beta 3 exporter).
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions
Click.gif

Offline samoht

  • New member
  • *
  • Posts: 2
  • New member
Re: Running Tacview on a DCS World 1.5.8 Multiplayer Server
« Reply #2 on: December 25, 2017, 09:21:07 PM »
Yup, that was the solution.  I've got it recording Tacview tracks for both 1.5.8 and 2.2.0 again.  To simplify the instructions for anyone else having this issue, here is my setup to generate tracks on the server as an automatic process.

I am using Tacview 1.6.4.  Tacview can be installed on the server, but it is not necessary; however, you will need access to the installation folder for some required files.  The example I'm giving is for 1.5.8, but this will work for 2.2.0 by modifying the path.  On the server:
1)  Create a Documents\Tacview directory if one does not already exist.
2)  Copy the Program Files (x86)\Tacview\DCS folder content (after installing Tacview somewhere) to Saved Games\DCS
3)  Create a Hooks folder in Saved Games\DCS and move the TacviewGameGUI.lua file to this location.
4)  Edit the Saved Games\DCS\Config\options.lua file and add the following entry:
["Tacview"] = {
         ["bookmarkShortcut"] = 0,
         ["dataRecordingEnabled"] = true,
         ["debugModeEnabled"] = true,
         ["playbackDelay"] = 0,
         ["profilingPeriod"] = 60,
         ["recordClientsSessionsEnabled"] = true,
         ["tacviewBookmarkShortcut"] = 0,
         ["tacviewCompressionLevel"] = 0,
         ["tacviewDataRecordingEnabled"] = true,
         ["tacviewDebugModeEnabled"] = false,
         ["tacviewPlaybackDelay"] = 600,
         ["tacviewProfilingPeriod"] = 600,
         ["tacviewRealTimeTelemetryPort"] = "42674",
         ["tacviewRecordClientsSessionsEnabled"] = false,
         ["tacviewRemoteControlPort"] = "42675",
      },

If automatically killing the DCS process on a schedule to force server restarts, make sure that ["tacviewCompressionLevel"] = 0 to ensure the file isn't corrupted.  For a fully manual implementation, that can be set to 1 which will keep file sizes smaller.

That's it.  The server will automatically record Tacview files to record player activity.
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions

Tags:
     

    Updated DCS world exporter

    Started by Asid

    Replies: 7
    Views: 4532
    Last post November 23, 2020, 07:40:54 PM
    by BuzyBee
    Three Issues with TacView recordings

    Started by Rudel_chw

    Replies: 6
    Views: 5752
    Last post June 27, 2018, 03:19:55 PM
    by Vyrtuoz
    Pointing Tacview to a new install of DCS

    Started by Longknife

    Replies: 2
    Views: 7828
    Last post September 23, 2016, 09:44:58 PM
    by Longknife
    Tacview Gift

    Started by Zooker

    Replies: 1
    Views: 3966
    Last post March 05, 2019, 02:14:23 PM
    by Vyrtuoz
    Empty Tacview file

    Started by johnbail

    Replies: 5
    Views: 7947
    Last post January 29, 2018, 10:36:36 PM
    by GlockDaEasy