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 


Repeating a difference?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
TheBlock-
How do I cheat?
Reputation: 0

Joined: 23 Jul 2015
Posts: 5

PostPosted: Thu Jul 23, 2015 10:53 pm    Post subject: Repeating a difference? Reply with quote

Let's say I have a ton of addresses and they all change at once.
How would I repeat exactly the change that happened?
I would like to be able to "capture" the values that I have in my cheat table, and then when they changed, be able to capture the new value and compare what kind of difference took place and what was subtracted,added to each.

How would I repeat exactly the change that happened?
Can someone help me? I've searched everywhere.
Back to top
View user's profile Send private message
kanakis
Cheater
Reputation: 0

Joined: 19 Feb 2015
Posts: 28

PostPosted: Fri Jul 24, 2015 12:03 am    Post subject: Reply with quote

i don't know if that is what you ask for, but you can make a program in c++ that assigns to variables the values on your cheat table.

then you can apply conditional statements to monitor your variables

but that's probably not what you ask for.

I would suggest to be more specific about what you are trying to achieve in your game.
Back to top
View user's profile Send private message
TheBlock-
How do I cheat?
Reputation: 0

Joined: 23 Jul 2015
Posts: 5

PostPosted: Fri Jul 24, 2015 12:38 am    Post subject: Reply with quote

I mean via CE
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Jul 24, 2015 1:48 pm    Post subject: Reply with quote

Unless you hook directly into the game code, the best you can do is query the value constantly, waiting for a change.
You could setup a timer in Lua and monitor each address value.
Then execute some code when the value changes and do whatever it is you want.
Of course, you'd be coding this whole thing in the same manner as you would a C++ program.
Back to top
View user's profile Send private message
TheBlock-
How do I cheat?
Reputation: 0

Joined: 23 Jul 2015
Posts: 5

PostPosted: Fri Jul 24, 2015 4:55 pm    Post subject: Reply with quote

How would I do something like that though?

For example, if one value was 4956 and it changed to 6923 it would output for that address that it changed +1967


Or, if one value was 7452 and it changed to 2354 it would output for that address that it changed -5098
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Jul 24, 2015 5:04 pm    Post subject: Reply with quote

Learn Lua.

Code:
[ENABLE]
{$lua}
io.output("C:/mydata.txt")
address = "blahblah"
previous = 0
timer=createTimer(nil)
timer.Interval = 100
timer.OnTimer = function(timer)
  local current = readInteger(address)
  if current != previous then
    io.write("%s = %d (%d)\n":format(address, current, current - previous))
    previous = current
  end
end
timer.Enabled = true
{$asm}
[DISABLE]
{$lua}
timer.Enabled = false
io.close()
{$asm}
Back to top
View user's profile Send private message
TheBlock-
How do I cheat?
Reputation: 0

Joined: 23 Jul 2015
Posts: 5

PostPosted: Sun Jul 26, 2015 5:26 pm    Post subject: Woow man, thanks! Reply with quote

Thanks man!
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