Jump to content

Loading multiple scripts


Le Froid

Recommended Posts

Hello everyone,

I am doing a few customizations to my MaNGOS core, and currently I am writing a plugin that will load Python scripts into the core instead of only using SD2. What I want to know is how can I change the core to load multiple plugins, because I am not writing the python stuff in the SD2 project. So far I just looked around the core a little and found

#define MANGOS_SCRIPT_NAME "mangosscript"
#define MANGOS_SCRIPT_SUFFIX ACE_DLL_SUFFIX
#define MANGOS_SCRIPT_PREFIX ACE_DLL_PREFIX
#define MANGOS_LOAD_LIBRARY(libname)    ACE_OS::Dlopen(libname)
#define MANGOS_CLOSE_LIBRARY(hlib)      ACE_OS::Dlclose(hlib)
#define MANGOS_GET_PROC_ADDR(hlib,name) ACE_OS::Dlsym(hlib,name)

But I couldn't see it used anywhere in the script loader. Can anyone point me in the right direction?

Edit: I think I found it, LoadScriptingModule() function just needs some modifications

Link to comment
Share on other sites

I might add the engine to an existing project but for now i want to work on this as a separate project so its easier to debug and develop (personally)

Anyway I think I know how to load multiple scripting libraries to MaNGOS so I don't need any help for now

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use