Jump to content

Lokret

Inactive Member
  • Posts

    10
  • Joined

  • Last visited

  • Feedback

    0%

About Lokret

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Lokret's Achievements

Contributor

Contributor (5/16)

  • Dedicated
  • Reacting Well
  • First Post
  • Collaborator
  • Conversation Starter

Recent Badges

1

Reputation

  1. Update: Turned off every optimization, so the unable to read memory problem on the second picture (if its a problem) is solved now, but the client is still crashing at the memcpy assembly code. I guess it has something to do with the buffer memory allocation regarding the image's m_pbComBufferByLevels array which was initialized like this: const BYTE* m_pbCompBufferByLevels[MAX_MIPLEVELS]; I think the other possible cause of this is some memory leak or trashing somewhere not here, idk about these. Maybe Im total wrong, but doesnt matter, these problems are beyond my cpp skills, so I would appreciate some hints about how to analyze it.
  2. Hi. Sometimes I face client crashes when I teleport. I have no syserr, but I tried to debug it and I got the following error. Exception thrown at 0x011C4190 in metin2client.exe: 0xC0000005: Access violation reading location 0x0088F000. The image is created like this: static CDXTCImage image; Please help me, sorry for the white IDE Update: Turned off every optimization, so the unable to read memory problem on the second picture (if its a problem) is solved now, but the client is still crashing at the memcpy assembly code. I guess it has something to do with the buffer memory allocation regarding the image's m_pbComBufferByLevels array which was initialized like this: const BYTE* m_pbCompBufferByLevels[MAX_MIPLEVELS]; I think the other possible cause of this is some memory leak or trashing somewhere not here, idk about these. Maybe Im total wrong, but doesnt matter, these problems are beyond my cpp skills, so I would appreciate some hints about how to analyze it.
  3. Thank you Server packet Server tables Client packet
  4. Please help me, I know its leaked, I admit it, Im a bad human
  5. Hi, Sadly I found (251,250) packet errors on my server, spent days with it, but I just can't fix it. I tried debugging, review the packet files both on client and server, but I could not find anything different between those two or neither other serverfiles. I use martysama 4.9 (I think), added sash and and multilanguage, but nothing else. Everything works fine, but when I select character/teleport around sometimes my client crashes with The first number is always random, never defined in client or server, and the 251,250 is always the same. Found many topics on the internet, some said nothing, some said it's due to buffer overflow problems. Is it real? Can it be fixed? Where are those not existing packets are coming from? I've spent my weekend teleporting in the world of metin2, maybe if I could find some logic that is leading to the solution but nothing. It happens total random. Maybe I can say that it's more likely to happen if I use two or more clients at the same time. Also I have similar problems vice-versa, my client sends unknown packets to server, but here the header is always 47, and the last is 3. I added header 3 into login phase, then the first line disappeared, but the second is still happening, causing players the stuck in teleport until they disconnect. I found that header 47 is also undefined, then where is it coming from? Why am I supposed to add header 3 into login phase, when its not supposed to be sent during login phase? There are my packet files if someone is really interrested in my problem. Thank you for helping! Server tables.h Server packet.h Client packet.h
×
×
  • 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.