Kori 170 Posted March 8, 2020 Share Posted March 8, 2020 (edited) 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 September 4, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Johnny69 368 Posted March 8, 2020 Share Posted March 8, 2020 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. Link to comment Share on other sites More sharing options...
Kori 170 Posted March 8, 2020 Author Share Posted March 8, 2020 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 Sign In or Sign Up 8 1 2 3 Link to comment Share on other sites More sharing options...
Johnny69 368 Posted March 8, 2020 Share Posted March 8, 2020 Exactly as I tought, it's probably a null pointer in the DirectQuery last argument. Replace your function with this: https://pastebin.com/dexE0C0r 1 1 Link to comment Share on other sites More sharing options...
Kori 170 Posted March 8, 2020 Author Share Posted March 8, 2020 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 Share on other sites More sharing options...
IceShiva 151 Posted March 9, 2020 Share Posted March 9, 2020 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. 2 Link to comment Share on other sites More sharing options...
DrTurk 133 Posted March 9, 2020 Share Posted March 9, 2020 (edited) Working on windows is way better for developing than freebsd and also compiling is much faster on windows Edited March 9, 2020 by DrTurk 1 Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted March 9, 2020 Premium Share Posted March 9, 2020 Have fun: https://visualgdb.com/ 1 Link to comment Share on other sites More sharing options...
IceShiva 151 Posted March 11, 2020 Share Posted March 11, 2020 Additionally you can compile code in debug mode, you dont have values in variables due to optimalization. Debug can slow down you code but is really helpfull Link to comment Share on other sites More sharing options...
Jimmermania 27 Posted April 18, 2022 Share Posted April 18, 2022 Could you please upload the fix again? 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