Skip to content
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

Closed
jrgryph opened this issue Mar 25, 2014 · 3 comments
Closed

Problem compiling #61

jrgryph opened this issue Mar 25, 2014 · 3 comments

Comments

@jrgryph
Copy link
Contributor

jrgryph commented Mar 25, 2014

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

@Cheekibreeki
Copy link

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
Copy link
Owner

blueboy commented Mar 27, 2014

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

@blueboy blueboy closed this as completed Mar 27, 2014
@jrgryph
Copy link
Contributor Author

jrgryph commented Mar 27, 2014

It does... thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants