Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Quote Originally Posted by x2Sorcer View Post
    Oh thank you so much. Was trying to solve that problem the whole day and even googled for over an hour but couldn't find something helpful

    ---------- Post added at 12:44 AM ---------- Previous post was at 12:25 AM ----------

    Edit: This works perfect for reading values from MW3, but I don't get it how to do it with bytes. I'm using your memory class at the moment so i can care about the other things, so you might could help me

    For Integer the code is, of course: Convert.ToString(ReadInteger(address));
    Now I want to read a bytelist using Convert.ToString(ReadBytes(addresse, bytelength)); - but that just gives me "System.Byte[]", doesnt matter which bytelength i enter - any idea why or how to fix it?

    Thanks
    Erm, the class got a read string and the length to read but...

    something like:
    Code:
    System.Text.ASCIIEncoding.ASCII.GetString(*bytes*, *index (0)*);
    For the Hex value as String, use: (????).ToString("X"); (The X means we are using hex value / byte make it a lower case x for small letters)

    PS:
    BitConverter is more used to work with bytes

     
    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

  2. #17
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,883
    My Mood
    Psychedelic
    Quote Originally Posted by Jorndel View Post


    Erm, the class got a read string and the length to read but...

    something like:
    Code:
    System.Text.ASCIIEncoding.ASCII.GetString(*bytes*, *index (0)*);
    For the Hex value as String, use: (????).ToString("X"); (The X means we are using hex value / byte make it a lower case x for small letters)

    PS:
    BitConverter is more used to work with bytes
    But can you explain why it returns System.Byte[] ?

  3. #18
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Quote Originally Posted by Kenshin13 View Post
    But can you explain why it returns System.Byte[] ?
    That is because the Convert.ToString only converts an none-array value.
    So that's why it returns that the "converted value" is a: System.Byte[] (Since that is the "definition" of an array of bytes )


    ---------- Post added at 03:09 AM ---------- Previous post was at 03:08 AM ----------

    While the ASCII is an encoding for bytes. (Wrong but, the main point here...)
    (255 chars)

    So that is why it can handle the byte[] input value and convert it to a string.

     
    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

  4. #19
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,883
    My Mood
    Psychedelic
    C# makes me wanna kill myself sometimes....Thank God the ESP's done so I don't have to touch it for a while...
    So what else can you use for a string byte conversion? Just that?

  5. #20
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Quote Originally Posted by Kenshin13 View Post
    C# makes me wanna kill myself sometimes....Thank God the ESP's done so I don't have to touch it for a while...
    So what else can you use for a string byte conversion? Just that?
    Many "ways" I suppose, but I haven't looked after those.
    (I don't have the need :P)

     
    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

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Memory Addresses
    By Butcher1993 in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 09-03-2008, 09:33 PM
  2. Memory address question
    By crazyfool in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-18-2008, 11:29 AM
  3. Guild War Memory Addresses
    By rlange in forum Hack Requests
    Replies: 0
    Last Post: 08-29-2007, 09:56 AM
  4. Replies: 3
    Last Post: 01-04-2006, 10:52 PM
  5. Direct Memory Access (DMA) to Static Memory Addresses
    By Dave84311 in forum Game Hacking Tutorials
    Replies: 0
    Last Post: 12-31-2005, 09:18 PM