Jump to content

Search the Community

Showing results for tags 'python'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Mangos Zero
    • Enhancement Requests (Zero)
    • Tasks (Zero)
  • Mangos One
    • Enhancement Requests (One)
    • Tasks (One)
  • Mangos Two
    • Enhancement Requests (Two)
    • Tasks (Two)
  • Mangos Three
    • Enhancement Requests (Three}
    • Tasks (Three)
  • Mangos Four
    • Enhancement Requests (Four)
    • Tasks (Four)
  • Mangos Five
    • Enhancement Requests (Five)
    • Tasks (Five)
  • Cross-Core
    • Bugs
    • Enhancement Requests
    • Tasks
    • Sub-Modules
    • Eluna
    • Linux
    • Windows
    • Archived Cross-Core/Other Reports
  • Others
    • Mangos VB
    • Mangos Sharp
    • Third Party Software
    • Website
  • Bug Tracker Archives (Resolved issues)
    • Archived Reports (Zero)(Resolved issues)
    • Archived Tasks (Zero)(Resolved issues)
    • Archived Reports (One)(Resolved issues)
    • Archived Tasks (One)(Resolved issues)
    • Archived Reports (Two)(Resolved issues)
    • Archived Tasks (Two)(Resolved issues)
    • Archived Reports (Three)(Resolved issues)
    • Archived Reports (Five)(Resolved issues)

Categories

  • Development Roadmap
  • Documentation
    • Installation Guides
    • Playerbot AI
    • Standards And Practices
  • Tutorials
    • Advanced
    • Contributing to Mangos
    • Debugging
  • Reference Information
    • ClientFiles
    • Database Info
    • DBC Files
    • Other
    • Packet Info
    • Server Files
    • Server Components

Forums

  • MaNGOS Information
    • Announcements & Releases
    • Covenant-WoW.com Website - Official Mangos Test Servers
  • Community Discussion Areas
    • Introduce Yourself
    • Community Cafe
    • Community Input
    • Community Projects
    • MaNGOS University
  • Community Help and Support
    • Peer to Peer Technical Support
    • Frequently Asked Questions
    • Resources
  • Development & Patch Submissions
    • Development
    • Patch Submissions
  • Eluna LUA Engine
    • Eluna Central
  • International Help & Support
    • International Boards
  • Archived
    • Main Archives
    • Archive of Pre-2012 Forum

Product Groups

There are no results to display.

Categories

  • Mangos Zero
  • Mangos One
  • Mangos Two
  • Mangos Three
  • Addons
    • Classic Addons
  • World Of Warcraft Patches
    • WoW Patches
    • The Burning Crusade Patches
    • Wrath of the Lich King
    • Client Tools Patchers

Blogs

  • getMaNGOS
  • DBC handling for mangos
  • The Road to Zero Release 21
  • Necrovoice's development blog.
  • What the Heck happened to Antz and MaNGOS in 2018 !!
  • Other Wow Emu Projects

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Core


Skype


Discord


Website URL


AIM


ICQ


Yahoo


Jabber


About Me


Gender


Location


Interests

Found 2 results

  1. Well, currently I'm in researching of structure of this packet. If I understand it correctly, the structure is (pseudocode below): # Header data uint32 count (count of what? updating objects?) uint8 hasTransport uint8 updateType (UPDATETYPE_CREATE_OBJECT2 for Player and Unit) uint64 guid uint8 objectType (Player, Unit, Container, Item etc) # Movement data, including current object position and speed data (for Player and Unit) uint32 flags (movement flags like MOVEFLAG_FORWARD, MOVEFLAG_ROOT, MOVEFLAG_FLYING etc) uint32 time (not sure but it seems it's time of doing move action) if (MOVEFLAG_ONTRANSPORT is set) { uint64 transport_guid uint32 x uint32 y uint32 z uint32 orientation } if (MOVEFLAG_SWIMMING is set) { uint32 swim_pitch } # jump data if (MOVEFLAG_FALLING is set) { uint32 time (not sure what mean this duplicated param) uint32 velocity uint32 sin uint32 cos uint32 xy_speed } if (MOVEFLAG_SPLINE_ELEVATION is set) { uint32 spline_elevation_unk (setted to 0.0, not sure about this param) } if (Unit) { # default speed uint32 speed_walk uint32 speed_run uint32 speed_run_back uint32 speed_swim uint32 speed_swim_back uint32 speed_flight uint32 speed_flight_back uint32 speed_turn } # miscellaneous data uint32 is_player uint32 attack_cycle (not sure about this param) uint32 timer_id (wtf?) uint64 victim_guid (it seems this param also for Unit or Player) # And at the end of packet update blocks data, contains fields like GUID, POWER1, MAXHEALTH, FACTIONTEMPLATE, BYTES_1 etc Does this structure is correct for 2.4.3 ?
  2. Hello, Mangos Community! I'm trying to developing python core from scratch and using your project as example. Currently my client stucks on 'Connected' and I think problem can be with packet encryption. Can anybody help me with debug or advice ? This is my project. And this is how packet encrypted: class HeaderCrypt(object): ENCRYPT_HEADER_SIZE = 4 DECRYPT_HEADER_SIZE = 6 def __init__(self, session_key): self.session_key = session_key self.send_i = 0 self.send_j = 0 self.recv_i = 0 self.recv_j = 0 def encrypt(self, data): assert len(data) >= HeaderCrypt.ENCRYPT_HEADER_SIZE encrypted_header = [0] * HeaderCrypt.ENCRYPT_HEADER_SIZE for index in range(HeaderCrypt.ENCRYPT_HEADER_SIZE): enc = (data[index] ^ self.session_key[self.send_i]) + self.send_j enc %= 0x100 encrypted_header[index] = self.send_j = enc self.send_i = (self.send_i + 1) % len(self.session_key) return bytes(encrypted_header) + data[HeaderCrypt.ENCRYPT_HEADER_SIZE:] def decrypt(self, data): assert len(data) >= HeaderCrypt.DECRYPT_HEADER_SIZE decrypted_header = [0] * HeaderCrypt.DECRYPT_HEADER_SIZE for index in range(self.DECRYPT_HEADER_SIZE): dec = (data[index] - self.recv_j) ^ self.session_key[self.recv_i] dec %= 0x100 decrypted_header[index] = dec self.recv_j = data[index] self.recv_i = (self.recv_i + 1) % len(self.session_key) return bytes(decrypted_header) + data[HeaderCrypt.DECRYPT_HEADER_SIZE:]
×
×
  • Create New...

Important Information

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. Privacy Policy Terms of Use