 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed Dec 23, 2015 5:58 pm Post subject: |
|
|
| Perhaps reading the error message could help determine what the error is?
|
|
| Back to top |
|
 |
Hello all How do I cheat?
Reputation: 0
Joined: 14 Dec 2015 Posts: 9
|
Posted: Fri Dec 25, 2015 3:17 am Post subject: |
|
|
Hello dear programmers, help in the script record
timer, Disable how to record the values mov, in a script that was not to set a timer.
function CEButton1Click(sender)
GameName = 'witcher3.exe'
if(getProcessIDFromProcessName(GameName) == nil) then
return end
timer = createTimer(nil,false)
timer_setInterval(timer,5)
timer_onTimer(timer,WriteValueTimer)
timer_setEnabled(timer,true)
pValue = '[[[[[[[["witcher3.exe"+028F3F60]+28]+10]+1C0]+40]+40]+20]+18]+0'
end
function WriteValueTimer()
writeInteger(pValue,99)
return 1
end
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Dec 25, 2015 9:15 am Post subject: |
|
|
Seems to be some bug with Cheat Engine not parsing the string properly.
| Code: | local addr = getAddress("witcher3.exe+028F3F60")
local offsets = {0x28,0x10,0x1C0,0x40,0x40,0x20,0x18,0x00}
for i=1,#offsets do
addr = readPointer(addr) + offsets[i]
end
local value = readInteger(addr)
print(value) |
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Fri Dec 25, 2015 12:16 pm Post subject: |
|
|
CE6.4 has a bug. Pointers for 64bit targets not always work
here is workaround, place this script in text file (with .lua file extension) in autorun folder:
| Code: | fix64bitPointerString = [[
// only for 64bit CE6.4 from 26 VI 2014
define(address1,cheatengine-x86_64.exe+957AC)
define(bytes1,89 45 C0 EB 2B)
define(address2,cheatengine-x86_64.exe+95944)
define(bytes2,8B 45 C0 48 89 45 A8)
alloc(newmem,64,cheatengine-x86_64.exe)
label(part2)
label(return2)
assert(address1,bytes1)
assert(address2,bytes2)
newmem:
mov [rbp-40],rax
jmp cheatengine-x86_64.exe+957DC
part2:
mov rax,[rbp-40]
mov [rbp-58],rax
jmp return2
address1:
jmp newmem
address2:
jmp part2
nop
nop
return2:
]]
autoAssemble(fix64bitPointerString,true) |
_________________
|
|
| Back to top |
|
 |
Hello all How do I cheat?
Reputation: 0
Joined: 14 Dec 2015 Posts: 9
|
Posted: Fri Dec 25, 2015 11:23 pm Post subject: |
|
|
Hello dear programmers,c Merry to you, excuse me for my English, you must have misunderstood me, exchange is necessary in the same script to write timer,disable this script works great on a version of the cheat engine ver 6.5 beta 3,of how this the script write command mov, how to AA scripts, did not have to put the timer on the freeze values.
function CEButton1Click(sender)
GameName = 'witcher3.exe'
if(getProcessIDFromProcessName(GameName) == nil) then
return end
timer = createTimer(nil,false)
timer_setInterval(timer,5)
timer_onTimer(timer,WriteValueTimer)
timer_setEnabled(timer,true)
end
function WriteValueTimer()
pValue = '[[[[[[[["witcher3.exe"+028F3F60]+28]+10]+1C0]+40]+40]+20]+18]+0'
writeInteger(pValue,99)
return 1
end
|
|
| 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
|
|