speps / XInputDotNet

C# wrapper around XInput, works with any Mono or .NET application (eg. Unity3D)
466 stars 96 forks source link

Dlls are conflicting #17

Closed UserAnon91 closed 7 years ago

UserAnon91 commented 9 years ago

Using the unity package I imported XInput into my project roughly a three months ago. Since then, our project has switched to Unity 5 and although we thought we were prepared for conflicts and potential breaking, we couldn't get XInput to function. I'm getting this error;

Plugin 'XInputInterface.dll' is used from several locations: Assets/Plugins/x86/XInputInterface.dll would be copied to /XInputInterface.dll Assets/Plugins/x86_64/XInputInterface.dll would be copied to /XInputInterface.dll Plugin 'XInputDotNetPure.dll' is used from several locations: Assets/Plugins/x86_64/XInputDotNetPure.dll would be copied to /XInputDotNetPure.dll Assets/Plugins/x86/XInputDotNetPure.dll would be copied to /XInputDotNetPure.dll Please fix plugin settings and try again.

UnityEditor.Modules.DefaultPluginImporterExtension:CheckFileCollisions(String) UnityEditorInternal.PluginsHelper:CheckFileCollisions(BuildTarget) (at C:/buildslave/unity/build/Editor/Mono/Plugins/PluginsHelper.cs:25) UnityEditor.HostView:OnGUI()

Not sure if there's a quick fix, but it's stopping us from doing web builds, which are currently needed.

Cheers, -James Gudge

speps commented 9 years ago

I don't think you can do both native plugins and web builds.

About the problem you have, I didn't check if the plugin works in Unity 5 yet, but I will soon although I can't guarantee when. I'm doing this on my free time and it's a free plugin :)

mvdklip commented 9 years ago

Two thoughts: 1) Have you tried messing around with the new Plugin Inspector? 2) XInputDotNetPure.dll is a managed plugin which should not be in Plugins/x86 and Plugins/x86_64. Instead either the x86 or the x86_64 dll (depending on a 32 vs 64 bit Unity editor) should be copied directly in Plugins. Otherwise this DLL will be treated like a native plugin and included in builds which is not needed.

speps commented 9 years ago

Thanks, I started reading how the new plugin stuff works in Unity 5. However, I've yet to try it :)

speps commented 7 years ago

I've fixed this by upgrading the project to Unity 5. However I found that the plugin settings can sometimes be lost so the readme now contains examples of how to set them up.