Posted: Tue Jul 11, 2017 6:06 am Post subject: How to fast building?
Hey there,
I'm working on a script for fast building, for structures I've found the code and it works perfect, I've got some trouble with units training, this is the original code:
Code:
fst dword ptr [esi+68]
the value for units training is between 0 and 1.
I've tried to use the code:
Have you tried 0 instead of 1? Otherwise look for where else that value might be used after it's stored in [esi+68] (since it's a fst not a fstp it's left on the fpu stack and could be used elsewhere). Alternatively you can hook the function and run something like this before the fst
Code:
fstp st(0) // remove current value
fld1 // load 1, fldz would load 0
Or find where the value is loaded and replace that with the proper fld1/fldz but sometimes the initial load can be several function calls back and it's simpler to just change where it's used
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