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 write a hex number(4bytes) to a address

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

Joined: 09 Mar 2012
Posts: 62

PostPosted: Sun Apr 01, 2018 11:15 pm    Post subject: how to write a hex number(4bytes) to a address Reply with quote

writeInteger("address",Number)

if Number is 1 Dec Number,the scipt can work
bug if the Numer is a Hex Numer ,how to make sript work correct?

====================
for example
i have a numer(a address finded by aobscan) named resultList[1]

resultList[1]=3E344C18

how can i write 3E344C18 to 3180000



1.JPG
 Description:
 Filesize:  103.72 KB
 Viewed:  2601 Time(s)

1.JPG


Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Mon Apr 02, 2018 12:23 am    Post subject: Reply with quote

"AOBscan" returns a string list.

If you're trying to writing a string as an integer you need to convert it to a number first.
Code:
writeInteger('123ABC00', tonumber('ABC12300', 16))

_________________
Back to top
View user's profile Send private message Visit poster's website
cancandodo
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2012
Posts: 62

PostPosted: Mon Apr 02, 2018 7:43 am    Post subject: Reply with quote

tks!
work correct!
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