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 


Generate CE Table POINTER with LUA?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
neuronet
Newbie cheater
Reputation: 0

Joined: 01 Sep 2012
Posts: 11

PostPosted: Sun Mar 02, 2014 12:17 am    Post subject: Generate CE Table POINTER with LUA? Reply with quote

Is there a way to create a POINTER entry in the "cheattable" like:

Code:
    <CheatEntry>
      <ID>309</ID>
      <Description>"ResurrectOpen"</Description>
      <Color>80000008</Color>
      <VariableType>Byte</VariableType>
      <Address>18CB28C</Address>
      <Offsets>
        <Offset>40</Offset>
        <Offset>4A8</Offset>
        <Offset>1E4</Offset>
        <Offset>12FC4</Offset>
      </Offsets>
    </CheatEntry>

with Lua?

I can set fixed addresses, but haven't found smth about creating a pointer with Lua.

Thanks for help.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sun Mar 02, 2014 7:44 am    Post subject: Reply with quote

Code:
local List=getAddressList();
local NewRec=List.createMemoryRecord();
NewRec.setAddress("18CB28C");
NewRec.setOffsetCount(4);
NewRec.setOffset(0, 0x40);
NewRec.setOffset(1, 0x4A8);
NewRec.setOffset(2, 0x1E4);
NewRec.setOffset(3, 0x12FC4);
NewRec.setDescription("ResurrectOpen");
NewRec.Type=vtByte;

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
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: Sun Mar 02, 2014 7:48 am    Post subject: Reply with quote

Or

Code:
local List=getAddressList();
local NewRec=List.createMemoryRecord();
NewRec.setAddress(  "[[[[18CB28C]+12FC4]+1E4]+4A8]+40"  )
NewRec.setDescription("ResurrectOpen");
NewRec.Type=vtByte;

_________________
Back to top
View user's profile Send private message MSN Messenger
neuronet
Newbie cheater
Reputation: 0

Joined: 01 Sep 2012
Posts: 11

PostPosted: Sun Mar 02, 2014 1:12 pm    Post subject: Reply with quote

Thanks guys Cool
Back to top
View user's profile Send private message
jgrochoski
How do I cheat?
Reputation: 0

Joined: 04 Nov 2009
Posts: 9

PostPosted: Mon Mar 03, 2014 7:15 pm    Post subject: Reply with quote

What are the options for getAddressList().createMemoryRecord()?
for instance how do you specify 4 bytes?
NewRec.Type=4byte?
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: Mon Mar 03, 2014 7:18 pm    Post subject: Reply with quote

Read main.lua and defines.lua from CE dir.
Code:
NewRec.Type = vtDword

_________________
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