Dogs Of War Vu
Network of Friends => Tacview => Topic started by: Asid on November 14, 2020, 01:02:39 AM
-
(http://i.imgur.com/zn9b1AI.jpg)
Tacview 1.8.5 beta 7 is available Now
Download: HERE (https://www.tacview.net/download/license/en/?file=TacviewBetaSetup.exe&mirror=0)
Release Date: Fri, 13 Nov 2020
Operating System: Windowsฎ 32-bit / 64-bit
File Size: 515.6 MB
Release notes
FEATURES & CHANGES
ADDED DCS World 2.5 Caucasus map generously donated by Flappie
ADDED support for DCS: A-10C II Tank Killer
ADDED Over-G add-on for the Fight for Honor 2020 tournament
ADDED events location in the XML event log
ADDED support for spacecrafts
ADDED Numerous new functions to the addon API
ADDED add-on to import SENIN gps data
ADDED support for terrain texture tiles per simulator
IMPROVED turn rate calculation to ignore wind conditions
IMPROVED turn-rate automatic calculation addon
IMPROVED media synchronization when no metadata found
IMPROVED real-time telemetry data support
IMPROVED brand new option page for DCS World exporter
FIXES
FIXED Steam edition of Tacview not working with non-Steam edition of Command
FIXED radar cone orientation in the 3D view
FIXED trim operations behavior and stability
FIXED backward playback not working at x0.25 speed
FIXED numerous minor or rare bugs
FIXED several minor bugs in the Lua API
Restrictions
To run a beta version, you need a product key. Feel free to have a look at the features comparison to know which edition is the best for you if you are interested in buying Tacview.
Please note that even if we are doing our best to produce a high quality product, beta versions usually contains known and unknown bugs, may crash, or have some features disabled because of work in progress. This is why, it is suggested to download and install beta versions alongside the latest official release (not over it). That way, in case of problem, you can simple launch the latest stable version to continue your work...
-
I'm using the new "Media" API introduced in this beta and it appears to not work.
When loading audio outside of a function, it causes the UI to be reset to default (displays controls, player controls on the left, forgets all other open windows.) Additionally, calling it via a function (e.g. from a menu) seems to always return false, indicating a failure. The odd thing is that the file path is correct (I copy/pasted it out of explorer) and the file plays just fine when loaded manually (indicating it's not a codec error.)
On a side note, it'd be wonderful to get more detail on the failure to load media so that the addon can properly handle it.
-
Hi Wrycu, can you please share the code and the media files that are causing these issues? Including the exact file path that you are giving to the function.
-
Here's a link to both: https://drive.google.com/file/d/1mDD6kL2MFEUM7H93HSGnF50rx5wKrY-2/view?usp=sharing (https://drive.google.com/file/d/1mDD6kL2MFEUM7H93HSGnF50rx5wKrY-2/view?usp=sharing)
The code is below (as well as in the ZIP linked above) since it might be faster to just look at it. Note that commenting out lines 16, 24, and 26 results in the UI being reset while running it as-is only returns false.
local Tacview = require("Tacview185")
-- Before anything else we should name our add-on
Tacview.AddOns.Current.SetTitle("SRS Recorder")
Tacview.AddOns.Current.SetVersion("0.0.1")
Tacview.AddOns.Current.SetAuthor("Wrycu")
Tacview.AddOns.Current.SetNotes("Test module to load audio")
-- We can directly ask Tacview to display specific information in its log
Tacview.Log.Info("Loading SRS Recorder by Wrycu")
--Tacview.Media.Load(0, "C:\\Users\\Tim\\PycharmProjects\\srs-recorder\\305000000.0.ogg", Tacview.Context.GetAbsoluteTime())
Tacview.Log.Info("WRYCU - loaded 305000000.0.ogg")
function load_audio()
if (Tacview.UI.MessageBox.Question("Load audio?") == Tacview.UI.MessageBox.OK) then
Tacview.Log.Info("You said yes")
loaded = Tacview.Media.Load(0, "C:\\Users\\Tim\\Documents\\audio.ogg", 1290175200)
Tacview.Log.Info("WRYCU - loaded audio.ogg:", loaded)
else
Tacview.Log.Info("You said no")
end
end
Tacview.UI.Menus.AddCommand(nil , "load audio", load_audio)
--Tacview.Events.DocumentLoaded.RegisterListener(file_loaded())
-
I see that the UI is being reset when the media file is loaded outside of a function. We'll fix that in a coming update. Thanks for letting us know.
Your media file should be working though. Does it work if you place the media file in the add-on folder and change line 19 to:
local loaded = Tacview.Media.Load(0, Tacview.AddOns.Current.GetPath() .. "audio.ogg", 1290175200)
If the error persists can you share your Tacview.log (found in the TEMP folder).
We will add more logging of errors in a coming update.
-
Putting it in the addon directory does work - thanks!
While trying to generate the error condition again, I think I found another bug. I have media window 1 open and set to autohide. I then call my addon, which attempts (and fails) to load the audio. Unhiding the media window shows the window without an error in it, while attempting to load the audio file without having the media window open beforehand results in an (erroneous) message saying the audio file is unsupported.
Here's the log of the unsuccessful load: https://pastebin.com/cz4hMgtv (https://pastebin.com/cz4hMgtv)
-
I see that loading a media file when the media window it auto-hidden does not seem to work. We will fix that in an upcoming version. Thanks for the bug report.