What's new

C# PS3 Tool - How to work with pointers ?

  • Thread starter storm2000
  • Start date
  • Views 2,232
S

storm2000

Newbie
Messages
2
Reaction score
0
Hello everyone.
I'm working on a tool (On a solo game, no online cheating) for my PS3, I'm using Visual Studio, on C#

So I have made the connection button, the button that change the numbers of items I have on a static adress, it's working, great.
On NetCheat, it's looking like this:
0 011DE998 0001

Coded into VS, it's like this:
byte[] Items1 = new byte[] { 0x00, 0x01 };
PS3.SetMemory(0x011DE998, Items1);



Thing is, this is where I'm stuck, and since I'm no programmer at all, how to get a dynamic adress and mod it ?

On NetCheat, I have found a pointer, and an offset, which are working
"6 005F5C08 00000214
0 00000000 46000000"

now... the question is.... what is the code that tell the software to go to the first adress "005F5C08", read the 4 bytes, then add 214 to it, and tell me the value there ?

Thanks for helping me sorting this out.
Storm2000
 
I

iHateLiars

Enthusiast
Messages
41
Reaction score
31
Offsets are in hex. Memory starts at 0x00. So 0x005F5C08 + 0xD6. Or convert to decimal, then add, then convert back, extend to 8 chars with left-padding 00's. If the memory does not start at 0x00 then just do a bit of simple math...
 
R

RealMaster

Enthusiast
Messages
45
Reaction score
46
now... the question is.... what is the code that tell the software to go to the first adress "005F5C08", read the 4 bytes, then add 214 to it, and tell me the value there ?

NetCheat PS3 PluginInterface
Code:
UInt32 ptr = NCInterface.PS3Lib_ReadUInt32(0x005F5C08);
ptr += 214;
UInt32 value = NCInterface.PS3Lib_ReadUInt32(ptr);
NCInterface.PS3Lib_WriteUInt32(ptr, 0x00000001);

...or...

Using PS3Lib
Code:
UInt32 ptr = PS3.Extension.ReadUInt32(0x005F5C08);
ptr += 214;
UInt32 value = PS3.Extension.ReadUInt32(ptr);
PS3.Extension.WriteUInt32(ptr, 0x00000001);
 
S

storm2000

Newbie
Messages
2
Reaction score
0
Sorry for answering so late, many thanks! I'll look forward to this to complete my tool. <3
 
Top Bottom