Jump to content

Binary packet sync bug


Recommended Posts

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. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • 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.