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 


Creating Lua Extensions

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
The0neThe0nly
Expert Cheater
Reputation: 0

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Mon Jun 06, 2011 7:30 pm    Post subject: Creating Lua Extensions Reply with quote

I just downloaded 6.1 and I am wondering how to create Lua Extensions.
Anyone have a good tut?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Jun 06, 2011 7:42 pm    Post subject: Reply with quote

Depends on what ou mean with lua extension
The default lua extension as in a lua file you register or using ce's tools

for the default method check the lua websites

if using ce's tools:
Once you have created a nice form with stuff and scripts you need you can save that form to disk using the form_saveToFile to save your formdata.
Then you can save the current script to another file and add in some code that loads the form back as well(createFormFromFile) and spread that script+formfile around

When I get time I'll write an example, but if someone else has time, please go ahead

_________________
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
The0neThe0nly
Expert Cheater
Reputation: 0

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Mon Jun 06, 2011 7:52 pm    Post subject: Reply with quote

I hope I notice your example Razz
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Tue Jun 07, 2011 9:57 am    Post subject: Reply with quote

here is an example

First: Redownload ce if you installed it before this post (I encountered some major bugs, like the listbox component not being able to be added to the form with the designer)

Extract it to the ce folder and add "require("flashview")" to main.lua so it gets executed each time ce starts

Now when you open a process a window will pop up with memory regions that contain the flash file header

How it was made:
First the form was created with ce and saved into a cheat table
Then the code was written and tested using the cheat table

Then form_saveToFile was used on the form to save it to a file and the script was copy/pasted to flashview.lua



The Extension 'zip' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
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
Dave_Scream
Cheater
Reputation: 0

Joined: 06 Dec 2009
Posts: 36

PostPosted: Sat Jun 11, 2011 6:54 am    Post subject: Reply with quote

didnt understand..
need basic tutorial about for what this is and how to make somethink... DarkByte have no time for tutorials. plz make somewho else
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Jun 11, 2011 1:16 pm    Post subject: Reply with quote

I suggest you go and read up on Lua:
http://www.lua.org/pil/index.html

There is plenty of information regarding how to make extensions/modules in Lua on the net. Cheat Engine does nothing different to Lua with its implementation besides exposing personal API. So you should be able to understand all the tutorials on the net.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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