Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"LoadLibrary returned NULL.[...] Error code: 193" when load plugin in game #26

Open
landscht opened this issue Feb 18, 2021 · 2 comments

Comments

@landscht
Copy link

landscht commented Feb 18, 2021

after creating the plugin skeleton and configuring the project as indicated in the READme I just try to load it in game and I get this error "LoadLibrary returned NULL. Make sure the DLL is 64 bit and has access to all included libraries. Error code 193"

@ItsBranK
Copy link

ItsBranK commented Mar 12, 2021

  • Make sure you're compiling for release, x64 bit in visual studio.
  • Make sure your runtime library is set to "Multi-threaded (/MT)" under Project Properties -> C/C++ -> Code Generation.
  • Double check you are using "pluginsdk.lib" and NOT "bakkesmod.lib" in your plugin header file (or in your project property includes, if you're doing it that way). The "bakkesmod.lib" library has been deprecated for some time now.

99% of the time it's the last line with this error, but still check to make sure you're compiling for /MT.

@ChiefBoggel
Copy link

Hey,
I know it's a pretty old question but I currently have the same problem. I figured out that the external library libcurl is causing this problem for me. If I try to call a function of the library it'll throw this error. I still don't know why this happens because the plugin has access to the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants