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 


Save memory region as 4 bytes decimal

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





PostPosted: Wed May 15, 2013 9:42 am    Post subject: Save memory region as 4 bytes decimal Reply with quote

The save memory region function saves everything as a byte hex.
Is there a way to save it as 4 bytes decimal instead?
If not, then perhaps, is there a way to copy all the 4 bytes decimals in a certain range to the clip board?

Thanks in advance.
Back to top
jucce
Advanced Cheater
Reputation: 1

Joined: 02 Apr 2013
Posts: 99

PostPosted: Wed May 15, 2013 7:06 pm    Post subject: Reply with quote

So you want to instead of saving a memory region as
Code:
FF EE AA 11 00 22 33 99
get the output (in ASCII) as?
Code:
4293831185 2241433


Or do you want any possible combination of 4 byte values? I mean it all depends on where you consider the start to be.
Code:
[FF EE AA 11] 00 22 33 99
Code:
FF [EE AA 11 00] 22 33 99
Code:
FF EE [AA 11 00 22] 33 99
And so on.

I would suggest saving the memory dump without headers and then making a small tool of your own that goes through it reading 4 byte chunks and outputting the corresponding integer value.
Back to top
View user's profile Send private message
G. Uest
Guest





PostPosted: Wed May 15, 2013 8:26 pm    Post subject: Reply with quote

jucce wrote:
So you want to instead of saving a memory region as
Code:
FF EE AA 11 00 22 33 99
get the output (in ASCII) as?
Code:
4293831185 2241433

I would suggest saving the memory dump without headers and then making a small tool of your own that goes through it reading 4 byte chunks and outputting the corresponding integer value.


Code:

Instead of this
01 00 00 00 fa 00 00 00 a8 61 00 00
save this
1           250         25000


Because, in the memory viewer, I can save the byte hex, either by the save memory region option, or highlight and copy directly.
But if I change the display type to 4 byte decimal, it won't let me highlight and copy.

Essentially, I need to save a copy of what I see in the memory viewer with display type on 4 byte decimal.

It's already shown there, but it just won't let me highlight and copy it.
Back to top
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu May 16, 2013 2:07 am    Post subject: Reply with quote

Save memory region does not save as hex but as binary

Anyhow, you could try lua and a for loop and in there call readInteger(address+xxx), add the result to a string and when done save that string to the clipboard

_________________
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
Guest






PostPosted: Sat May 18, 2013 9:32 am    Post subject: Reply with quote

Dark Byte wrote:
Save memory region does not save as hex but as binary

Anyhow, you could try lua and a for loop and in there call readInteger(address+xxx), add the result to a string and when done save that string to the clipboard


Thanks. That's what I was looking for.

I managed to make the code and it works.

Code:


addressStart = 0x09EA99B3
addressEnd = 0x09EA9A72
addressDiff = addressEnd - addressStart

result = ""
for i = 0,addressDiff,4 do
   result = result..readInteger(addressStart+i)

   if (i+4) % 16 == 0 then
      result = result.."\n"
   else
      result = result.."      "
   end
end

writeToClipboard(result)

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