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 


Logging values

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions -> Guests
View previous topic :: View next topic  
Author Message
Guest565745756
Guest





PostPosted: Sun Jan 17, 2016 7:57 am    Post subject: Logging values Reply with quote

Hi is there a way to log all values of an address to a text file?

specifically, i want to log two addresses, the x and y coordinates of a character, then use both values to generate a map or route

so if you moved in a straight line, the text file would look like this

12,15
12,16
12,17
12,18

thank you
Back to top
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sun Jan 17, 2016 8:44 am    Post subject: Reply with quote

If you know some assembly, have found the function(s) that writes position and are familiar with printf, you can tweak the "Log FNV1 hashes" hack included in the table here: http://forum.cheatengine.org/viewtopic.php?p=5509059

Otherwise I guess you can put write breakpoints on x and y position and write a lua script that would redefine debugger_onBreakpoint(), read the position from this function and write it to file.
To find how debugger_onBreakpoint() works, and how to read an address from lua, check main.lua in cheat engine's directory and/or the the forum's search page.
To find how to write to file using lua, use google.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 137

Joined: 06 Jul 2014
Posts: 4250

PostPosted: Sun Jan 17, 2016 10:10 am    Post subject: Reply with quote

There's this script I made a bit ago. I made this in CE 6.4, but it seems to be working just fine for CE 6.5. This tracks the changes to an address using a timer, so if it changes too quickly, it won't get all the changes to it. Breakpoints would've been better but debug_getBreakpointList() was broken in CE 6.4 and I'm not going to go back and fix that script.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Guest123123
Guest





PostPosted: Sun Jan 17, 2016 1:16 pm    Post subject: Reply with quote

thanks i'll give it a go
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions -> Guests All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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