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 


Auto assembly code!! help plzzzz

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

Joined: 18 Nov 2015
Posts: 4

PostPosted: Wed Nov 18, 2015 5:59 pm    Post subject: Auto assembly code!! help plzzzz Reply with quote

Hi!

I'm new to cheat engine and game hacking!
and I'm trying to hack a construction progress for an RTS game
I've found the code that acess to the adresses of the featur I want to hack

Code:

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [esi+0C],eax
mov eax,[esi+04]

exit:
jmp returnhere

"game.dll"+4D26BA:
jmp newmem
nop
returnhere:


the code writes to many deffirent adresses including AI player adresses
I've used the structur dissect function to find the player ID as 0

but I couldn't manage to make a working script to make constructions to be buit in one turn instead of many turns.

So any ideas?????
Question Question Exclamation Exclamation
Back to top
View user's profile Send private message
deraz12
How do I cheat?
Reputation: 0

Joined: 18 Nov 2015
Posts: 4

PostPosted: Wed Nov 18, 2015 6:07 pm    Post subject: Reply with quote

I've found a table that uses a script to hack the same code!
but I couldn't fugure out how it's done

Code:

_MonConst:
 push ebx

 mov dword ptr [aLast1],'MoCo'

 mov [pConst],esi
 mov [pConst1],eax

 cmp dword ptr [iEnableMC],0
 je _ExitMC                        // Jump if feature is disabled

 test eax,eax
 jz _ExitMC

 mov ebx,[esi+04]
 test ebx,ebx
 jz _ExitMC

 mov ebx,[ebx+00000094]
 cmp ebx,[pGold]
 jne _ExitMC

 inc dword ptr [iCounters+30]

 mov ebx,[eax+10]
 dec ebx
 cmp ebx,[eax+0c]
 jle _ExitMC

 mov [eax+0c],ebx

_ExitMC:
 pop ebx

 mov [esi+0C],eax                  // Original code
 mov eax,[esi+04]                  // Original code
 jmp _BackMC                       // Back to main code
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 Gamehacking 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