|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
AylinCE Grandmaster Cheater Supreme Reputation: 31
Joined: 16 Feb 2017 Posts: 1235
|
Posted: Mon Mar 19, 2018 6:21 pm Post subject: |
|
|
FreeER wrote: | use doubleToByteTable and writeDouble |
Thanks worked.
But in a few clicks / usage it collapsed after page.
There's probably a mistake in the change.
Code: | 00 00 00 00 00 ?? ?? 40 = %s %s |
or:
Code: | codescan1 = '01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? 00 00 00 00 00 00 00 ?? ?? 40'
Aobswap(codescan1,('01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? 00 00 %s %s '):format(newvalue, newvalue)) |
What is wrong?
Code: | function byteTableToAobString(t)
for k,v in ipairs(t) do
t[k] = ('%02X'):format(v)
end
return table.concat(t, ' ')
end
function CEButton1Click(sender)
newvalue = UDF1.CEEdit1.Text
newvalue = tonumber(newvalue)
if not newvalue then return end -- if not a number we're done
newvalue = doubleToByteTable(newvalue) -- alternatively
newvalue = byteTableToAobString(newvalue)
codescan1 = '01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? 00 00 00 00 00 00 00 ?? ?? 40'
Aobswap(codescan1,('01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? 00 00 %s %s '):format(newvalue, newvalue))
UDF1.CEButton1.Caption="ON";
showMessage('DONE!')
end |
Thanks again.
_________________
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Mon Mar 19, 2018 7:08 pm Post subject: |
|
|
did you want to write 2 double values after the ?? ?? ?? ?? ?? ?? 00 00, or just 1? Because you're putting the byte string for the new double value in there twice with the ('...%s %s'):format(newvalue, newvalue), that will also make the replacement AOB longer than the scan AOB, not certain how AOBSwap handles that (I'd expect it to work but).
_________________
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 31
Joined: 16 Feb 2017 Posts: 1235
|
Posted: Mon Mar 19, 2018 7:15 pm Post subject: |
|
|
FreeER wrote: | did you want to write 2 double values after the ?? ?? ?? ?? ?? ?? 00 00, or just 1? Because you're putting the byte string for the new double value in there twice with the ('...%s %s'):format(newvalue, newvalue), that will also make the replacement AOB longer than the scan AOB, not certain how AOBSwap handles that (I'd expect it to work but). |
Sorry. I just figured it out. fixed.
now the page did not crash and
Until I wrote this, you wrote the answer.
I apologize again and thank you.
Code: | 00 00 00 00 00 ?? ?? 40 = %s | and thanks
and once again you saved the day.
_________________
|
|
Back to top |
|
|
|
|
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
|
|