Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Ascent [NonBlizzLikeScripts] Undeterminated Error

Junior Spellweaver
Joined
May 31, 2005
Messages
106
Reaction score
0
Ok , i try to compile NonBlizzLikeScripts but i get an error , kinda fixed the error by removing something from the script [ i know i didn't need to do that ] but when i load ascent-world i get this :
Code:
MoonNonBlizzLikeScripts.dll : 0x12560000 : version function not found!
Any1 knows how to fix this ? I use ascent rev 4673 [ the newest ]
 
Initiate Mage
Joined
Jun 5, 2008
Messages
77
Reaction score
0
that means you your setup.cpp and/or setup.h are not in format for the server to check for the version # so it knows to make you recompile it for the server version you are using... keeps people from using older dlls with a new compile. (when you recompile the core you have to recompile the dlls each time)

which scripting project are you using "NonBlizzLikeScripts" from?

setup.cpp format (example)

Code:
#include "StdAfx.h"
#include "Setup.h"
#define SKIP_ALLOCATOR_SHARING 1
#include <ScriptSetup.h>

extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
{
      return SCRIPT_TYPE_MISC;
    //return MAKE_SCRIPT_VERSION(SCRIPTLIB_VERSION_MAJOR, SCRIPTLIB_VERSION_MINOR);
}

extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
{
    SetupGlobalNPC(mgr);
}

#ifdef WIN32 

BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
{
    return TRUE;
}


#endif

setup.h format (example)

Code:
#ifndef INSTANCE_SCRIPTS_SETUP_H
#define INSTANCE_SCRIPTS_SETUP_H

void SetupGlobalNPC(ScriptMgr * mgr);

#endif
 
Junior Spellweaver
Joined
May 31, 2005
Messages
106
Reaction score
0
When i deleted some things from Setup.cpp i accidentally deleted "#include "ScriptSetup.h". That fixed me :p anyhow thx for reply .
 
Back
Top