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 AOBScan returns something weird

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

Joined: 08 Sep 2012
Posts: 12

PostPosted: Wed Aug 28, 2013 7:16 am    Post subject: Lua AOBScan returns something weird Reply with quote

imgur (dot) com/3a1heiZ


Okay so can someone help/explain this?

Oh and just to be clear:
webplayer_win.UnityWinWebStartData+1CF510 does NOT equal to 0647FEC0

Edit:
Just an extra question:
The opcode I am trying to AOBScan writes to all of the players coordinate Y, can I somehow get the value for all those coordinates from a LUA script?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Aug 28, 2013 7:49 am    Post subject: Reply with quote

aobscan returns a Stringlist Object , not an address

print returns the address of the stringlist

To get the first result do print(asd[0])

asd.Count contains the total number of results so you can use a for loop that goes from 0 to asd.Count-1 and read asd[xxx] where xxx is the iterator of the for loop

You can use lua to set a breakpoint and capture each break there, or do a code injection that stores the coordinates, or use a code injection that uses the luaserver/luaclient communication pipe to send variables directly to cheat engine

_________________
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
Woza
Newbie cheater
Reputation: 0

Joined: 08 Sep 2012
Posts: 12

PostPosted: Wed Aug 28, 2013 9:02 am    Post subject: Reply with quote

Now I get this:

Code:
asd = AOBScan("48 89 87 8C 00 00 00 8B 47 74 0F B6 80 C2 00 00 00")
print(asd[0])

Error:[string "asd = AOBScan("48 89 87 8C 00 00 00 8B 47 7..."]:2: attempt to index global 'asd' (a userdata value)
Script Error



The cheat engine AOB search finds the address just fine.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Aug 28, 2013 9:56 am    Post subject: Reply with quote

Get 6.3 or use the strings_ class functions
_________________
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 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