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 


Free pascal graphics scripts symbol syntax in Lua

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

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sun Sep 27, 2020 8:27 am    Post subject: Free pascal graphics scripts symbol syntax in Lua Reply with quote

I try to find out what is this FP script syntax mean.

1. p^.red = bla...bla...bla
(what is the ^ symbol mean. How to write it in Lua?.

2. Phase
Inc(x, -1) -- I knew this mean x = x + (-1)

but in graphics

color = red

Inc(color) -- this should be color = green

How to write it in Lua?

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Sep 27, 2020 8:35 am    Post subject: Reply with quote

1: ^ means dereference the pointer that p points to

2: i have no idea what x is, what it points to

You can not use pointer in lua unless you use memory access functions like writeIntegerLocal, which defeats the purpose of using direct memory access to speed things up

If you want stuff to go faster, write a plugin for CE in whatever language you like(except lua) load it with CE, and then pass it the canvas handle(GDI) which you can then use to draw with in that other language

_________________
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
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sun Sep 27, 2020 10:03 am    Post subject: Reply with quote

Thanks DB, for explanation and suggestion. Yes, the progress using get/set pixel on graphics in Lua is extremely slow because using direct memory access.
And sure, I start considering to use a plugin especially for graphics processing in CE.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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