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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-11-2004, 06:49 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default Trade Skill Weirdness

Hello,

I am working on a rewrite of the tradeskill system, and I have run into a very strange thing...

in Object::HandleCombine, ~line 308
theres some code like:
Code:
		inst = user_inv.GetItem(in_combine->container_slot);
		if (inst) {
			const Item_Struct* item = inst->GetItem();
			if (item && inst->IsType(ItemTypeContainer)) {
				tradeskill = item->Container.PackType;
			}
		}

specifically:
tradeskill = item->Container.PackType;
What is strange is that the order of the Container struct seems to be screwed up in this specific place... All of the values are shifted down one word... so the PackType for the object is actually in .Slots. If I alter the structure, and recompile from 'make clean', it gets totally pissed... because the order is correct elsewhere... so I modified the code to reference .Slots, and it works great....

does anybody have any idea why this would be happening? I dont know if it is a re-ordering of the Container struct, or just a shift of the data down by a word...
Reply With Quote
 


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 07:20 AM.


 

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