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 


Replacing two addresses...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Tue Dec 03, 2013 4:41 am    Post subject: Replacing two addresses... Reply with quote

I know how to "replace two addreses" with the same value, but how do i do it in lua ?
Back to top
View user's profile Send private message
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Tue Dec 03, 2013 1:08 pm    Post subject: Reply with quote

anyone? i mean like "find out what writes to this address" and theres is two different opcodes witch i have to "replace", but when i make a trainer, this two doesnt seems to be "replaced" so how do i wo it in lua editor ?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue Dec 03, 2013 1:22 pm    Post subject: Reply with quote

easiest lua script of changing 2 addresses:
Code:

autoAssemble([[
address1:
db 1,2,3,4,5

address2:
db 1,2,3,4,5
]])


writeInteger/writeByte might be useful as well, but for code you sometimes first need to make it writable, which the auto assembler does for you automatically

_________________
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
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Tue Dec 03, 2013 2:15 pm    Post subject: Reply with quote

Dark Byte wrote:
easiest lua script of changing 2 addresses:
Code:

autoAssemble([[
address1:
db 1,2,3,4,5

address2:
db 1,2,3,4,5
]])


writeInteger/writeByte might be useful as well, but for code you sometimes first need to make it writable, which the auto assembler does for you automatically


alright.. yeah i think i will need writeFloat actually.. but thats not a problem.. i will try this out, didnt know exacly what u mean by this 1,2,3,4 but i will play with it and se.. ty dude !
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue Dec 03, 2013 2:17 pm    Post subject: Reply with quote

For floats you can use dd (float)value
Code:

dd (float)12345.67

_________________
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
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Tue Dec 03, 2013 2:48 pm    Post subject: Reply with quote

Dark Byte wrote:
For floats you can use dd (float)value
Code:

dd (float)12345.67


dont get it..

dd (float)"03D2BED8" ?

dd ("03D2BED8")123456? WTF xd
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue Dec 03, 2013 5:48 pm    Post subject: Reply with quote

03D2BED8:
dd (float)12345.67

_________________
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
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Wed Dec 04, 2013 6:02 pm    Post subject: Reply with quote

Dark Byte wrote:
03D2BED8:
dd (float)12345.67


ohh, haha..
i was so tired..
so, in the picture i have a picture of the two ones i have to NOP, so then it will be something like this ? o_O

03D2BED8.xxm5:
dd (float)12345.67

03D2BED8.xxm0:
dd (float)12345.67
]])

i kow this is kinda stupid, but as u see, they have the same addsresses?

Back to top
View user's profile Send private message
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Thu Dec 05, 2013 7:03 pm    Post subject: Reply with quote

bmn wrote:
Dark Byte wrote:
03D2BED8:
dd (float)12345.67


ohh, haha..
i was so tired..
so, in the picture i have a picture of the two ones i have to NOP, so then it will be something like this ? o_O

03D2BED8.xxm5:
dd (float)12345.67

03D2BED8.xxm0:
dd (float)12345.67
]])

i kow this is kinda stupid, but as u see, they have the same addsresses?





i tried to freeze the xmm5 but it jump back forward like hell.. so it changes.. all i wanna do is make the value change able in lua.. :/
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Fri Dec 06, 2013 6:40 am    Post subject: Reply with quote

First make a working cheat, and then try to automate it with lua

I recommend using the auto assembler code injection template and replace the write instruction with an instruction that writes the specific value l.
Or just nop those instructions first

_________________
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
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Fri Dec 06, 2013 1:56 pm    Post subject: Reply with quote

Dark Byte wrote:
First make a working cheat, and then try to automate it with lua

I recommend using the auto assembler code injection template and replace the write instruction with an instruction that writes the specific value l.
Or just nop those instructions first



it is working, just that when i drag my trackbar to change the value, it works, but the value changes back cuz i need to replace the xmm5 and xmm0?
Back to top
View user's profile Send private message
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Sat Dec 07, 2013 10:50 pm    Post subject: Reply with quote

i think i have to start all over explaining what i want to do.. cuz when i read it now i think u missunderstood me..

I have found a value on an address.. (the value is a float)
Say the value ios 2000
When I change the value to 4000, it changes right back to 2000.
If i freeze the value it jups from 2000->4000->2000->4000 loop.

So, as in the picture i choosen, "Find out what writes to this address"..

Then i found one ["game.exe+ADDRESS].xmm5

when i now tries to change the value, a new one pops up.. ["game.exe+ADDRESS].xmm0

so, in the list its no peroblem, cuz i just choose them both and press the "replace" button..

But, when i make my trainer, this is "forgoten when i close cheat engine and open my exe..

so what i need to do is "replacing" this two by script in the lua scripting ?


hope u get a better view in this now..

thanks !


Back to top
View user's profile Send private message
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Thu Dec 12, 2013 7:28 am    Post subject: Reply with quote

i have also check the tutorial and learned some good things.. so i think my problem is its a pointer, but i cant find the pointer in anyway that i have learned.. as u see infron of the address its a column named COUNT and it counts from 1 and up.. like an endless loop 1++...
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 Lua Scripting 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