Jump to content

Recommended Posts

  • Active Member

Hey guys, it's been a while... In my last visits to the forum I was dealing with an unknown-origin bug in my binary code. I'm referring to this:

so I made a discovery about it and it turns out that the bug is caused by the Packet.h synchronization with the server source. I did a large amount of tests and reversings but I couldn't find the problem exactly. I was hoping a more experienced dev could shine a little light to this.

This was the initial Packet.h file: https://pastebin.com/xtpfgJN3

And this is the modified one, where the headers are identical to the ones in game/src/packet.h: https://pastebin.com/9rDab7xV

After the migration, all the required files where modified, such as:

  • PythonNetworkStream.cpp
  • PythonNetworkStreamPhaseGame.cpp
  • PythonNetworkStreamPhaseLoading.cpp
  • PythonNetworkStreamPhaseLogin.cpp
  • PythonNetworkStreamPhaseSelect.cpp
  • GuildMarkDownloader.cpp

I believe the issue starts when I change the 

Quote

HEADER_GC_MAIN_CHARACTER

from 15 to 113, which leads

Quote

HEADER_GC_MAIN_CHARACTER2_EMPIRE

to index number 103. Before this conversion the client crashes when loading a character to the OX map or any map listed in channel 99, the reason is unknown.

I hope someone can help with this now that I can share more.

Thanks!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 1

      Auto Bravery Cape

    2. 18

      Metin2 Closed Beta Content (2003-2004)

    3. 1425

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 25

      Experimental Renderer

    5. 1

      Auto Bravery Cape

    6. 0

      Very strange bug, when creating new char

    7. 5

      Horus Maps & Design

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.