$pack(xx,combine) returns *Unknown0 for every container type

Need help running MacroQuest 1? Too bad! Use MQ2.

Moderator: MacroQuest Developers

User avatar
Imperfect
Macro Author
Macro Author
Posts: 319
Joined: Fri Jun 14, 2002 1:52 am

$pack(xx,combine) returns *Unknown0 for every container type

Post by Imperfect » Fri Jun 13, 2003 12:21 am

Whenever I am useing $pack(xxx,combine) I am always getting *Unknown0 as the value. This is the current CVS and compile as of about 5 minutes ago.

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Fri Jun 13, 2003 2:31 am

Take one of these and call me in the morning ..hehe

Code: Select all

// 5-14-2003	Eqmule
// 6-11-2003	Amadeus
typedef struct _CONTAINER { 
/*0x00*/   struct _ITEMINFO *Contents[10];
/*0x28*/   BYTE      Combine;				
/*0x29*/   BYTE      Slots;				
/*0x2a*/   BYTE      Open;				
/*0x2b*/   BYTE      SizeCapacity;		
/*0x2c*/   BYTE      WeightReduction; 
/*0x2d*/   BYTE      Unknown0x2d[3]; 
/*0x30*/   BYTE      Unknown0x30[20];	// there is some data here
} CONTAINER, *PCONTAINER; 

..should clear it right up ;)

User avatar
Imperfect
Macro Author
Macro Author
Posts: 319
Joined: Fri Jun 14, 2002 1:52 am

Post by Imperfect » Fri Jun 13, 2003 2:32 am

Cool working on my fletching skill and having to hardcode everything was driving me crazy. Going to change my source and recompile and see how it goes.

User avatar
Imperfect
Macro Author
Macro Author
Posts: 319
Joined: Fri Jun 14, 2002 1:52 am

Post by Imperfect » Fri Jun 13, 2003 2:48 am

Worked perfectly.

You know for a guy who says you have no idea on how to debug an active app you do pretty well on the disassembly ;)

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Fri Jun 13, 2003 2:55 am

Structs are easy...it's all about seeing patterns and making logical deductions based upon what "I would do" if I were coding it from the other side ;)

Comes from my career ....ever try conducting a full orchestral score and essentually following all the lines at once? ;) ...music is just patterns...this is very much like being a conductor of a complex piece of music sometimes ..hehe

khazil
orc pawn
orc pawn
Posts: 24
Joined: Wed Sep 04, 2002 8:52 pm

Post by khazil » Fri Jun 13, 2003 5:48 am

What happen to PackType ?

User avatar
Imperfect
Macro Author
Macro Author
Posts: 319
Joined: Fri Jun 14, 2002 1:52 am

Post by Imperfect » Fri Jun 13, 2003 6:15 am

Like most things they changed the structure around

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Jun 13, 2003 7:36 am

Updated in CVS
MQ2: Think of it as Evolution in action.

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Fri Jun 13, 2003 9:59 am

I think PackType was always "Combine" ...I think was was previously defined as "Combine" was actually something else.

I'm actually surprised this worked before this last patch....