[source] How to parse player list (example) menu

User Tag List

Results 1 to 14 of 14
  1. #1
    Midi12's Avatar Contributor
    Reputation
    90
    Join Date
    Sep 2012
    Posts
    182
    Thanks G/R
    6/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [source] How to parse player list (example)

    Hi, here an example on how to parse the player list (i don't try to parse mobs but i think it can be done by a similar way)


    This is my parsing function :

    Code:
    public void Pulse()
            {
                if (!this.bInitialized) //check if Memory reader is initialized
                    return;
    
                if (!this.isIngame) //check if you're logged to a character
                    return;
    
                Players = new List<Player>(); //declare a new list of player
                uint _playerarrayptr = this.PlayerArrayPtr; //get the player array ptr
                uint _playerarraysize = this.PlayerArraySize; //get the size of the player array
                uint index = 0;
                uint _baseplayer = 0;
    
                while (index < _playerarraysize) //walk through the array
                {
                    if ((_baseplayer = Memory.Get.ReadUInt(_playerarrayptr + index * 0x4)) != 0) //check if the player pointer exist
                    {
                        Players.Add(new Player(_baseplayer)); //add a new player
                    }
                    index++;//walk to next player
                }
            }
    screenshot :
    [source] How to parse player list (example)-entparse-jpg

    source example :
    GW2 Entity Parser.zip (no binaries, .NET Framework 4)

    VT : https://www.virustotal.com/file/4481...is/1350039808/

    Hope this can help someone !

    [source] How to parse player list (example)
  2. #2
    darkager's Avatar Private
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please excuse my ignorance, but might this be used to help determine a CHARID? i.e. what's asked about in this thread:
    http://www.ownedcore.com/forums/mmo/...ding-post.html (Selling, and taking items from trading post)

  3. #3
    Midi12's Avatar Contributor
    Reputation
    90
    Join Date
    Sep 2012
    Posts
    182
    Thanks G/R
    6/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The id is more an id in the current map than a guid of a character, i think you could use the agent id, like jujubosc said in another thread.
    Last edited by Midi12; 10-12-2012 at 02:58 PM.

  4. #4
    Leines's Avatar Private
    Reputation
    1
    Join Date
    Aug 2012
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just a question for my basic understanding.
    _playerarrayptr + index * 0x4
    This means the array is structured like this is memory:
    array(1 => 'Player1Name', 2 => 'Player2Name')
    PlayerArrayPointer 0x1 0x4 0x2 0x4 0x3 0x4 ...
    And the number are pointing to the players name?
    Maybe someone can explain it please? I don't get it

  5. #5
    Midi12's Avatar Contributor
    Reputation
    90
    Join Date
    Sep 2012
    Posts
    182
    Thanks G/R
    6/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look inside the source code i shared.

  6. #6
    Leines's Avatar Private
    Reputation
    1
    Join Date
    Aug 2012
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looked at the src, its really clean and well to read.
    But how did you figure out that the array is at this point and the values point to the players etc.?

  7. #7
    SSlisa's Avatar Corporal
    Reputation
    9
    Join Date
    Aug 2012
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Leines View Post
    Just a question for my basic understanding.

    This means the array is structured like this is memory:

    And the number are pointing to the players name?
    Maybe someone can explain it please? I don't get it
    actually it means
    1 * 0x4 ( 0x4 )
    2 * 0x4 ( 0x8 )
    3 * 0x4 ( 0xC )
    4 * 0x4 ( 0x10 )
    and so on.

  8. #8
    karliky's Avatar Contributor Authenticator enabled
    Reputation
    112
    Join Date
    Jun 2007
    Posts
    69
    Thanks G/R
    6/27
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone got working this example for the current path?

  9. #9
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you update offsets yes, struct is still the same

  10. #10
    karliky's Avatar Contributor Authenticator enabled
    Reputation
    112
    Join Date
    Jun 2007
    Posts
    69
    Thanks G/R
    6/27
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JuJuBoSc View Post
    If you update offsets yes, struct is still the same
    Yeah but as I've never used this example I can't figure out how to get the new addresses :/

  11. #11
    Dodgy's Avatar Private
    Reputation
    1
    Join Date
    Nov 2012
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind I figured it out thanks.
    Last edited by Dodgy; 11-26-2012 at 03:37 AM.

  12. #12
    Dodgy's Avatar Private
    Reputation
    1
    Join Date
    Nov 2012
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I updated the cliContext memloc 0x12B366C but this doesn't seem to work properly, it shows a list of addresses, no names, and it doesn't appear the addresses relate to any players at all.

  13. #13
    z0m's Avatar Banned CoreCoins Purchaser
    Reputation
    3
    Join Date
    Jan 2011
    Posts
    56
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The addresses were related to players, but the offsets were wrong.

    GW2Ent.zip
    Added a dictionary that adds basic CharClient_Character data too.

  14. #14
    Dodgy's Avatar Private
    Reputation
    1
    Join Date
    Nov 2012
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by z0m View Post
    The addresses were related to players, but the offsets were wrong.

    GW2Ent.zip
    Added a dictionary that adds basic CharClient_Character data too.
    Ahh thats why thanks this is great. Only thing that's kinda weird is the entity list doesnt always seem to have some players from the player list, why is that? For example the player list had 13 players according to the debugger, all names, HP etc checked and was correct, but some of those players were not found in the character list, only 7 were there... Can you explain why?
    Last edited by Dodgy; 11-28-2012 at 01:46 AM.

Similar Threads

  1. How would I make a server status page? (Online player list, online/offline, etc.)
    By pioneer1337 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 07-29-2008, 08:35 AM
  2. How to make players get max skill in weps??
    By Froddy in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 03-27-2008, 04:22 PM
  3. [Question] How to make players start with gear/money/items?
    By hukabuka in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-23-2008, 08:13 PM
  4. Plz help: How to change character list layout?????/
    By srpskagarda in forum World of Warcraft General
    Replies: 3
    Last Post: 03-08-2007, 07:09 PM
  5. how to set player as gm or 6 persmision
    By ilovethissite in forum World of Warcraft General
    Replies: 1
    Last Post: 12-27-2006, 09:07 AM
All times are GMT -5. The time now is 09:35 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search