| View previous topic :: View next topic |
| Author |
Message |
sangeli Master Cheater
Reputation: 0
Joined: 07 Dec 2006 Posts: 406
|
Posted: Fri Jul 23, 2010 7:11 pm Post subject: finding a tricky value |
|
|
lets say a game stored money like this:
money = (real_value + 4) * 3 * -1^real_value;
so when the real amount of money is 3 the stored value is -21 and 6 is 30 etc etc
how would you find the pattern/address for that variable with CE? its hard to predict but easy to do in a program.
_________________
| Dark Byte wrote: | | ce can certainly damage hardware let's say you have a robotarm attached to your computer, and the software limits usually block it from ripping out it's own cpu. If you remove that limit and then issue the command to rip out the cpu, sure, say goodbye to your hardware |
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25902 Location: The netherlands
|
Posted: Fri Jul 23, 2010 7:24 pm Post subject: |
|
|
changed/unchanged scans and experimenting with freezing/editing groups of addresses and check what happens
Most often an increased/decrease will find it as well
Off-topic:
here's a nice exercise in math,
Write a formula that converts money back to real_value from the example formula of :"money = (real_value + 4) * 3 * -1^real_value;"
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
sangeli Master Cheater
Reputation: 0
Joined: 07 Dec 2006 Posts: 406
|
Posted: Fri Jul 23, 2010 9:03 pm Post subject: |
|
|
i tried and failed. log base -1 melted my brain
_________________
| Dark Byte wrote: | | ce can certainly damage hardware let's say you have a robotarm attached to your computer, and the software limits usually block it from ripping out it's own cpu. If you remove that limit and then issue the command to rip out the cpu, sure, say goodbye to your hardware |
|
|
| Back to top |
|
 |
XaLeX Expert Cheater
Reputation: 0
Joined: 19 Aug 2008 Posts: 226
|
Posted: Sat Jul 24, 2010 3:25 am Post subject: |
|
|
| it's not very elegant, but you can read (-1^x) as (x%2?-1:1).
|
|
| Back to top |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 893
|
Posted: Sat Jul 24, 2010 3:28 am Post subject: |
|
|
| There are plenty of cases where functions must be defined in a piecewise fashion. No big deal. The only alternative expression I'm aware of is using Lambert's W, and it's much uglier (and much less useful).
|
|
| Back to top |
|
 |
|