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 


Visual Studio Lock Integer

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

Joined: 02 May 2014
Posts: 3

PostPosted: Fri May 02, 2014 4:08 am    Post subject: Visual Studio Lock Integer Reply with quote

Im very new to programming, I have got all my addresses and am ready to make a trainer.

My problem is that I am creating a trainer in Visual Studio, and I have figured out how to edit my addresses but I cannot figure out how to "lock" the integer like CE would do. I can change the integer using writeInteger command in VB, but it just changes back shorty after.

any help with this would be very much appreciated.
Back to top
View user's profile Send private message
Gi@nnis
Cheater
Reputation: 1

Joined: 26 Oct 2013
Posts: 32
Location: Greece

PostPosted: Fri May 02, 2014 5:04 am    Post subject: Re: Visual Studio Lock Integer Reply with quote

Habbashooey wrote:
Im very new to programming, I have got all my addresses and am ready to make a trainer.

My problem is that I am creating a trainer in Visual Studio, and I have figured out how to edit my addresses but I cannot figure out how to "lock" the integer like CE would do. I can change the integer using writeInteger command in VB, but it just changes back shorty after.

any help with this would be very much appreciated.


I think that you need to add a timer, that will change the value each xx ms. That's how CE does it (I think). That's what the "Freeze interval" option refers to.

To actually freeze it, you'd have to find the assembly code that change it and alter it. (maybe a little of topic)
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri May 02, 2014 1:31 pm    Post subject: Reply with quote

You can do it one of a few ways:

1.) Use a thread to constantly write the value to the address.
2.) Use a timer to constantly write the value to the address.
3.) Debug the address and find whats writing to it, and nop out or alter the functions that write data to that address.

If you nop them out it will just kill the instruction entirely and stop it from writing at all. However in some cases you may want to allow certain values to write to the address, so you can also do a code cave on the address(s) writing to it and make conditions for when the game value is written, and then if not, just force it to the value you want instead.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Habbashooey
How do I cheat?
Reputation: 0

Joined: 02 May 2014
Posts: 3

PostPosted: Fri May 02, 2014 2:33 pm    Post subject: Reply with quote

Thank you guys , added a timer set interval to 1 problem solved 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 -> General programming 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