Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    true1495's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Germany :3
    Posts
    75
    Reputation
    10
    Thanks
    239
    My Mood
    Devilish

    Show Players Name/Byte to String

    Hallo,

    i try to convert byte to String
    I find a CE adresse for names and i want a label which shows the value of this adresse. But it always show me a number ....
    Can someone help me?
    Dim p As Process = Nothing
    If Process.GetProcessesByName("iw5mp").Count > 0 Then
    p = Process.GetProcessesByName("iw5mp")(0)
    Else
    MessageBox.Show("CoD:MW3 is not open!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    Exit Sub
    End If
    Dim Adr As Int32 = &H1D05950
    Try
    If ReadInt32(p, Adr) Then

    Else

    End If
    Catch ex As Exception
    MessageBox.Show("Writing memory failed: " & vbCrLf & ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    End Try
    Dim x As Int32 = ReadInt32(p, Adr)
    Dim y = Convert.ToString(x)
    Label5.Text = y
    End sub
    Im a noob and dont know how to :3
    wrong section pls move -.-
    #moverequest
    Last edited by true1495; 10-09-2012 at 01:41 PM.

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by true1495 View Post
    Hallo,

    i try to convert byte to String
    I find a CE adresse for names and i want a label which shows the value of this adresse. But it always show me a number ....
    Can someone help me?

    Im a noob and dont know how to :3
    wrong section pls move -.-
    #moverequest
    I like google



    ---------- Post added at 08:58 PM ---------- Previous post was at 08:49 PM ----------

    Or you could try using something I mixed up for you :P

    Code:
    Function BytesToString(ByRef Bytes_ As Byte())
            Return System.Text.ASCIIEncoding.ASCII.GetString(Bytes_)
        End Function
    
        Function StringToBytes(ByRef String_ As String)
            Return System.Text.ASCIIEncoding.ASCII.GetBytes(String_)
        End Function

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  3. The Following User Says Thank You to Jorndel For This Useful Post:

    true1495 (10-10-2012)

  4. #3
    true1495's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Germany :3
    Posts
    75
    Reputation
    10
    Thanks
    239
    My Mood
    Devilish
    Quote Originally Posted by Jorndel View Post


    I like google



    ---------- Post added at 08:58 PM ---------- Previous post was at 08:49 PM ----------

    Or you could try using something I mixed up for you :P

    Code:
    Function BytesToString(ByRef Bytes_ As Byte())
            Return System.Text.ASCIIEncoding.ASCII.GetString(Bytes_)
        End Function
    
        Function StringToBytes(ByRef String_ As String)
            Return System.Text.ASCIIEncoding.ASCII.GetBytes(String_)
        End Function
    Can u do pls an example on my adresse? I try but i fail always -.-

  5. #4
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by true1495 View Post
    Can u do pls an example on my adresse? I try but i fail always -.-
    Erm, you have managed to make an Read Integer function.
    But change the return value to string, that you can't?

    When you convert the bytes read to an integer.


    This makes me worry.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. #5
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,309
    My Mood
    Angelic
    Quote Originally Posted by Jorndel View Post


    Erm, you have managed to make an Read Integer function.
    But change the return value to string, that you can't?
    Its kinda obvious he didn't make the Reading function himself...

    Anyways... Just read a byte array instead of a Integer and convert it to String with the System.Text.ASCIIEncoding.ASCII.GetString as Jorndel said.


    CoD Minion from 09/19/2012 to 01/10/2013

  7. The Following User Says Thank You to MarkHC For This Useful Post:

    true1495 (10-10-2012)

  8. #6
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by -InSaNe- View Post
    Its kinda obvious he didn't make the Reading function himself...

    Anyways... Just read a byte array instead of a Integer and convert it to String with the System.Text.ASCIIEncoding.ASCII.GetString as Jorndel said.
    Why you no help him with the ReadProcessMemory as well?

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  9. #7
    true1495's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Germany :3
    Posts
    75
    Reputation
    10
    Thanks
    239
    My Mood
    Devilish
    Quote Originally Posted by Jorndel View Post


    Erm, you have managed to make an Read Integer function.
    But change the return value to string, that you can't?

    When you convert the bytes read to an integer.


    This makes me worry.
    You worried about me because Im a vb noob?
    I try to display the value of this adresse ... but i fail, it alway show me a number, but i need letters :3
    I tried to convert.tostring() but it dont work?
    Can u explain me how to display the Playersname on a label or how i can convert to string step by step?

  10. #8
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by true1495 View Post
    You worried about me because Im a vb noob?
    I try to display the value of this adresse ... but i fail, it alway show me a number, but i need letters :3
    I tried to convert.tostring() but it dont work?
    Can u explain me how to display the Playersname on a label or how i can convert to string step by step?
    Erm, google


    http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  11. The Following User Says Thank You to Jorndel For This Useful Post:

    true1495 (10-10-2012)

  12. #9
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,309
    My Mood
    Angelic
    Quote Originally Posted by Jorndel View Post


    Why you no help him with the ReadProcessMemory as well?
    :S Why should I? If he wanted to learn it, he could watch some of yours tutorials or read a book. But seems like he doesn't want to...


    ---------- Post added at 04:38 PM ---------- Previous post was at 04:37 PM ----------

    Quote Originally Posted by true1495 View Post
    Can u explain me how to display the Playersname on a label or how i can convert to string step by step?
    Get a book!


    CoD Minion from 09/19/2012 to 01/10/2013

  13. #10
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by -InSaNe- View Post
    :S Why should I? If he wanted to learn it, he could watch some of yours tutorials or read a book. But seems like he doesn't want to...

    ---------- Post added at 04:38 PM ---------- Previous post was at 04:37 PM ----------

    Get a book!
    Not everyone here know of my tutorials.

    And not all understand my horrible English


    ---------- Post added at 09:46 PM ---------- Previous post was at 09:45 PM ----------

    For now, just look or use this:
    http://www.mpgh.net/forum/604-call-d...n-jorndel.html


    ---------- Post added at 09:52 PM ---------- Previous post was at 09:46 PM ----------

    But since you wanted a step-by-step
    I did bother to do some small stuff...


     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  14. The Following User Says Thank You to Jorndel For This Useful Post:

    true1495 (10-10-2012)

  15. #11
    NitroSmily's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    99
    Reputation
    10
    Thanks
    1,055
    My Mood
    Tired
    Quote Originally Posted by Jorndel View Post
    I'm not the only one asking Z:P

  16. #12
    gteuk's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    247
    Reputation
    15
    Thanks
    613
    As a noob myself I would suggest first looking here

    http://www.mpgh.net/forum/586-call-d...deo-voice.html

    The video gets you started on how to read the game and write to the memory addresses.

    The question is where are you trying to get the names from and for what purpose and in which game mode, i.e force host or standard game play.

    I see no point in standard game play as you cannot do anything with it

    If in force host mode then this is the easy way

    Code:
           
     name1 = gteuk.ReadString(&H1D05950, 16)
             If Not name1 = "" Then
                Label6.Text = name1
           else 
               Label6.visible = false
           end if
    This is a small part of my code I am making at the moment the address I have provided gives you the player one name

    to get the others, offset using &H38EC

    Hope that help
    Last edited by gteuk; 10-09-2012 at 06:16 PM. Reason: last sentence didnt make sence

  17. The Following User Says Thank You to gteuk For This Useful Post:

    true1495 (10-10-2012)

  18. #13
    reloe's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    1
    '------------------Daten(Bytearray) in String und zurück-------------------
    Public Function StringToByteArray(ByRef str As String) As Byte()
    Return Convert.FromBase64String(str)
    End Function

    Public Function ByteArrayToString(ByRef Barr() As Byte) As String
    Return Convert.ToBase64String(Barr)
    End Function

    '------------------Text in Bytearray und zurück-------------------
    Public Function TextStringToByteArray(ByRef str As String) As Byte()
    Dim enc As System.Text.Encoding = System.Text.Encoding.Default

    Return enc.GetBytes(str)
    End Function

    Public Function ByteArrayToTextString(ByRef Barr() As Byte) As String
    Dim enc As System.Text.Encoding = System.Text.Encoding.Default

    Return enc.GetString(Barr)
    End Function

    Credits Jan Welker

    How to Use :
    ByteArrayToTextString(ReadMemory(&HADRESSE,letter-value)

  19. The Following User Says Thank You to reloe For This Useful Post:

    true1495 (10-10-2012)

  20. #14
    gteuk's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    247
    Reputation
    15
    Thanks
    613
    Quote Originally Posted by true1495 View Post
    You worried about me because Im a vb noob?
    I try to display the value of this adresse ... but i fail, it alway show me a number, but i need letters :3
    I tried to convert.tostring() but it dont work?
    Can u explain me how to display the Playersname on a label or how i can convert to string step by step?
    Could you let us know more about your project, the reason I ask is people try to make a hack, as i did, and in the process fill up the memory which can in turn cause lag, crashes, etc.

    You need to understand what you can write to cannot, write to,

    not all values are written in the same way integer, is the noob value of choice, I quickly learned there is more to it than that, I have given away some of my addresses freely as I have used some from this site in the past. I cannot give you the addresses I have as this would be a copy paste exercise.

    I think this site is about exchange of knowledge the more you put in the more you get out, Once I have finished my project hopefully in two weeks, I will release most of my addresses on this site, I do not want to do this before hand as I do not have the luxury of time to create a cheat in a day, nor do I have the full knowledge and have to ask for help from time to time.

    Insane and Jorndel are both right in an odd sort of way I can see insane has had to study the old fashioned way with books and trial and error, I do the same but with internet and trial and error (do you know how many times I crashed my PC looking for addresses), Jorndel is also studying hard and is exchanging his knowledge freely, of which I am greatful.

    However you need to look at the code and understand it, I do not understand it fully, however I am learning the language, you will never learn a thing with step by step copy and paste.

    Do not forget you also need to credit Jorndel, Master, Insane in your final working product as they are the people who helped,

    I would link you to one of mine where i credit the right people but it also links to other sites but if jorndel wants to see it please PM me

  21. The Following User Says Thank You to gteuk For This Useful Post:

    true1495 (10-10-2012)

  22. #15
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,309
    My Mood
    Angelic
    Quote Originally Posted by gteuk View Post
    I can see insane has had to study the old fashioned way with books and trial and error, I do the same but with internet and trial and error (do you know how many times I crashed my PC looking for addresses), Jorndel is also studying hard and is exchanging his knowledge freely, of which I am greatful.
    Actually I've never read a programming book But i do know that if I had read one it'd be a lot easier.. I learn stuff just from trying and trying till I do it right (And googling)


    CoD Minion from 09/19/2012 to 01/10/2013

  23. The Following User Says Thank You to MarkHC For This Useful Post:

    gteuk (10-09-2012)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Solved] I cant see players names on the score board
    By PasterOfMuppets in forum CrossFire Help
    Replies: 14
    Last Post: 06-02-2011, 06:29 PM
  2. player name color change
    By Brecht Algoet in forum Combat Arms Discussions
    Replies: 31
    Last Post: 04-24-2011, 06:49 PM
  3. Player Name Color?
    By mengboi252 in forum Combat Arms Mod Discussion
    Replies: 7
    Last Post: 10-14-2010, 12:35 PM
  4. Player name ----> Power up
    By maxtkd in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 11
    Last Post: 10-05-2010, 06:18 PM
  5. B> Player Name Change for 10.00 Paypal
    By Sneaks in forum Trade Accounts/Keys/Items
    Replies: 3
    Last Post: 09-20-2009, 04:09 PM