Coder Social home page Coder Social logo

Comments (5)

fosspill avatar fosspill commented on May 18, 2024

The main UI make this seem pretty straight forward:
MainWindow.xaml.cs#L123

MainWindow.xaml.cs#L357

from ffxiv_modding_tool.

shinnova avatar shinnova commented on May 18, 2024

As of commit bfb9cf4 bool indexLocked = index.IsIndexLocked(XivDataFile._0A_Exd) always returns true even when it should not. Bypassing this check for now.
The next error we run into then is that mono FFXIV_TexTools_CLI.exe modpackimport -g /path/to/FINAL\ FANTASY\ XIV\ -\ A\ Realm\ Reborn/ -m /path/to/modpackdirectory/ -t /path/to/modpackfile.ttmp returns the following:

Could not load signature of ImageMagick.MagickImage:ToBitmapSource due to: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
Could not load signature of ImageMagick.IMagickImage:ToBitmapSource due to: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Unhandled Exception:
System.UnauthorizedAccessException: Access to the path '$HOME/git/my_repos/FFXIV_TexTools_CLI/FFXIV_TexTools_CLI/bin/Debug/ModPacks/' is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x000e0] in <2db172fd6cc04cc789459631328c1dd5>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <2db172fd6cc04cc789459631328c1dd5>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <2db172fd6cc04cc789459631328c1dd5>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
  at System.IO.Compression.ZipFile.Open (System.String archiveFileName, System.IO.Compression.ZipArchiveMode mode, System.Text.Encoding entryNameEncoding) [0x00037] in <c2db6a73996b4746962d0084f4eca25d>:0 
  at System.IO.Compression.ZipFile.Open (System.String archiveFileName, System.IO.Compression.ZipArchiveMode mode) [0x00000] in <c2db6a73996b4746962d0084f4eca25d>:0 
  at System.IO.Compression.ZipFile.OpenRead (System.String archiveFileName) [0x00000] in <c2db6a73996b4746962d0084f4eca25d>:0 
  at xivModdingFramework.Mods.FileTypes.TTMP.GetOriginalModPackJsonData (System.IO.DirectoryInfo modPackDirectory) [0x0000d] in <8317f3ff705b42e2a71d871411d228b6>:0 
  at FFXIV_TexTools_CLI.MainClass.GetModpackData (System.IO.DirectoryInfo ttmpPath, System.IO.DirectoryInfo modpackDirectory, xivModdingFramework.Mods.DataContainers.ModPackJson ttmpData) [0x00167] in <d0db9e064d0049a1b1ea5553270aaabb>:0 
  at FFXIV_TexTools_CLI.MainClass.ImportModpackHandler (System.IO.DirectoryInfo ttmpPath, System.IO.DirectoryInfo modpackDirectory) [0x0006b] in <d0db9e064d0049a1b1ea5553270aaabb>:0 
  at FFXIV_TexTools_CLI.MainClass+<>c__DisplayClass15_0.<Main>b__0 (FFXIV_TexTools_CLI.importoptions opts) [0x00033] in <d0db9e064d0049a1b1ea5553270aaabb>:0 
  at CommandLine.ParserResultExtensions.WithParsed[T] (CommandLine.ParserResult`1[T] result, System.Action`1[T] action) [0x0001e] in <fd00a227a30544d7afa42bde90a9d412>:0 
  at FFXIV_TexTools_CLI.MainClass.Main (System.String[] args) [0x0001d] in <d0db9e064d0049a1b1ea5553270aaabb>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path '$HOME/git/my_repos/FFXIV_TexTools_CLI/FFXIV_TexTools_CLI/bin/Debug/ModPacks/' is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x000e0] in <2db172fd6cc04cc789459631328c1dd5>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <2db172fd6cc04cc789459631328c1dd5>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <2db172fd6cc04cc789459631328c1dd5>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
  at System.IO.Compression.ZipFile.Open (System.String archiveFileName, System.IO.Compression.ZipArchiveMode mode, System.Text.Encoding entryNameEncoding) [0x00037] in <c2db6a73996b4746962d0084f4eca25d>:0 
  at System.IO.Compression.ZipFile.Open (System.String archiveFileName, System.IO.Compression.ZipArchiveMode mode) [0x00000] in <c2db6a73996b4746962d0084f4eca25d>:0 
  at System.IO.Compression.ZipFile.OpenRead (System.String archiveFileName) [0x00000] in <c2db6a73996b4746962d0084f4eca25d>:0 
  at xivModdingFramework.Mods.FileTypes.TTMP.GetOriginalModPackJsonData (System.IO.DirectoryInfo modPackDirectory) [0x0000d] in <8317f3ff705b42e2a71d871411d228b6>:0 
  at FFXIV_TexTools_CLI.MainClass.GetModpackData (System.IO.DirectoryInfo ttmpPath, System.IO.DirectoryInfo modpackDirectory, xivModdingFramework.Mods.DataContainers.ModPackJson ttmpData) [0x00167] in <d0db9e064d0049a1b1ea5553270aaabb>:0 
  at FFXIV_TexTools_CLI.MainClass.ImportModpackHandler (System.IO.DirectoryInfo ttmpPath, System.IO.DirectoryInfo modpackDirectory) [0x0006b] in <d0db9e064d0049a1b1ea5553270aaabb>:0 
  at FFXIV_TexTools_CLI.MainClass+<>c__DisplayClass15_0.<Main>b__0 (FFXIV_TexTools_CLI.importoptions opts) [0x00033] in <d0db9e064d0049a1b1ea5553270aaabb>:0 
  at CommandLine.ParserResultExtensions.WithParsed[T] (CommandLine.ParserResult`1[T] result, System.Action`1[T] action) [0x0001e] in <fd00a227a30544d7afa42bde90a9d412>:0 
  at FFXIV_TexTools_CLI.MainClass.Main (System.String[] args) [0x0001d] in <d0db9e064d0049a1b1ea5553270aaabb>:0

and running the same command with dotnet returns:

A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '$HOME/git/my_repos/FFXIV_TexTools_CLI/FFXIV_TexTools_CLI/bin/Debug/'.
Failed to run as a self-contained app. If this should be a framework-dependent app, add the $HOME/git/my_repos/FFXIV_TexTools_CLI/FFXIV_TexTools_CLI/bin/Debug/FFXIV_TexTools_CLI.runtimeconfig.json file specifying the appropriate framework.

from ffxiv_modding_tool.

shinnova avatar shinnova commented on May 18, 2024

Turns out that despite the variable in the TTMP class being called modPackDirectory, it's actually asking for the full .ttmp path, which results in this exception being thrown as the function is expecting a zip file and we were giving it a directory.

from ffxiv_modding_tool.

shinnova avatar shinnova commented on May 18, 2024

Both the index check and importing was failing because of hard coded paths in the framework that this project relies on. liinko/xivModdingFramework@6f4f9f9 remedies this.

from ffxiv_modding_tool.

fosspill avatar fosspill commented on May 18, 2024

c5cd446 completes this issue.
Readme might need more updating, and we should consider releasing a binary.

from ffxiv_modding_tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.