Im writing a module and there is an error that stops the module from loading (Module failed to load).
The module is found and works with a take a chunk of code out of the module but I want to know what the specific error it. It builds fine and works fine if the code is removed.
There's a few things that can cause a module to not load. The first (and most common) is that a dependency of the module could not be loaded. Check your dependencies with [url=http://www.dependencywalker.com/]dependency walker[/url] and make sure that any dependencies can be located by the game.
The second thing that can cause a module to not load, is not having a gmod13_open export. Use of the GMOD_MODULE_OPEN macro should properly define this for you.
Returning anything but 0 in the module open function *may* count as 'not loading' as well.
#include "Interface.h"
GMOD_MODULE_OPEN()
{
return 0;
}
GMOD_MODULE_CLOSE()
{
return 0;
}
This an example
Sorry, you need to Log In to post a reply to this thread.