PS3 PS3 - Need help in making a tool with custom inputs for SetMemory

Discussion in 'General PS3 Discussion' started by CoolMAN, Sep 16, 2019.

  1. 9
    2
    7
    CoolMAN

    CoolMAN Forum Noob

    Joined:
    Feb 27, 2019
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    7
    Gender:
    Male
    Hey, everyone. I'm creating a small tool for myself, this tool should be able to set the memory of the PS3 using custom inputs from the user, but i'm having a problem here and i don't really know how to fix it.

    Here's the code:

    TextBox - offsetbox.text
    TextBox - values.text

    I've tried following things:

    uint offset = Convert.ToUInt32(offsetbox.text);
    byte values = Convert.ToByte(values.text);

    PS3.SetMemory(offset, new byte[] { values } );

    Didn't work, it says "Input uint has not the correct format."

    I've tried Parse method, also didn't work, same error. TryParse, same and the same... Does anyone have a solution?
     
  2. 1,591
    1,719
    297
    pink1

    pink1 Moderator Developer

    Joined:
    Feb 25, 2015
    Messages:
    1,591
    Likes Received:
    1,719
    Trophy Points:
    297
    Gender:
    Male
    You may try changing
    Code:
    Convert.ToUInt32(offsetbox.text);
    To
    Code:
    Convert.ToUInt32(offsetbox.text, 16);
     
    Algol likes this.
  3. 9
    2
    7
    CoolMAN

    CoolMAN Forum Noob

    Joined:
    Feb 27, 2019
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    7
    Gender:
    Male
    Thanks, it worked now. :) Can you also tell me which number i have to use when converting from string to bytes? (For the value textbox)
     

Share This Page