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 use createMemoryRecord()?

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

Joined: 05 Nov 2014
Posts: 130

PostPosted: Sat Jan 23, 2016 7:17 am    Post subject: How to use createMemoryRecord()? Reply with quote

It's not explained in the main.lua and neither on the CEwiki....
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Sat Jan 23, 2016 7:30 am    Post subject: Reply with quote

Example code:
Code:
al=getAddressList()

newMR=al.createMemoryRecord();
newMR.Description= 'description e.g. Health'
newMR.Address='100500'
newMR.Type=vtDword


parentMR = al.getMemoryRecordByDescription('Player Attributes')
if parentMR~=nil then newMR.appendToEntry(parentMR) end

_________________


Last edited by mgr.inz.Player on Sat Jan 23, 2016 7:31 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Sat Jan 23, 2016 7:30 am    Post subject: Reply with quote

mgr.inz.Player wrote:
Example code:
Code:
al=getAddressList()

parentMR = al.getMemoryRecordByDescription('Player Attributes')



newMR=al.createMemoryRecord();
newMR.Description= 'description e.g. Health'
newMR.Address='100500'
newMR.Type=vtDword

newMR.appendToEntry(parentMR)


All I needed, thanks!
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Sat Jan 23, 2016 7:31 am    Post subject: Reply with quote

No problem Very Happy

PS: Quoting whole post Rolling Eyes

_________________
Back to top
View user's profile Send private message MSN Messenger
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