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

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

Reply
 
Thread Tools Display Modes
  #16  
Old 11-08-2002, 03:38 PM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

I talked to Quagmire, he said that it was possible to do it the right way but that its not really worth it, the difference is rather small (less than a megabyte of ram). So I guess that will be the solution for now, the proper way would be to select the max id from the database, but with such a small difference in ram usage, it seems to be pointless.
Reply With Quote
  #17  
Old 11-08-2002, 03:45 PM
quester
Hill Giant
 
Join Date: Oct 2002
Posts: 108
Default

I thought about doing it that way, but I got tired of backtrackign through the coee to figure out exactly where it was allocated.. so I took the easy route :p
Reply With Quote
  #18  
Old 11-08-2002, 03:48 PM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

You and Quagmire would make great friends (he said and did the same thing) :P
Reply With Quote
  #19  
Old 11-08-2002, 04:07 PM
quester
Hill Giant
 
Join Date: Oct 2002
Posts: 108
Default

Well I found what would need to be changed.. bt its a pain. You'd have to add a new callback for the exe to use just to determine the MAX id, so you can allocate it properly in the OpenNPCTypesMMF function.

Code:
// Would need to add a second callback here to retrieve the 
// max id and pass that in to OpenNPCTypes
	int8 ret = OpenNPCTypesMMF(iNPCTypesCount);
	MMFNPCTypes->MaxNPCTypeID = iMaxNPCTypeID;
	MMFNPCTypes->NPCTypeCount = iNPCTypesCount;
	if (ret == 2) {
		AddNPCTypeAllowed = true;
		// use a callback so the DB functions are done in the main exe
		// this way the DLL doesnt have to open a connection to mysql
		cbDBLoadNPCTypes(MMFNPCTypes->NPCTypeCount, MMFNPCTypes->MaxNPCTypeID);
		AddNPCTypeAllowed = false;
		MMFNPCTypes->Loaded = true;
		return true;
	}
I'll look into doing that.. but at the moment my brain is fuzzy.. and i'm pissed that my bard just died in OT and lost a level.. so i'm off to take a walk or something :p
Reply With Quote
  #20  
Old 11-08-2002, 04:12 PM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

Just to tell you Quagmire fixed the bug where no npcs were in the db and it would cause a crash.
Reply With Quote
  #21  
Old 12-07-2002, 06:13 AM
Damilis's Avatar
Damilis
Hill Giant
 
Join Date: Dec 2002
Location: Nottingham!!
Posts: 217
Default

Well, i have been diving throught the boards day in and day out, and i believe that i have this 65535 is not enough syndrome. Went into Vis C++ to recompile emusharemem.dll with a MMF_MAX_NPCTYPE_ID = like 150000 or so. It compiled a dll of about 233kb which is way bigger than the 52kb dll used now. and of courses, errors out the wazoo with the windows closing faster than i can read them so i dont know what the errors are. I probably overlooked something simple, i do that a lot. Any words of wizdom from those who created?

thanks
Reply With Quote
  #22  
Old 12-09-2002, 11:43 AM
Pneu
Sarnak
 
Join Date: May 2002
Posts: 65
Default

None-the-less I think what we have here is a simple miss-understanding. Possibly less than 65535 mobs but ID no's over 65535?

Either way it's simply a case of terse written communication that i'm sure would never have happened in a more verbose vocal environment. Calm down people, nothing to see here.

*Awards random hugs and a smile*

Pneu
__________________
Girls CAN play computer games, they just think of the screen as a mans head...
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 05:30 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3