View Single Post
  #7  
Old 02-09-2015, 08:56 PM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

Heres a hack to get around the crashing at dismiss of bot, also this will now dismiss single bots if you are grouped with more than one via the "disband" button, which hasnt been working for a while, although this is a bit hacky and a more permanent fix is still needed. (also introduces a new bug based on group leadership)

in client_packet.cpp in function:
void Client::Handle_OP_GroupDisband(const EQApplicationPacket *app)

at about line 6463 where the #ifdef Bots, replace the #ifdef bots with this section

Code:
#ifdef BOTS
	// this block is necessary to allow more control over controlling how bots are zoned or camped.
	if (Bot::GroupHasBot(group)) {
		if (group->IsLeader(this)) {
				Mob* tempMember = GetTarget();
				if (tempMember->IsBot()) {
					Bot::ProcessBotGroupDisband(this, std::string(tempMember->GetCleanName()));
					return;
				}
		}
	}
#endif
As for the crashing on bot death in a 2 person group, it is crashing on this line:

strcpy(g->membername[j-1], g->members[j]->GetCleanName());

Im still working through breakpoints and narrowing down a temp fix at least.
Reply With Quote