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 


Need help debugging autoassembly

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

Joined: 13 Mar 2011
Posts: 4
Location: Colorado Springs

PostPosted: Sun Mar 13, 2011 11:19 am    Post subject: Need help debugging autoassembly Reply with quote

I am attempting to write a script for Starcraft 2, single player campaign, that will unlock all units and upgrades at all times. I've already beaten it 4 times and figured this would be a nice change. I found the place where the values are modified, but that same code is used to load a lot of things, I just need to bypass it when it attempts to write to a certain range of addresses:
Code:
[enable]
alloc(KeepMyStuff,2048)
alloc(KeepUnitVal,4)
registersymbol(KeepUnitVal)
label(ReturnHere)
label(KeepUnits)
label(Normal)
label(After)
         
KeepUnitVal:
dd 0

00B98903:   
jmp KeepMyStuff
ReturnHere:

KeepMyStuff:
cmp eax,018F8814         //018F8814 is the static address where the first unit, bunker, is enabled/disabled
jge KeepUnits         //Jump to bypass commands
jmp Normal         //Jump to regular commands

KeepUnits:
cmp eax,018F8870         //018F8870 is the static address where the final unit, sensor tower, is enabled/disabled
jg Normal         //Jump to standard commands
mov [eax],KeepUnitVal         //A value of zero enables a unit
jmp After

Normal:
mov eax,[eax]
jmp After

After:
shr ebx,15         //Part of the standard code that had to be preserved
jmp ReturnHere

[disable]
dealloc(KeepMyStuff)
dealloc(KeepUnitVal)
unregistersymbol(KeepUnitVal)

00B98903:
mov eax, [eax]   

00B98905:
shr ebx,15

_________________
You never know when it will strike, but there comes a moment at work when you know that you just aren't going to do anything productive for the rest of the day.
Back to top
View user's profile Send private message
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