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 


AOB script does not have same affect as direct change value

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

Joined: 25 Dec 2023
Posts: 1

PostPosted: Mon Dec 25, 2023 3:40 pm    Post subject: AOB script does not have same affect as direct change value Reply with quote

Trying to clear fog of war. the values are either 65535 or 62259. if I change the value by directly editing it, it works. however, if I create an AOB injection trying to change, the map is not affected as intended.

my code:

[ENABLE]

aobscanmodule(INJECT,ra3ep1_1.0.game,66 89 04 0A 5D) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
mov ax, ffff //this is what I add
mov [edx+ecx],ax
pop ebp
jmp return

INJECT:
jmp newmem
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
db 66 89 04 0A 5D

unregistersymbol(INJECT)
dealloc(newmem)
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4309

PostPosted: Mon Dec 25, 2023 5:27 pm    Post subject: Reply with quote

Look at what's writing to the value. If there is nothing, that means the game isn't executing the original code. Your code in newmem is only run when the game executes the original injection point.
If it's something else, you picked the wrong injection point.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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 Discussions 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