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 to make CEEdit show array of byte values?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 28

Joined: 13 Sep 2011
Posts: 1466

PostPosted: Fri Nov 02, 2012 6:50 pm    Post subject: How to make CEEdit show array of byte values? Reply with quote

So I tried this
setProperty (CETrainer_CEEdit1, "Text", readBytes ("money", 10))
But didn't show me bytes, and then show'd me "Not enough memory" when I tried to put 30, and then I put 10 again and it said access violation, and it got to freeze mode.

Anyway to translate it?

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 159

Joined: 07 Nov 2008
Posts: 4264
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Nov 03, 2012 7:52 am    Post subject: This post has 1 review(s) Reply with quote

Code:
resultArray = readBytes ("money",10,true)

for i=1,#resultArray do
  resultArray[i] = string.sub('0'..string.format('%X',resultArray[i]),-2)
end

control_setCaption(CETrainer_CEEdit1, table.concat(resultArray))


It should translate it to hex values.

_________________
Back to top
View user's profile Send private message MSN Messenger
DaSpamer
Grandmaster Cheater Supreme
Reputation: 28

Joined: 13 Sep 2011
Posts: 1466

PostPosted: Sat Nov 03, 2012 10:40 am    Post subject: Reply with quote

thank you.
_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
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