Joined: 13 Mar 2011 Posts: 4 Location: Colorado Springs
Posted: Sun Mar 13, 2011 11:19 am Post subject: Need help debugging autoassembly
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:
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
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.
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