HelpShow Players Name/Byte to String

Posts 1–15 of 17 · Page 1 of 2
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
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
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 -.-
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.
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.
Quote Originally Posted by MarkHC 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?
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?
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
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!
Quote Originally Posted by MarkHC 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...

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
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)
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
'------------------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)
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us