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 


writing value at address of pointer

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

Joined: 17 Oct 2007
Posts: 2

PostPosted: Wed Oct 17, 2007 12:16 am    Post subject: writing value at address of pointer Reply with quote

I hope this is the right section.
I know if i want to change the value (array) of an address (ex. 800000) i write this :

[enabled]
800000:
db "array i want".
[disabled]


but what do i write if i want to change the value of a pointer (ex. address of pointer -> 800000 offset -> 1234)


Last edited by pechochex on Thu Oct 18, 2007 12:59 am; edited 2 times in total
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6300

PostPosted: Wed Oct 17, 2007 1:09 pm    Post subject: Reply with quote

Depends on what the bytes are in memory view.
Back to top
View user's profile Send private message
pechochex
How do I cheat?
Reputation: 0

Joined: 17 Oct 2007
Posts: 2

PostPosted: Thu Oct 18, 2007 11:18 pm    Post subject: Reply with quote

what do you mean?

For example, if i want to change the value of address 800000, then i write this in autoassembler:

Code:
[ENABLE]
800000:
DB 00 00 00 00 00
[DISABLE]
800000:
DB 01 02 03 04 05


but what about if i want to do the same thing (fill with 00's) but with an address of pointer

Address --> 01234567
adress of pointer --> 800000
offset --> 1234

I want to change the value of 01234567 but using the address of pointer and offset because the address 01234567 change everytime i run the game. ¿What script should i write?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Thu Oct 18, 2007 11:29 pm    Post subject: Reply with quote

You don't HAVE to define bytes, (db) in this case its easier to use mov [pointer+offset],value.
If you want a simple jumping code, I preffer using db since I don't change the address it jumps to, so I only have to define the first byte (or 2 if its a far jump) of the op-code. (example je to jne is db 74 to db 75, p.s. those are short jumps)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Fri Oct 19, 2007 12:02 am    Post subject: Reply with quote

If you only want to set a value at a specific address just use the address list
Or inject a piece of code that is called often that changes that specific address

_________________
Tools give you results. Knowledge gives you control.

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 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