Jump to content

Recommended Posts

Hi soo I have some problems in my server. One core of ch1 goes down but is up instantly. This causes loss of items to some players because disconect for example from 300 players disconect 60-70 players.

The sysser server:

DestroyItem: WTH! Invalid item owner. owner pointer : 0x3b8c6000
SYSERR: Jun 12 08:27:47.436820 :: RemoveFromCharacter: Item::RemoveFromCharacter owner null
SYSERR: Jun 12 08:27:47.436942 :: GetWear: CHARACTER::GetWear: invalid wear cell 173
SYSERR: Jun 12 08:27:47.436963 :: Unequip: m_pOwner->GetWear() != this
SYSERR: Jun 12 08:28:04.247144 :: pid_init: 
Start of pid: 29979

And the game.core full

LvpKdab.png

 

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

  • Replies 16
  • Created
  • Last Reply

Top Posters In This Topic

  • Premium

show us the Item::RemoveFromCharacter function

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium
1 hour ago, WeedHex said:

Crash is made by:

void CItem::SetOwnership(LPCHARACTER ch, int iSec)  item.cpp

Problem is maked by an item drop by c++ done in wrong way.

Why we never had this problem ? Why he has ?

Why he has HARACTER::GetWear: invalid wear cell ? If this is a drop with ownership why it tells about a wear cell ? The only thing i think about when you have negative grade and after you die you lose your items.

Link to comment
Share on other sites

En 12/6/2018 a las 17:53, Dobrescu Sebastian dijo:

Why we never had this problem ? Why he has ?

Why he has HARACTER::GetWear: invalid wear cell ? If this is a drop with ownership why it tells about a wear cell ? The only thing i think about when you have negative grade and after you die you lose your items.

I use this item remove Remove and checked all the sistem and is same...

How do I put that check for the remove item??

Link to comment
Share on other sites

  • Premium

Do you need the design?

XDDD.JPG.cc687e5eb1f9d5436ce947641c2514f8.JPG

 

Regards =|

On 6/12/2018 at 5:53 PM, Dobrescu Sebastian said:

Why we never had this problem ? Why he has ?

Why he has HARACTER::GetWear: invalid wear cell ? If this is a drop with ownership why it tells about a wear cell ? The only thing i think about when you have negative grade and after you die you lose your items.

 

I was just explaining the reason of the crash, not what maked it on his game.

As you can see  CH is a null pointer on the function i told.

Link to comment
Share on other sites

  • Premium
14 minutes ago, WeedHex said:

Do you need the design?

XDDD.JPG.cc687e5eb1f9d5436ce947641c2514f8.JPG

 

Regards =|

 

I was just explaining the reason of the crash, not what maked it on his game.

As you can see  CH is a null pointer on the function i told.

We have all seen that there is a null pointer since beginning. What I wanted to say is that it is not allowed to happen a core crash and most likely because of a change, because in the normal structure there is not such problem.

Link to comment
Share on other sites

You added the exclusion of removing the New Pet System from "Destroy item" ? Couse maybe someone try to remove pet when he is called and you recieve core down.

If you did not att exclusion for New Pet System , follow this step:

Open char_item.cpp and search: bool CHARACTER::DestroyItem(TItemPos Cell)

in that bool (bool CHARACTER::DestroyItem(TItemPos Cell)) search :

    if (item->IsExchanging())
        return false;

below add:

    if (GetNewPetSystem()->IsActivePet() && item->GetVnum() >= 55701 && item->GetVnum() <= 55706)
    {
        ChatPacket(CHAT_TYPE_INFO, "Nu poti face asta");
        return false;
    }

 

Edited by Phanes
Link to comment
Share on other sites

  • 4 years later...
On 6/17/2018 at 1:49 AM, Flr said:

You added the exclusion of removing the New Pet System from "Destroy item" ? Couse maybe someone try to remove pet when he is called and you recieve core down.

If you did not att exclusion for New Pet System , follow this step:

Open char_item.cpp and search: bool CHARACTER::DestroyItem(TItemPos Cell)

in that bool (bool CHARACTER::DestroyItem(TItemPos Cell)) search :

    if (item->IsExchanging())
        return false;

below add:

    if (GetNewPetSystem()->IsActivePet() && item->GetVnum() >= 55701 && item->GetVnum() <= 55706)
    {
        ChatPacket(CHAT_TYPE_INFO, "Nu poti face asta.");
        return false;
    }

 

i can't find " bool CHARACTER::DestroyItem(TItemPos Cell) " in my char_item.cpp some help?

Link to comment
Share on other sites

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.