Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Bugs

Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2003, 02:15 PM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default /who all Crashes Zone

Has anyone encountered a situation where doing a /who all will crash every zone that has players in it except the one that the person that did the /who all is in (unless there are people there).

I added some code to prevent this from happening, but I haven't had time to look into fixing the cause. I'll share the code I added to prevent this as soon as I am back at my normal computer.

Could this be just a Linux thing?

Regards,

krich
Reply With Quote
  #2  
Old 10-02-2003, 02:27 PM
Merth
Dragon
 
Join Date: May 2003
Location: Seattle, WA
Posts: 609
Default

Yeah, it was a bug in the code. The next version to be pushed out to CVS will fix it.

Here's the code changed in worldserver.cpp if you want to copy (looks like you already caught it though):
Code:
case 0x2010:{
	if(!ZoneLoaded)
		break;
		WhoAllReturnStruct* wars= (WhoAllReturnStruct*)pack->pBuffer;
	if (wars && wars->id!=0 && wars->id<0xFFFFFFFF){
		Client* client = entity_list.GetClientByID(wars->id);
		if (client) {
			APPLAYER* outapp = new APPLAYER(0x0212, pack->size);
			memcpy(outapp->pBuffer, pack->pBuffer, pack->size);
			client->QueuePacket(outapp);
		}
		else {
			LogFile->write(EQEMuLog::Debug, "Error: WhoAllReturnStruct did not point to a valid client!  "
				"id=%i, playerineqstring=%i, playersinzonestring=%i.  Dumping WhoAllReturnStruct:",
				wars->id, wars->playerineqstring, wars->playersinzonestring);
			DumpPacket(pack);
		}
	}
	else
		LogFile->write(EQEMuLog::Error, "WhoAllReturnStruct: Could not get return struct!");
	break;
}
This is just a sanity check type fix because I don't know this area of code. The problem still exists, but at least it won't crash the code anymore.
Reply With Quote
  #3  
Old 10-02-2003, 02:42 PM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default

Yep, did almost exactly the same thing except my error message wasn't as sexy as yours.

Thanks Merth,

krich
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:13 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3