Bots/Linux compile error
Whomever,
Searched for my specific error here and found nothing, so hopefully it's not redundant. Compiling latest SVN on Ubuntu x86 (no gui) and I end up with what looks like 3 errors when the -DEQBOTS is defined. Code:
make -C zone |
Perhaps try this:
Edit spells.cpp and go to the line it says, 3382 and change it from : Code:
if(caster && caster->IsBot()) Code:
if(caster && caster->CastToNPC()->IsBot()) from: Code:
sint32 focusResist = caster->GetBotFocusEffect(botfocusResistRate, spell_id); Code:
sint32 focusResist = caster->CastToBot()->GetBotFocusEffect(12, spell_id); botfocusResistRate is just an enumerator for the value of 12, and since it's giving you issues I just temp fixed it with that value. Anyways, let me know if it compiles. Seems ubuntu's gcc compiler is being more anal receptive than VS2k8 |
Awesome, thanks for the quick tip. I was just coming back here to say, my VS2008 compile crapped out in the same place. I added EQBOTS to the compile pre-processor, too.
I'll try your suggestion on these. Edit: On the VS2k8, now it is complaining that IsBot is not a member of NPC heh. Oh well, Bots are not for me yet. I'll keep waiting. |
virtual bool IsBot() const { return true; }
should be in bot.h line 219.. o.o weird @ your errors! :D |
How about line 198? :D
|
Err, should the preprocessor define be just "BOTS"? I see an ifdef BOTS, not EQBOTS.
|
Yeah, it's just -DBOTS since we switched from the old system to the new one.
Should compile without any changes afterwards (as of rev 1008). |
All times are GMT -4. The time now is 01:40 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.