Thealexbarney / XbTool

Tools to read, process and export data from Xenoblade games
42 stars 23 forks source link

Exception while unpacking bf2.ard #7

Open YayIguess opened 5 years ago

YayIguess commented 5 years ago

When running mono XbTool.exe -g xb2 -t ExtractArchive -a bf2.arh bf2ard -o unpacked on Arch Linux mono version 5.14


System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at XbTool.Xb2.FileArchive.DecryptArh (System.Byte[] file) [0x0007a] in <616d784149e34f5fbefbd91d3c1169f8>:0
  at XbTool.Xb2.FileArchive..ctor (System.String headerFilename, System.String dataFilename) [0x00051] in <616d784149e34f5fbefbd91d3c1169f8>:0
  at XbTool.Tasks.ExtractArchive (XbTool.Options options) [0x00025] in <616d784149e34f5fbefbd91d3c1169f8>:0
  at XbTool.Tasks.RunTask (XbTool.Options options) [0x00074] in <616d784149e34f5fbefbd91d3c1169f8>:0
  at XbTool.Program.Main (System.String[] args) [0x00012] in <616d784149e34f5fbefbd91d3c1169f8>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at XbTool.Xb2.FileArchive.DecryptArh (System.Byte[] file) [0x0007a] in <616d784149e34f5fbefbd91d3c1169f8>:0
  at XbTool.Xb2.FileArchive..ctor (System.String headerFilename, System.String dataFilename) [0x00051] in <616d784149e34f5fbefbd91d3c1169f8>:0
  at XbTool.Tasks.ExtractArchive (XbTool.Options options) [0x00025] in <616d784149e34f5fbefbd91d3c1169f8>:0
  at XbTool.Tasks.RunTask (XbTool.Options options) [0x00074] in <616d784149e34f5fbefbd91d3c1169f8>:0
  at XbTool.Program.Main (System.String[] args) [0x00012] in <616d784149e34f5fbefbd91d3c1169f8>:0```
YayIguess commented 5 years ago

When running XbTool.exe -g xb2 -t ExtractArchive -a bf2.arh bf2.ard -o bf2_extract on windows 10,

Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at XbTool.Xb2.FileArchive.DecryptArh(Byte[] file)
   at XbTool.Xb2.FileArchive..ctor(String headerFilename, String dataFilename)
   at XbTool.Tasks.ExtractArchive(Options options)
   at XbTool.Tasks.RunTask(Options options)
   at XbTool.Program.Main(String[] args)

All of the crashes have only occurred on the 2.0.0 version of the game.