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 


What is wrong?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Sun Aug 07, 2016 10:51 am    Post subject: What is wrong? Reply with quote

I'm already out of patience, I tried to make this script different and without this error happens. "Error: [string" result = AOBScan ("F3 0F 42 20 7E 7E F3 0F 49 20 ..."]: 8: attempt to perform arithmetic on a nil value (global 'edx'). "
I'm debugging the right address, most of this error, if I manually is the cheat engine trying to get the of instruction I can address, but no Lua.
0D6913A3 - F3 0F7E 42 20 - movq xmm0,[edx+20]


Code:

result=AOBScan("F3 0F 7E 42 20 F3 0F 7E 49 20 F2 0F 5C C1")
ad=getAddress(stringlist_getString(result, 0))

debug_setBreakpoint(ad)
debug_continueFromBreakpoint(co_run)

function debugger_onBreakpoint()
   a=edx+20
  return 1
end
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Aug 07, 2016 11:13 am    Post subject: Reply with quote

Capitalize it: EDX
Back to top
View user's profile Send private message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Sun Aug 07, 2016 12:36 pm    Post subject: Reply with quote

Zanzer wrote:
Capitalize it: EDX

I did not understand
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Aug 07, 2016 1:12 pm    Post subject: Reply with quote

Change edx to EDX.

edx = bad
EDX = good

Very Happy
Back to top
View user's profile Send private message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Sun Aug 07, 2016 2:37 pm    Post subject: Reply with quote

I do not know how I made a stupid mistake this.
Thank you for your help Wink
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