Jump to content

Recommended Posts

Hi, someone know why when i send a string from game ( with packets ) in the binary i recive a numbers???

const char* M2int; <-- in binary and game

 

What happend??

In sys_err i can see the right string but in client i see numbers :/

b58122f41dd9f34756129006ccb520be.pngd9a9538885ffe0442979074cb9a4dcbc.png

Thanks.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/5491-game-client-comunication-with-packets-problem/
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

That (i) from Py_BuildValue stands for integer

Check this site https://docs.python.org/2.1/ext/buildValue.htmlfor available formats.

yep, i change it for (s) yesterday, but the client close when i recive the data and dont show me any errors.

I hope that you work with the launcher in the debug mode, because you'll have another log file with more info about the errors and even in the console you'll see an error right before it will close.

Also, on the server part, it's quite strange that you assign a c style string with `=`. You should use strcpy/strdup or something.

I hope that you work with the launcher in the debug mode, because you'll have another log file with more info about the errors and even in the console you'll see an error right before it will close.

Also, on the server part, it's quite strange that you assign a c style string with `=`. You should use strcpy/strdup or something.

i dont know c++, so then i dont know use srtcpy or strdup :/ i try search on google but my c++ level is shit .

 

Thanks for try help me, and i will compile it in debug mode to try see more errors.

 

*EDIT: in debug mode when i recive the packet, the client close too and log.txt dont say nothing about the packet.

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.