What's new

Solved How would I use offsets?

J

Jakerxiii

Enthusiast
Messages
50
Reaction score
3
I have found a few offsets but when I try to mod them I get no result. For example I found a no recoil offset on google for TU18. The offset was 0x5F0030 but to turn it on you had to enter some bytes. The bytes were 2C 04 00 00. I tried to do
Code:
xrgh.Call(0x5F0030, 0, new byte[] { 0x2C, 0x04, 0x00, 0x00 });
to no avail. I also have a VSAT offset that doesn't work. I don't get an error and I also don't get the specified result. How would I call these using XRPC/JRPCv2 as I can use either? Any help would be appreciated, thanks.
 
X

XeCrash

C++, C# Coder/Support
Messages
690
Reaction score
144
That's because that offset isn't for the Xbox version of the game you have the PS3 offset for future reference if you look on the site next-gen update or the title of a thread has 1.19 in it. You are more than likely are going to get PS3 offsets not Xbox offsets

The examples below will show you how to use offsets with JRPC

How to turn VSAT ON and OFF with Xbox offset
Code:
//VSAT on
rgh.SetMemory(0x821B8FD3, new byte[] { 0x1 });

//VSAT off
rgh.SetMemory(0x821B8FD3, new byte[] { 0 });

How to turn ON and OFF No Recoil
Code:
//No Recoil ON
rgh.SetMemory(0x82259BC8, new byte[] { 0x60, 0x00, 0x00, 0x00 }); //The bytes are set to 0x60, 00, 00, 00 because this stand for a nop instruction in PPC essentially nulling the recoil value

//No Recoil OFF
rgh.SetMemory(0x82259BC8, new byte[] { 0x48, 0x46, 0x13, 0x41 }); //This takes the null value we set and resets the recoil value to default
 
J

Jakerxiii

Enthusiast
Messages
50
Reaction score
3
That's because that offset isn't for the Xbox version of the game you have the PS3 offset for future reference if you look on the site next-gen update or the title of a thread has 1.19 in it. You are more than likely are going to get PS3 offsets not Xbox offsets

The examples below will show you how to use offsets with JRPC

How to turn VSAT ON and OFF with Xbox offset
Code:
//VSAT on
rgh.SetMemory(0x821B8FD3, new byte[] { 0x1 });

//VSAT off
rgh.SetMemory(0x821B8FD3, new byte[] { 0 });

How to turn ON and OFF No Recoil
Code:
//No Recoil ON
rgh.SetMemory(0x82259BC8, new byte[] { 0x60, 0x00, 0x00, 0x00 }); //The bytes are set to 0x60, 00, 00, 00 because this stand for a nop instruction in PPC essentially nulling the recoil value

//No Recoil OFF
rgh.SetMemory(0x82259BC8, new byte[] { 0x48, 0x46, 0x13, 0x41 }); //This takes the null value we set and resets the recoil value to default
Thankyou for the help and fast reply, I appreciate it.
 
Top Bottom