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 


Trouble with assembly in Heavy Weapon Deluxe

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

Joined: 29 Mar 2015
Posts: 18

PostPosted: Fri Sep 25, 2015 4:47 am    Post subject: Trouble with assembly in Heavy Weapon Deluxe Reply with quote

I'm trying to make a script that adds one part to the mega laser when i lose one life.

Here is the code I tried to do
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
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 [eax+00000964],ecx // the life code
add [eax+000001A8],#1 //the part code
exit:
jmp returnhere

"HeavyWeapon.exe"+1B861:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"HeavyWeapon.exe"+1B861:
mov [eax+00000964],ecx
//Alt: db 89 88 64 09 00 00

But that does not seem to be working.
Any suggestions?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4695

PostPosted: Fri Sep 25, 2015 9:24 am    Post subject: Reply with quote

I don't think I see anything wrong with it.

Look through these things and see which one fails first:
    1. Changing and freezing the mega laser's value does change whatever it's meant to in the game
    2. "HeavyWeapon.exe"+1B861 is run every time you lose a life
    3. add eax+000001A8 points to the address the mega laser thing is stored at
    4. When this script is active, it increases the mega laser's value by 1 after respawning or whatever
If it fails at 1, you've got the wrong address.
If it fails at 2, find an instruction that's run when you lose a life and inject code there.
If it fails at 3, you need to find a better way of pointing to the address of the mega laser.

If it fails at 4 (I'd guess this to be the case), then another instruction must be writing to the laser's address, overriding the change you made here. Try keeping the "Find out what writes to this address" window open and see if any more instructions pop up for the laser, especially when you die/respawn.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
danpuz
Newbie cheater
Reputation: 0

Joined: 29 Mar 2015
Posts: 18

PostPosted: Fri Sep 25, 2015 1:34 pm    Post subject: Reply with quote

I discovered that there was a code that resets the part
value to zero when i die.
Code:
mov [esi+000001A8],ebx

so i change the it to
Code:
add [esi+000001A8],#1

and now it worked! thanks man you helped me a lot Very Happy .
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