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 


Lua Script with opcode pointing to multiple addresses!

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

Joined: 05 Mar 2012
Posts: 6

PostPosted: Tue Jul 29, 2014 12:49 am    Post subject: Lua Script with opcode pointing to multiple addresses! Reply with quote

Well hello everyone, im kind of at a loss atm, and here's why:

Im trying to change an an opcode namely this one:
Code:
 mov byte ptr [esi+000002DC],01



ESI in this case is pointing to 6 different adresses all being a bolean, now i could change the ,01 to ,00 but in that case it would pass it to all of the 6 ESI addresses and this is not what i want, the code i want to change is a HUD of a game and in this game i want to hide the minimap because it is madening distracting, a pointer scan is nearly impossible in this game, cause the pointer is a level 5 pointer and even after 50 restarts of the game i still have over 35k pointers left, which change at will so there is no telling which one is the correct one.

I hope that somone can help me in this matter, how would a LUA script look like that only changes one of the ESI adresses from 1 to 0 and not all at once?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Jul 29, 2014 1:49 am    Post subject: Reply with quote

You could use Cheat Engine to make a code-cave at the address and only set the single offset to 0 that you want, then jump back to the normal code etc.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Tue Jul 29, 2014 2:34 am    Post subject: Re: Lua Script with opcode pointing to multiple addresses! Reply with quote

ZackTiro wrote:
Well hello everyone, im kind of at a loss atm, and here's why:

Im trying to change an an opcode namely this one:
Code:
 mov byte ptr [esi+000002DC],01



ESI in this case is pointing to 6 different adresses all being a bolean, now i could change the ,01 to ,00 but in that case it would pass it to all of the 6 ESI addresses and this is not what i want, the code i want to change is a HUD of a game and in this game i want to hide the minimap because it is madening distracting, a pointer scan is nearly impossible in this game, cause the pointer is a level 5 pointer and even after 50 restarts of the game i still have over 35k pointers left, which change at will so there is no telling which one is the correct one.

I hope that somone can help me in this matter, how would a LUA script look like that only changes one of the ESI adresses from 1 to 0 and not all at once?


Not the job of a lua script. You need to find out some sort of identifier or differentiator that you can use to tell if its accessing your desired value or other values.

If its HUD then you could look for any strings references accessed through the registers near your code location or in the stack or perhaps an identifier. Would need some debugging for sure.

Also if possible, try to use a different address that isn't accessed much but it may not be feasible option depending on game engine.

atom0s wrote:
You could use Cheat Engine to make a code-cave at the address and only set the single offset to 0 that you want, then jump back to the normal code etc.


That is the least of his problems. He needs to find some way to differentiate between the 6 different values accessed. No point in posting without doing some reading of the OP (it pisses me off no matter who does it)

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
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