-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem compiling #61
Comments
Yeah, I'm getting the same error after updating cMaNGOS/ScriptDev2 and compiling with VS Express 2010 on Windows 7. If it helps, Error C2039: 'SkinlootId' : is not a member of 'CreatureInfo' -File:PlayerbotAI.cpp -Line:2343 Are there any possible workarounds? Thanks |
Hi Guys, These errors are easy to fix. Whenever you get an error saying that an element or member of a structure no longer exists, 'pound to a penny' the core guys have either removed or renamed it. The 'CreatureInfo' structure is contained in creature.h. If you search back on github for changes to this file you will find creature.h [12606] Big rename of creature_template fields... Here they renamed SkinlootId to SkinningLootId and type_flags to CreatureTypeFlags you can just rename the references in PlayerbotAI.cpp and it will compile without issue. I'll update the code shortly. Hope this helps |
It does... thanks! |
Pulled master portal commit
Pulled cmangos/mangos-wotlk@cc137f6
This is on ubuntu 12.04
I get [ 75%] Building CXX object src/game/CMakeFiles/game.dir/playerbot/PlayerbotAI.cpp.o
/root/portal/src/game/playerbot/PlayerbotAI.cpp: In member function âvoid PlayerbotAI::HandleBotOutgoingPacket(const WorldPacket&)â:
/root/portal/src/game/playerbot/PlayerbotAI.cpp:2343:48: error: âconst struct CreatureInfoâ has no member named âSkinLootIdâ
/root/portal/src/game/playerbot/PlayerbotAI.cpp: In member function âvoid PlayerbotAI::UpdateAI(uint32)â:
/root/portal/src/game/playerbot/PlayerbotAI.cpp:4887:107: error: âconst struct CreatureInfoâ has no member named âtype_flagsâ
make[2]: *** [src/game/CMakeFiles/game.dir/playerbot/PlayerbotAI.cpp.o] Error 1
make[1]: *** [src/game/CMakeFiles/game.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: