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 freeze a constantly changing value?

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

Joined: 04 Aug 2023
Posts: 6

PostPosted: Fri Aug 04, 2023 5:44 am    Post subject: How to freeze a constantly changing value? Reply with quote

I want to freeze a value, which will be changed to other values by the game every frame. If I just freeze this value, it will fluctuate between the value I want to freeze and the value changed by the game. How can I make its value completely unchanged?

I have tried setting the freeze interval to 0, but the value still fluctuates.

My English is poor, sorry.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Aug 04, 2023 6:12 am    Post subject: Reply with quote

You can use injection. NOP any instruction that is writing to that value. You may need to create a filter so that other values are not affected.
Back to top
View user's profile Send private message
DQkson
How do I cheat?
Reputation: 0

Joined: 04 Aug 2023
Posts: 6

PostPosted: Fri Aug 04, 2023 6:46 am    Post subject: Reply with quote

++METHOS wrote:
You can use injection. NOP any instruction that is writing to that value. You may need to create a filter so that other values are not affected.


I tried it, but when I click on "Find out what writes to this address" and wait for the value to change, I can't find what is writing to that address. The field above is empty, so I don't know how to use the injection.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Aug 04, 2023 6:50 am    Post subject: Reply with quote

Do you get the same results if you check to see what is accessing the address? Is the target being emulated? You can try changing your debugger settings.
Back to top
View user's profile Send private message
DQkson
How do I cheat?
Reputation: 0

Joined: 04 Aug 2023
Posts: 6

PostPosted: Fri Aug 04, 2023 7:03 am    Post subject: Reply with quote

++METHOS wrote:
Do you get the same results if you check to see what is accessing the address? Is the target being emulated? You can try changing your debugger settings.


I have also tried to find out what is accessing that address, but still no results. I changed my debugger settings, but it didn't work either. Is this because the game is running on an Android emulator?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Aug 04, 2023 7:12 am    Post subject: This post has 1 review(s) Reply with quote

DQkson wrote:
Is this because the game is running on an Android emulator?
-Yes.

https://www.cheatengine.org/forum/viewtopic.php?t=586964&sid=a1d55f06c893dc40f15d7efd82e3d3a3
Back to top
View user's profile Send private message
DQkson
How do I cheat?
Reputation: 0

Joined: 04 Aug 2023
Posts: 6

PostPosted: Fri Aug 04, 2023 7:32 am    Post subject: Reply with quote

++METHOS wrote:
-Yes.


Thank you very much. Are there any other methods to freeze a constantly changing value?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Aug 04, 2023 10:50 am    Post subject: Reply with quote

Yes, as previously described. But maybe the better question would be how to get CE debugger to yield results from the emulator.

Unfortunately, I have never used CE for any android-based emulator, so someone else may need to chime in.
Back to top
View user's profile Send private message
DQkson
How do I cheat?
Reputation: 0

Joined: 04 Aug 2023
Posts: 6

PostPosted: Sat Aug 05, 2023 4:30 am    Post subject: Reply with quote

++METHOS wrote:
Yes, as previously described. But maybe the better question would be how to get CE debugger to yield results from the emulator.

Unfortunately, I have never used CE for any android-based emulator, so someone else may need to chime in.


Thank you. Is there any other solution besides running the debugger on the simulator?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Aug 05, 2023 6:33 am    Post subject: Reply with quote

Altering the freeze interval, as you have already done. You might also use Lua in some way, but without going to the source and stopping the instruction or group of instructions that may be writing to the value, then you may still have the issue of constant changing.

As far as how to find the instruction(s) using CE without the debugger, I'm really not sure.

If you cannot figure out how to get the debugger to work on the emulator, then you could also try using a different emulator, but I do not know if that will matter, to be honest.

DB did make a version of CE for android devices, but I've never used it. It requires root access. I do not know if it has been updated and kept current at all.
Back to top
View user's profile Send private message
DQkson
How do I cheat?
Reputation: 0

Joined: 04 Aug 2023
Posts: 6

PostPosted: Sun Aug 06, 2023 12:36 am    Post subject: Reply with quote

++METHOS wrote:
Altering the freeze interval, as you have already done. You might also use Lua in some way, but without going to the source and stopping the instruction or group of instructions that may be writing to the value, then you may still have the issue of constant changing.

As far as how to find the instruction(s) using CE without the debugger, I'm really not sure.

If you cannot figure out how to get the debugger to work on the emulator, then you could also try using a different emulator, but I do not know if that will matter, to be honest.

DB did make a version of CE for android devices, but I've never used it. It requires root access. I do not know if it has been updated and kept current at all.


I have also tried other emulators, but it seems that this game cannot run on emulators other than Bluestacks. I also attempted to use ceserver to connect Cheat Engine with the emulator, but after the connection, the game process could not be found. Since this game cannot run on rooted devices, I cannot use the Android version of CE. I have also tried using Magisk to hide root, but it was unsuccessful. Are there any other feasible solutions?
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 06, 2023 6:07 am    Post subject: Reply with quote

DQkson wrote:
Are there any other feasible solutions?
-I'm not sure. As mentioned, I do not have experience with using CE on android or on android emus.

You can try creating a new thread that is more specific to this android-emulator problem and see if someone with more experience in this area can help.
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 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