blueboy / portal

This portal repo is for development purposes only
http://github.com/blueboy/portal
GNU General Public License v2.0
27 stars 24 forks source link

Problem compiling #61

Closed jrgryph closed 10 years ago

jrgryph commented 10 years ago

Pulled master portal commit Pulled https://github.com/cmangos/mangos-wotlk/commit/cc137f65b8af7b451e6af03924a1ae28c6d5fd05 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

Cheekibreeki commented 10 years ago

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 Error C2039: 'type_flags' : is not a member of 'CreatureInfo' -File:PlayerbotAI.cpp -Line:4887

Are there any possible workarounds?

Thanks

blueboy commented 10 years ago

Hi Guys, Thanks for the feedback on this error, I only have time occasionally to check in on the code.. other projects ;)

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 Error C2039: 'SkinlootId' : is not a member of 'CreatureInfo' -File:PlayerbotAI.cpp -Line:2343

and type_flags to CreatureTypeFlags Error C2039: 'type_flags' : is not a member of 'CreatureInfo' -File:PlayerbotAI.cpp -Line:4887

you can just rename the references in PlayerbotAI.cpp and it will compile without issue. I'll update the code shortly.

Hope this helps

jrgryph commented 10 years ago

It does... thanks!