Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


finding a tricky value

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
sangeli
Master Cheater
Reputation: 0

Joined: 07 Dec 2006
Posts: 406

PostPosted: Fri Jul 23, 2010 7:11 pm    Post subject: finding a tricky value Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

Joined: 09 May 2003
Posts: 25902
Location: The netherlands

PostPosted: Fri Jul 23, 2010 7:24 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
sangeli
Master Cheater
Reputation: 0

Joined: 07 Dec 2006
Posts: 406

PostPosted: Fri Jul 23, 2010 9:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
XaLeX
Expert Cheater
Reputation: 0

Joined: 19 Aug 2008
Posts: 226

PostPosted: Sat Jul 24, 2010 3:25 am    Post subject: Reply with quote

it's not very elegant, but you can read (-1^x) as (x%2?-1:1).
Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Sat Jul 24, 2010 3:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites