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 


Create a circle and automatic update/read a adress. PLZ Help

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

Joined: 15 Mar 2012
Posts: 80

PostPosted: Wed Dec 24, 2014 8:52 am    Post subject: Create a circle and automatic update/read a adress. PLZ Help Reply with quote

Hi.

I have a small problem. I want to create a red circle that change to green if my CodeInjectionFoundFlag change to 1. I dont know how to create a circle and i dont know how i do a automatic update from CodeInjectionFoundFlag (as symbol) like a adress at the cheattable. Can anyone give me an example how i do that please?

Merry Christmas Smile
gunny
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Fri Dec 26, 2014 6:55 am    Post subject: Reply with quote

here is an example table with a form and an image which gets a red or green circle based on the value of the entry in the table
check the lua script



example.ct
 Description:

Download
 Filename:  example.ct
 Filesize:  1.81 KB
 Downloaded:  688 Time(s)


_________________
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
sir-gunny
Advanced Cheater
Reputation: 0

Joined: 15 Mar 2012
Posts: 80

PostPosted: Fri Dec 26, 2014 9:52 am    Post subject: Reply with quote

Hi Dark Byte.

Big THX!!! Smile

One small question again Very Happy :

is
Code:
getAddressList().getMemoryRecordByDescription("CodeInjectionFoundFlag").Value

faste then
Code:
readInteger(getAddress("MySymbol"))

??
What code is more efficiency?
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: Fri Dec 26, 2014 10:23 am    Post subject: Reply with quote

yes,
and readInteger("MySymbol") is even faster. At least, it is more legible.

_________________
Back to top
View user's profile Send private message MSN Messenger
sir-gunny
Advanced Cheater
Reputation: 0

Joined: 15 Mar 2012
Posts: 80

PostPosted: Fri Dec 26, 2014 3:09 pm    Post subject: Reply with quote

Hm... Now i have a problem with my Symbol... Sad


If i use getAddress("MySymbol") without a registered Symbol i get an error. If i use GetSymbolInfo i get always Nil, whatever i do.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Fri Dec 26, 2014 3:29 pm    Post subject: Reply with quote

use errorOnLookupFailure(false) to prevent the getAddress error
_________________
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
sir-gunny
Advanced Cheater
Reputation: 0

Joined: 15 Mar 2012
Posts: 80

PostPosted: Fri Dec 26, 2014 5:19 pm    Post subject: Reply with quote

Embarassed Embarassed Embarassed Rolling Eyes
Quote:

errorOnLookupFailure(state): If set to true (default) address lookups in stringform will raise an error if it can not be looked up. This includes symbolnames that are not defined and pointers that are bad. If set to false it will return 0 in those cases
(Useful for pointers that don't work 100% of the time)
6.4+:Returns the original state


If I had read the Helptext exactly, I would have found it. Big Sorry. All your Pro's have much sympathy(?) for noobs like me! BIIIIG THX Smile You are great!
Smile
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