Log in

View Full Version : Compiling errors from the latest source r1575


robinreg
06-27-2010, 03:57 AM
not sure which build it was from. It's either somewhere between r1572 to r1575

here's the error I got:

botspellsai.cpp
.\botspellsai.cpp(1055) : error C2660: 'EntityList::GetNPCList' : function does not take 0 arguments
.\botspellsai.cpp(1055) : error C2228: left of '.begin' must have class/struct/union
.\botspellsai.cpp(1055) : error C2660: 'EntityList::GetNPCList' : function does not take 0 arguments
.\botspellsai.cpp(1055) : error C2228: left of '.end' must have class/struct/union
bot.cpp
bonuses.cpp
beacon.cpp
attack.cpp
aggro.cpp
AA.cpp
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.30729
Copyright (C) Microsoft Corporation. All rights reserved.
Build log was saved at "file://f:\eqservfiles\trunk\EQEmuServer\zone\ReleaseBots\ BuildLog.htm"
Zone - 4 error(s), 0 warning(s)

joligario
06-27-2010, 07:25 AM
The new argument was introduced in r1572

robinreg
06-28-2010, 09:29 AM
ah, wish I know how to fix this.

Derision
06-28-2010, 10:02 AM
ah, wish I know how to fix this.

Untested, but at line 1055 in zone/botspellsai.cpp, replace


for(std::list<NPC*>::iterator itr = entity_list.GetNPCList().begin(); itr != entity_list.GetNPCList().end(); itr++) {

with:

std::list<NPC*> npc_list;
entity_list.GetNPCList(npc_list);
for(std::list<NPC*>::iterator itr = npc_list.begin(); itr != npc_list.end(); itr++) {

robinreg
06-28-2010, 03:21 PM
Thanks Derision, that fixed the compiling errors. =)