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 


How can I copy a section of memory to a file?

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

Joined: 22 Oct 2014
Posts: 49

PostPosted: Fri Nov 14, 2014 11:39 pm    Post subject: How can I copy a section of memory to a file? Reply with quote

So I've created an AA script to copy some memory into a section that I've alloc'd. How can I now copy that memory out to a file? Do I need to use the lua engine?

Thanks in advance!

_________________
A guy who likes memory hacking.
Back to top
View user's profile Send private message
pox911
Grandmaster Cheater
Reputation: 28

Joined: 29 Nov 2008
Posts: 918

PostPosted: Sat Nov 15, 2014 12:36 am    Post subject: Reply with quote

i guess it depends on how you want it copied out. You could code up a lua script to save it to file, you could just open up the section you copied it to if you make a symbol to point to it and just manually copy and paste it into a text file, or you could paste it into a hex editor and save it raw like that if you dont want to use a text program.

Any extra info on how you want it written?
Back to top
View user's profile Send private message
BanCheese
Cheater
Reputation: 0

Joined: 22 Oct 2014
Posts: 49

PostPosted: Sat Nov 15, 2014 12:38 am    Post subject: Reply with quote

It'd certainly need to be automated, as the section I want to copy is several MB. How would I go about using a lua script? I know how to write to a file, etc. in lua, but how do I read the memory?
_________________
A guy who likes memory hacking.
Back to top
View user's profile Send private message
pox911
Grandmaster Cheater
Reputation: 28

Joined: 29 Nov 2008
Posts: 918

PostPosted: Sat Nov 15, 2014 12:44 am    Post subject: Reply with quote

There are probably some with a better answer than me but here's what i know.

The best way i can think of is if your ASM is pointing to the correct location and has a symbol for it, then should be able to use the writeRegionToFile command. The way it is setup, it should do exactly what you are looking for. You could probably set it up via hotkey or something. I'm not sure how often it needs to be done or if timing is key or not.

Code:
writeRegionToFile(filename, sourceaddress,size) : Writes the given region to a file. Returns the number of bytes written
Back to top
View user's profile Send private message
BanCheese
Cheater
Reputation: 0

Joined: 22 Oct 2014
Posts: 49

PostPosted: Sat Nov 15, 2014 12:46 am    Post subject: Reply with quote

Ah, this is exactly what I'm looking for. Thanks so much!
_________________
A guy who likes memory hacking.
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