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 


How to select first five or desired addresses from ...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
nepgaxbg
How do I cheat?
Reputation: 0

Joined: 22 Dec 2016
Posts: 3

PostPosted: Thu Dec 22, 2016 9:10 am    Post subject: How to select first five or desired addresses from ... Reply with quote

Hello. At first I`m using auto assembled code with my modifications. I`m using a script which accesses multiple addresses. There are 2 problems here.

First : You can see in the picture that there is certain amount of addresses but they are not all.
I`m using mov [r9+0000009C],#value

I want to limit the usage for the first 15 addresses or smth because it changes more than 100 (how I know ? because I can find them manually) and I don't need them ...

Second : I`ve used data structures before but I don't think that can help in this situation. Last time I`ve managed to do it with "cmp" but I could switch sides and the
"find out what address this instruction access" only showed 2 addresses so with the "cmp" I`ve succeed.

Any ideas how can I limit for example the first 10 or 15 addresses which are accessed ?

P.S. : I forgot to mention that those addresses are following the first one. They are not random. For example if I get the first one and make a limit till 1F40 (8000) they`ll be there and it will get only the desired one. Shortly script diapason will be working perfect.



Screenshot_816.png
 Description:
 Filesize:  53.15 KB
 Viewed:  4636 Time(s)

Screenshot_816.png




Last edited by nepgaxbg on Thu Dec 22, 2016 9:23 am; edited 1 time in total
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: Thu Dec 22, 2016 9:23 am    Post subject: Re: How to select first five or desired addresses from " Reply with quote

You will have to use Lua script
_________________
...
Back to top
View user's profile Send private message
nepgaxbg
How do I cheat?
Reputation: 0

Joined: 22 Dec 2016
Posts: 3

PostPosted: Thu Dec 22, 2016 9:24 am    Post subject: Re: How to select first five or desired addresses from " Reply with quote

Filipe_Br wrote:
You will have to use Lua script

you dont say ... If i knew how I wouldn't ask lol ...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Dec 22, 2016 9:59 am    Post subject: Reply with quote

why not a code injection where you store the first 5 addresses and then continue unfiltered?
_________________
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
nepgaxbg
How do I cheat?
Reputation: 0

Joined: 22 Dec 2016
Posts: 3

PostPosted: Thu Dec 22, 2016 10:01 am    Post subject: Reply with quote

Dark Byte wrote:
why not a code injection where you store the first 5 addresses and then continue unfiltered?

Can you give me an example ?

"name.dll"+51024 is in my aa script. It accesses all those addresses. How can I store the first 5 ? They are different every time and their values.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Fri Dec 23, 2016 1:55 am    Post subject: Reply with quote

in the injection allocate a counter and storage for 10 wntries

then each time write the address to the next available storage and increase the counter

e.g
:
Code:

alloc(counter,4)
alloc(storage,40)
registersymbol(storage)

...
cmp [counter],#10
jae full
make it so eax contains the address (you didn't post the instruction so no idea.
...
push ebx
mov ebx,[counter]
mov [storage+ebx*4],eax
pop ebx

full:
originalcode
jmp back

...
coseinjection stuff
...


_________________
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