View previous topic :: View next topic |
Author |
Message |
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Fri Jan 21, 2022 12:00 am Post subject: passing disableInfo to autoAssembleCheck |
|
|
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 |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Fri Jan 21, 2022 12:26 am Post subject: |
|
|
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 |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Fri Jan 21, 2022 7:10 am Post subject: |
|
|
I have the patreon 7.4 installed.
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Sat Jan 22, 2022 3:31 am Post subject: |
|
|
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 |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Sat Jan 22, 2022 12:10 pm Post subject: |
|
|
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 |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Thu Jan 27, 2022 2:58 am Post subject: |
|
|
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 |
|
|
|