TinkerWorX / SharpCraft-retired-

SharpCraft is a library that helps modding Warcraft III: The Frozen Throne.
GNU General Public License v2.0
40 stars 10 forks source link

Error when launching SharpCraft #21

Open kfedotov opened 8 years ago

kfedotov commented 8 years ago

When attempting to run Launcher -game the following error pops up:

The given user library does not export a proper Run(EasyHook.InjectionLoader+REMOTE_ENTRY_INFO, TinkerWorX.SharpCraft.PluginContext, System.Boolean, System.String, System.String) method in the 'EasyHook.IEntryPoint' interface. screenshot_6

TinkerWorX commented 8 years ago

It looks like the SharpCraft.dll you have is damaged. Please download it again, and make sure no antivirus software interferes.

kfedotov commented 8 years ago

Thanks for the quick reply! I thought that might be the case so I tried rebuilding it from source and got the same problem. Disabling the antivirus didn't change anything ether.

TinkerWorX commented 8 years ago

I'm afraid I can't really do much to help without experiencing the problem myself. It is definitely caused by a damaged/modified SharpCraft.dll, so that's what you'll have to look in to.

cipherxof commented 8 years ago

I get the same error whenever I run Launcher.exe when it's not next to war3.exe.

TinkerWorX commented 8 years ago

Alright, I apologize for the late feedback. I've been able to reproduce it, although I can't find out what's causing it. I did however find out that I'm a lot of versions behind with EasyHook, so I've updated to the most recent, and I'm currently redoing the core of SharpCraft. This will affect plugins a bit, but it will not change the API of existing things, like adding natives, etc.

TinkerWorX commented 8 years ago

This should be fixed with the latest version. If you can reproduce it with version *.145 please let me know.

cipherxof commented 8 years ago

I'm getting this error with the newest version. I only get this error when Launcher.exe isn't next to war3.exe.

image

TinkerWorX commented 8 years ago

Make sure you don't have a SharpCraft.dll in your Warcraft III installation folder. This will cause various issues. Please reply if this doesn't fix it for you.

kilanth commented 6 years ago

Wouldn't launch and would give this as an exception. The error is a composition exception. image No: antivirus running, other hooking apps running I have installed: .NET of version 4.6ish release 460798 which is between 4.6 and 4.7, Distributable 2012 x86 along with x64. OS win10 diagnostics-20180309.txt log-20180309.debug.txt

TinkerWorX commented 6 years ago

This appears to be an issue related to the WEX package. The issue comes up because a plugin can't find your Java installation. Deleting "SharpCraft WEX Bundle (0.1.3.0-FIX)\profiles\Warcraft III - World Editor (WEX)\plugins\ObjectDataExtractor" should resolve the issue.

kilanth commented 6 years ago

Thank you for a quick reply, I've actually tried to remove plugins one by one but I gave up on this one on the list :D It did resolve the issue, you are a wizard! P.S. is ObjectDataExtractor needed to use ObjectMerger (otherwise creating units/items would take lifetime)?