View previous topic :: View next topic |
Author |
Message |
hemersonkla1 Cheater Reputation: 0
Joined: 24 Jun 2015 Posts: 34
|
Posted: Wed Sep 14, 2016 1:39 pm Post subject: how i do this please? |
|
|
Code: | int=getInternet()
s=int.getURL("http://cheatengine.org/examplescript.lua")
load(s)()
if (load) then
form_show(UDF13)
end
else
form_hide(UDF13) |
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 31
Joined: 16 Feb 2017 Posts: 1234
|
Posted: Sun Apr 05, 2020 7:57 am Post subject: |
|
|
Dark Byte wrote: | Another example but now with a pre-compiled lua script: (Exactly the same script)
Code: |
if cheatEngineIs64Bit() then bintype='64' else bintype='32' end
int=getInternet()
s=int.getURL("http://cheatengine.org/examplescript.luac"..bintype)
int.destroy()
load(s)()
|
|
DB,
Could you please share the example of this Trainer you uploaded to the cloud?
"examplescript.luac"
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sun Apr 05, 2020 8:07 am Post subject: |
|
|
DB, so this loadstring() able to load binaries file as luac?
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sun Apr 05, 2020 8:12 am Post subject: |
|
|
lua bytecode binaries as well yes
encodeFunction just converts the lua bytecode to a copy/pastable format.
Also, you can build your own lua version with a randomized order of instructions so the bytecode only works with that lua build (use EncodeFunctionEx for that if you don't want to replace your main lua file)
_________________
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 |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sun Apr 05, 2020 8:54 am Post subject: |
|
|
Dark Byte wrote: | lua bytecode binaries as well yes
encodeFunction just converts the lua bytecode to a copy/pastable format.
Also, you can build your own lua version with a randomized order of instructions so the bytecode only works with that lua build (use EncodeFunctionEx for that if you don't want to replace your main lua file) |
I see, DB, thank so much for useful information.
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL |
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 31
Joined: 16 Feb 2017 Posts: 1234
|
Posted: Sun Apr 05, 2020 9:19 am Post subject: |
|
|
Thanks DB. I saved the current table as ".luac" and loaded it smoothly.
It is a pity that you do not give the example here when the forum on the link opens.
I think the forum below has been in vain.
https://www.cheatengine.org/forum/viewtopic.php?t=607299
I have a question; Does the ".luac" table called or opened save to the PC?
Where does it open as an infrastructure? Is it cloud? Or TEMP etc?
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sun Apr 05, 2020 10:23 am Post subject: |
|
|
the luac is not a table, it's just some lua code
and it gets loaded by loadstring(loadstring can load binary as well)
but if you wish to load a table using luascript you can use loadTable(stream)
FileStream, MemoryStream and StringStream are all acceptable as input, and only one of them needs diskspace
_________________
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 |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 31
Joined: 16 Feb 2017 Posts: 1234
|
Posted: Sun Apr 05, 2020 11:27 am Post subject: |
|
|
Dark Byte wrote: | the luac is not a table, it's just some lua code
and it gets loaded by loadstring(loadstring can load binary as well)
but if you wish to load a table using luascript you can use loadTable(stream)
FileStream, MemoryStream and StringStream are all acceptable as input, and only one of them needs diskspace |
This code is very useful. Thanks DB.
I tried. With ".luac" I can call cheat panels to Existing Table.
So I can add more than one game Trainer to one table.
I will now use this method for updating.
Give an empty trainer and fill it up from the cloud; Good idea.
Thanks again, DB
_________________
|
|
Back to top |
|
|
|