View Single Post
  #18  
Old 12-11-2012, 01:24 AM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 904
Default

Quote:
Originally Posted by Uleat View Post
If you're still willing to pare this down, revert your source code and try this one:

[Item.cpp.patch]
Code:
Index: common/Item.cpp
===================================================================
--- common/Item.cpp	(revision 2284)
+++ common/Item.cpp	(working copy)
@@ -1216,6 +1216,14 @@
 	else {
 		// Slot must be within a bag
 		ItemInst* baginst = GetItem(Inventory::CalcSlotId(slot_id)); // Get parent bag
+
+		if (baginst) {
+			LogFile->write(EQEMuLog::Error, "Inventory::_PutItem: Parent Bag: id = %i, class = %i, type = %i, parent slot = %i", baginst->GetID(), baginst->GetItem()->ItemClass, baginst->GetItem()->ItemType, Inventory::CalcSlotId(slot_id));
+		}
+		else {
+			LogFile->write(EQEMuLog::Error, "Inventory::_PutItem: Parent Bag instance is NULL at parent slot %i", Inventory::CalcSlotId(slot_id));
+		}
+		
 		if (baginst && baginst->IsType(ItemClassContainer)) {
 			baginst->_PutItem(Inventory::CalcBagIdx(slot_id), inst);
 			result = slot_id;

This will tell us what's going on with the bag instance that might cause that con check to fail.
Not sure what I did but world.exe won't even start now, crashes immediately.

I reverted the item and shareddb.cpp files. Rebuilt the source, copied over the binaries, and then launched. Fails everytime. Tried reverting back to the original binaries, still crashing.
__________________
Clumsy's World: Resurgence [2019-Present]
Clumsy's World 2.0 [2014-2016]
Clumsy's World [2006-2012]
Reply With Quote