Author Topic: ShinraTool - Failing to load .dat files  (Read 6643 times)

Scrat

  • *
  • Posts: 81
  • Don't eat yellow snow... even if it might be beer!
    • View Profile
ShinraTool - Failing to load .dat files
« on: 2014-06-04 09:36:29 »
Heya guys,

So I can't get ShinraTool to load the .dat files and I am wondering if anyone has encountered this problem before.

Mayo sent me the file, I extracted ShinraTool and ran it, in it's own folder on the desktop. As soon as I ran ShinraTool an export and a log folder were created in the ShinraTool folder. I loaded my Final fantasy 7 disc (I have tried discs 2 and 3 as my copy of disc 1 went missing years ago) and used shinratool to open a .DAT file having selected the Blender option (I tried Ztruck.dat and then a bunch of other randomly selected .DAT files.)

Everytime I get this error message
Quote
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'OpenTK, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4' or one of its dependencies. The system cannot find the file specified.
File name: 'OpenTK, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4'
   at ShinraTool.Form1.OpenField(String fieldFile)
   at ShinraTool.Form1.tsmFOpen_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6407 (Win8RTMGDR.050727-6400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ShinraTool
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Scrat/Desktop/SHinratool/ShinraTool.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6402 (Win8RTMGDR.050727-6400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.




and after this error message I can continue to try and render anyway or quit, when both are selected the export and log folders remain empty.
I tried loading from the folders in blender as well in case they were somehow hidden or otherwise.


Has anyone else encountered this at all? I have tried rebooting, running as admin and turning off anti virus.

I am running windows 8 and can give specs if that could contribute to the issue. Appreciate any pointers or other help.

Mayo Master

  • Moderator
  • *
  • Posts: 650
    • View Profile
Re: ShinraTool - Failing to load .dat files
« Reply #1 on: 2014-06-04 15:22:54 »
Loading from disc 1, 2 or 3 should not make any difference.
Have you tried to extract Shinratool with 7zFM as opposed to Winrar? In theory it shouldn't make any difference, but since that's the only difference between what you did and what I did (with my file working properly), it may be worth a shot (I'm on crappy windows 8 too). Other than that... I don't think running as admin or turning off anti-virus would help.
I've just PMed SpooX, I hope he'll be around.
« Last Edit: 2014-06-04 15:31:02 by Mayo Master »

Scrat

  • *
  • Posts: 81
  • Don't eat yellow snow... even if it might be beer!
    • View Profile
Re: ShinraTool - Failing to load .dat files
« Reply #2 on: 2014-06-04 16:26:29 »
Yeah I just downloaded 7zip and gave that a shot as well, same result unfortunately. Is there any other way I could get hold of ShinraTool?

I can only think that either my computer is blocking something, which should have been resolved by running as admin and turning off antivirus, or something is being lost between me and you, which it shouldn't be if you are using the same file sent to me... eurgh

Mayo Master

  • Moderator
  • *
  • Posts: 650
    • View Profile
Re: ShinraTool - Failing to load .dat files
« Reply #3 on: 2014-06-04 17:25:34 »
I can see about granting you access to the WIP file repository, you could get Shinratool from there. I doubt it will make much of a difference though. In the meantime, I can prep the blend files for you as we agreed.

Scrat

  • *
  • Posts: 81
  • Don't eat yellow snow... even if it might be beer!
    • View Profile
Re: ShinraTool - Failing to load .dat files
« Reply #4 on: 2014-06-04 20:38:05 »
Thanks Mayo, hopefully I will get this working at some point, but I appreciate you accommodating me in the mean time!

SpooX

  • ah nothing really...
  • Moderator
  • *
  • Posts: 344
  • Used to be errr...
    • View Profile
Re: ShinraTool - Failing to load .dat files
« Reply #5 on: 2014-06-15 20:36:09 »
Hi Scrat,

Sorry for the delay on the response,

looking at your debug info:
Code: [Select]
System.IO.FileNotFoundException: Could not load file or assembly 'OpenTK, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4' or one of its dependencies. The system cannot find the file specified
it looks like your missing a dll "OpenTK.dll"

Which version are you using?
can you confirm that you have the following files in the folder:
OpenTK.dll
OpenTK.xml
ShinraTool.exe
ShinraTool.pdb

and the last question, is there a logfile in the log folder?

I love challenges
 8-)

Scrat

  • *
  • Posts: 81
  • Don't eat yellow snow... even if it might be beer!
    • View Profile
Re: ShinraTool - Failing to load .dat files
« Reply #6 on: 2014-06-16 08:11:49 »
Welcome back SpooX!

I am using V1.0-C and I can confirm that I have none of those things in any of my folders :). In the zip Mayo sent me there is only shinratool.exe

OpenTK.dll, OpenTK.xml and ShinraTool.pdb are all missing and the log folder is created when I open shinratool (as is the export folder) but there is nothing inside them.

Mayo Master

  • Moderator
  • *
  • Posts: 650
    • View Profile
Re: ShinraTool - Failing to load .dat files
« Reply #7 on: 2014-06-16 15:13:01 »
My bad then. I thought Shinratool.exe on its own was all that was needed, I didn't think of including any others. I'll remake a 7z including all the others and send it to you in a bit.
Thanks SpooX for troubleshooting.
EDIT: Just sent an updated .7z file, let me know if that does the trick.
« Last Edit: 2014-06-16 15:21:20 by Mayo Master »

Scrat

  • *
  • Posts: 81
  • Don't eat yellow snow... even if it might be beer!
    • View Profile
Blender files
« Reply #8 on: 2014-06-21 10:20:28 »
Ok it works!

I can now get .ms and .py files into the export folder.

As of yet I have no idea how to use these and my computer has pissed me off enough for the day (windows 8) so I will be figuring it out next week!

Thanks for the files guys ^^

Mayo Master

  • Moderator
  • *
  • Posts: 650
    • View Profile
Re: ShinraTool - Failing to load .dat files
« Reply #9 on: 2014-06-21 21:09:49 »
The .py file is a script you'll run in Blender. You already have all the details in the message I sent you a few weeks back, when you were first trying to figure how to use Shinratool.

Scrat

  • *
  • Posts: 81
  • Don't eat yellow snow... even if it might be beer!
    • View Profile
Re: ShinraTool - Failing to load .dat files
« Reply #10 on: 2014-06-22 08:22:31 »
ah lovely, I'll check that out in a short while. Really had enough of this computer yesterday and then my xbox red ringed on me so it was not a good day!

Mayo Master

  • Moderator
  • *
  • Posts: 650
    • View Profile
Re: ShinraTool - Failing to load .dat files
« Reply #11 on: 2014-06-22 15:55:36 »
Just don't use the script of Ztruck on your already existing file (besides, it'd be useless, because I've done that job already). The script would remove all pre-existing objects in a scene, that's why running the script is pretty much the first thing to do when you want to get started on a new scene.