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 


Plugin/feature suggestion - Change register in autoassembler

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
bhfff
Cheater
Reputation: 0

Joined: 19 Jan 2017
Posts: 30

PostPosted: Sat Dec 16, 2017 1:10 pm    Post subject: Plugin/feature suggestion - Change register in autoassembler Reply with quote

It would be really cool to have this functionallity, something like

flag("Address","flagname","value")
unflag("address")

So the "Change register at this location" could also be used in scripts :)
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Dec 16, 2017 1:25 pm    Post subject: Reply with quote

Not sure I understand. Sounds like a normal code injection.
Code:
newmem:
  mov eax,#100 //changes eax register
code:
  //original instructions

Or you wanted to use the debugger?
Code:
debug_setBreakpoint(address, 4, bptWrite, function()
  EAX = 100
  debug_continueFromBreakpoint(co_run)
  return 1
end)
Back to top
View user's profile Send private message
bhfff
Cheater
Reputation: 0

Joined: 19 Jan 2017
Posts: 30

PostPosted: Sat Dec 16, 2017 1:45 pm    Post subject: Reply with quote

Zanzer wrote:
Not sure I understand. Sounds like a normal code injection.
Code:
newmem:
  mov eax,#100 //changes eax register
code:
  //original instructions

Or you wanted to use the debugger?
Code:
debug_setBreakpoint(address, 4, bptWrite, function()
  EAX = 100
  debug_continueFromBreakpoint(co_run)
  return 1
end)


Lua makes the game run slower and I can not change the eip using assembly
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Sat Dec 16, 2017 1:51 pm    Post subject: Reply with quote

bhfff wrote:
I can not change the eip using assembly

then let it jump to where you want, or maybe call it.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
bhfff
Cheater
Reputation: 0

Joined: 19 Jan 2017
Posts: 30

PostPosted: Sat Dec 16, 2017 1:57 pm    Post subject: Reply with quote

OldCheatEngineUser wrote:

then let it jump to where you want, or maybe call it.


I don't know (yet) how calls work as I tried a lot of times, but sadly each time the game crashed

For example, I don't know the difference between ret, ret4 and ret8
(So you have an idea of my poor knowledge)

edit: I can't let it jump because my game has an integrity check
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Sat Dec 16, 2017 2:11 pm    Post subject: Reply with quote

the standalone/plain ret is returning without modifying the stack, while retx is return with clearing previously pushed parameters before that call.

you dont have to worry about this, just place a ret at the end of your subroutine.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
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