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 


Lua script only run on 2nd launch

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
dewamade
How do I cheat?
Reputation: 0

Joined: 10 Oct 2013
Posts: 2

PostPosted: Thu Oct 10, 2013 1:26 pm    Post subject: Lua script only run on 2nd launch Reply with quote

Hi all, im new in cheat engine and also lua scripting,
my problem is lua script only can run on 2nd launch, first launch, the form show but the function i created is not working, i need to close the form (not cheat engine window) and re launch the script and then everything run ok including my function, my main problem is when i generate it to exe, it not working, the form loaded but the function not even if i close and relaunch for the 2nd time, it very strange to me , i used version 6.3, already remove and reinstall CE but the result is the same, please help me Confused
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Thu Oct 10, 2013 1:48 pm    Post subject: Reply with quote

you're trying to execute probably function that hasn't been executed.
Example
Code:

print(a) --> nil first execution
a = 'a is set'
-- Second time you'll execute it, it'll print 'a is set'
[/code]
_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
dewamade
How do I cheat?
Reputation: 0

Joined: 10 Oct 2013
Posts: 2

PostPosted: Thu Oct 10, 2013 8:07 pm    Post subject: Reply with quote

DaSpamer wrote:
you're trying to execute probably function that hasn't been executed.
Example
Code:

print(a) --> nil first execution
a = 'a is set'
-- Second time you'll execute it, it'll print 'a is set'
[/code]


oh i see, my bad, i show the form before cheat engine loaded all my function, thanks for your help, cheeeers Very Happy
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