[Stupid Question]What are descriptors. menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    cenron's Avatar Member
    Reputation
    12
    Join Date
    Mar 2008
    Posts
    93
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Stupid Question]What are descriptors.

    So I know this might be dumb so please just bare with me. My question is what are descriptors?

    I understand what you use them for after you reverse engineer, so they represent a position within an array, within an object, item, player, npc.

    My question is how are they used by the blizzard developers. Like how does there code look like when they are writing it to implement these, code doesn't always look the same once its been reversed.

    If they are used in the same way as they are used by this forum, then why do it this way? There are to be a better way of doing it then creating arrays filled with data.

    I have searched the net for "Descriptors" or Object Descriptors and could not find anything, can anyone post a link to a description on how these are used in code. Sound like this is something I haven't come across before.

    Summary is: I dont know how a descriptor would be written in the orginal code, maybe used the same way, and if there are links to tutorials or descriptions on this programming style. Like if I wanted to implement something like this in my own code, how would I write it?

    I do like discovering stuff for my self, but if anyone could suggest a search string, or what this is called, then that would be awesome.

    [Stupid Question]What are descriptors.
  2. #2
    jjaa's Avatar Contributor
    Reputation
    245
    Join Date
    Dec 2006
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When the server sends an object update, they send the data and a bit mask of the positions in the array to modify. So in my opinion, an array is a good choice for the data. It needs to updated constantly and can easily be compressed (you can look at https://github.com/mangos/mangos/blo...e/UpdateMask.h for an example for the mask) in a packet. As for why they expose the information in the binary. I imagine its just a side affect of making the code easy to read and maintain, by creating a struct with the name, size and type information.

  3. #3
    cenron's Avatar Member
    Reputation
    12
    Join Date
    Mar 2008
    Posts
    93
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jjaa View Post
    When the server sends an object update, they send the data and a bit mask of the positions in the array to modify. So in my opinion, an array is a good choice for the data. It needs to updated constantly and can easily be compressed (you can look at https://github.com/mangos/mangos/blo...e/UpdateMask.h for an example for the mask) in a packet. As for why they expose the information in the binary. I imagine its just a side affect of making the code easy to read and maintain, by creating a struct with the name, size and type information.

    I understand now! thank you. The part I was missing was I assumed that this array was created and modified client side, but now it makes sense this is a way the server would send info from the server, make a whole lot more sense. Right after I read the first sentence the first thing I thought was "duh! I am an idiot" lol

    Thanks man that clears so much up for me.

Similar Threads

  1. [Question] What are the different bosses that I could kite to org
    By DrakeFish in forum World of Warcraft General
    Replies: 0
    Last Post: 03-05-2011, 02:17 PM
  2. [Question] What are Descriptors?
    By sylvisj in forum WoW Memory Editing
    Replies: 8
    Last Post: 02-09-2011, 03:05 PM
  3. [question] What are descriptors?
    By yeahlol in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 11-25-2010, 02:30 AM
  4. [Question] What models are used by spirit beasts?
    By Ripper26 in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 04-07-2010, 04:39 PM
  5. {question & realese} cool arthas pics and what are there displayids?
    By anonymous23 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 06-02-2008, 07:06 AM
All times are GMT -5. The time now is 09:12 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search