Jump to content
  • 0

ScriptDev2 errors Visual C++ 2010


bakura

Question

Posted

Hello,

I'm trying build ScriptDev2 for Mangos Three using Visual Studio 2010, but I'm getting a lot of errors. I'd tried different source repositories but nothing work. I look the Mangos Wiki for Mangos Three for Windows.

One of these repos is the one of wiki guide:

git clone --recursive http://github.com/scriptdev2/scriptdev2-cata.git src\bindings\ScriptDev2

generate this errors when I try to build it:

1>..\include\sc_creature.cpp(80): error C2039: 'CanAttackByItself' : is not a member of 'Creature'
1>          c:\mangos3src\src\game\Creature.h(475) : see declaration of 'Creature'
1>..\include\sc_creature.cpp(256): warning C4018: '>' : signed/unsigned mismatch
1>..\include\sc_creature.cpp(300): warning C4018: '<' : signed/unsigned mismatch
1>..\include\sc_creature.cpp(489): error C2039: 'EquipmentTemplateId' : is not a member of 'CreatureInfo'
1>          c:\mangos3src\src\game\Creature.h(71) : see declaration of 'CreatureInfo'
1>..\include\sc_creature.cpp(593): error C2039: 'CanAttackByItself' : is not a member of 'Creature'
1>          c:\mangos3src\src\game\Creature.h(475) : see declaration of 'Creature'
1>..\system\system.cpp(108): error C3861: 'AddWaypointFromExternal': identifier not found
1>..\ScriptMgr.cpp(48): error C3861: 'SetExternalWaypointTable': identifier not found
1>..\ScriptMgr.cpp(216): error C2039: 'LanguageId' : is not a member of 'MangosStringLocale'
1>          C:\Mangos3src\src\game\ObjectMgr.h(137) : see declaration of 'MangosStringLocale'
1>..\ScriptMgr.cpp(228): error C2039: 'LanguageId' : is not a member of 'MangosStringLocale'
1>          C:\Mangos3src\src\game\ObjectMgr.h(137) : see declaration of 'MangosStringLocale'
1>..\ScriptMgr.cpp(230): error C2039: 'LanguageId' : is not a member of 'MangosStringLocale'
1>          C:\Mangos3src\src\game\ObjectMgr.h(137) : see declaration of 'MangosStringLocale'

The other repo is:

git clone --recursive http://github.com/mangosthree/scripts.git src\bindings\ScriptDev2

and the errors after build are:

1>     Creating library ..\..\..\..\bin\win32_release\mangosscript.lib and object ..\..\..\..\bin\win32_release\mangosscript.exp
1>spell_scripts.obj : error LNK2001: unresolved external symbol "unsigned int __cdecl urand(unsigned int,unsigned int)" (?urand@@YAIII@Z)
1>boss_skadi.obj : error LNK2001: unresolved external symbol "int __cdecl irand(int,int)" (?irand@@YAHHH@Z)
1>boss_warbringer_omrogg.obj : error LNK2001: unresolved external symbol "int __cdecl irand(int,int)" (?irand@@YAHHH@Z)
1>spell_scripts.obj : error LNK2001: unresolved external symbol "int __cdecl irand(int,int)" (?irand@@YAHHH@Z)
1>boss_trollgore.obj : error LNK2001: unresolved external symbol "int __cdecl irand(int,int)" (?irand@@YAHHH@Z)
1>instance_pit_of_saron.obj : error LNK2001: unresolved external symbol "int __cdecl irand(int,int)" (?irand@@YAHHH@Z)
1>boss_lady_deathwhisper.obj : error LNK2001: unresolved external symbol "int __cdecl irand(int,int)" (?irand@@YAHHH@Z)
1>boss_zumrah.obj : error LNK2019: unresolved external symbol "int __cdecl irand(int,int)" (?irand@@YAHHH@Z) referenced in function __catch$?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXII@Z$0
1>pit_of_saron.obj : error LNK2001: unresolved external symbol "float __cdecl frand(float,float)" (?frand@@YAMMM@Z)
1>boss_sindragosa.obj : error LNK2001: unresolved external symbol "float __cdecl frand(float,float)" (?frand@@YAMMM@Z)
1>gnomeregan.obj : error LNK2019: unresolved external symbol "float __cdecl frand(float,float)" (?frand@@YAMMM@Z) referenced in function "public: virtual void __thiscall npc_blastmaster_emi_shortfuseAI::JustSummoned(class Creature *)" (?JustSummoned@npc_blastmaster_emi_shortfuseAI@@UAEXPAVCreature@@@Z)
1>..\..\..\..\bin\win32_release\mangosscript.dll : fatal error LNK1120: 4 unresolved externals

Anyone knows how I can solve this problem or anyone knows who I can get the correct ScriptDev2 source for Mangos Three? I'm trying run the server without ScriptDev2 but I get errors during DK quests (I test the two first quest only) and I think is for this ScriptDev2 missing ..

(The guide I follow is https://www.getmangos.eu/wiki/Installation%20Guides/Windows/Installing-MaNGOS-Three-on-Windows.md)

Thanks you all in advance.

(Sorry if my English is bad, is not my native language)

1 answer to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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