Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Pointer address cheat engine lua
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Dec 23, 2015 5:58 pm    Post subject: Reply with quote

Perhaps reading the error message could help determine what the error is?
Back to top
View user's profile Send private message
Hello all
How do I cheat?
Reputation: 0

Joined: 14 Dec 2015
Posts: 9

PostPosted: Fri Dec 25, 2015 3:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Dec 25, 2015 9:15 am    Post subject: Reply with quote

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
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri Dec 25, 2015 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Hello all
How do I cheat?
Reputation: 0

Joined: 14 Dec 2015
Posts: 9

PostPosted: Fri Dec 25, 2015 11:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites