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 


passing disableInfo to autoAssembleCheck

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Fri Jan 21, 2022 12:00 am    Post subject: passing disableInfo to autoAssembleCheck Reply with quote

So after seeing auto assembler scripts with "unregisterSymbol(*)" and "dealloc(*)", I wanted to try using that. But using CE LUA "autoAssembleCheck" function it throws an error. I assume that it's because of the lack of "disableInfo", thus CE has no idea what to unregister. But looking at "LuaHandler.pas" it seems there is no "disableInfo" parameter. I'm not the best with Pascal/Delphi, so just wanted to double check. And if it's not a parameter for "autoAssembleCheck", then I'd like to request that feature.
_________________
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Jan 21, 2022 12:26 am    Post subject: Reply with quote

are you on 7.4?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Fri Jan 21, 2022 7:10 am    Post subject: Reply with quote

I have the patreon 7.4 installed.
_________________
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sat Jan 22, 2022 3:31 am    Post subject: Reply with quote

Code:

s=[[
[enable]
alloc(bla,1024)
registersymbol(bla)
registersymbol(somethingelse)
bla:
nop
nop
nop
somethingelse:
nop
nop
nop

[disable]
unregistersymbol(*)

]]

r1,err1=autoAssembleCheck(s,true)
r2,err2=autoAssembleCheck(s,false)

if r1 and r2 then
  print("works")
else
  if not r1 then print("enable error:"..err1) end
  if not r2 then print("disable error:"..err2) end
end

works for me

Are you on the latest version of the patreon build? Do a help->check for new version

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sat Jan 22, 2022 12:10 pm    Post subject: Reply with quote

Dark Byte wrote:
Code:

s=[[
[enable]
alloc(bla,1024)
registersymbol(bla)
registersymbol(somethingelse)
bla:
nop
nop
nop
somethingelse:
nop
nop
nop

[disable]
unregistersymbol(*)

]]

r1,err1=autoAssembleCheck(s,true)
r2,err2=autoAssembleCheck(s,false)

if r1 and r2 then
  print("works")
else
  if not r1 then print("enable error:"..err1) end
  if not r2 then print("disable error:"..err2) end
end

works for me

Are you on the latest version of the patreon build? Do a help->check for new version


It says it's the latest version "You are up to date. The latest version is 7.4 (Released 01/18/2021)", I'm guessing the date is incorrect.

But it's the deallocate that throws the error. I should have specified that, sorry for not doing so. But this throws an error:
Code:
s=[[
[enable]
alloc(bla,1024)
registersymbol(bla)
registersymbol(somethingelse)
bla:
nop
nop
nop
somethingelse:
nop
nop
nop

[disable]
unregistersymbol(*)
dealloc(*)
]]

r1,err1=autoAssembleCheck(s,true)
r2,err2=autoAssembleCheck(s,false)

if r1 and r2 then
  print("works")
else
  if not r1 then print("enable error:"..err1) end
  if not r2 then print("disable error:"..err2) end
end

Code:
disable error:Error in line 16 (dealloc(*)) :This instruction can't be compiled


EDIT: I'm probably remembering it wrong, but I feel like I installed it before the 18th. Can I reinstall the patreon versions?

_________________
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Thu Jan 27, 2022 2:58 am    Post subject: This post has 1 review(s) Reply with quote

nah, there was an issue with dealloc and syntaxchecking. It's fixed for next version (7.4.1/7.5)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
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