Hmm I recommend you download it from their SVN
Hmm I recommend you download it from their SVN
I did and i still got the error
But in the luaengine.cpp file u get from the ascent SVN it dosent say #include <ScriptSetup.h> it says #include <CoreMemoryAllocator.cpp>
Hmm - I'm not getting this error
hm.. weird...
This is how I do when I try to compile it:
1. Open the project for the ascent-world and that stuff and make it release.
2. Compiling it, without any errors
3. Adding the LuaScripting folder, from the lua++ svn, to the trunk
4. Open the project for scripts and make it release
5. Try to compile it and then get the errors.
Error in step 3 - it needs to be in the /scripts/src folder
If I comment out the #include <ScriptSetup.h> part i get alot of errors:
1>LUAEngine.cpp
1>..\src\luascripting\LUAEngine.cpp(160 : error C2660: 'MapMgr::CreateCreature' : function does not take 1 arguments
1>..\src\luascripting\LUAEngine.cpp(1645) : error C2660: 'MapMgr::CreateGameObject' : function does not take 1 arguments
1>..\src\luascripting\LUAEngine.cpp(190 : error C2039: 'ModSignedInt32Value' : is not a member of 'Item'
1> c:\users\chrille\desktop\ascent\branches\3_8_stable\src\ascent-world\Item.h(116) : see declaration of 'Item'
1>..\src\luascripting\LUAEngine.cpp(3024) : error C2039: 'GetTypeFromGUID' : is not a member of 'Unit'
1> c:\users\chrille\desktop\ascent\branches\3_8_stable\src\ascent-world\Unit.h(650) : see declaration of 'Unit'
1>..\src\luascripting\LUAEngine.cpp(3027) : error C2039: 'GetUIdFromGUID' : is not a member of 'Unit'
1> c:\users\chrille\desktop\ascent\branches\3_8_stable\src\ascent-world\Unit.h(650) : see declaration of 'Unit'
1>..\src\luascripting\LUAEngine.cpp(3047) : error C2039: 'ModSignedInt32Value' : is not a member of 'Unit'
1> c:\users\chrille\desktop\ascent\branches\3_8_stable\src\ascent-world\Unit.h(650) : see declaration of 'Unit'
1>..\src\luascripting\LUAEngine.cpp(332 : error C2039: 'IsFeared' : is not a member of 'Unit'
1> c:\users\chrille\desktop\ascent\branches\3_8_stable\src\ascent-world\Unit.h(650) : see declaration of 'Unit'
1>..\src\luascripting\LUAEngine.cpp(3347) : error C2660: 'Unit::create_guardian' : function does not take 4 arguments
1>..\src\luascripting\LUAEngine.cpp(3357) : error C2039: 'isInArc' : is not a member of 'Unit'
1> c:\users\chrille\desktop\ascent\branches\3_8_stable\src\ascent-world\Unit.h(650) : see declaration of 'Unit'
1>..\src\luascripting\LUAEngine.cpp(3777) : error C2039: 'ModSignedInt32Value' : is not a member of 'Item'
1> c:\users\chrille\desktop\ascent\branches\3_8_stable\src\ascent-world\Item.h(116) : see declaration of 'Item'
1>..\src\luascripting\LUAEngine.cpp(3860) : error C2660: 'MapMgr::CreateCreature' : function does not take 1 arguments
1>..\src\luascripting\LUAEngine.cpp(3904) : error C2660: 'MapMgr::CreateGameObject' : function does not take 1 arguments
1>..\src\luascripting\LUAEngine.cpp(4127) : error C2039: 'ModSignedInt32Value' : is not a member of 'GameObject'
1> c:\users\chrille\desktop\ascent\branches\3_8_stable\src\ascent-world\GameObject.h(143) : see declaration of 'GameObject'
Hmm, i have tried everything to get this damn script to do a "registerevent" call... but nothing seems to work
it does not register the event, even threw a print "test" in the function timer... got nothingCode:if(intid == 1) then print "1" spawned = true unit:RegisterEvent("timer", 1000, 1) player:GossipComplete() end
<3 MysterioussouL for the sig
Hmm post the whole script
SectorSeven... your tut didn't really work for me.. at all. This, however, helped incredibly well:
Getting NPC Gossip Stuff Working[Mini-tut] - General discussion - Temp - Lua++ Forums
Your post explained what things do, but it didn't have the same format. This format is much easier to read, and more importantly, works.
Thanks +Rep x2 for that share (I was going to look over the arg statement)
+Added to main thread
Thanks
Oxin [the guy who wrote it] appreciates the feedback.
Can we put the lua things in a .dll instead? 'cus it would be easier than re-compiling everything.
Nope. Then you would get version mismatch...
I'm confused.. Could you explain more on creating the patch for the core? I would be extremely gracious if I could get this working.
Hey sector i dont know if you do this or not but if you need any help let me know i have been doing alot of lua work latly including making flags for some bg's just send me a pm btw great guide!