12-21-2011, 08:24 AM
Hey,
for your Problem with the Pickups, which were crashing the client:
I came across the same problem.
But after a while a found the bug.
The cItem-Class is causing this.
if(!isValidItem( m_ItemID ) ) m_ItemID = E_ITEM_EMPTY;
is in the cItem constructor.. and now.. raw chicken etc arenĀ“t in IsValidItem so the itemid is E_ITEM_EMPTY.
And sending an E_ITEM_EMPTY to the client seems to crash it.
(IsValidItem is in Defines.h)
So i updated the Function and the cPickup to prevent it sending E_ITEM_EMPTY for the future
This is basically what you have to do
for your Problem with the Pickups, which were crashing the client:
I came across the same problem.
But after a while a found the bug.
The cItem-Class is causing this.
if(!isValidItem( m_ItemID ) ) m_ItemID = E_ITEM_EMPTY;
is in the cItem constructor.. and now.. raw chicken etc arenĀ“t in IsValidItem so the itemid is E_ITEM_EMPTY.
And sending an E_ITEM_EMPTY to the client seems to crash it.
(IsValidItem is in Defines.h)
So i updated the Function and the cPickup to prevent it sending E_ITEM_EMPTY for the future
This is basically what you have to do