MrTimcakes / Unity-DirectInput

Unity Native Plugin to expose DirectX DirectInput ForceFeedback
GNU Lesser General Public License v3.0
29 stars 10 forks source link

DllNotFoundException: DirectInputForceFeedback.dll assembly:<unknown assembly> type:<unknown type> member:(null) #17

Open csjbennett opened 1 month ago

csjbennett commented 1 month ago

I am getting this strange error with regards to the .dll for this package, but only on certain devices? It worked perfectly fine on the PC that I used to build it, and it ran without error. However, when I ported it over to a new machine it worked once then started spitting out this error after every time I booted the game up. In the log, it says: "Fallback handler could not load library path/libDirectInputForceFeedback.dll" followed by the error shown in the title of this issue. Any help is appreciated!

Senfee-Cheng commented 1 month ago

这是因为这个dll需要一些依赖,可能某些过旧的操作系统不存在这些依赖,所以会加载报错。我建议win10 22H2及以上版本,或者你自己检测这个dll所需要的依赖,通过一些第三方的工具,比如:“Dependencies_x64_Release” -> “DependenciesGui.exe”,当你知道缺少什么依赖时,你只需要把你电脑上的dll 拷贝到 出问题的电脑,一般在system32目录下,可能有3-4个。