cerebrate / x64-unfixer

Unfixes KSP mods that use CompatibilityChecker to prevent themselves from running on Windows x64.
The Unlicense
6 stars 0 forks source link

Error rewriting assembly: #1

Closed senshi-x closed 9 years ago

senshi-x commented 9 years ago

Error rewriting assembly: Failed to resolve assembly: 'UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'

This is what I get when running the unfixer on the Launchpad.dll of ExtraPlanetaryLaunchapds 4.4.0. The old Launchpad.dll is renamed to "Launchpad.old", but the newly created "Launchpad.dll" is empty (0kb).

You can get the problematic release here: http://taniwha.org/~bill/Extraplanetary_Launchpads_v4.4.0.zip Problematic file is Plugins\Launchpad.dll

Full console output: http://pastebin.com/kvMGVma6

cerebrate commented 9 years ago

Which version of KSP do you have installed?

senshi-x commented 9 years ago

That report was before 0.9 release, so it was 0.25. Can re-test on 0.90.

cerebrate commented 9 years ago

Okay, no need as it turns out, I've found the problem and it should affect both equally.

I'll get a fix into the next release, but in the meantime, a workaround is to make sure the current directory is the "KSP_x64_Data\Managed" subdirectory of your KSP install directory when you run x64-unfixer, and then specify the full path to the .dll. Running it from that directory (x64-unfixer itself doesn't have to be there, it only has to be the current directory) lets it find the UnityEngine.dll it's missing.

cerebrate commented 9 years ago

Fixed in release 1.4.