Jump to content
metin2dev
  • 0

Question

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

 

Share this post


Link to post
Share on other sites

15 answers to this question

Recommended Posts

  • 0
hace 3 horas, Syreldar dijo:

show us the Item::RemoveFromCharacter function

From which .cpp?

 

hace 5 minutos, WeedHex dijo:

Someone is making attacks on your cores using null pointers xD

I am testing what you say in that post too :)

Share this post


Link to post
Share on other sites
  • 0
hace 23 minutos, Dobrescu Sebastian dijo:

Put a check to your remove item sistem to don't make anything if item or owner is missing.

Hm you can give me that check and where to put it? I know your time worth money if you like I can pay for this solucion. I am losing players.

Ty

 

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0
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.

Share this post


Link to post
Share on other sites
  • 0
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??

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0
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.

Share this post


Link to post
Share on other sites
  • 0
hace 4 horas, WeedHex dijo:

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.

But where can I find that fu..ing item :(

Share this post


Link to post
Share on other sites
  • 0

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;
    }

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×