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 


CE 7.3 Script Editor No Syntax Error

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

Joined: 05 Mar 2016
Posts: 75

PostPosted: Sun Sep 26, 2021 10:23 am    Post subject: CE 7.3 Script Editor No Syntax Error Reply with quote

If script has a syntax error, it errors with "Not all code is injectable (Access violation)" instead of showing the line number and error reported as in CE 7.2
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Sun Sep 26, 2021 10:52 am    Post subject: Reply with quote

Perhaps you have illegal instructions in the script. Without seeing the script no one can tell you what is causing the problem.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3321

PostPosted: Sun Sep 26, 2021 11:34 am    Post subject: Reply with quote

I got that message when I tried writing into unallocated memory (I commented out alloc() accidentally).
Back to top
View user's profile Send private message
dl748
Advanced Cheater
Reputation: 0

Joined: 05 Mar 2016
Posts: 75

PostPosted: Sun Sep 26, 2021 11:37 am    Post subject: Reply with quote

LeFiXER wrote:
Perhaps you have illegal instructions in the script. Without seeing the script no one can tell you what is causing the problem.


Doesn't matter, I can find out the error, its just that it doesn't tell you what the error is anymore. CE 7.2 says "Error on line x", CE 7.3 says "Access violation".

Its just a pain for a 12,000 line script with a syntax error.

Note: I'm not looking to FIX the script, I'm just reporting that CE 7.2 told you what the error was, CE 7.3 does not.



ce63.png
 Description:
 Filesize:  22.59 KB
 Viewed:  2315 Time(s)

ce63.png



ce62.png
 Description:
 Filesize:  23.54 KB
 Viewed:  2315 Time(s)

ce62.png


Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Sun Sep 26, 2021 11:58 am    Post subject: Reply with quote

dl748 wrote:

Doesn't matter, I can find out the error, its just that it doesn't tell you what the error is anymore. CE 7.2 says "Error on line x", CE 7.3 says "Access violation".

Its just a pain for a 12,000 line script with a syntax error.

Note: I'm not looking to FIX the script, I'm just reporting that CE 7.2 told you what the error was, CE 7.3 does not.


This clarifies better. Maybe DB will do something about this.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Sun Sep 26, 2021 1:42 pm    Post subject: Reply with quote

Your {$lua} block is blocking CE from seeing the [ENABLE]/[DISABLE] tags properly. You need to do something like this:

Code:

[ENABLE]
{$lua}
if (syntaxcheck) then return end
print('hello');
{$asm}

[DISABLE]

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Sep 26, 2021 1:55 pm    Post subject: Reply with quote

it's actually a more annoying issue. it's fixed on github, but there might be a chance for random issues when enabling scripts with lua errors
_________________
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
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