Page 2 of 2 First 1 2
THREAD: [DEX] How To Display Players Name
  1. 06-21-2013, 08:50 AM
    #1
    nay1995's Avatar
    nay1995
    The Master
    1,738
    Posts
    11,885
    Reputation
    Feb 2010
    NextGenUpdate
    Using my method, players names can be displayed either in the program or displayed in the menu.

    Note: I will show you how to do this in c#, so if you would like other languages just work around it

    Anyway all you have to do is first copy this code to your program:
    Code:
            public static string ByteToString(byte[] nay)
            {
                string hex = BitConverter.ToString(nay);
                return hex.Replace("-", "");
            }
    What this does is simply convert a byte array to its string equivalent (hex string).

    Now you will need this code:
    Code:
            private string HA(string h)
            {
                StringBuilder nay = new StringBuilder();
    
                for (int i = 0; i <= h.Length - 2; i += 2)
                {
                    nay.Append(Convert.ToString(Convert.ToChar(Int32.Parse(h.Substring(i, 2),
                    System.Globalization.NumberStyles.HexNumber))));
    
                }
                nay.Replace((char)0x00, ' ');
                return nay.ToString();
            }
    What this does is convert a hex string to there equivalent characters and then replaces all null values.


    Then finally you will need this:
    Code:
            public string p(ulong i)
            {
                byte[] ps3num = new byte[31];
                PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x0110D694 + (i * 0x3980), ref ps3num);
    
                string s = HA(ByteToString(ps3num));
                s = s.Trim();
                return s;
            }
    This code gets the memory of the player state and converts it to a readable string.



    Thats all you need!

    If you want to get someones name simply type something like this:
    MessageBox.Show(""+p(clientID here));

    To get all clients names do something like this:
    Code:
    MessageBox.Show(""+p(0) + "\n" +p(1) + "\n" +p(2) + "\n" +p(3) + "\n" +p(4) + "\n" +p(5) + "\n" +p(6) + "\n" +p(7) + "\n" +p(8) + "\n" +p(9) + "\n" +p(10) + "\n" +p(11) + "\n" +p(12) + "\n" +p(13) + "\n" +p(14) + "\n" +p(15) + "\n" +p(16) + "\n" +p(17));
    This is how i do it, its not the best way and im sure other dex modders have their own methods, anyway i hope you enjoy!


    Credits to IMCSx for the player offsets.
    Last edited by nay1995; 06-21-2013 at 09:02 AM.

  2. The Following 7 Users Say Thank You to nay1995 For This Useful Post:


  3. 06-21-2013, 10:58 AM
    #11
    Sticky's Avatar
    Sticky
    Mary J Wannnnna
    553
    Posts
    16,640
    Reputation
    Mar 2013
    NextGenUpdate
    Originally Posted by nay1995 View Post
    Using my method, players names can be displayed either in the program or displayed in the menu.

    Note: I will show you how to do this in c#, so if you would like other languages just work around it

    Anyway all you have to do is first copy this code to your program:
    Code:
            public static string ByteToString(byte[] nay)
            {
                string hex = BitConverter.ToString(nay);
                return hex.Replace("-", "");
            }
    What this does is simply convert a byte array to its string equivalent (hex string).

    Now you will need this code:
    Code:
            private string HA(string h)
            {
                StringBuilder nay = new StringBuilder();
    
                for (int i = 0; i <= h.Length - 2; i += 2)
                {
                    nay.Append(Convert.ToString(Convert.ToChar(Int32.Parse(h.Substring(i, 2),
                    System.Globalization.NumberStyles.HexNumber))));
    
                }
                nay.Replace((char)0x00, ' ');
                return nay.ToString();
            }
    What this does is convert a hex string to there equivalent characters and then replaces all null values.


    Then finally you will need this:
    Code:
            public string p(ulong i)
            {
                byte[] ps3num = new byte[31];
                PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x0110D694 + (i * 0x3980), ref ps3num);
    
                string s = HA(ByteToString(ps3num));
                s = s.Trim();
                return s;
            }
    This code gets the memory of the player state and converts it to a readable string.



    Thats all you need!

    If you want to get someones name simply type something like this:
    MessageBox.Show(""+p(clientID here));

    To get all clients names do something like this:
    Code:
    MessageBox.Show(""+p(0) + "\n" +p(1) + "\n" +p(2) + "\n" +p(3) + "\n" +p(4) + "\n" +p(5) + "\n" +p(6) + "\n" +p(7) + "\n" +p(8) + "\n" +p(9) + "\n" +p(10) + "\n" +p(11) + "\n" +p(12) + "\n" +p(13) + "\n" +p(14) + "\n" +p(15) + "\n" +p(16) + "\n" +p(17));
    This is how i do it, its not the best way and im sure other dex modders have their own methods, anyway i hope you enjoy!


    Credits to IMCSx for the player offsets.
    How do you make a client list where you can select the client and give them mods?
    I would also know if its possible to make a tool that auto detects the hosts client ID
    Sponsored Links
  4. 06-21-2013, 12:14 PM
    #12
    Kurt's Avatar
    Kurt
    Banned
    397
    Posts
    18,179
    Reputation
    Dec 2012
    NextGenUpdate
    Originally Posted by Dr Sonoro View Post
    Not sure if serious, this is just some messy code to do a simple thing...

    Code:
    public static string GetPlayerName(int clientID)
    {
       byte[] GetName = new byte[16];  
       PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x0110D694 + ((uint)clientID * 0x3980), ref GetName);
       return Encoding.ASCII.GetString(GetName);
    }
    I havent
    dude just shut the fuck up, all u do is go around forums and say "hmm this is pretty bad" or something sarcastic. i havnt seen anything released by u in a long time, wat happened?
  5. 06-21-2013, 12:38 PM
    #13
    xSonoro's Avatar
    xSonoro
    Guest
    n/a
    Posts
    n/a
    Reputation
    Once upon a time...
    NextGenUpdate
    Originally Posted by DexModderFTW View Post
    I havent
    dude just shut the fuck up, all u do is go around forums and say "hmm this is pretty bad" or something sarcastic. i havnt seen anything released by u in a long time, wat happened?

    Haha maybe you should do that. I just give my feedback on the stuff, also i don't release stuff cause i don't release the first thing i find , i take time to achieve good stuff
  6. The Following User Says Thank You to xSonoro For This Useful Post:


  7. 06-22-2013, 05:03 AM
    #14
    O-H's Avatar
    O-H
    Bounty hunter
    170
    Posts
    1,185
    Reputation
    Sep 2012
    NextGenUpdate
    Thanks for this. I implemented it to my Player menu. It used to be
    Client 0
    Client 1
    etc.
    lol
  8. 06-24-2013, 03:30 AM
    #15
    milky4444's Avatar
    milky4444
    Error… Cat invasion!
    418
    Posts
    10,468
    Reputation
    Sep 2012
    NextGenUpdate
    Originally Posted by Schtiiikay View Post
    How do you make a client list where you can select the client and give them mods?
    I would also know if its possible to make a tool that auto detects the hosts client ID
    to get client list add about 13 or more text or rich text box's and use this code with a buttton :



    private void button6_Click(object sender, EventArgs e)
    {
    richTextBox1.Text = (""+p(0));
    richTextBox2.Text = ("" + p(1));
    richTextBox3.Text = ("" + p(2));
    richTextBox4.Text = ("" + p(3));
    richTextBox5.Text = ("" + p(4));
    richTextBox6.Text = ("" + p(5));
    richTextBox7.Text = ("" + p(6));
    richTextBox8.Text = ("" + p(7));
    richTextBox9.Text = ("" + p();
    richTextBox10.Text = ("" + p(9));
    richTextBox11.Text = ("" + p(10));
    richTextBox12.Text = ("" + p(11));
    richTextBox13.Text = ("" + p(12));
    richTextBox14.Text = ("" + p(13));
    }
  9. 06-24-2013, 05:36 AM
    #16
    nay1995's Avatar
    nay1995
    The Master
    1,738
    Posts
    11,885
    Reputation
    Feb 2010
    NextGenUpdate
    Originally Posted by milky4444 View Post
    to get client list add about 13 or more text or rich text box's and use this code with a buttton :



    private void button6_Click(object sender, EventArgs e)
    {
    richTextBox1.Text = (""+p(0));
    richTextBox2.Text = ("" + p(1));
    richTextBox3.Text = ("" + p(2));
    richTextBox4.Text = ("" + p(3));
    richTextBox5.Text = ("" + p(4));
    richTextBox6.Text = ("" + p(5));
    richTextBox7.Text = ("" + p(6));
    richTextBox8.Text = ("" + p(7));
    richTextBox9.Text = ("" + p();
    richTextBox10.Text = ("" + p(9));
    richTextBox11.Text = ("" + p(10));
    richTextBox12.Text = ("" + p(11));
    richTextBox13.Text = ("" + p(12));
    richTextBox14.Text = ("" + p(13));
    }

    you dont need to do this just use \n for example
    richTextBox1.Text = (p(1) + "\n" + p(2) + "\n");
    etc, etc....
  10. The Following 2 Users Say Thank You to nay1995 For This Useful Post:


Page 2 of 2 First 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •