Posted: Fri Oct 30, 2015 10:05 am Post subject: Auto Assemble script help - Adding
Hey guys, I was wondering if anyone could help point me in the right direction for what instructions I could use to add a specific set value to the already existing value of an address.
This is basically what I have so far:
Code:
originalcode:
fstp dword ptr [esi+0000009C]
This is the game naturally increasing a Float value by 0.05 precisely every time a certain item is picked up.
What I want to get it to do is add 0.3 or any custom number instead.
The closest I could get to working injectable code was when I used this:
But this unfortunately sets the value of the address to 0.25 every time instead, when the default with no pickups is exactly 1.. thus giving pretty much opposite to the desired effect.
I do realize I have very little and limited knowledge about this, please forgive my lacking ability. Any help would be appreciated for learning how to add custom amounts (especially floats/doubles) to address values in this sort of way.
"fadd dword ptr [value]" is safer. [value] could also reference a qword.
You should get rid of those addss and movss instructions unless they were there originally. The first float in xmm2 probably had a value of 0 originally, then you added 0.25 to it (so first float in xmm2 = 0.25), then you just stored xmm2 into your address. Hence it'll always be 0.25. _________________
I don't know where I'm going, but I'll figure it out when I get there.
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