Question with calculating an address in a private base in SC

Need Help With an Existing Feature in Memory Hacking Software? Ask Here

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Question with calculating an address in a private base in SC

Postby PercyPierce » Thu Feb 02, 2017 3:16 pm

Hi guys! Sorry if this question has been asked before but I just figured out how to get the script editor to work, and I came up with this code.

Code: Select all
VOID Lock ( MHS_ADDRESS aAddress, INT iItemSize )
{
extern INT p2buttons = { "", aAddress };  // This is the address of the joystick that's plugged into the computer that the emulator picks up. A PRIVATE address that moves when I reboot the emulator.
extern BYTE P2facing = { "", ssf.exe + 6473071 }; // This is a variable that tells me if the player is facing right or left (0 or 1).


// I put no code here yet

}

I get a compile error when I press ok. My question is how do I get the script to calculate addresses across modules? It doesn't seem as simple as it is when using the expression evaluator.
PercyPierce
I Have A Few Questions
 
Posts: 2
Joined: Sun Jan 29, 2017 11:26 am

Re: Question with calculating an address in a private base in SC

Postby L. Spiro » Thu Feb 02, 2017 4:15 pm

Code: Select all
extern BYTE P2facing = { "", ssf.exe + 6473071 };

should be:
Code: Select all
extern BYTE P2facing = { "ssf.exe", + 6473071 };



L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3121
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Re: Question with calculating an address in a private base in SC

Postby PercyPierce » Thu Feb 02, 2017 4:53 pm

Thanks L!
PercyPierce
I Have A Few Questions
 
Posts: 2
Joined: Sun Jan 29, 2017 11:26 am


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest