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 


New to scripts

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

Joined: 08 Sep 2019
Posts: 1

PostPosted: Sun Sep 08, 2019 8:16 pm    Post subject: New to scripts Reply with quote

hey im trying to search for a specific array of bytes, find it
then while the script is toggled i want that value to be freezed and while its toggled off its unfreezed.

Code:
[ENABLE]
aobscan(flyhack,00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 06 00 00 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? 00 00 00 00 ?? 80 3F FF FF FF FF ?? 00 00 00 ?? 00 00 00 00 00 00 00 ?? 00 00 00 ?? ?? 00 00 ?? 00 00 00 ?? 00 00 00 ?? 00 00 00 ?? 00 00 00 ?? 00 00 00 ??)
registersymbol(flyhack)

flyhack:
db FF
 
 
[DISABLE]
flyhack:
db 00
unregistersymbol(flyhack)


so this works, but it only SETS the value and the game immediately changes it back [/code]
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 70

Joined: 14 Jul 2007
Posts: 2186

PostPosted: Mon Sep 09, 2019 12:12 am    Post subject: Reply with quote

Two possibilities:
a. You have the wrong address (you need to find where that value comes from)
b. The game detects the change and attempts to reset it automatically (see what writes it, may even give you an answer to problem 'a').
Back to top
View user's profile Send private message
DanyDollaro
Newbie cheater
Reputation: 0

Joined: 01 Aug 2019
Posts: 22

PostPosted: Mon Sep 09, 2019 10:38 am    Post subject: Reply with quote

You can search for the code that acts on that value and replace it with a Nop code, or you can replace that code so that when your script is active it doesn't change the value on that address
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 149

Joined: 25 Jan 2006
Posts: 7734
Location: 127.0.0.1

PostPosted: Mon Sep 09, 2019 2:09 pm    Post subject: Reply with quote

Do the tutorial that comes with Cheat Engine to learn how to work with the 'Find What Accesses This Address' feature and understand how to patch the code writing to the address instead of using the raw data. The way you are scanning for that data is also unreliable and can be easily broken if any of that other data is modified at any time.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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