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 


Problem with not working script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
eTo
Newbie cheater
Reputation: 0

Joined: 23 Sep 2011
Posts: 10

PostPosted: Sun Apr 07, 2013 10:21 pm    Post subject: Problem with not working script Reply with quote

I'm trying to make god mode script for AliensRL and i got stuck on making script.
Code responsible for changing life is: mov [eax+000000A4],ecx
I know that value of eax+000000A0 is equal to id, either player characters (each class have own different id number) or aliens so i came up with something like this that almost works:

Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
label(God)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [eax+000000a0],2880
je God
mov [eax+000000a4],ecx
jmp returnhere
God:
mov [eax+000000a4],100
jmp returnhere
originalcode:
//mov [eax+000000A4],ecx

exit:
jmp returnhere

"abrl.exe"+9B980:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"abrl.exe"+9B980:
mov [eax+000000A4],ecx
//Alt: db 89 88 A4 00 00 00


Problem is, that when it's activated it gives god mode to enemies as well. As you can probably see from this script, i'm quite green when it comes to assembler, and i don't have idea how to make it work (at least for one character class, not saying for everyone).
So if anyone knows where is mistake, i would be grateful for help Razz[/code]
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Apr 07, 2013 10:39 pm    Post subject: Reply with quote

If the code is giving health to enemies and hero, then you have not found a proper ID address to compare with.
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Sun Apr 07, 2013 11:30 pm    Post subject: Reply with quote

On the original mov [eax+000000A4],ecx, open it's address in the 'memory view' window and right-click choose 'Find out what addresses this instruction access', and see the values modified by it,....if it modifies health for enemies and player characters, see the differences between the registers used for your player health and an enemy, that comparison of what's inside [eax+000000a0] might not be the correct difference.
Back to top
View user's profile Send private message
eTo
Newbie cheater
Reputation: 0

Joined: 23 Sep 2011
Posts: 10

PostPosted: Tue Apr 09, 2013 1:50 am    Post subject: Reply with quote

I changed address for supposed ID, and it's working now Smile
Also checked those registers, and found that one of them (ebx) have same address in value that eax have in case of player, and in case of enemies it was pointing address different than eax... so i guess i will try to base script on that.
Thx for help guys Smile
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