Jump to content

[Help] DB Crash "db.core" (I PAY for FIX)


Recommended Posts

Hello, I have a problem with my server probably in the Cache, my game core crashed in random ways in the "SaveSingleItem" function, so I made this correction:

 

Spoiler

void ITEM_MANAGER::SaveSingleItem(LPITEM item)
{
	if (!item->GetOwner())
	{
		DWORD dwID = item->GetID();
		DWORD dwOwnerID = item->GetLastOwnerPID();

		db_clientdesc->DBPacketHeader(HEADER_GD_ITEM_DESTROY, 0, sizeof(DWORD) + sizeof(DWORD));
		db_clientdesc->Packet(&dwID, sizeof(DWORD));
		db_clientdesc->Packet(&dwOwnerID, sizeof(DWORD));

		sys_log(1, "ITEM_DELETE %s:%u", item->GetName(), dwID);
		return;
	}
	
	if (!item)
		return;
		
	if (!item->GetOwner())
		return;
	
	if (item->GetCount() < 1)
		return;
	
	if (item->GetCount() > 200)
		return;
	
	if (item->GetOriginalVnum() < 1)
		return;

	if (item->GetOriginalVnum() > 9999999)
		return;

.....

 

41c9e4ecb46e42b9af249a93b6514648.png

 

9446d4d3b89e475b9400b39cf93dbb2c.png

Because the SaveSingleItem function returned null values, such as owner, vnum, and other things.....

But the problem doenst solved, now my db is crashing with another problem...

GDB:

Spoiler

vhItVGc.png

Ih6zzqn.png


I paid for someone able to help me fix these problems.


 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.