Dalamud-VFXEditor icon indicating copy to clipboard operation
Dalamud-VFXEditor copied to clipboard

Unable to load local SCD files on Linux

Open Enriath opened this issue 1 year ago • 0 comments

I'm trying to use VFXEditor to save me the headache of re-converting and reloading a piece of music while trying to find the loop point, but an error is being thrown when trying to read it. This seems to happen with any local SCD file; it can load files from the game perfectly fine. I suspect the issue is something to do with Linux, Wine, and either the file reading not being fully supported through Wine, or something relating to getting file information not being fully supported through Wine. I really am not sure though.

EDIT: I have since realised that I can upload an OGG file directly over the current music track in the SCD editor, which does solve my initial use case (and lessens my headache). The plugin being unable to load the SCD file through the Loaded SCD option is still a problem though.


Environment:

  • VFXEditor version: v1.7.7.3
  • Dalamud version: D7.10.1.0
  • Operating system: Linux Mint 20.3
  • XIVLauncher version: v1.0.3.0(c2e02fd)
  • XIVLauncher type: Flatpak
  • Wine version: wine-xiv 8.5.r4.g4211bac7

The error:

13:15:08.950 | ERR [VFXEditor] Error Reading File
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
   at System.IO.BinaryReader.ReadByte()
   at VfxEditor.Parsing.ParsedInt.Read(BinaryReader reader, Int32 size) in /work/repo/VFXEditor/Parsing/Int/ParsedInt.cs:line 25
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at VfxEditor.ScdFormat.ScdAttributeEntry.Read(BinaryReader reader) in /work/repo/VFXEditor/ScdFormat/Attribute/ScdAttributeEntry.cs:line 41
   at VfxEditor.ScdFormat.ScdEntry.Read(BinaryReader reader, Int32 offset) in /work/repo/VFXEditor/ScdFormat/Entries/ScdEntry.cs:line 12
   at VfxEditor.ScdFormat.ScdFile..ctor(BinaryReader reader, Boolean checkOriginal) in /work/repo/VFXEditor/ScdFormat/ScdFile.cs:line 58
   at VfxEditor.ScdFormat.ScdDocument.FileFromReader(BinaryReader reader) in /work/repo/VFXEditor/ScdFormat/ScdDocument.cs:line 13
   at VfxEditor.FileManager.FileManagerDocument`2.LoadLocal(String localPath) in /work/repo/VFXEditor/FileManager/FileManagerDocument.cs:line 114

Enriath avatar Aug 10 '23 12:08 Enriath