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 


[HELP] I'm making a script via array of bytes and it errors.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Mortalkombatman2
Newbie cheater
Reputation: 0

Joined: 24 Oct 2016
Posts: 12
Location: Gilbert, AZ

PostPosted: Sat Feb 25, 2017 4:04 am    Post subject: [HELP] I'm making a script via array of bytes and it errors. Reply with quote

Alright.

So here's the setup.

autoAssemble([[

registerSymbol(UnQueryablePropertyCheck)
registerSymbol(UnassignablePropertyCheck)
registerSymbol(idkwhatPropertyCheckthisis)

label(UnQueryablePropertyCheck)
label(UnassignablePropertyCheck)
label(idkwhatPropertyCheckthisis)

aobscan(SetUnQueryablePropertyCheck,75 2B 8B 41 04 83 78 14 10 72 02 8B 00 50 8D 45 E0 68 ?C ?? ?? ?? 50 E8)
aobscan(SetUnassignablePropertyCheck,75 2B 8B 41 04 83 78 14 10 72 02 8B 00 50 8D 45 E0 68 ?4 ?? ?? ?? 50 E8)
aobscan(SetidkwhatPropertyCheckthisis,75 2E 8B 45 08 8B 40 04 83 78 14 10 72 02 8B 00 50 8D 45 E0 68 C? ?? ?? ?? 50 E8)

SetUnQueryablePropertyCheck:
UnQueryablePropertyCheck:

SetUnassignablePropertyCheck:
UnassignablePropertyCheck:

SetidkwhatPropertyCheckthisis:
idkwhatPropertyCheckthisis:

]])

^^scans it

autoAssemble([[

UnQueryablePropertyCheck:
db EB

UnassignablePropertyCheck:
db EB

idkwhatPropertyCheckthisis:
db EB

]])

^^bypasses the checks

autoAssemble([[

UnQueryablePropertyCheck:
db 75

UnassignablePropertyCheck:
db 75

idkwhatPropertyCheckthisis:
db 75

]])

^^ restores the checks


but whenever i enable / disable it i get this error.

"Error:attempt to call a nil value"

Can someone please explain to me what I'm doing wrong?

Thanks, and help is greatly appreciated. <3


NOTE: Yes, the checks are located and given a symbol/label, they do get found and are valid.

_________________
will edit later
Back to top
View user's profile Send private message Send e-mail
Zanzer
I post too much
Reputation: 118

Joined: 09 Jun 2013
Posts: 3197

PostPosted: Sun Feb 26, 2017 8:15 am    Post subject: Reply with quote

Go to the line number mentioned in the error and fix the statement you're trying to call.
Code:
unknownvariable()

Code:
Error:[string "unknownvariable()
..."]:1: attempt to call a nil value (global 'unknownvariable')

Line: 1, Variable: unknownvariable
Back to top
View user's profile Send private message
Mortalkombatman2
Newbie cheater
Reputation: 0

Joined: 24 Oct 2016
Posts: 12
Location: Gilbert, AZ

PostPosted: Sat Mar 25, 2017 1:32 am    Post subject: Reply with quote

Zanzer wrote:
Go to the line number mentioned in the error and fix the statement you're trying to call.
Code:
unknownvariable()

Code:
Error:[string "unknownvariable()
..."]:1: attempt to call a nil value (global 'unknownvariable')

Line: 1, Variable: unknownvariable


it doesn't say the line error, i wrote the exact error that was showing. :\

_________________
will edit later
Back to top
View user's profile Send private message Send e-mail
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 403

PostPosted: Sat Mar 25, 2017 4:16 am    Post subject: Reply with quote

No help. No smile.... Sad 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