C# Problem (Simple Fix?)

Discussion in 'Programming & Scripting' started by 0x60, Sep 25, 2018 with 2 replies and 303 views.

  1. 0x60

    0x60 Newbie

    Messages:
    15
    Ratings:
    1
    Hey guys, ill just cut to the chase..

    Im currently making a JRPC & XRPC Tool (just incase anyone doesnt know what im talking about, this allows people to code tools and mod an xbox 360 console..) anyway.. im trying to add a Spoof Gold Feature & i have the offset which is "0x212x1BC" and once a button is clicked it will try send this function to the console.. (Using XDevKit & JRPC) Evansy.SetMemory(Evansy.ResolveFunction("xam.xex", 0x2120x1BC, new byte[] { 0x39, 0x60, 0, 1 }));

    *Evansy been apart of JRPC - IXboxConsole Evansy;*

    Everything is perfectly fine apart from the offset, it reads perfectly from "0x2120" and the "x1BC" is red underlined saying "the name 'x1BC' does not exist in the current context .. Syntax error, ',' Expected
     
  2. Twain

    Twain Kamehameha!

    Messages:
    671
    Ratings:
    232
    That's because '0x2120x1BC' is no valid "offset". An Address can only contain hexadecimal. That's why it fails at the second x, because x is no valid hexadecimal character.
     
    • Like Like x 1
    Last edited: Sep 27, 2018
  3. OP
    0x60

    0x60 Newbie

    Messages:
    15
    Ratings:
    1
    Ahh, i get it.. Thankyou. Also i found this in a 17526 offset post on a different site and havent seen it here and not sure if its useful to anyone but here it is
    Code:
    //Gold Spoof
    *(DWORD*)(0x816DAAFC) = 0x38600006;
    *(DWORD*)(0x81A3BCB8) = 0x38600001;
    *(DWORD*)(0x816DD640) = 0x39600001;
    *(DWORD*)(0x816DD6B4) = 0x39600001;
    *(DWORD*)(0x816DD6AC) = 0x39600001;
    *(DWORD*)(0x816DD6A0) = 0x39600001;
    DWORD li = 0x38600001;
    li += 5;
    SetMemory((LPVOID)(0x816DAAC0 + 0x34), &li, 4);
    SetMemory((LPVOID)(0x816DAB20 + 0x38), &li, 4);
     

Share This Page