[NonBlizzLikeScripts] Undeterminated Error

Results 1 to 4 of 4
  1. #1
    Elite Member trol4ever is offline
    Member +Rank
    May 2005 Join Date
    <:: In Front of PC ::>Location
    122Posts

    [NonBlizzLikeScripts] Undeterminated Error

    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 ]


  2. #2
    Elite Member kuraria is offline
    Member +Rank
    Jun 2008 Join Date
    101Posts

    Re: [NonBlizzLikeScripts] Undeterminated Error

    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

  3. #3
    Elite Member trol4ever is offline
    Member +Rank
    May 2005 Join Date
    <:: In Front of PC ::>Location
    122Posts

    Re: [NonBlizzLikeScripts] Undeterminated Error

    When i deleted some things from Setup.cpp i accidentally deleted "#include "ScriptSetup.h". That fixed me :P anyhow thx for reply .

  4. #4
    Elite Member kuraria is offline
    Member +Rank
    Jun 2008 Join Date
    101Posts

    Re: [NonBlizzLikeScripts] Undeterminated Error

    Glad I could help =D



Advertisement