Jump to content

Recommended Posts

  • Active+ Member

Hello guys, 

Ich have implemented the official pet system. It's work but I have some problems. When I unsummon the pet I have a core crash here is a bt full :

https://metin2.download/picture/9YcC9jX2MKhx66sQTKMrr8r5mlpzDdIn/.png

Other proplems later the crash fix is important 

 

Have a great day 

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/23019-offical-pet-system-proplem/
Share on other sites

  • Active+ Member
24 minutes ago, Johnny69 said:

Well, post the code, we are not magicians to guess your code.

One guess though: summon item might be null on unsummon and is no check for null pointer.

This is the hidden content, please

  • Metin2 Dev 8
  • Eyes 1
  • Good 2
  • Love 3
Link to comment
https://metin2.dev/topic/23019-offical-pet-system-proplem/#findComment-124531
Share on other sites

  • Active+ Member
13 minutes ago, Johnny69 said:

Exactly as I tought, it's probably a null pointer in the DirectQuery last argument.

Replace your function with this: https://pastebin.com/dexE0C0r

Thanks for help me I will test it next time 

Link to comment
https://metin2.dev/topic/23019-offical-pet-system-proplem/#findComment-124534
Share on other sites

good way to debug problems like yours is attach debugger do process and trace while crash.

Even better solution is developping server under windows environment since you can set breakpoints in runtime using visual studio. In gdb it is also possible but little bit harder. I see many problems posted by users about pointer to no where.  Nobody use this possibility for "understanding what i'm fucked up"

It's really sad becouse can teach more than user replies on forum.

Cheers.

  • Love 2
Link to comment
https://metin2.dev/topic/23019-offical-pet-system-proplem/#findComment-124559
Share on other sites

  • 2 years later...

Could you please upload the fix again?

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

Link to comment
https://metin2.dev/topic/23019-offical-pet-system-proplem/#findComment-148808
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.