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 


Cheat Engine Forum Index
PostGo back to topic
FreeER
Grandmaster Cheater Supreme
Reputation: 53
Joined: 09 Aug 2013
Posts: 1091

PostPosted: Thu Jan 25, 2018 2:51 pm    Post subject:

I'd noticed it wants the *immediate at the end but hadn't noticed it had immediate*register in the disassembly... yeah that could be annoying if you had a lot lol

simple solution in lua:

Code:
script = [=[
[ENABLE]
alloc(CEmem,$1000)
registersymbol(CEmem)

define(game,cheatengine-x86_64.exe)

CEmem:
  fld [game+rax*2]
  cmp [game+rax*8],1
//  fld dword ptr [rax*2+cheatengine-x86_64.exe]
//  cmp dword ptr [rax*8+cheatengine-x86_64.exe],01



[DISABLE]
dealloc(CEmem)
unregistersymbol(CEmem)
]=]

newscript = {}
for line in script:gmatch('[^\r\n]+') do
  local line = line:gsub('%[(%a+)%*(%d+)%+(.*)%]', '[%3+%1*%2]')
--  print(line)
  newscript[#newscript+1] = line
end
newscript = table.concat(newscript, '\r\n')
print(newscript)


though I feel like it might also be possible to hook the disassembler and change the way it actually shows the instructions I don't feel like that'd work for templates etc. so....
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
sbryzl
Review: Approve
Post reference:
ReviewPosted: Thu Jan 25, 2018 3:39 pm


Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites