Tags:

Help Creating a XPRC Tool

pedro210 Oct 11, 2013

  1. pedro210

    pedro210 Newbie
    0/47

    Joined:
    Sep 21, 2012
    Messages:
    311
    Likes Received:
    27
    Trophy Points:
    0
    Console:
    Xbox
    hi trying to learn how to make my own tool but need all the help i can get or any good resources.
    tool im trying to create is for Black Ops 2 xbox 360.

    http://gyazo.com/c3428eaf994ba71ec046c5e15e55efde

    I've gotten this far with out a clue and being my first time trying to program but nothing seems to work for other buttons. It freezes xbox as soon as the hit the button any help will be very much appreciated
     
  2. Timmeh

    Timmeh Trve Kvlt
    25/47

    Joined:
    Jan 18, 2013
    Messages:
    468
    Likes Received:
    155
    Trophy Points:
    25
    Gender:
    Male
    Occupation:
    Drummer
    Location:
    Michigan
    Console:
    Xbox
    Making a tool for black ops 2 can be very difficult for your first, I suggest maybe making one for mw2, anyways I would google "open source bo2 tools" and take a look in there
     
  3. pedro210

    pedro210 Newbie
    0/47

    Joined:
    Sep 21, 2012
    Messages:
    311
    Likes Received:
    27
    Trophy Points:
    0
    Console:
    Xbox
    thanks man actually got a better understanding of how everything within the tool works from one of the cracked sources. it was on TU14 updated a couple item like server command and messed around a little to get it on TU15 and works perfect. thank you
     
  4. TG

    TGK Guest

    You have such a weird way of coding. The "if else" method isn't recommended for connecting to your JTAG or RGH. Use the "try catch" method of doing this so you can tell the user what happened. And why do you write your messageboxes out like that? Just do

    MessageBox.Show("Message", "Title");

    You should have your code looking kind of like this (my favorite way)

    try
    {
    JRPC.Connect();
    }
    catch (Exception ex)
    {
    MessageBox.Show("ERROR!\n\nCannot Connect to JRPC!\nDetails Below...\n\n" + ex, "Error!");
    }
    if (JRPC.activeConnection)
    label1.Text = "Connected!";
    label1.ForeColor = Color.LimeGreen;

    Also, no need to put parentheses around your text for your textBox. (why are you using a textBox anyway? lol)
     
  5. Coder123

    Coder123 Finnish Modder XPG Developer TeamXPG
    105/188

    Joined:
    Jan 21, 2012
    Messages:
    1,953
    Likes Received:
    717
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Finland
    Console:
    Xbox
    try
    {
    jtag.connect();
    if (jtag.activeconnection == true)
    {
    label1.Text = "Connected!";
    label1.ForeColor = Color.LimeGreen;
    }
    }
    catch
    {
    MessageBox.Show("ERROR!\n\nCannot Connect to JRPC!\nDetails Below...\n\n" + ex, "Error!");
    }


    i think that would work, fix the letters tho


    EDIT; nevermind your code is fine.
     
  6. TG

    TGK Guest

    Just wondering, why do you use brackets for your 'if' statements and why do you equal it as true even though it's true by default?
     
  7. Coder123

    Coder123 Finnish Modder XPG Developer TeamXPG
    105/188

    Joined:
    Jan 21, 2012
    Messages:
    1,953
    Likes Received:
    717
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Finland
    Console:
    Xbox
    Jtag.activeConnection isnt true by default? Its false until XRPC has connected to the console, after that it is true, also cuz im a noob ;)
     
  8. KillerVidz

    KillerVidz Rocky BANNED
    0/47

    Joined:
    Feb 20, 2012
    Messages:
    3,312
    Likes Received:
    1,280
    Trophy Points:
    0
    Gender:
    Male
    Location:
    XPG-UK
    Console:
    Xbox One
    Code is fine man, should work. Try this,

    JTAG = XRPC

    Code:
     this.Jtag.Connect();
                if (this.Jtag.activeConnection)
                {
                    this.Jtag.Notify(XRPC.XNotiyLogo.FLASHING_HAPPY_FACE, "Successfully Connected to RGH/JTAG/DEVKIT");
                    MessageBox.Show("Connected to RGH/JTAG/DEVKIT!");
                }
                else
                {
                    MessageBox.Show("Connection failed, please check your plugins and try again!");
                }
    
     

Share This Page

Close