I thought I knew how to do this, and it seems that I was wrong.
Can someone please teach me how to compile custom C++ scripts?
I made the script alright but just don't know how to compile it.
I thought I knew how to do this, and it seems that I was wrong.
Can someone please teach me how to compile custom C++ scripts?
I made the script alright but just don't know how to compile it.
There is a green button that looks like a play button and next to it, it should say debug. Now click the debug and scroll down to Release. Now click the play button! That should be it =)
That's in Visual Studio C++ ofcourse.
Or you can just press F7 on your keyboard.
It doesn't work. It errors on me
1>------ Build started: Project: ArcScriptCosmetics, Configuration: Release Win32 ------
1>Compiling...
1>Setup.cpp
1>Compiling...
1>Cosmetics.cpp
1>..\src\Cosmetics\Cosmetics.cpp(26) : error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(26) : error C2227: left of '->GetGUID' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(26) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(36) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(41) : error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(41) : error C2227: left of '->GetTypeId' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(41) : error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(50) : error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(50) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(56) : error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(56) : error C2227: left of '->GetGUID' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(56) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(62) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(6: error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(6: error C2227: left of '->GetGUID' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(6: error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(72) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(7: error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(7: error C2227: left of '->GetGUID' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(7: error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(84) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(90) : error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(90) : error C2227: left of '->GetGUID' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(90) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(94) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(100) : error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(100) : error C2227: left of '->GetGUID' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(100) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(104) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(110) : error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(110) : error C2227: left of '->GetGUID' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(110) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(116) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(122) : error C2065: 'pObject' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(122) : error C2227: left of '->GetGUID' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(122) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(133) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(139) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(139) : error C2227: left of '->HasSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(140) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(140) : error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(142) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(142) : error C2227: left of '->GetItemInterface' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(142) : error C2227: left of '->RemoveItemAmt' must point to class/struct/union/generic type
1>..\src\Cosmetics\Cosmetics.cpp(144) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(144) : error C2227: left of '->AddSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(145) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(145) : error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(151) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(151) : error C2227: left of '->HasSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(152) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(152) : error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(154) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(154) : error C2227: left of '->GetItemInterface' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(154) : error C2227: left of '->RemoveItemAmt' must point to class/struct/union/generic type
1>..\src\Cosmetics\Cosmetics.cpp(156) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(156) : error C2227: left of '->AddSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(157) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(157) : error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(163) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(163) : error C2227: left of '->HasSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(164) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(164) : error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(166) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(166) : error C2227: left of '->GetItemInterface' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(166) : error C2227: left of '->RemoveItemAmt' must point to class/struct/union/generic type
1>..\src\Cosmetics\Cosmetics.cpp(16: error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(16: error C2227: left of '->AddSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(169) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(169) : error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(175) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(175) : error C2227: left of '->HasSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(176) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(176) : error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(17: error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(17: error C2227: left of '->GetItemInterface' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(17: error C2227: left of '->RemoveItemAmt' must point to class/struct/union/generic type
1>..\src\Cosmetics\Cosmetics.cpp(180) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(180) : error C2227: left of '->AddSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(181) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(181) : error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(187) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(187) : error C2227: left of '->HasSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(18: error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(18: error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(190) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(190) : error C2227: left of '->GetItemInterface' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(190) : error C2227: left of '->RemoveItemAmt' must point to class/struct/union/generic type
1>..\src\Cosmetics\Cosmetics.cpp(192) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(192) : error C2227: left of '->AddSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(193) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(193) : error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(199) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(199) : error C2227: left of '->HasSpell' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(200) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(200) : error C2227: left of '->BroadcastMessage' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(202) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(202) : error C2227: left of '->GetItemInterface' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\src\Cosmetics\Cosmetics.cpp(202) : error C2227: left of '->RemoveItemAmt' must point to class/struct/union/generic type
1>..\src\Cosmetics\Cosmetics.cpp(204) : error C2065: 'Plr' : undeclared identifier
1>..\src\Cosmetics\Cosmetics.cpp(204) : error C2227: left of '->AddSpell' must point to class/struct/union/generic type
1>..\src\Cosmetics\Cosmetics.cpp(204) : fatal error C1003: error count exceeds 100; stopping compilation
1>Build log was saved at "file://c:\Warcraft Development\Core\trunk\src\scripts\projects\2008_int_release_Cosmetics\BuildLog. htm"
1>ArcScriptCosmetics - 102 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
If Sounddead reads this, this is my build log. However, the errors are in the main code. Not sure what went wrong there, but it was a copy of his code.
Last edited by Everlast118; 02-20-2009 at 11:39 PM.
Deleted, noticed it was double post.
Did you include StdAfx.cpp and all the headers required?
Also did you build and insert the Ascent Windows Libraries in to the Compiler?
http://www.mmowned.com/forums/emulat...dll-video.html
& Paste your script.