This shows that something screwy is going on:
Quote:
[12.10. - 18:05:05] Inventory::_PutItem: Invalid slot_id specified (251)
[12.10. - 18:05:05] Inventory::_PutItem::slot_id = 251, result_return = -1, ItemInst = !NULL
|
Also, all of your 'failures' appear to be in the inventory bag slot range (251 - 330), which means this segment of code in _PutItem is likely culprit:
Code:
else {
// Slot must be within a bag
ItemInst* baginst = GetItem(Inventory::CalcSlotId(slot_id)); // Get parent bag
if (baginst && baginst->IsType(ItemClassContainer)) {
baginst->_PutItem(Inventory::CalcBagIdx(slot_id), inst);
result = slot_id;
}
}
Not sure what's going on just yet, but if the con check fails, result is never set to slot_id, and returns the default value of -1..which, of course,
causes the 'Warning' message. It probably also indicates that the inventory bag isn't being populated.
Causes? Unsure at the moment... Someone else might have a better guess.
(Are you using non-container containers, or summoned bags? I'm not completely familiar current items, so don't laugh too hard!)