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 


Prevent Script from activating on EDIT?!!!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Sun May 23, 2021 8:45 am    Post subject: Prevent Script from activating on EDIT?!!! Reply with quote

Lua...
I edit script and closing it does it job ruining my progress having me to close game because script is NOT ready........

How to prevent lua script from running?
Why CE runs scrtipts on edit without them being ENABLED?

There was something with if syntax check then but i dont rember it fully.

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
Yuuki's
How do I cheat?
Reputation: 0

Joined: 14 Feb 2021
Posts: 6

PostPosted: Sun May 23, 2021 8:59 am    Post subject: Re: Prevent Script from activating on EDIT?!!! Reply with quote

[quote="Meiyoh"]Lua...
I edit script and closing it does it job ruining my progress having me to close game because script is NOT ready........

How to prevent lua script from running?
Why CE runs scrtipts on edit without them being ENABLED?

There was something with if syntax check then but i dont rember it fully.[/quote]

The LUA Table does not execute by itself. You may accidentally pressed on Execute button that cause the lua to run.
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sun May 23, 2021 10:27 am    Post subject: Reply with quote

You need to check the "syntaxcheck" variable and return if it's true. It's because of the way the lua script is used to supplement AA scripts, in many cases it needs to be ran to have the AA syntax check work correctly.
_________________
Back to top
View user's profile Send private message Visit poster's website
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Sun May 23, 2021 10:37 am    Post subject: Reply with quote

If you've watched these forums for long enough, surely you've come across this line:
Code:
if syntaxcheck then return end

Explanation here:
https://forum.cheatengine.org/viewtopic.php?p=5771267#5771267

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun May 23, 2021 12:02 pm    Post subject: Reply with quote

as for the question :Why:

the {$lua} block can return auto assembler code like aobscans, label definitions and just defines that the rest of the code relies on

_________________
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
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Mon May 24, 2021 3:30 am    Post subject: Reply with quote

Thanks all.
Will add the syntax check string to the beginning of the script after enable part.
Smile

_________________
I am the forgotten one the dead one.
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 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