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 do I change a fixed address with a script?

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

Joined: 23 Aug 2013
Posts: 1

PostPosted: Wed Sep 04, 2013 9:44 pm    Post subject: How do I change a fixed address with a script? Reply with quote

I have found static addresses for numerous game values. When I load the table of static addresses they change to the games current values and I have to change each one manually to the values I want. I'd like to use a script to automate the changing of the static address values.

Currently I'm using "mov [02302060],#10000" in a "default" cheat-table-framework-code script where 02302060 is the static address and #100000 is the decimal value I'd like to automatically change the static address to, but it isn't working. Can anyone help me with the proper syntax to change a fixed address in my address table or point me to a relevant thread?

Thanks in advance.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

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

PostPosted: Thu Sep 05, 2013 2:29 am    Post subject: Reply with quote

02302060:
DD #10000

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
low_density
Expert Cheater
Reputation: 1

Joined: 08 Aug 2009
Posts: 156

PostPosted: Sun Sep 08, 2013 3:57 am    Post subject: Reply with quote

hi, sorry for hijacking this thread, but how do you add values to a fixed address? I know that setting the value of a fixed address can be done by:
address:
dd #value
but, for example, how do you add 10 to the value?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

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

PostPosted: Sun Sep 08, 2013 4:16 am    Post subject: Reply with quote

Code:

luacall(writeInteger(0x02302060, readInteger(0x02302060)+10))

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
low_density
Expert Cheater
Reputation: 1

Joined: 08 Aug 2009
Posts: 156

PostPosted: Sun Sep 08, 2013 4:41 am    Post subject: Reply with quote

Dark Byte wrote:
Code:

luacall(writeInteger(0x02302060, readInteger(0x02302060)+10))


sorry, how do I put this into the script? just like normal?

[ENABLE]
luacall(writeInteger(0x02302060, readInteger(0x02302060)+10))

like this? and if i want to add only to a byte, not the entire 4 bytes, how do I do so? sorry, I'm only familiar with AA scripting and not LUA.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

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

PostPosted: Sun Sep 08, 2013 5:19 am    Post subject: Reply with quote

yes

for single bytes it's a big more annoying as there's no single byte reading but then you do:
Code:

[enable]
luacall(writeBytes(0x00400500,readBytes(0x00400500,1)+10))

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
low_density
Expert Cheater
Reputation: 1

Joined: 08 Aug 2009
Posts: 156

PostPosted: Sun Sep 08, 2013 6:14 am    Post subject: Reply with quote

Dark Byte wrote:
yes

for single bytes it's a big more annoying as there's no single byte reading but then you do:
Code:

[enable]
luacall(writeBytes(0x00400500,readBytes(0x00400500,1)+10))


thank you so much DarkByte! just one more question, if i do like this, does it add by Hex or Decimal?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

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

PostPosted: Sun Sep 08, 2013 6:30 am    Post subject: Reply with quote

decimal.
If you wish hex, then make it 0x10

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
low_density
Expert Cheater
Reputation: 1

Joined: 08 Aug 2009
Posts: 156

PostPosted: Sun Sep 08, 2013 7:23 am    Post subject: Reply with quote

alright thanks a lot Dark Byte!
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