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 


Dump Code to File/Clipboard

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

Joined: 20 Dec 2014
Posts: 103

PostPosted: Sat Jan 21, 2017 11:16 am    Post subject: Dump Code to File/Clipboard Reply with quote

Is there a way to copy a range (could be a function) of opcodes to the clipboard or to a file ?

I would be informing the range I would like to copy.

Thanks
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sat Jan 21, 2017 8:43 pm    Post subject: Reply with quote

If I am not misunderstood, use HxD

ref : http://thestarman.pcministry.com/asm/mbr/UsingHxD.htm


or if doing in CE memory viewer, block the range and then use "copy to clipboard", open notepad and paste there.
Back to top
View user's profile Send private message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Sun Jan 22, 2017 1:26 pm    Post subject: Reply with quote

Well, not really.

I am using Save Disassembled Output, but for example I can't dump a whole module to a file (Cheat Engine 6.6).

So, wanted to see an alternative via LUA or if it can be fixed. The above creates a file but stops saving at a determined offset, truncating the range you want to save. Is this a bug?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Jan 22, 2017 1:31 pm    Post subject: Reply with quote

you can use the disassemble() command on each line till the end, but in another post you mentioned you also want the pdb specific info like function params. That is currently not exposed
_________________
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
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Sun Jan 22, 2017 1:37 pm    Post subject: Reply with quote

Ok thanks. Is there a way to disassemble a whole module to a file, without restriction of its size ?
Back to top
View user's profile Send private message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Mon Jan 23, 2017 4:16 pm    Post subject: Reply with quote

Dark Byte? The Save Disassembled Output saves sometimes and hangs in other cases.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Jan 23, 2017 5:45 pm    Post subject: Reply with quote

i've never seen it hang. you can pinpoint the region it freezes ?
(and are you sure not freezes and not just slow?)

_________________
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
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Mon Jan 23, 2017 6:05 pm    Post subject: Reply with quote

I am saving quite a big range.
I select the region, then select the file in the browser and hit OK it starts writing to it until it stops writing data - the file does not increase its size nor content. I need to cancel the operation as this holds. The file created is around 30MB, sometimes smaller e.g. 5MB.
Using CE 6.6 64Bit, latest download

EDIT: If I take the last line in the text file - module+offset where the file got truncated and try to save a new range beginning from there, it creates an empty file and freezes. It seems like something related to that address (or the string as from of that point onwards) gets corrupted.
Back to top
View user's profile Send private message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Thu Jan 26, 2017 2:56 pm    Post subject: Reply with quote

Dark Byte, could you replicate this?

Any solution?

Thanks
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Jan 26, 2017 3:03 pm    Post subject: Reply with quote

not yet.
may help to see the bytes if the affected region

_________________
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
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Fri Jan 27, 2017 5:06 am    Post subject: Reply with quote

How much data (bytes) should I send you ? Do you have an email?
Thanks
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 Lua Scripting 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