Mr.Binary
Enthusiast
Since this section needs to be revived, heres how you make an RPC.
First off, you will need 2 .dll files, you can find these .dll files almost anywhere at this point. Download HERE
What you need to do for this tutorial is open Visual Studio(My preference, VS 2012 Ultimate, but you need to have NET Frame 4.0 and up)
Choose "Windows Form" and name it what ever you like .
Next were going to add in the .dlls you should have downloaded earlier.
Pictures:
Right Click on References - http://puu.sh/3H9pz.png
Click "Add Reference" and a window will popup - http://puu.sh/3H9sv.png
Click the Browse(You should not have anything in there if this is your first time doing this ) - http://puu.sh/3H9ut.png
Click browse and search the folder that you have the files in.
Hit Ctrl and click on them (saves time)
Click OK and then OK again. (These references will move to your bin\Debug if your debugging the program)
Now to call them.
I don't expect you to write all these down. Just C/P.
Now that you have called the .dll files and everything else you would need for this project, time to connect to your console
Set a button and 2 labels on your project designer.
Make one of the labels "Connection Status:" or what ever you would like.
The second label will be used to see if you are connected to the console.
This one is usually labeled "Not Connected" if you wanna go for a more sophisticated look to it make it say "Connection Not Established"
Button1 will be used to connect to the console, so if you lose connection you can re-connect.
(Mine uses a timer, it tries the connection every 15 min. Don't laugh at my code, it works )
Now that you have that, your connection should be almost instant (depending on your Internet)
So since you now are done with what I believe to be the boring portion of the XRPC, time for the fun shtuff.
===================================MW2===================================
Now what you will need to do is get the SV, since I'm nice im not expecting you to go searching the internet.
MW2 SV: 0x82254940(This is the offset you will use for most calls for commands to your console)
How You Call A Command to your console:
Jtag.Call(Offset, client, 0, "CC* Dvar/Command")
*Character Commands:
s = setClientDvar (Infects everyone in the lobby)
c = iPrintInBold (Puts Text In Center Of Screen, not permanent)
f = iPrintIn (Text Above Kill feed, not permanent)
J = setPlayerData (Allows You To Unlock Challenges, Sets Stats, etc.)
M = setVisionNaked (Sets on of the _mp visions)
d = Fog (Sets tint and thickness of fog)
EX[SUP]1[/SUP]: Jtag.Call(0x82254940, -1, 0, "d 13 256 0.00135 0.4 0.4 1 0.3 0 0");//Sends Purple Fog to All Clients(set up with a button)
Clients:
Your clients will go from 0-17*
*System link 0 = host, online the host can either be 6-13, Rare to get 0 = host online.
===================================MW2===================================
I will be adding more later, ATM im extremely tired, if this post gets popular than I will make a little RPC and put the source on here
Thanks Guys,
~Mr.Binary
P.S. Sorry if its in the wrong section, I guess its for both C# and gaming so i chose gaming xD
First off, you will need 2 .dll files, you can find these .dll files almost anywhere at this point. Download HERE
What you need to do for this tutorial is open Visual Studio(My preference, VS 2012 Ultimate, but you need to have NET Frame 4.0 and up)
Choose "Windows Form" and name it what ever you like .
Next were going to add in the .dlls you should have downloaded earlier.
Pictures:
Right Click on References - http://puu.sh/3H9pz.png
Click "Add Reference" and a window will popup - http://puu.sh/3H9sv.png
Click the Browse(You should not have anything in there if this is your first time doing this ) - http://puu.sh/3H9ut.png
Click browse and search the folder that you have the files in.
Hit Ctrl and click on them (saves time)
Click OK and then OK again. (These references will move to your bin\Debug if your debugging the program)
Now to call them.
I don't expect you to write all these down. Just C/P.
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using XRPCLib;
using XDevkit;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using XRPCLib;
using System.Windows.Forms;
using System.Threading;
using System.IO;
using System.Xml;
Code:
namespace (Your Namespace)
{
public partial class Form1 : Form
{
XRPC Jtag = new XRPC();
<or>
XRPC <Custom Name> = new XRPC();
public static IXboxManager xbm = new XboxManager();
public static XboxConsole xboxConsole = xbm.OpenConsole(xbm.DefaultConsole);
private static byte[] myBuffer = new byte[0x20];
private byte[] noclip;
private uint nigo = 1;
private byte[] max = new byte[] { 0xff };
private byte[] Ufo;
private byte[] unfreeze;
private byte[] godmode;
private byte[] Freeze;
private byte[] NightVision;
private static byte[] CheeseBuffer;
private static uint outInt;
private float x;
private float y;
private float z;
public byte[] dak { get; set; }
private byte[] thermal = new byte[] { 13 };
bool[] Died = { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false };
byte[] buffer = new byte[4];
int ClientNum = 0;
byte[] data = new byte[] { Convert.ToByte(0x10) };
<Button Monitoring>
string LT = "2056";
string RT = "65536";
string LB = "32768";
string RB = "16384";
string LStick = "139264";
string RStick = "256";
string X = "2097152";
string B = "262144";
string A = "1024";
string Start = "64"; // Pause Menu
string RTplusLT = "67592";
string LTplusB = "264200";
string LBplusRB = "49152";
string LTplusX = "2099208";
string ProneplusX = "2097408";
Now that you have called the .dll files and everything else you would need for this project, time to connect to your console
Set a button and 2 labels on your project designer.
Make one of the labels "Connection Status:" or what ever you would like.
The second label will be used to see if you are connected to the console.
This one is usually labeled "Not Connected" if you wanna go for a more sophisticated look to it make it say "Connection Not Established"
Button1 will be used to connect to the console, so if you lose connection you can re-connect.
(Mine uses a timer, it tries the connection every 15 min. Don't laugh at my code, it works )
Code:
private void button1_Click(object sender, EventArgs e)
{
Jtag.Connect();
if (Jtag.activeConnection)
{
label2.ForeColor = (Color.Green);
label2.Text = ("Jtag Connected");
System.Windows.Forms.MessageBox.Show("Active Connection");
button1.Text = ("Re-Connect To Jtag");
timer.Start();
timer.Interval = (900) * (900);//900 = 15 Min.
timer.Tick += new EventHandler(timer_Tick);
}
else
{
label2.ForeColor = (Color.Red);
label2.Text = ("Failed");
System.Windows.Forms.MessageBox.Show("Please check your Plugins and Try Again");
}
}
void timer_Tick(object sender, EventArgs e)
{
Jtag.Connect();
if (Jtag.activeConnection)
{
MessageBox.Show("Still Connected");
timer.Stop();
timer1.Start();
}
else
{
label2.ForeColor = (Color.Red);
label2.Text = ("Jtag Disconnected");
System.Windows.Forms.MessageBox.Show("Its Seems There Has Been An Error Connecting To Your Console!");
}
timer.Start();
}
Now that you have that, your connection should be almost instant (depending on your Internet)
So since you now are done with what I believe to be the boring portion of the XRPC, time for the fun shtuff.
===================================MW2===================================
Now what you will need to do is get the SV, since I'm nice im not expecting you to go searching the internet.
MW2 SV: 0x82254940(This is the offset you will use for most calls for commands to your console)
How You Call A Command to your console:
Jtag.Call(Offset, client, 0, "CC* Dvar/Command")
*Character Commands:
s = setClientDvar (Infects everyone in the lobby)
c = iPrintInBold (Puts Text In Center Of Screen, not permanent)
f = iPrintIn (Text Above Kill feed, not permanent)
J = setPlayerData (Allows You To Unlock Challenges, Sets Stats, etc.)
M = setVisionNaked (Sets on of the _mp visions)
d = Fog (Sets tint and thickness of fog)
EX[SUP]1[/SUP]: Jtag.Call(0x82254940, -1, 0, "d 13 256 0.00135 0.4 0.4 1 0.3 0 0");//Sends Purple Fog to All Clients(set up with a button)
Clients:
Your clients will go from 0-17*
*System link 0 = host, online the host can either be 6-13, Rare to get 0 = host online.
===================================MW2===================================
I will be adding more later, ATM im extremely tired, if this post gets popular than I will make a little RPC and put the source on here
Thanks Guys,
~Mr.Binary
P.S. Sorry if its in the wrong section, I guess its for both C# and gaming so i chose gaming xD
Last edited: