Seryov 17 Posted June 26, 2019 Share Posted June 26, 2019 (edited) 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; ..... 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 I paid for someone able to help me fix these problems. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Sherer 486 Posted June 27, 2019 Share Posted June 27, 2019 The problem is probably located somewhere else. Send me a DM. I will try to help you with what you have, otherwise we might switch into paid service if we don't figure that out. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now